write-docs
Skill93 starsChanged 5 months agoMITView on GitHub
Create or update structured docs under docs/ with frontmatter, numbering, lifecycle status, and index regeneration — guides, references, troubleshooting, design docs and ADRs. Use for "write a doc", "document this", "create a guide", "write an ADR", "update the docs". For the system-design thinking itself (architecture, trade-offs, failure modes) use /ship:arch-design first — it hands back here to record the decision.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- dzhng/skillstheir own version, first seen Oct 4, 2026
- dzhng/jevgreptheir own version, first seen Oct 2, 2026
- dzhng/duet-agenttheir own version, first seen Oct 2, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- tale-project/taletheir own version, first seen Sep 30, 2026
- GuusLab/nemi-plugintheir own version, first seen Sep 29, 2026
Used with
Projects with it also use audit-choices, close-spec and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dzhngSkillaudit-choices
Audit the choices an implementing agent made, not its diff — a pure decision audit that traces the session's history into a choices ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.
Also in 3 projects that use this
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 3 projects that use this
LucasMatuszewskiSkillaudit-agents
Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.
Also in 3 projects that use this
Halcyon666Skillwrite-skills
Creates high-quality Agent Skills (SKILL.md files) that follow the open Agent Skills specification. Use when asked to create a skill, write a SKILL.md, package agent instructions, build a reusable capability, or turn a workflow into a shareable skill. Produces spec-compliant, concise, well-structured skills optimized for agent discovery and execution.
Also in 3 projects that use this
isLinXuSkilleval-skills
AI Agent Skill unit testing framework. A framework-agnostic toolkit for discovering, scaffolding, selecting, evaluating, and reporting on AI skills. Use this skill to assess skill quality before production, compare candidate skills on the same benchmark, enforce quality gates in CI/CD, and generate human-readable evaluation reports.
Also in 3 projects that use this
TrecekSkillaudit-tests
Audit the test suite for useless tests, consolidation opportunities, over-mocking, weak assertions, and other test quality issues. Use when user says "audit tests", "audit test suite", "review tests", or "test quality check". Generates an improvement plan in temp/ with explanations for each proposed change.
Also in 3 projects that use this
- +6 more from dzhng
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- browseros-ai/BrowserOS★ 14ksame name
- Agenta-AI/agenta★ 4.8ksame name
- liveblocks/liveblocks★ 4.7ksame name
- dzhng/jevgrep★ 2.3ksame name
- dzhng/skills★ 978same name
- NVIDIA/tilus★ 495same name
- getsentry/abacus★ 77same name
- dzhng/duet-agent★ 46same name
- tale-project/tale★ 31same name
- GitbookIO/gitbook-skills★ 17same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 11 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
All structured docs live under docs/.
- Distinctive: line 29
Create a doc without adding it to the docs index
- Distinctive: line 34
Use a duplicate number within a category
- Distinctive: line 38
Every managed doc MUST start with YAML frontmatter:
- Distinctive: line 71
After creating or updating a doc, regenerate the index:
- Very specific: line 97
When changing status, also update last_modified to today's date.
- Distinctive: line 102
No duplicate numbers within a category.
- Distinctive: line 138
Use concrete file paths, struct names, and API endpoints — not abstractions.
- Distinctive: line 139
If the doc is in Chinese, keep it in Chinese.
- Distinctive: line 141
When content changes, update the existing doc rather than creating a new one — unless the change is a complete replacement (then supersede).
- Very specific: line 177
When renaming/renumbering, update ALL references.
- Very specific: line 181
Before marking a doc as current, verify key claims against code:
- Distinctive: line 182
Do referenced file paths exist?
- Distinctive: line 183
Do referenced struct/function names exist?
- Distinctive: line 184
Do referenced API endpoints exist?
- Very specific: line 187
Update last_modified when you complete verification.
- Very specific: line 191
After writing or updating a doc, regenerate the index and output the report card — read the format from ../shared/report-card.md (resolved …
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation Standard
All structured docs live under docs/. Each subdirectory is a category (e.g., docs/design/, docs/guides/, docs/troubleshooting/). Follow this standard when creating new docs or modifying existing ones.
For design docs and ADRs, the thinking is a separate job: /ship:arch-design
walks the design lenses (numbers, failure modes, trade-offs, red-team) and
hands the decision back here. This skill governs how the result is recorded —
design category conventions below, Boundaries required. If a design doc is
requested and no analysis exists yet, run /ship:arch-design first.
Red Flag
Never:
- Lead with analysis instead of the decision
- Include implementation details that belong in code
- Mix languages within one document
- Silently delete history — mark superseded sections, don't erase them
- Create a doc without adding it to the docs index
- Mark a doc as
currentwithout verifying claims against code - Skip the Boundaries section in design docs — it's the core anti-drift mechanism
- Ship a design doc with zero numbers and zero rejected alternatives — that's a description, not a design
- Use a duplicate number within a category
Frontmatter (Required)
Every managed doc MUST start with YAML frontmatter:
---
title: "Human-readable title"
description: "One sentence, under 120 chars — enough for an AI to decide whether to read the doc."
category: "design"
number: "002"
status: current | partially-outdated | superseded | draft | not-implemented
services: [scripts, hooks] # only when specific dirs/components are affected
superseded_by: "034" # only when status is superseded
related: ["design/001", "guides/003"] # category-qualified when cross-category
last_modified: "2026-04-13"
---Required Fields
- title: Match the
# headingbelow the frontmatter. Use quotes if it contains special chars. - description: One concise sentence for the docs index — write it for an AI that needs to decide "should I read this doc?" without opening it. Max 120 chars.
- category: Matches the subdirectory name (e.g.,
"design","guides","troubleshooting"). Must be one of the subdirectories underdocs/. - number: Unique within its category. Zero-padded 3 digits (e.g.,
"002","029"). Used for file naming (029-topic.md) and cross-referencing. - status: One of the 5 allowed values. See Status Lifecycle below.
- last_modified: ISO date (
YYYY-MM-DD) when the doc was last updated. Must be updated on every edit.
Conditional Fields
- services: Array of affected directories or components.
- superseded_by: Required when status is
superseded. Points to the replacement doc ascategory/number. - related: Include when related docs exist. Array of
category/numberreferences for navigation.
Docs Index
After creating or updating a doc, regenerate the index:
# SKILL_DIR = this skill's base directory (announced as "Base directory
# for this skill" when the skill loaded) — your cwd is the user's repo,
# so a bare relative path will not find the plugin's scripts.
bash "$SKILL_DIR/../../scripts/generate-docs-index.sh"This produces docs/DOCS_INDEX.md — a compact table (Category, #, Status, Name, Description, Last Modified, Path) that agents can read on demand to see what docs exist without opening each one. Superseded docs are excluded from the index.
Status Lifecycle
draft → current → partially-outdated → superseded
↘ not-implemented (if design was never built)| Status | Meaning |
draft | Proposed but not yet approved or implemented |
current | Content matches production code |
partially-outdated | Core content still applies but some details have drifted from code |
superseded | Replaced by another doc — must set superseded_by |
not-implemented | Approved but never built |
When changing status, also update last_modified to today's date.
Numbering & File Naming
- Next available number: check
ls docs/<category>/ | sortand pick the next zero-padded 3-digit number (e.g.,003,010). - No duplicate numbers within a category. Each top-level doc or directory within a category gets a unique number.
- Sub-documents inside a directory (e.g.,
design/014-credentials-vault/plan-1-vault-service.md) share the parent number.
docs/<category>/{number}-{kebab-case-topic}.mdExample: docs/design/029-prototype-v3-web-migration.md
Document Structure
---
(frontmatter)
---
# {Number} — {Title}
## Status
{Status explanation with context — why it has this status, what changed}
## Summary
{2-3 sentences: what problem this solves and the key content}
## (Body sections — flexible per topic and category)
## References
- Related docs, external links, prior artWriting Rules
- Lead with the decision or answer, not the analysis. Readers want to know "what" before "why."
- Use concrete file paths, struct names, and API endpoints — not abstractions.
- If the doc is in Chinese, keep it in Chinese. If in English, keep it in English. Don't mix.
- Mark superseded sections inline with strikethrough or a note, don't silently delete history.
- When content changes, update the existing doc rather than creating a new one — unless the change is a complete replacement (then supersede).
Category Conventions
design (architectural decisions)
- Boundaries section required — the core anti-drift mechanism
- Recommended body shape (adapt, don't pad — a small ADR needs only Context, Decision, Trade-offs, Revisit triggers): Context → Goals / Non-goals → Requirements & numbers → Design (components, data model, contracts) → Failure modes → Rollout & operations → Security → Alternatives considered → Assumptions → Revisit triggers
- Trade-offs section recommended — what alternatives were considered, what was given up, and why this choice won
- Assumptions section recommended — state what must be true for this design to hold (e.g., "assumes < 10k users", "assumes single-region"). When assumptions change, the doc is stale.
guide (how-to guides)
- Step-by-step structure with numbered steps
- Include prerequisites and expected outcomes
- Code examples should be copy-pasteable
troubleshooting (debug playbooks)
- Symptom → Diagnosis → Fix structure
- Include exact error messages for searchability
- Link to related design docs for context
reference (API docs, schemas, config reference)
- Organized by entity or endpoint
- Include examples for every parameter
- Version-sensitive — note which versions apply
Other categories: any subdirectory under docs/ becomes a category; adapt the body to fit, universal rules still apply.
Cross-References
- Reference docs in the same category by number: "see 023-agent-broker-architecture"
- Reference docs in other categories with category prefix: "see
guides/003-getting-started" - When renaming/renumbering, update ALL references. Use:
grep -r "old-name" docs/
Verification
Before marking a doc as current, verify key claims against code:
- Do referenced file paths exist?
- Do referenced struct/function names exist?
- Do referenced API endpoints exist?
- Does the described architecture match the actual service boundaries?
Update last_modified when you complete verification.
Execution Handoff
After writing or updating a doc, regenerate the index and output the
report card — read the format from ../shared/report-card.md (resolved
against this skill's base directory, not the working directory):
## [Write Docs] Report Card
| Field | Value |
|-------|-------|
| Status | <DONE / BLOCKED> |
| Summary | <category/number: doc title — created / updated / superseded> |
### Metrics
| Metric | Value |
|--------|-------|
| Docs created | <N> |
| Docs updated | <N> |
| Index regenerated | yes / no |
### Artifacts
| File | Purpose |
|------|---------|
| docs/<category>/<number>-<topic>.md | The doc |
| docs/DOCS_INDEX.md | Regenerated index |
### Next Steps
1. **Review the doc** — read it and verify claims against code
2. **Deepen the design thinking** — /ship:arch-design if the analysis needs more depth
3. **Plan implementation** — /ship:design to turn the decision into executable stories
4. **Ship it** — /ship:handoff to create a PR with the doc changesDoes 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.

