Bootstrap or extend a repo's documentation for coding agents. Creates AGENTS.md + docs/ structure (architecture, guidelines, product-specs with stable IDs and invariants). Use when the user asks to "document the project for coding agents", "set up agent docs", "add AGENTS.md", "create docs/ structure".
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
This skill bootstraps a documentation layout for LLM-assisted development. Every project area has one stable home. Every product behavior has a unique ID. Every change has a clear consultation path.
Do not invoke it for a one-off README edit. Individual specs are /spec's job. In a repo
that already has a different doc convention, confirm with the user first.
Paths are relative to this file. <plugin root> is the directory two levels above it.
| File | Read at | Holds |
|---|---|---|
../../assets/writing.md | before writing any doc | the writing rules for every text a person reads |
templates/ | step 3, before creating files | one skeleton per file. Its sections are the required content. |
templates/product-specs-README.md is the home of the spec format: behavioral, testable,
identified, and how invariants differ. Follow it for every spec and invariant you write.
<plugin root>/scripts/prose-lint.py checks a doc against the writing rules.
Each fact has one home. The other files link to it instead of restating it.
| File | Holds | Not here |
|---|---|---|
AGENTS.md | the pitch, tech stack, 30-second architecture, layout, the doc index with load hints, one line per process rule | rationale, full specs |
docs/README.md | how to manage docs/: when to update what, naming, when not to write a doc | project content, the spec format |
docs/architecture.md | layers and why each exists, assumptions, tech choices, deliberate omissions | tutorials, the directory tree |
docs/guidelines.md | process: lint and test policy, the planning checklist, regressions with the 5 whys | product behavior |
docs/product-specs/README.md | the spec format and one index of spec files with their prefixes | feature behavior |
docs/product-specs/invariants.md | cross-cutting conditions, prefix INV | feature-local rules |
docs/product-specs/<feature>.md | testable behaviors of one feature area, prefix PREFIX-NNN | implementation details |
../../assets/writing.md and the templates now. Write
invariants.md first, then the feature specs, the specs README, architecture,
guidelines, docs/README.md, and AGENTS.md last. Each file links to the ones before
it.
<placeholder> with a fact you found in the repo, and delete every tip
comment. A placeholder or a tip that survives is a defect.AGENTS.md indexes every file
under docs/. The specs README indexes every spec file with its prefix.prose-lint.py on AGENTS.md and every file under docs/, and
fix every finding. Then show the user the final layout and ask them to confirm.Each item is answerable with evidence: a file path, a grep result, or a user confirmation.
PREFIX-NNN ID, and carries no **Testable:**
line. Every cross-cutting invariant has an INV-NNN ID.AGENTS.md at most about 150 lines, each feature spec 5 to 15 items of 1 to
3 sentences, architecture 1 to 3 pages.prose-lint.py reports no findings on any created or edited file.korya/swd-skills
b1520b9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.