write-document
Skill297 starsChanged 23 days agoMITView on GitHub
Write, organize, and sync high-integrity technical documents using the BMAD methodology. Ensures every document is Bold, Minimal, Actionable, and Durable. Use when creating architectural docs, technical guides, or organizing the specs/ directory.
In this repository162 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- .cursor/rules/align-grid.mdcCursor rule
- .cursor/rules/assess-impact.mdcCursor rule
- .cursor/rules/audit-code.mdcCursor rule
- .cursor/rules/audit-plan.mdcCursor rule
- .cursor/rules/build-epic.mdcCursor rule
- .cursor/rules/change-request.mdcCursor rule
- .cursor/rules/commit-message.mdcCursor rule
- .cursor/rules/compose-workflow.mdcCursor rule
- .cursor/rules/craft-skill.mdcCursor rule
- .cursor/rules/deepen-architecture.mdcCursor rule
- .cursor/rules/define-language.mdcCursor rule
- .cursor/rules/define-success.mdcCursor rule
- .cursor/rules/delegate-task.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/design-interface.mdcCursor rule
- .cursor/rules/develop-tdd.mdcCursor rule
- .cursor/rules/diagnose-root.mdcCursor rule
- .cursor/rules/diagnose-stall.mdcCursor rule
- .cursor/rules/dispatch-agents.mdcCursor rule
- .cursor/rules/edit-document.mdcCursor rule
- .cursor/rules/elaborate-spec.mdcCursor rule
- .cursor/rules/enforce-first.mdcCursor rule
- .cursor/rules/evolve-skill.mdcCursor rule
- .cursor/rules/execute-plan.mdcCursor rule
- .cursor/rules/extract-design.mdcCursor rule
- .cursor/rules/find-way.mdcCursor rule
- .cursor/rules/fix-bug.mdcCursor rule
- .cursor/rules/gate-trace.mdcCursor rule
- .cursor/rules/generate-allure-report.mdcCursor rule
- .cursor/rules/grill-me.mdcCursor rule
- .cursor/rules/grill-with-docs.mdcCursor rule
- .cursor/rules/guard-git.mdcCursor rule
- .cursor/rules/harden-vps.mdcCursor rule
- .cursor/rules/hook-commits.mdcCursor rule
- .cursor/rules/inspect-quality.mdcCursor rule
- .cursor/rules/investigate-bug.mdcCursor rule
- .cursor/rules/kickoff-branch.mdcCursor rule
- .cursor/rules/maintain-wiki.mdcCursor rule
- .cursor/rules/map-codebase.mdcCursor rule
- .cursor/rules/migrate-spec.mdcCursor rule
- .cursor/rules/model-domain.mdcCursor rule
- .cursor/rules/orchestrate-project.mdcCursor rule
- .cursor/rules/organize-workspace.mdcCursor rule
- .cursor/rules/plan-refactor.mdcCursor rule
- .cursor/rules/plan-release.mdcCursor rule
- .cursor/rules/plan-tests.mdcCursor rule
- .cursor/rules/plan-work.mdcCursor rule
- .cursor/rules/publish-package.mdcCursor rule
- .cursor/rules/quick-fix.mdcCursor rule
- .cursor/rules/release-branch.mdcCursor rule
- .cursor/rules/request-review.mdcCursor rule
- .cursor/rules/research-first.mdcCursor rule
- .cursor/rules/reset-baseline.mdcCursor rule
- .cursor/rules/respond-review.mdcCursor rule
- .cursor/rules/run-benchmark.mdcCursor rule
- .cursor/rules/run-evals.mdcCursor rule
- .cursor/rules/run-planning.mdcCursor rule
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create high-signal technical documentation that serves as an expert collaborator for both humans and AI.
- Very specific: line 12
Distinct from
edit-document: Use this skill to create a document that does not yet exist. - Distinctive: line 36
Cross-Cutting Concerns: If a doc affects multiple modules, place the authoritative source in the lowest common ancestor directory and use …
- Distinctive: line 42
Write the document focusing on "Expert Collaboration":
- Distinctive: line 49
Ask: "Project name? One-sentence description?"
- Distinctive: line 58
Before finalizing, audit the document against these red flags:
- Very specific: line 66
Big Powers Hierarchy: Place the document in the correct tier (Global -> Project -> Sub-directory).
- Distinctive: line 67
Nested Indexing: If adding a module-level doc, ensure the module's GEMINI.md is updated.
- Very specific: line 68
Sync: Run scripts/sync-skills.sh if the document is a SKILL.md or affects generated artifacts.
- Distinctive: line 72
Minimalism is a requirement: If a document can be a 5-line table, do not make it a 5-line essay.
- Very specific: line 73
Verifiable outcomes: Every technical document must include at least one verify: command.
- Very specific: line 74
No speculative docs: Do not write documentation for features that do not exist yet unless explicitly doing elaborate-spec.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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
Write Document (BMAD)
Create high-signal technical documentation that serves as an expert collaborator for both humans and AI. This skill enforces the BMAD principles to prevent context rot and ensure architectural durability.
Distinct from edit-document: Use this skill to create a document that does not yet exist. Use edit-document when a document already exists and needs restructuring, clarity, or prose improvements.
HARD GATE — Every document must have a clear "Reason for Existence." If a document doesn't provide actionable leverage for a caller or test, do not create it.
The BMAD Principles
| Principle | Execution |
| Bold | Make strong assertions. Define clear boundaries and "Never" rules. No "it might" or "usually." |
| Minimal | High-density, low-filler. Circuit Breaker: If the file exceeds 300 lines or the session exceeds 20 turns, you MUST run terse-mode and compact state before saving. |
| Actionable | Link every doc to a verifiable outcome. Architectural Docs: Verify via Gherkin features (specs/verifications/features/) or grep-based structure checks (grep -c "pattern" file) that prove the design's constraints are present. |
| Durable | Design for the long-term. Scalability: Use "Nested Indexing"—root files link to module-level GEMINI.md indexes; do not list individual sub-files in the root. |
Process
1. Identify the Artifact Type & Scope
Choose the correct BMAD-BigPowers artifact:
- Decision Record (ADR): For "Why" decisions (saved to
specs/adr/). - Context Map: For system-wide architectural mapping (
specs/tech-architecture/tech-stack.md). - Technical Guide: For "How-to" with verification (saved to
<module>/REFERENCE.md). - Behavioral Feature: Gherkin-style compliance specs (saved to
specs/verifications/features/). - Project README: Project-facing documentation (saved to
README.mdat project root).
Cross-Cutting Concerns: If a doc affects multiple modules, place the authoritative source in the lowest common ancestor directory and use "Delegates" (one-line pointers) in sub-directories to maintain the Single Source of Truth without violating the Stepdown Rule.
2. Draft with Semantic Velocity
STREAM CONTINUITY — When writing file content, output in continuous chunks of ~200 lines. Do not pause. Continue immediately until complete. If you need time, emit a placeholder comment rather than going silent.
Write the document focusing on "Expert Collaboration":
- Instructions over Descriptions: Tell the reader (human or AI) exactly how to interact with the system.
- Provenance Links: Link to ADRs, Issues, or Commits to preserve intent.
- The Stepdown Rule: Information should descend exactly one level of abstraction. If a root doc needs to explain a leaf-level detail, it must point to a sub-index first.
Quick README (Project READMEs only)
- Ask: "Project name? One-sentence description?"
- Generate
README.mdat project root using the template in REFERENCE.md — no TOC, no second interview round. - Fill gaps from
CLAUDE.md/AGENTS.mdcommands if available (preferAGENTS.md); useTODOmarkers otherwise. - Output and suggest
edit-documentfor polish.
→ verify: test -f README.md && [ "$(grep -c '^## ' README.md)" -ge 7 ]
3. Apply the 94% Quality Gate
Before finalizing, audit the document against these red flags:
- Filler Language: Are there pleasantries or "I hope this helps"? (Delete them).
- Ambiguity: Are there "usually," "often," or "it depends" without specific conditions?
- Dead Ends: Does the document end without a "Next Step" or "Verification" command?
- Shallow Content: Does it restate the code without explaining the intent or contracts?
4. Sync and Organize
- Big Powers Hierarchy: Place the document in the correct tier (Global -> Project -> Sub-directory). Project READMEs are an exception — they go to project root (
README.md), notspecs/. - Nested Indexing: If adding a module-level doc, ensure the module's
GEMINI.mdis updated. If the module's index is new, add it to the rootGEMINI.md. - Sync: Run
scripts/sync-skills.shif the document is aSKILL.mdor affects generated artifacts.
Rules
- Minimalism is a requirement: If a document can be a 5-line table, do not make it a 5-line essay.
- Verifiable outcomes: Every technical document must include at least one
verify:command. For architecture, this can be agreporrun_shell_commandthat validates the existence of required files or patterns. - No speculative docs: Do not write documentation for features that do not exist yet unless explicitly doing
elaborate-spec.
Suggest next skill: audit-code or sync-skills.sh.
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.

