Codebase documenter

From rjmurillo/ai-agents · View interactive version

Codebase documenter is an AI agent skill from the GitHub repository rjmurillo/ai-agents. Scaffold project documentation (README, ARCHITECTURE, API, CODE_COMMENTS) from templates with documented standards. Use when bootstrapping docs for a new or under-documented codebase.

How to use this skill

Skill file

Codebase Documenter

Generate documentation scaffolding for a project that has none, or has the wrong shape. This skill produces structured starters with bracketed placeholders the team fills in. It does not write prose for you.

Triggers

| Trigger Phrase | Operation |

|----------------|-----------|

| scaffold project documentation | Generate README, ARCHITECTURE, API, code comment scaffolds |

| bootstrap docs for new codebase | Produce starter docs with placeholders |

| add starter README | Create README scaffold only |

| set up documentation standards | Drop standards references into the repo |

| document this codebase from scratch | Full scaffold pass |

When to Use

Use this skill when:

Use a different skill when:

Boundaries

Process

  1. Confirm the target directory and confirm no overwrite of existing docs without explicit user consent.
  2. Copy assets/templates/README.template.md to README.md (or path the user requests).
  3. Copy assets/templates/ARCHITECTURE.template.md to ARCHITECTURE.md if a separate architecture doc is wanted.
  4. Create parent directories (docs/, docs/standards/, or any user-requested path) before any copy step that targets them.
  5. Copy assets/templates/API.template.md to docs/API.md (or equivalent) if the project exposes an API.
  6. Copy assets/templates/CODE_COMMENTS.template.md to docs/standards/CODE_COMMENTS.md (or link from the README).
  7. Point the team at references/documentation_guidelines.md and references/visual_aids_guide.md for voice and visual standards.

Templates

| Template | Purpose |

|----------|---------|

| assets/templates/README.template.md | Project front door. Why, quick start, structure, common tasks, troubleshooting. |

| assets/templates/ARCHITECTURE.template.md | System overview, components, data flow, decisions, failure modes. |

| assets/templates/API.template.md | API reference per endpoint with conventions and examples. |

| assets/templates/CODE_COMMENTS.template.md | Docstring and inline comment standards across languages. |

References

| Reference | Purpose |

|-----------|---------|

| references/documentation_guidelines.md | Voice, structure, audience framing, placeholder convention. |

| references/visual_aids_guide.md | When and how to use diagrams, tables, callouts. |

Verification Checklist

Anti-Patterns

| Avoid | Why | Instead |

|-------|-----|---------|

| Filling in placeholders speculatively | Produces fiction the team will rediscover and rewrite | Leave brackets; team fills in |

| Copying README content into ARCHITECTURE | Both files drift; readers cannot tell which is current | One concept per document |

| Adding diagrams for every section | Visual noise distracts from text | Diagram only where ambiguity is real |

| Long preamble before quick start | Readers leave before they reach the value | Quick start in the first screen |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.