본문으로 건너뛰기
Skillpedia
글쓰기40k · #7465

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/update-markdown-file-index/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Scan: Read the target markdown file ${file} to understand existing structure
  2. Discover: List all files in the specified folder ${input:folder} matching pattern ${input:pattern}
  3. Analyze: Identify if an existing table/index section exists to update, or create new structure
  4. Structure: Generate appropriate table/list format based on file types and existing content
  5. Update: Replace existing section or add new section with file index
  6. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬