MCAF: Documentation
Trigger On
- docs are missing, stale, duplicated, or hard to navigate
- a repo needs a cleaner source-of-truth structure
- durable engineering guidance needs to be added without bloating pages
Value
- produce a concrete project delta: code, docs, config, tests, CI, or review artifact
- reduce ambiguity through explicit planning, verification, and final validation skills
- leave reusable project context so future tasks are faster and safer
Do Not Use For
- writing a specific feature spec or ADR when that skill already fits
- dumping large template content into public pages
Inputs
- current docs structure and entry pages
- the code, policy, or workflow that the docs should reflect
- duplicate or conflicting sources of truth
Quick Start
- Read the nearest
AGENTS.md and confirm scope and constraints.
- Run this skill's
Workflow through the Ralph Loop until outcomes are acceptable.
- Return the
Required Result Format with concrete artifacts and verification evidence.
Workflow
- Decide the canonical location for each fact before writing.
- Prefer navigational docs that link to detail instead of copying detail.
- Keep bootstrap pages small; move workflow scaffolds into skills.
- Update stale docs in the same change as the code or policy they describe.
Deliver
- cleaner docs structure
- better source-of-truth placement
- docs that reflect the code and workflow that actually exist
Validate
- each durable fact has one clear home
- entry pages route the reader correctly
- pages do not bloat with template or reference dumps
- docs match the real repo, not the intended future repo
Ralph Loop
Use the Ralph Loop for every task, including docs, architecture, testing, and tooling work.
- Plan first (mandatory):
- analyze current state
- define target outcome, constraints, and risks
- write a detailed execution plan
- list final validation skills to run at the end, with order and reason
- Execute one planned step and produce a concrete delta.
- Review the result and capture findings with actionable next fixes.
- Apply fixes in small batches and rerun the relevant checks or review steps.
- Update the plan after each iteration.
- Repeat until outcomes are acceptable or only explicit exceptions remain.
- If a dependency is missing, bootstrap it or return
status: not_applicable with explicit reason and fallback path.
Required Result Format
status: complete | clean | improved | configured | not_applicable | blocked
plan: concise plan and current iteration step
actions_taken: concrete changes made
validation_skills: final skills run, or skipped with reasons
verification: commands, checks, or review evidence summary
remaining: top unresolved items or none
For setup-only requests with no execution, return status: configured and exact next commands.
Load References
- read
references/documentation.md for structure and documentation-quality guidance
Example Requests
- "Clean up this docs mess."
- "Move process clutter out of public pages."
- "Make the repo docs navigable for an agent."
1---2name: mcaf-documentation3description: Create or refine durable engineering documentation: docs structure, navigation, source-of-truth placement, and writing quality. Use when a repo’s docs are missing, stale, duplicated, or hard to navigate, or when adding new durable engineering guidance.4---56# MCAF: Documentation78## Trigger On910- docs are missing, stale, duplicated, or hard to navigate11- a repo needs a cleaner source-of-truth structure12- durable engineering guidance needs to be added without bloating pages1314## Value1516- produce a concrete project delta: code, docs, config, tests, CI, or review artifact17- reduce ambiguity through explicit planning, verification, and final validation skills18- leave reusable project context so future tasks are faster and safer1920## Do Not Use For2122- writing a specific feature spec or ADR when that skill already fits23- dumping large template content into public pages2425## Inputs2627- current docs structure and entry pages28- the code, policy, or workflow that the docs should reflect29- duplicate or conflicting sources of truth3031## Quick Start32331. Read the nearest `AGENTS.md` and confirm scope and constraints.342. Run this skill's `Workflow` through the `Ralph Loop` until outcomes are acceptable.353. Return the `Required Result Format` with concrete artifacts and verification evidence.3637## Workflow38391. Decide the canonical location for each fact before writing.402. Prefer navigational docs that link to detail instead of copying detail.413. Keep bootstrap pages small; move workflow scaffolds into skills.424. Update stale docs in the same change as the code or policy they describe.4344## Deliver4546- cleaner docs structure47- better source-of-truth placement48- docs that reflect the code and workflow that actually exist4950## Validate5152- each durable fact has one clear home53- entry pages route the reader correctly54- pages do not bloat with template or reference dumps55- docs match the real repo, not the intended future repo5657## Ralph Loop5859Use the Ralph Loop for every task, including docs, architecture, testing, and tooling work.60611. Plan first (mandatory):62 - analyze current state63 - define target outcome, constraints, and risks64 - write a detailed execution plan65 - list final validation skills to run at the end, with order and reason662. Execute one planned step and produce a concrete delta.673. Review the result and capture findings with actionable next fixes.684. Apply fixes in small batches and rerun the relevant checks or review steps.695. Update the plan after each iteration.706. Repeat until outcomes are acceptable or only explicit exceptions remain.717. If a dependency is missing, bootstrap it or return `status: not_applicable` with explicit reason and fallback path.7273### Required Result Format7475- `status`: `complete` | `clean` | `improved` | `configured` | `not_applicable` | `blocked`76- `plan`: concise plan and current iteration step77- `actions_taken`: concrete changes made78- `validation_skills`: final skills run, or skipped with reasons79- `verification`: commands, checks, or review evidence summary80- `remaining`: top unresolved items or `none`8182For setup-only requests with no execution, return `status: configured` and exact next commands.8384## Load References8586- read `references/documentation.md` for structure and documentation-quality guidance8788## Example Requests8990- "Clean up this docs mess."91- "Move process clutter out of public pages."92- "Make the repo docs navigable for an agent."