

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# Model Domain78**Distinct from `define-language` and `deepen-architecture`:** Use this skill to stress-test a plan through a grilling interview that resolves domain model decisions and captures invariants. Use `define-language` to produce a canonical glossary of terms. Use `deepen-architecture` to find module-level refactoring opportunities in code.910Interview me relentlessly about every aspect of this plan until we reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.1112> **HARD GATE** — Capture invariants (what MUST always be true) and state machines (what transitions are legal) for core entities. If these are fuzzy, design will fail.1314Ask the questions one at a time, waiting for feedback on each question before continuing.1516If a question can be answered by exploring the codebase, explore the codebase instead.1718## Domain awareness1920During codebase exploration, also look for existing documentation:2122### File structure2324Most repos have a single context:2526```27/28├── specs/29│ ├── CONTEXT.md30│ └── adr/31│ ├── 0001-event-sourced-orders.md32│ └── 0002-postgres-for-write-model.md33└── src/34```3536If a `specs/tech-architecture/tech-stack.md` exists, the repo has multiple contexts. The map points to where each one lives:3738```39/40├── specs/41│ ├── CONTEXT-MAP.md42│ └── adr/ ← system-wide decisions43└── src/44 ├── ordering/45 │ └── specs/46 │ ├── CONTEXT.md47 │ └── adr/ ← context-specific decisions48 └── billing/49 └── specs/50 ├── CONTEXT.md51 └── adr/52```5354Create files lazily — only when you have something to write. If no `specs/tech-architecture/tech-stack.md` exists, create it when the first term is resolved. If no `specs/adr/` exists, create it when the first ADR is needed.5556## During the session5758### Challenge against the glossary5960When the user uses a term that conflicts with the existing language in `specs/tech-architecture/tech-stack.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?"6162### Sharpen fuzzy language6364When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account' — do you mean the Customer or the User? Those are different things."6566### Discuss concrete scenarios6768When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.6970### Cross-reference with code7172When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"7374### Update specs/tech-architecture/tech-stack.md inline7576When a term is resolved, update `specs/tech-architecture/tech-stack.md` right there. Don't batch these up — capture them as they happen. Use the format in [CONTEXT-FORMAT.md](./CONTEXT-FORMAT.md).7778Don't couple `specs/tech-architecture/tech-stack.md` to implementation details. Only include terms that are meaningful to domain experts.7980### Offer ADRs sparingly8182Only offer to create an ADR when all three are true:83841. **Hard to reverse** — the cost of changing your mind later is meaningful852. **Surprising without context** — a future reader will wonder "why did they do it this way?"863. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons8788If any of the three is missing, skip the ADR. Use the format in [ADR-FORMAT.md](./ADR-FORMAT.md).8990## Concurrency safety audit9192When the plan touches shared state, async, or multi-threaded code:9394- [ ] List every **shared mutable** location (globals, singletons, module-level caches).95- [ ] For each: who reads, who writes, synchronization mechanism (lock, actor, immutable copy).96- [ ] Flag **race risks** (check-then-act, non-atomic read-modify-write) with severity.97- [ ] Record findings in `specs/tech-architecture/tech-stack.md` under `## Concurrency` or in an ADR if architectural.9899100101<!-- story: e07s03 -->102103---104105# ADR Format106107ADRs live in `docs/adr/` and use sequential numbering: `0001-slug.md`, `0002-slug.md`, etc.108109Create the `docs/adr/` directory lazily — only when the first ADR is needed.110111## Template112113```md114# {Short title of the decision}115116{1-3 sentences: what's the context, what did we decide, and why.}117```118119That's it. An ADR can be a single paragraph. The value is in recording *that* a decision was made and *why* — not in filling out sections.120121## Optional sections122123Only include these when they add genuine value. Most ADRs won't need them.124125- **Status** frontmatter (`proposed | accepted | deprecated | superseded by ADR-NNNN`) — useful when decisions are revisited126- **Considered Options** — only when the rejected alternatives are worth remembering127- **Consequences** — only when non-obvious downstream effects need to be called out128129## Numbering130131Scan `docs/adr/` for the highest existing number and increment by one.132133## When to offer an ADR134135All three of these must be true:1361371. **Hard to reverse** — the cost of changing your mind later is meaningful1382. **Surprising without context** — a future reader will look at the code and wonder "why on earth did they do it this way?"1393. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons140141If a decision is easy to reverse, skip it — you'll just reverse it. If it's not surprising, nobody will wonder why. If there was no real alternative, there's nothing to record beyond "we did the obvious thing."142143### What qualifies144145- **Architectural shape.** "We're using a monorepo." "The write model is event-sourced, the read model is projected into Postgres."146- **Integration patterns between contexts.** "Ordering and Billing communicate via domain events, not synchronous HTTP."147- **Technology choices that carry lock-in.** Database, message bus, auth provider, deployment target. Not every library — just the ones that would take a quarter to swap out.148- **Boundary and scope decisions.** "Customer data is owned by the Customer context; other contexts reference it by ID only." The explicit no-s are as valuable as the yes-s.149- **Deliberate deviations from the obvious path.** "We're using manual SQL instead of an ORM because X." Anything where a reasonable reader would assume the opposite. These stop the next engineer from "fixing" something that was deliberate.150- **Constraints not visible in the code.** "We can't use AWS because of compliance requirements." "Response times must be under 200ms because of the partner API contract."151- **Rejected alternatives when the rejection is non-obvious.** If you considered GraphQL and picked REST for subtle reasons, record it — otherwise someone will suggest GraphQL again in six months.152153---154155# CONTEXT.md Format156157## Structure158159```md160# {Context Name}161162{One or two sentence description of what this context is and why it exists.}163164## Language165166**Order**:167A customer's request to purchase one or more items.168_Avoid_: Purchase, transaction169170**Invoice**:171A request for payment sent to a customer after delivery.172_Avoid_: Bill, payment request173174**Customer**:175A person or organization that places orders.176_Avoid_: Client, buyer, account177178## Relationships179180- An **Order** produces one or more **Invoices**181- An **Invoice** belongs to exactly one **Customer**182183## Example dialogue184185> **Dev:** "When a **Customer** places an **Order**, do we create the **Invoice** immediately?"186> **Domain expert:** "No — an **Invoice** is only generated once a **Fulfillment** is confirmed."187188## Flagged ambiguities189190- "account" was used to mean both **Customer** and **User** — resolved: these are distinct concepts.191```192193## Rules194195- **Be opinionated.** When multiple words exist for the same concept, pick the best one and list the others as aliases to avoid.196- **Flag conflicts explicitly.** If a term is used ambiguously, call it out in "Flagged ambiguities" with a clear resolution.197- **Keep definitions tight.** One sentence max. Define what it IS, not what it does.198- **Show relationships.** Use bold term names and express cardinality where obvious.199- **Only include terms specific to this project's context.** General programming concepts (timeouts, error types, utility patterns) don't belong even if the project uses them extensively. Before adding a term, ask: is this a concept unique to this context, or a general programming concept? Only the former belongs.200- **Group terms under subheadings** when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.201- **Write an example dialogue.** A conversation between a dev and a domain expert that demonstrates how the terms interact naturally and clarifies boundaries between related concepts.202203## Single vs multi-context repos204205**Single context (most repos):** One `CONTEXT.md` at the repo root.206207**Multiple contexts:** A `CONTEXT-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:208209```md210# Context Map211212## Contexts213214- Ordering — `src/ordering/CONTEXT.md` — receives and tracks customer orders215- Billing — `src/billing/CONTEXT.md` — generates invoices and processes payments216- Fulfillment — `src/fulfillment/CONTEXT.md` — manages warehouse picking and shipping217218## Relationships219220- **Ordering → Fulfillment**: Ordering emits `OrderPlaced` events; Fulfillment consumes them to start picking221- **Fulfillment → Billing**: Fulfillment emits `ShipmentDispatched` events; Billing consumes them to generate invoices222- **Ordering ↔ Billing**: Shared types for `CustomerId` and `Money`223```224225The skill infers which structure applies:226227- If `CONTEXT-MAP.md` exists, read it to find contexts228- If only a root `CONTEXT.md` exists, single context229- If neither exists, create a root `CONTEXT.md` lazily when the first term is resolved230231When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.232
One 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/simple-english.mdc · 139 | Cursor rules | styletypesgitdatabase+6 | 47/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/assess-impact.mdc · 139 | Cursor rules | testtesting-strategydeployment | 66/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/audit-plan.mdc · 139 | Cursor rules | buildteststylegit | 74/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/build-epic.mdc · 139 | Cursor rules | buildgit | 58/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/change-request.mdc · 139 | Cursor rules | no sections | 48/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/commit-message.mdc · 139 | Cursor rules | lint-formatstyletypesgit+3 | 82/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/compose-workflow.mdc · 139 | Cursor rules | styledo-notagent-behaviour | 65/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/context7-mcp.mdc · 139 | Cursor rules | style | 54/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/deepen-architecture.mdc · 139 | Cursor rules | testtesting-strategydo-not | 57/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/define-language.mdc · 139 | Cursor rules | lint-formatdo-not | 65/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/define-success.mdc · 139 | Cursor rules | no sections | 4/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/delegate-task.mdc · 139 | Cursor rules | git | 62/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/deploy.mdc · 139 | Cursor rules | setupbuildtestdeployment | 77/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/verify-work.md · 139 | Windsurf rules | buildtestlint-formatagent-behaviour | 74/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/develop-tdd.mdc · 139 | Cursor rules | teststylearchtesting-strategy+5 | 85/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/diagnose-root.mdc · 139 | Cursor rules | no sections | 39/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/diagnose-stall.mdc · 139 | Cursor rules | no sections | 44/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/dispatch-agents.mdc · 139 | Cursor rules | git | 54/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/edit-document.mdc · 139 | Cursor rules | no sections | 39/100 | 14 days ago | |
| danielvm-git/bigpowers.cursor/rules/elaborate-spec.mdc · 139 | Cursor rules | test | 58/100 | 14 days ago |
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 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/danielvm-git-bigpowers-cursor-rules-model-domain)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.