Cursor rule
.cursor/rules/write-document.mdcWrite, 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.
Cursor rules
Quality
76/100
Scores the file, not the repository.Length
1,268 words
42 headings · 18 code blocksRepository
119
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Write Document (BMAD)78Create 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.910**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.1112> **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.1314## The BMAD Principles1516| Principle | Execution |17| :--- | :--- |18| **B**old | Make strong assertions. Define clear boundaries and "Never" rules. No "it might" or "usually." |19| **M**inimal | 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. |20| **A**ctionable | 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. |21| **D**urable | 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. |2223## Process2425### 1. Identify the Artifact Type & Scope2627Choose the correct BMAD-BigPowers artifact:28- **Decision Record (ADR)**: For "Why" decisions (saved to `specs/adr/`).29- **Context Map**: For system-wide architectural mapping (`specs/tech-architecture/tech-stack.md`).30- **Technical Guide**: For "How-to" with verification (saved to `<module>/REFERENCE.md`).31- **Behavioral Feature**: Gherkin-style compliance specs (saved to `specs/verifications/features/`).32- **Project README**: Project-facing documentation (saved to `README.md` at project root).3334**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.3536### 2. Draft with Semantic Velocity3738> **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.3940Write the document focusing on "Expert Collaboration":41- **Instructions over Descriptions**: Tell the reader (human or AI) exactly how to interact with the system.42- **Provenance Links**: Link to ADRs, Issues, or Commits to preserve intent.43- **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.4445### Quick README (Project READMEs only)46471. Ask: "Project name? One-sentence description?"482. Generate `README.md` at project root using the template in [REFERENCE.md](REFERENCE.md) — no TOC, no second interview round.493. Fill gaps from `CLAUDE.md` / `AGENTS.md` commands if available (prefer `AGENTS.md`); use `TODO` markers otherwise.504. Output and suggest `edit-document` for polish.5152→ verify: `test -f README.md && [ "$(grep -c '^## ' README.md)" -ge 7 ]`5354### 3. Apply the 94% Quality Gate5556Before finalizing, audit the document against these red flags:57- [ ] **Filler Language**: Are there pleasantries or "I hope this helps"? (Delete them).58- [ ] **Ambiguity**: Are there "usually," "often," or "it depends" without specific conditions?59- [ ] **Dead Ends**: Does the document end without a "Next Step" or "Verification" command?60- [ ] **Shallow Content**: Does it restate the code without explaining the *intent* or *contracts*?6162### 4. Sync and Organize6364- **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`), not `specs/`.65- **Nested Indexing**: If adding a module-level doc, ensure the module's `GEMINI.md` is updated. If the module's index is new, add it to the root `GEMINI.md`.66- **Sync**: Run `scripts/sync-skills.sh` if the document is a `SKILL.md` or affects generated artifacts.6768## Rules6970- **Minimalism is a requirement**: If a document can be a 5-line table, do not make it a 5-line essay.71- **Verifiable outcomes**: Every technical document must include at least one `verify:` command. For architecture, this can be a `grep` or `run_shell_command` that validates the existence of required files or patterns.72- **No speculative docs**: Do not write documentation for features that do not exist yet unless explicitly doing `elaborate-spec`.737475Suggest next skill: `audit-code` or `sync-skills.sh`.7677---7879# Project README Template8081Combined from dbader/readme-template and jehna/readme-best-practices. No TOC.8283## Navigation8485| Lines | Section |86|-------|---------|87| 1 | Title |88| 5–40 | Navigation |89| 41–42 | Sections |90| 43–54 | 1. Title + Badges |91| 55–60 | 2. Tagline |92| 61–64 | 3. Description |93| 65–67 | 4. Prerequisites |94| 68–75 | Prerequisites |95| 76–78 | 5. Installation |96| 79–89 | Installation |97| 90–92 | 6. Usage |98| 93–102 | Usage |99| 103–105 | 7. Features |100| 106–113 | Features |101| 114–116 | 8. Configuration |102| 117–125 | Configuration |103| 126–128 | 9. Development Setup |104| 129–139 | Development |105| 140–142 | 10. Running Tests |106| 143–152 | Tests |107| 153–155 | 11. Contributing |108| 156–164 | Contributing |109| 165–167 | 12. Changelog |110| 168–172 | Changelog |111| 173–175 | 13. Links |112| 176–181 | Links |113| 182–184 | 14. License |114| 185–191 | License |115| 192–194 | 15. Credits (optional) |116| 195–199 | Credits |117| 200–202 | Verify |118119## Sections120121### 1. Title + Badges122123```markdown124# Project Name125126127128129```130131Fill badges from CLAUDE.md stack info if available. Default to license + version badges.132133### 2. Tagline134135```markdown136> One-line description of what this project does and why it matters.137```138139### 3. Description1401412-3 paragraphs: what problem it solves, who it's for, and what makes it different.142143### 4. Prerequisites144145```markdown146## Prerequisites147148- **Runtime**: Node.js v18+ (from CLAUDE.md)149- **Package manager**: npm (or pnpm/yarn)150```151152Auto-fill from CLAUDE.md commands section when possible.153154### 5. Installation155156```markdown157## Installation158159```bash160npm install -g your-package161# or162npx your-package163```164```165166Prefer npx one-shot if applicable; list global install as alternative.167168### 6. Usage169170```markdown171## Usage172173```bash174your-command --help175your-command do-something176```177```178179Include the most common 1-2 commands. Link to full docs if they exist.180181### 7. Features182183```markdown184## Features185186- Feature 1: short description187- Feature 2: short description188```1891903-6 bullet points of what the project does. Derived from the project's purpose.191192### 8. Configuration193194```markdown195## Configuration196197| Variable | Default | Description |198|----------|---------|-------------|199| `VAR_NAME` | `value` | What it controls |200```201202Use `TODO` markers if unknown.203204### 9. Development Setup205206```markdown207## Development208209```bash210git clone <repo-url>211cd project212npm install213```214```215216Auto-fill from CLAUDE.md `Run` and `Build` commands.217218### 10. Running Tests219220```markdown221## Tests222223```bash224npm test225npm run lint226```227```228229Auto-fill from CLAUDE.md `Test` and `Lint` commands.230231### 11. Contributing232233```markdown234## Contributing2352361. Fork the repo.2372. Create a feature branch (`git checkout -b feature/my-thing`).2383. Commit changes (`git commit -am 'Add my thing'`).2394. Push (`git push origin feature/my-thing`).2405. Open a Pull Request.241```242243### 12. Changelog244245```markdown246## Changelog247248See [CHANGELOG.md](../../CHANGELOG.md) or [Releases](https://github.com/user/repo/releases).249```250251### 13. Links252253```markdown254## Links255256- Repository: https://github.com/user/repo257- Issue tracker: https://github.com/user/repo/issues258```259260### 14. License261262```markdown263## License264265MIT — see [LICENSE](../../LICENSE) for details.266```267268Detect from CLAUDE.md or project LICENSE file.269270### 15. Credits (optional)271272```markdown273## Credits274275Built with [bigpowers](https://www.npmjs.com/package/bigpowers).276```277278## Verify279280After generation, run: `grep -c "^## " README.md` — expect ≥ 7 section headings.281
Also in danielvm-git/bigpowers
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| danielvm-git/bigpowers.cursor/rules/align-grid.mdc · 119 | Cursor rules | lint-formatdo-notagent-behaviour | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/assess-impact.mdc · 119 | Cursor rules | testtesting-strategydeployment | 66/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/audit-code.mdc · 119 | Cursor rules | setuptestlint-formatstyle+4 | 66/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/audit-plan.mdc · 119 | Cursor rules | buildteststylegit | 74/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/build-epic.mdc · 119 | Cursor rules | buildgit | 58/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/change-request.mdc · 119 | Cursor rules | no sections | 48/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/commit-message.mdc · 119 | Cursor rules | lint-formatstyletypesgit+3 | 82/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/compose-workflow.mdc · 119 | Cursor rules | styledo-notagent-behaviour | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/context7-mcp.mdc · 119 | Cursor rules | style | 54/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/deepen-architecture.mdc · 119 | Cursor rules | testtesting-strategydo-not | 57/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/define-language.mdc · 119 | Cursor rules | lint-formatdo-not | 65/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/delegate-task.mdc · 119 | Cursor rules | git | 62/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/deploy.mdc · 119 | Cursor rules | setupbuildtestdeployment | 77/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/develop-tdd.mdc · 119 | Cursor rules | teststylearchtesting-strategy+5 | 85/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/diagnose-root.mdc · 119 | Cursor rules | no sections | 39/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/dispatch-agents.mdc · 119 | Cursor rules | git | 54/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/edit-document.mdc · 119 | Cursor rules | no sections | 39/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/elaborate-spec.mdc · 119 | Cursor rules | test | 58/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/enforce-first.mdc · 119 | Cursor rules | no sections | 50/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/evolve-skill.mdc · 119 | Cursor rules | no sections | 50/100 | 3 days ago |
Diff against .cursor/rules/align-grid.mdc Diff against .cursor/rules/assess-impact.mdc Diff against .cursor/rules/audit-code.mdc Diff against .cursor/rules/audit-plan.mdc Diff against .cursor/rules/build-epic.mdc Diff against .cursor/rules/change-request.mdc Diff against .cursor/rules/commit-message.mdc Diff against .cursor/rules/compose-workflow.mdc Diff against .cursor/rules/context7-mcp.mdc Diff against .cursor/rules/deepen-architecture.mdc Diff against .cursor/rules/define-language.mdc Diff against .cursor/rules/delegate-task.mdc Diff against .cursor/rules/deploy.mdc Diff against .cursor/rules/develop-tdd.mdc Diff against .cursor/rules/diagnose-root.mdc Diff against .cursor/rules/dispatch-agents.mdc Diff against .cursor/rules/edit-document.mdc Diff against .cursor/rules/elaborate-spec.mdc Diff against .cursor/rules/enforce-first.mdc Diff against .cursor/rules/evolve-skill.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
