| name | document |
| description | Documentation management workflow. Use when user asks to create, update, or find documentation, when code changes need doc updates, or when user asks "where is the doc for X". Manages docmap, code-to-doc mapping, and all documentation operations. |
Document
Manages the project's documentation structure, maintains a code-to-doc mapping, and ensures docs stay in sync with code changes.
Documentation is only useful if it's findable and current. This skill maintains a living map of what's documented where, so you never have to grep through files wondering "is this documented anywhere?" It also ensures that code changes trigger the right doc updates.
When to Use
- User asks to find, create, or update documentation
- Code changes affect documented behavior (API, configuration, usage)
- User asks "where is this documented?" or "what docs do we have?"
- User mentions README, CHANGELOG, or specific doc files
- After implementing a feature, to update related docs
- User wants to understand the documentation structure
Documentation Map
Maintain a documentation map in .github/docmap.md that tracks:
---
updated: 2024-01-15
---
# Documentation Map
## Files
| File | Purpose | Related Code |
|---|---|---|
| README.md | Project overview, setup, usage | build.gradle.kts, src/ |
| CHANGELOG.md | Version history, release notes | All changes |
| CODE_OF_CONDUCT.md | Community guidelines | — |
| .github/brainstorm.md | Active design discussion | Current feature |
## Sections Index
### README.md
- Installation → build.gradle.kts, gradle.properties
- Usage → src/main/kotlin/...
- Configuration → resources/...
- Contributing → .github/
### CHANGELOG.md
- [Unreleased] → current branch changes
- [x.y.z] → tagged releases
Workflows
Finding Documentation
When user asks "where is X documented?" or "is there docs for Y?":
- Read
.github/docmap.md for the mapping
- Search documentation files for relevant content
- Report findings with file paths and line numbers
- If not documented, suggest where it should be added
Creating Documentation
When adding new documentation:
- Determine the right location based on the doc map
- Follow the existing style and format of nearby docs
- Update
.github/docmap.md with the new entry
- Cross-reference related code paths
Updating Documentation
When code changes affect documented behavior:
- Identify which docs are affected using the doc map's "Related Code" column
- Read the current documentation
- Update to reflect the new behavior
- Update the
updated timestamp in docmap.md
- If the change is user-facing, add a CHANGELOG entry under
[Unreleased]
CHANGELOG Management
Follow Keep a Changelog format:
## [Unreleased]
### Added
- New feature description
### Changed
- Modified behavior description
### Fixed
- Bug fix description
### Removed
- Removed feature description
Categories: Added, Changed, Deprecated, Removed, Fixed, Security.
Doc Health Check
When asked to review documentation health:
- Scan all doc files for staleness (compare against recent code changes)
- Check for broken internal references
- Identify undocumented public APIs or features
- Report findings with suggested actions
Conventions
- Language: Match the existing project language (this project uses English)
- Style: Be concise and direct. Prefer examples over lengthy explanations.
- Structure: Use headings, tables, and code blocks for scannability
- Links: Use relative links between project files
- Freshness: Always update the
updated date in docmap.md when making changes
Bootstrap
If .github/docmap.md doesn't exist yet, create it by scanning the project:
- Find all
.md files
- Read each file's purpose from its content
- Map code relationships based on file references
- Generate the initial docmap