| name | contributing-docs-updater |
| description | Update, create, review, and find gaps in contributor documentation including CONTRIBUTING.md, docs/contributing/, and docs/architecture/. Use when a task affects contributor setup, build, test, debug, review, or architecture guidance, or when a code review needs a documentation impact assessment. |
| argument-hint | Describe what contributor docs to update, review, or create |
| user-invocable | true |
Contributing Documentation Updater
Use this skill to maintain contributor-facing documentation that must stay aligned with the Radius repository.
This skill applies to:
CONTRIBUTING.md
docs/contributing/
docs/architecture/
- Contributor-facing Copilot guidance in
.github/ when the requested change is specifically about contributor workflows
When to Use
- Rewrite or improve existing contributor documentation
- Create new contributor guides for undocumented workflows
- Find gaps in documentation coverage and suggest what docs to create
- Review changes to contributor documents for accuracy and completeness
- During code reviews: determine if code changes require doc updates
Do not use this skill for general product documentation, end-user documentation, or code changes that have no contributor workflow impact.
Core Principles
- Code first: Verify commands, paths, and workflows against the repository before editing docs.
- Smallest correct scope: Update the narrowest doc that fully covers the workflow. Do not spread one topic across multiple pages unless navigation requires it.
- Workflow over inventory: Explain what contributors need to do, when they need to do it, and how to verify success.
- Cross-reference deliberately: Update entry points and section indexes only when the doc structure changes.
- Review mode stays review-only: In code review or doc review requests, report required doc changes unless the user explicitly asks you to edit them.
Documentation Map
The documentation structure under docs/contributing/ may change over time. Do not assume any specific sub-paths exist. Instead, discover the current layout at the start of every task:
- List the directory tree under
docs/contributing/ to learn the current structure.
- Read
CONTRIBUTING.md and any top-level index files (e.g., README.md files, table-of-contents pages) to understand the navigation hierarchy.
- Read
docs/architecture/ contents when the task involves architecture documentation.
- Match the topic to the most appropriate existing location. If no existing section fits, propose the smallest new page or subsection and update the nearest parent index.
Always verify the actual directory structure before referencing, creating, or moving any doc.
General Procedure
Follow this flow. After classifying the request, jump to the matching section under Modes for specific steps.
- Classify the request: Decide whether this is a rewrite, new doc, gap analysis, doc review, or code review impact assessment.
- Discover the current doc structure: Follow the Documentation Map procedure to learn the current layout before making any assumptions about paths.
- Verify the source of truth: Read the relevant docs, then inspect the code, scripts, Make targets, configs, workflows, or directory structure they describe.
- Choose the target location: Reuse an existing section when possible. If no existing section fits, propose the smallest new page or subsection.
- Make the smallest accurate change: Prefer focused edits, concise steps, and validated examples.
- Update navigation when needed: If you add a new page or change information architecture, update
CONTRIBUTING.md and any relevant index or README files.
- Validate the result: Confirm commands exist, paths are real, links resolve, and the doc matches current repo behavior.
Modes
Rewrite Existing Docs
Use this mode when the target page exists but is outdated, unclear, or incomplete.
- Read the target doc and determine its intended audience and purpose.
- Read the source code, configs, scripts, or workflows the doc describes.
- Identify specific defects:
- outdated commands or paths
- missing prerequisites or verification steps
- stale references to renamed files, targets, flags, or directories
- content that has drifted from the repo's current workflow
- Rewrite only the sections that need correction, following Writing Guidelines.
- Re-check every command, path, and cross-reference you touched.
Expected output:
- Updated documentation with verified commands and paths
- Cross-reference updates only if structure changed
Create New Docs
Use this mode when the repository supports a contributor workflow that is not documented anywhere appropriate.
- Follow the Documentation Map procedure to discover the current structure and determine the correct directory.
- Read adjacent docs in that section to match tone and structure.
- Gather source material from the repository.
- Draft a narrowly scoped page that explains:
- when contributors need the workflow
- prerequisites
- exact steps
- how to verify success
- links to adjacent docs for prerequisite or follow-on tasks
- Update navigation files only where discoverability requires it.
Expected output:
- New page or subsection in the correct contributor-doc location
- Matching navigation updates where needed
Gap Analysis
Use this mode when the user wants to know what contributor docs are missing or stale.
-
Inventory the existing contributor docs and summarize what each section already covers.
-
Scan the repository for contributor-relevant workflows, especially:
- setup and prerequisites
- build, test, debug, and generation commands
- CLI and control plane workflows
- schema, API, and code generation changes
- release, PR, triage, and automation processes
-
Cross-reference documented workflows against actual repository capabilities.
-
Report gaps in this format:
| Gap | Suggested Doc | Location | Priority |
|---|
| Description of what's missing | Proposed title | Proposed path | High/Medium/Low |
-
Prioritize using this rubric:
- High: blocks or misleads new contributors
- Medium: slows common contributor workflows
- Low: helpful but not required for contributor success
Expected output:
- Gap table with specific, actionable doc proposals
- Brief note on why each high-priority gap matters
Review Doc Changes
Use this mode when contributor docs changed and the request is for review, not direct editing.
- Read the changed files and identify what contributor workflow they describe.
- Verify commands, paths, examples, and prerequisites against the codebase.
- Check for omissions that would cause a contributor to fail or get stuck.
- Check consistency with surrounding docs and Writing Guidelines.
- Check whether links and navigation entries still make sense.
- Provide review feedback using the repo's code review format.
Review focus:
- incorrect commands or flags
- wrong file paths or stale directory names
- missing prerequisites, environment assumptions, or validation steps
- structural changes that were not reflected in parent indexes
Code Review Doc Impact Assessment
Use this mode during code review when the changed code might require contributor doc updates.
-
Discover the current doc structure by following the Documentation Map procedure.
-
Categorize the change by contributor impact area:
| Change Type | Likely Doc Impact Area |
|---|
| New CLI command or flag | CLI guides, first-commit walkthroughs |
| Build system changes (Makefile, scripts) | Build and local dev guides |
| New package or directory | Repo organization guides |
| Test framework changes | Test execution guides |
| Config file changes | Control plane or runtime config guides |
| New prerequisites or tools | Prerequisites and setup guides |
| API schema changes | Schema and API change guides |
| Debugging workflow changes | Debugging guides |
| New dev workflow or script | Contribution pathway index or new guide |
| Architecture changes | docs/architecture/ |
| CI/CD workflow changes | Consider new guide |
| TypeSpec/API spec changes | Schema guides, docs/architecture/ |
| Helm chart or deployment changes | Consider deployment guide |
| Dev container changes | Prerequisites and setup guides |
| Code generation changes | Code writing or generation guides |
| Recipe changes | Consider recipe contribution guide |
| Copilot instruction/skill changes | .github/copilot-instructions.md |
-
Locate the specific doc that covers the impacted area by searching the discovered structure.
-
Assess whether contributor behavior changes. An update is usually needed if the change:
- affects setup, build, test, debug, release, or review workflows
- introduces a new tool, target, flag, config, or contributor-facing file
- changes or removes behavior already described in existing docs
-
If an update is needed, specify:
- which doc to update (using the actual path discovered earlier)
- which section to modify or add
- what contributor-facing behavior changed
-
If no update is needed, state why not.
Expected output:
- Clear yes or no on doc impact
- Specific target docs and section-level guidance when the answer is yes
Decision Rules
Ask a clarifying question only when one of these is ambiguous:
- the requested workflow could belong in multiple sections
- the user wants either a review or a direct edit and the intent is unclear
- the workflow appears to need a new page but the right parent section is not obvious
Otherwise, proceed without asking.
Example Prompts
/contributing-docs-updater Review the changes in the contributor test docs for accuracy.
/contributing-docs-updater Create a contributor guide for the local debug-start workflow.
/contributing-docs-updater Do these Makefile changes require contributor doc updates?
/contributing-docs-updater Find gaps in the contributor docs for TypeSpec and Swagger workflows.
Quality Checklist
Before finalizing any doc creation or update:
When operating in review-only modes, replace edits with precise findings and recommended doc changes.