update-markdown-file-index
하는 일
이 도구는 텍스트 문서(Markdown 파일) 안에 특정 폴더의 파일 목록이나 표를 자동으로 만듭니다. 파일 이름, 종류, 설명을 보여 주며 정리합니다.
사용하는 경우
- ✓프로젝트의 모든 파일을 문서에 나열하고 싶을 때.
- ✓폴더 문서를 정리하는 README를 만들 때.
- ✓메모 파일에 코드 예시의 색인을 만들고 싶을 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/update-markdown-file-index/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“'README.md' 파일에 'documents' 폴더의 파일 색인을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 주 파일을 읽고, 지정한 폴더를 찾아 그 안의 파일을 나열합니다. 각 파일에 관한 정보가 담긴 정리된 목록이나 표를 만들어 문서에 넣습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Update Markdown File Index
Update markdown file ${file} with an index/table of files from folder ${input:folder}.
Process
- Scan: Read the target markdown file
${file}to understand existing structure - Discover: List all files in the specified folder
${input:folder}matching pattern${input:pattern} - Analyze: Identify if an existing table/index section exists to update, or create new structure
- Structure: Generate appropriate table/list format based on file types and existing content
- Update: Replace existing section or add new section with file index
- Validate: Ensure markdown syntax is valid and formatting is consistent
File Analysis
For each discovered file, extract:
- Name: Filename with or without extension based on context
- Type: File extension and category (e.g.,
.md,.js,.py) - Description: First line comment, header, or inferred purpose
- Size: File size for reference (optional)
- Modified: Last modified date (optional)
Table Structure Options
Choose format based on file types and existing content:
Option 1: Simple List
## Files in ${folder}
- [filename.ext](path/to/filename.ext) - Description
- [filename2.ext](path/to/filename2.ext) - Description
Option 2: Detailed Table
| File | Type | Description |
|------|------|-------------|
| [filename.ext](path/to/filename.ext) | Extension | Description |
| [filename2.ext](path/to/filename2.ext) | Extension | Description |
Option 3: Categorized Sections
Group files by type/category with separate sections or sub-tables.
Update Strategy
- 🔄 Update existing: If table/index section exists, replace content while preserving structure
- ➕ Add new: If no existing section, create new section using best-fit format
- 📋 Preserve: Maintain existing markdown formatting, heading levels, and document flow
- 🔗 Links: Use relative paths for file links within the repository
Section Identification
Look for existing sections with these patterns:
- Headings containing: "index", "files", "contents", "directory", "list"
- Tables with file-related columns
- Lists with file links
- HTML comments marking file index sections
Requirements
- Preserve existing markdown structure and formatting
- Use relative paths for file links
- Include file descriptions when available
- Sort files alphabetically by default
- Handle special characters in filenames
- Validate all generated markdown syntax
자주 묻는 질문
Markdown 파일이란 무엇인가요?
굵은 글씨나 목록을 만들기 위해 특수 기호를 사용해 텍스트 서식을 지정하는 간단한 텍스트 형식입니다. 인터넷 문서에 널리 쓰입니다.
AI는 어떤 파일을 나열할지 어떻게 아나요?
어느 폴더를 볼지 여러분이 알려 줍니다. '패턴'을 사용해 '.txt'나 '.py' 파일만 포함하도록 거를 수도 있습니다.
AI가 파일의 기존 내용을 삭제하나요?
아니요, AI는 똑똑하게 처리합니다. 파일 목록이 이미 있으면 그 목록을 업데이트하고, 없으면 나머지 내용을 망치지 않고 목록을 위한 새 섹션을 만듭니다.
상세 정보
작성자의 원본 설명
Update a markdown file section with an index/table of files from a specified folder.
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7465
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.