/repo-documentation:update-markdown-file-indexfrom repo-documentation
Updates a Markdown file with an index, list, or table of files from a specified folder, preserving existing structure and relative links. Useful for maintaining README contents sections or documenting scripts.
Ships in repo-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scan a target Markdown document and a source folder, derive descriptions from discovered files, then replace or add a consistent file index with valid relative links and stable ordering.
docs/."Use $ARGUMENTS or the user request to identify the target Markdown file, source folder, and optional glob pattern. If a pattern is absent, infer a safe default from the request such as *.md for documentation indexes or all regular files for generic folder indexes.
Legacy prompt placeholders map directly to runtime inputs: ${file} is the target Markdown file, ${input:folder} is the scanned folder, and ${input:pattern} is the optional glob. The result may be an index/table, table/index, categorized sub-tables, or another best-fit structure using file type/category and other file-related metadata.
| Signal | Match examples | Action |
|---|---|---|
| Heading text | "index", "files", "contents", "directory", "list" | Treat the heading subtree as the candidate replacement. |
| File table | Columns such as File, Type, Description, Size, Modified | Preserve column intent when regenerating rows. |
| File-link list | Bullets containing [filename.ext](path/to/filename.ext) | Replace only the contiguous file-list block. |
| HTML marker | Comments such as <!-- file index --> or generated-section markers | Prefer marker bounds over heading heuristics. |
| Field | Extraction rule | Fallback |
|---|---|---|
| Name | Use the filename with extension unless the surrounding document omits extensions. | Preserve the existing convention. |
| Type | Use extension and category, for example .md, .js, .py, or Extension. | file when no extension exists. |
| Description | First Markdown heading, first meaningful comment, shebang purpose, package metadata, or inferred filename purpose. | Short inferred description in sentence case. |
| Size | Include only if the existing index includes size or the user asks. | Omit. |
| Modified | Include only if the existing index includes dates or the user asks. | Omit. |
## Files in <folder>
- [filename.ext](path/to/filename.ext) - Description
- [filename2.ext](path/to/filename2.ext) - Description
| File | Type | Description |
|------|------|-------------|
| [filename.ext](path/to/filename.ext) | Extension | Description |
| [filename2.ext](path/to/filename2.ext) | Extension | Description |
Group files by type, feature area, or folder when a flat table is too noisy. Keep each category alphabetized.
| in table cells and handle spaces, parentheses, and other special characters in filenames.## Markdown file index result
**Status:** updated | created | blocked
**Target file:** `<file>`
**Source folder:** `<folder>`
**Pattern:** `<pattern>`
**Format:** simple list | detailed table | categorized sections
### Files indexed
| File | Type | Description |
| --- | --- | --- |
| `<relative/path>` | `<extension or category>` | <description> |
### Validation
- Existing section found: yes | no
- Relative links valid: pass | fail
- Markdown table/list syntax valid: pass | fail
$ARGUMENTS.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/add-educational-commentsAdd educational comments to existing code files while preserving encoding, line endings, indentation, syntax, and build correctness. Use this skill when the user asks to annotate a file for learning, add teaching comments, explain code inline, adjust comment detail or repetitiveness, or use Line Number Referencing./comment-code-generate-a-tutorialTransform a Python script into a polished beginner-friendly project by refactoring code, adding instructional comments, and generating a complete README.md tutorial. Use this skill when asked to explain, comment, clean up, teach, or turn a Python script into a tutorial project./convert-plaintext-to-mdConvert plaintext or generic text documentation into well-structured Markdown while preserving source content and applying explicit instructions, documented options, or a converted guide file. Use when asked to convert a file to Markdown, finalize Markdown formatting, apply header patterns, use a guide document, or target GitHub, StackOverflow, VS Code, GitLab, or CommonMark rendering./create-agentsmdCreate a high-quality AGENTS.md file for a repository by inspecting project structure, workflows, commands, tests, and conventions. Use this skill when the user asks to create, update, or improve AGENTS.md, add coding-agent instructions, document repo setup for agents, or follow the agents.md format./create-llmsCreate a new repository-root llms.txt file from repository structure and documentation according to the llms.txt specification. Use when users ask to create llms.txt, generate LLM navigation, document repository structure for LLMs, or add an llms.txt compliant with https://llmstxt.org/./create-readmeCreate or improve a concise, appealing, project-specific README.md with a clear overview, setup, usage, and practical examples. Use this skill when the user asks to generate, refresh, polish, rewrite, or make a repository README more useful for GitHub readers.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin repo-documentationOther plugins' skills for the same job