docs-writer
npx machina-cli add skill yunseo-kim/awesome-agent-toolbox/docs-writer --openclawDocs Writer
This skill provides one core documentation workflow with profile-aware rules. Use this as the default docs skill, then apply a profile when the repo has framework-specific conventions.
Profile Selection
Choose one profile before planning edits:
generic(default) for most repositoriesnextjsfor Next.js docs trees and MDX conventionsangularfor Angular documentation conventions
Profile references:
references/PROFILE-GENERIC.mdreferences/PROFILE-NEXTJS.mdreferences/PROFILE-ANGULAR.mdreferences/TEMPLATES.md
Phase 1: Discover
Goal: understand request scope and affected documentation surface.
Checklist:
- Clarify whether task is new docs, update, review, or impact analysis.
- Inspect changed code/docs and identify user-visible behavior changes.
- Identify target audience and intent (tutorial, reference, concept, release note).
- Select the profile and list constraints from that profile.
If request is large collaborative drafting (RFC/spec/proposal), use
the co-authoring mode in references/CORE-CHECKLIST.md.
Phase 2: Plan
Goal: produce an explicit edit plan before writing.
Checklist:
- Map code changes to documentation targets.
- List exact files to update/create.
- Define section-level changes for each file.
- Note cross-links, sidebars/index pages, and related docs updates.
- Define validation commands and quality gates.
Use references/CORE-CHECKLIST.md for planning prompts.
Consult references/TEMPLATES.md when selecting document structure and
scaffolding.
Phase 3: Write
Goal: apply focused edits with high signal and minimal drift.
Rules:
- Keep writing user-centered, direct, and task-oriented.
- Preserve repository terminology and existing information architecture.
- Use concrete examples and expected outcomes where helpful.
- Prefer updating canonical sources over duplicating content.
- For profile-specific formatting (frontmatter, MDX components, code block attributes), follow the selected profile strictly.
- Start from
references/TEMPLATES.mdfor README/API/tutorial structure before adding project-specific details.
When creating new docs, include:
- clear title and short description
- prerequisites (if needed)
- actionable steps/examples
- edge cases or errors (where relevant)
- next steps or related links
Phase 4: Verify
Goal: ensure docs are accurate, consistent, and ready to merge.
Verification sequence:
- Technical accuracy check against code and behavior.
- Style and structure check against profile + core checklist.
- Link/reference integrity check.
- Formatting/lint/build checks using repository commands.
- Final pass for redundancy, ambiguity, and stale statements.
Before completion, report:
- files changed
- why each change was needed
- validation performed and results
Boundaries and Handoffs
- Use this skill as default for docs work.
- All profile guidance is self-contained under
references/in this skill. - Keep framework-specific constraints inside profile documents, not the core flow.
Source
git clone https://github.com/yunseo-kim/awesome-agent-toolbox/blob/main/.agents/skills/docs-writer/SKILL.mdView on GitHub Overview
Docs Writer delivers a single, profile-aware workflow to write, review, and update technical documentation across repositories. It drives tasks from discovery through verification and supports generic, Next.js, and Angular conventions via self-contained reference profiles.
How This Skill Works
It standardizes four phases: Discover, Plan, Write, and Verify. For each task, it uses profile references and templates to map changes to documentation targets, ensure consistency, and validate quality before merge.
When to Use It
- Writing or editing docs across repositories
- Reviewing doc quality and consistency
- Mapping code changes to documentation impact
- Scaffolding new documentation, READMEs, and API guides
- Improving docs in /docs and *.md or *.mdx files
Quick Start
- Step 1: Pick a profile (generic/nextjs/angular) and reference PROFILE-*.md documents
- Step 2: Run Discover to scope changes, audience, and surface; draft Plan
- Step 3: Write edits following the profile, then Verify and report results
Best Practices
- Always start with Discover to clarify scope, audience, and profile
- Choose the correct profile (generic, nextjs, angular) and apply its constraints
- Plan explicitly before writing: map changes to targets and list files
- Preserve terminology and information architecture of the repo
- Verify with technical checks, links, and lint/build steps before merge
Example Use Cases
- Update a Next.js docs tree to reflect a new MDX component prop with cross-links
- Scaffold a new Angular docs page for a service, including prerequisites and examples
- Audit a repo to map a code change to a corresponding docs update and release note
- Refresh a README API section with updated usage patterns and examples
- Normalize cross-links and sidebars per references/TEMPLATES.md across /docs