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.
- Brainstorm first (mandatory):
- analyze current state
- define the problem, target outcome, constraints, and risks
- generate options and think through trade-offs before committing
- capture the recommended direction and open questions
- Plan second (mandatory):
- write a detailed execution plan from the chosen direction
- 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: dotnet-mcaf-documentation3description: Apply MCAF documentation guidance for 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. Brainstorm first (mandatory):62 - analyze current state63 - define the problem, target outcome, constraints, and risks64 - generate options and think through trade-offs before committing65 - capture the recommended direction and open questions662. Plan second (mandatory):67 - write a detailed execution plan from the chosen direction68 - list final validation skills to run at the end, with order and reason693. Execute one planned step and produce a concrete delta.704. Review the result and capture findings with actionable next fixes.715. Apply fixes in small batches and rerun the relevant checks or review steps.726. Update the plan after each iteration.737. Repeat until outcomes are acceptable or only explicit exceptions remain.748. If a dependency is missing, bootstrap it or return `status: not_applicable` with explicit reason and fallback path.7576### Required Result Format7778- `status`: `complete` | `clean` | `improved` | `configured` | `not_applicable` | `blocked`79- `plan`: concise plan and current iteration step80- `actions_taken`: concrete changes made81- `validation_skills`: final skills run, or skipped with reasons82- `verification`: commands, checks, or review evidence summary83- `remaining`: top unresolved items or `none`8485For setup-only requests with no execution, return `status: configured` and exact next commands.8687## Load References8889- read `references/documentation.md` for structure and documentation-quality guidance9091## Example Requests9293- "Clean up this docs mess."94- "Move process clutter out of public pages."95- "Make the repo docs navigable for an agent."