docs-author
Skill1 starsChanged 5 months agoMITView on GitHub
Five-section structure (Purpose → When to use → Workflow → Outputs → Failure modes) for authoring skills, commands, and templates that match repo conventions.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- advanced-orchestrationSkill
- architect-agentSkill
- implementer-agentSkill
- quality-councilSkill
- reviewer-agentSkill
- tester-agentSkill
- writer-critic-pairSkill
- authoring-skillsSkill
- api-endpoint-qualitySkill
- async-job-qualitySkill
- auth-qualitySkill
- db-migration-qualitySkill
- frontend-state-qualitySkill
- acceptance-criteriaSkill
- adaptive-flowSkill
- adaptive-prompt-selectionSkill
- adversarial-code-reviewSkill
- architecture-decision-recordsSkill
- brainstormingSkill
- brownfield-spec-enhancementSkill
- bug-fix-lifecycleSkill
- checkpoint-validationSkill
- cicd-integrationSkill
- clarify-before-codeSkill
- claude-code-hooks-packSkill
- code-context-packSkill
- code-intelligence-reviewSkill
- context-policySkill
- context-rich-implementationSkill
- crash-proof-planningSkill
- critique-pass-protocolSkill
- dependency-aware-task-orderingSkill
- deprecation-migrationSkill
- disciplined-diagnosisSkill
- executing-plansSkill
- external-skillSkill
- finishing-a-development-branchSkill
- git-guardrailsSkill
- goal-driven-executionSkill
- grill-user-before-buildingSkill
- guard-bypass-protocolSkill
- improve-codebase-architectureSkill
- incremental-reviewSkill
- issue-slicingSkill
- lessons-learned-dbSkill
- loop-engineeringSkill
- model-aware-configSkill
- model-weakness-memorySkill
- multi-repo-learningSkill
- orchestration-workflowsSkill
- plan-driven-executionSkill
- plan-from-specSkill
- prd-from-contextSkill
- project-constitutionSkill
- prompt-architectureSkill
- prototype-before-commitmentSkill
- quality-engineSkill
- quality-execution-contractSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Do NOT use for:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Docs Author
Purpose
The five-section structure (Purpose, When to use, Workflow, Outputs, Failure modes) is the minimum viable structure validated by validate-skill-quality.mjs. Adding optional sections (Inputs, Verification checklist, Cross-references) signals flagship-quality work.
When to use
- Creating a new skill, command, or template
- Reviewing a PR that adds documentation
- Auditing existing docs for quality regressions
- Migrating content from another format (Notion, Confluence, internal wiki)
Do NOT use for:
- README files (use the bilingual README convention)
- ADR files (use the ADR template)
- Release notes (use the release notes template)
Inputs
- A topic, audience, and the workflow being documented
- Existing patterns to mirror (search with
skill-content-search) - An optional reviewer / maintainer for the "Cross-references" section
Workflow
- Run
node scripts/skill-content-search.mjs "<topic>"to find existing related docs and avoid duplication. - Start with the required sections — write Purpose, When to use, Workflow, Outputs, Failure modes. Use the doc structure table below.
- Add optional sections — Inputs, Verification checklist, Cross-references. These elevate the doc from "minimum" to "flagship".
- Run
node scripts/validate-skill-quality.mjsand fix any errors (warnings are OK). - Add cross-references — link from related skills' "Cross-references" section back to yours.
- Update the registry — add to
registry/skills.json(orcommands/manifest.json,registry/prompts.json). - Run
node scripts/generate-dashboard.mjsto regenerate the project health dashboard.
Doc structure table
| Section | Required? | Purpose | Length target |
# Title | Yes | H1 heading, file purpose | ≤ 60 chars |
## Purpose | Yes | What problem this solves | 2–4 sentences |
## When to use | Yes | Trigger conditions + exclusions | 3–7 bullets |
## Inputs | No | What the user provides | 3–6 bullets |
## Workflow | Yes | Step-by-step instructions | 4–10 numbered steps |
## Outputs | Yes | What gets produced | 3–6 bullets |
## Failure modes | Yes | Known edge cases + recovery | 3–7 entries |
## Verification checklist | No | How to confirm it worked | 4–8 checkboxes |
## Cross-references | No | Links to related skills/docs | 3–6 links |
Outputs
- A complete SKILL.md / command .md / template .md following the 5-section convention
- Optional sections added as needed for clarity
- Validation passing via
validate-skill-quality.mjs - Cross-references wired in both directions (your doc links out, related docs link in)
Failure modes
- Skipping "Failure modes" — leads to repeated questions and stale docs. Always include at least 3.
- Vague "When to use" — readers don't know if this applies to them. Use explicit trigger phrases.
- Workflow without examples — abstract steps don't transfer. Include at least one concrete example per major step.
- No cross-references — orphaned docs rot. Always wire bidirectional links.
- Naming collisions — check existing skills before naming; use
skill-content-searchto verify. - Frontmatter drift — keep YAML keys in sync across files; validate with
validate-repo.mjs.
Verification checklist
- All 5 required sections present (Purpose, When to use, Workflow, Outputs, Failure modes)
- Optional sections included where they add value
- At least one concrete example per Workflow step
- At least 3 Failure modes documented
- Cross-references are bidirectional (or at least point outward)
- YAML frontmatter matches repo schema (name, version, category, description, tags)
node scripts/validate-skill-quality.mjsexits 0- Entry added to
registry/skills.json(or relevant manifest) node scripts/generate-dashboard.mjsregenerates clean- At least one reviewer signed off
Cross-references
- See
skills/core/quality-execution-contract/SKILL.md— quality contract before merging docs - See
skills/core/skill-content-search/SKILL.md— find related content first - See
templates/adr-template.md— for ADR-format decisions - See
docs/quality-shield.md— Quality Shield workflow context - See
scripts/validate-skill-quality.mjs— what the gate checks
Review cadence
- Quarterly: review doc count, orphan docs, cross-reference completeness
- On new convention: update this skill + announce in release notes
On retire: use(removed in v2.17 trim)git rm+ update registry
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

