Cursor rule
.cursor/rules/bmad.mdcBMAD tool/output split and per-app artifact convention for Middle Earth
Cursor rules
Quality
51/100
Scores the file, not the repository.Length
375 words
5 headings · 0 code blocksRepository
0
— · pushed 4 days agoLast changed
3 days ago
First indexed 3 days ago.12345678910# BMAD in Middle Earth1112BMAD is how planning, drafting, and shipping work is captured. The split between **tool** and **output** is deliberate — read this before touching anything under `_bmad/` or `_bmad-output/`.1314## The split: tool vs output1516**Per-machine (installer scaffolding, reinstalled by each dev):**1718- `_bmad/*` — agents, workflows, expansion packs (`bmm`, `bmb`, `cis`, `core`, `tea`), generated config (`config.yaml`, `config.user.toml`).19- `.claude/skills/bmad-*/` — skill copies the BMAD installer writes; not authored by hand.2021**Team-shared (the canal of context — this is what is committed):**2223- `_bmad/custom/` — exception inside the scaffolding. Team-built customizations land here and survive a reinstall.24- `_bmad-output/` (root) — monorepo/infra-wide artifacts only (cross-app brainstorms, charter).25- `apps/<app>/_bmad-output/` — same structure, scoped to one app. App-level work belongs here, **never** at the root.2627Inside any `_bmad-output/` you get the same five buckets:2829- `project-context.md` — living summary; the entrypoint for any human or agent ramping into the scope.30- `brainstorming/` — exploratory sessions (one dated MD per session).31- `planning-artifacts/` — PRDs, briefs, charter, editorial passes.32- `implementation-artifacts/` — stories, plans, dev specs (`<epic>-<story>-<slug>.md`).33- `research/`, `notes/` — supporting material.3435## Onboarding flow36371. Ensure `_bmad/` is installed on your machine (BMAD installer).382. Read `apps/<app>/_bmad-output/project-context.md` for the app you'll touch (and root `_bmad-output/project-context.md` if it exists, for the monorepo picture).393. Check `apps/<app>/_bmad-output/implementation-artifacts/` for the active story before writing code.404. When you finish, regenerate `project-context.md` via `bmad-generate-project-context` if the scope shifted, and commit new artifacts.4142## Commit convention4344Middle Earth commitlint enforces `scope-enum` = `config | lib | news-digest | release` (see `commitlint.config.mjs` — this is the source of truth; the prose in `CLAUDE.md` is inaccurate). There is no `bmad` or `ai` scope. Commit BMAD artifacts under the matching app scope when app-scoped (e.g. `docs(news-digest): ...`), or `docs(config)` for repo-wide AI/config changes, until/unless a dedicated scope is added.4546## Pitfalls4748- **Editing under `_bmad/`** outside `_bmad/custom/` — wiped on the next reinstall.49- **Artifacts at the wrong level** — app work goes in `apps/<app>/_bmad-output/`, not the root.50- **Stale `project-context.md`** — regenerate when an epic ships or the stack changes; stale context misleads every later BMAD session.51- **Real data** — never commit real PII / real person names into BMAD artifacts (org-wide rule; `cspell` runs in pre-commit).52
Also in carrot-foundation/middle-earth
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 |
|---|---|---|---|---|---|
| carrot-foundation/middle-earth.cursor/rules/branch-naming.mdc · 0 | Cursor rules | lint-formatstylegitdo-not | 45/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/code-comments.mdc · 0 | Cursor rules | styletypesdocs | 48/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/code-preservation.mdc · 0 | Cursor rules | do-not | 32/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/code-style.mdc · 0 | Cursor rules | lint-formatstylearchdependencies+1 | 56/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/commit.mdc · 0 | Cursor rules | testlint-formattypesgit | 58/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/documentation.mdc · 0 | Cursor rules | lint-formatstylearchdocs | 42/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/pull-request-description.mdc · 0 | Cursor rules | git | 39/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/pull-request.mdc · 0 | Cursor rules | lint-formatgitagent-behaviour | 69/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/testing.mdc · 0 | Cursor rules | teststyletesting-strategy | 73/100 | 3 days ago | |
| carrot-foundation/middle-earth.cursor/rules/typescript.mdc · 0 | Cursor rules | buildlint-formatstylearch+1 | 59/100 | 3 days ago | |
| carrot-foundation/middle-earthAGENTS.md · 0 | AGENTS.md | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| carrot-foundation/middle-earthCLAUDE.md · 0 | CLAUDE.md | setupbuildtestlint-format+6 | 97/100 | 3 days ago |
Diff against .cursor/rules/branch-naming.mdc Diff against .cursor/rules/code-comments.mdc Diff against .cursor/rules/code-preservation.mdc Diff against .cursor/rules/code-style.mdc Diff against .cursor/rules/commit.mdc Diff against .cursor/rules/documentation.mdc Diff against .cursor/rules/pull-request-description.mdc Diff against .cursor/rules/pull-request.mdc Diff against .cursor/rules/testing.mdc Diff against .cursor/rules/typescript.mdc Diff against AGENTS.md Diff against CLAUDE.md
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 | |
| 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 | |
| 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 | |
| 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 |
