

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1234567# Model Domain89**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.1011Interview 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.1213> **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.1415Ask the questions one at a time, waiting for feedback on each question before continuing.1617If a question can be answered by exploring the codebase, explore the codebase instead.1819## Domain awareness2021During codebase exploration, also look for existing documentation:2223### File structure2425Most repos have a single context:2627```28/29├── specs/30│ ├── CONTEXT.md31│ └── adr/32│ ├── 0001-event-sourced-orders.md33│ └── 0002-postgres-for-write-model.md34└── src/35```3637If a `specs/tech-architecture/tech-stack.md` exists, the repo has multiple contexts. The map points to where each one lives:3839```40/41├── specs/42│ ├── CONTEXT-MAP.md43│ └── adr/ ← system-wide decisions44└── src/45 ├── ordering/46 │ └── specs/47 │ ├── CONTEXT.md48 │ └── adr/ ← context-specific decisions49 └── billing/50 └── specs/51 ├── CONTEXT.md52 └── adr/53```5455Create 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.5657## During the session5859### Challenge against the glossary6061When 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?"6263### Sharpen fuzzy language6465When 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."6667### Discuss concrete scenarios6869When 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.7071### Cross-reference with code7273When 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?"7475### Update specs/tech-architecture/tech-stack.md inline7677When 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).7879Don't couple `specs/tech-architecture/tech-stack.md` to implementation details. Only include terms that are meaningful to domain experts.8081### Offer ADRs sparingly8283Only offer to create an ADR when all three are true:84851. **Hard to reverse** — the cost of changing your mind later is meaningful862. **Surprising without context** — a future reader will wonder "why did they do it this way?"873. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons8889If any of the three is missing, skip the ADR. Use the format in [ADR-FORMAT.md](./ADR-FORMAT.md).9091## Concurrency safety audit9293When the plan touches shared state, async, or multi-threaded code:9495- [ ] List every **shared mutable** location (globals, singletons, module-level caches).96- [ ] For each: who reads, who writes, synchronization mechanism (lock, actor, immutable copy).97- [ ] Flag **race risks** (check-then-act, non-atomic read-modify-write) with severity.98- [ ] Record findings in `specs/tech-architecture/tech-stack.md` under `## Concurrency` or in an ADR if architectural.99100101102<!-- story: e07s03 -->103104---105106# ADR Format107108ADRs live in `docs/adr/` and use sequential numbering: `0001-slug.md`, `0002-slug.md`, etc.109110Create the `docs/adr/` directory lazily — only when the first ADR is needed.111112## Template113114```md115# {Short title of the decision}116117{1-3 sentences: what's the context, what did we decide, and why.}118```119120That'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.121122## Optional sections123124Only include these when they add genuine value. Most ADRs won't need them.125126- **Status** frontmatter (`proposed | accepted | deprecated | superseded by ADR-NNNN`) — useful when decisions are revisited127- **Considered Options** — only when the rejected alternatives are worth remembering128- **Consequences** — only when non-obvious downstream effects need to be called out129130## Numbering131132Scan `docs/adr/` for the highest existing number and increment by one.133134## When to offer an ADR135136All three of these must be true:1371381. **Hard to reverse** — the cost of changing your mind later is meaningful1392. **Surprising without context** — a future reader will look at the code and wonder "why on earth did they do it this way?"1403. **The result of a real trade-off** — there were genuine alternatives and you picked one for specific reasons141142If 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."143144### What qualifies145146- **Architectural shape.** "We're using a monorepo." "The write model is event-sourced, the read model is projected into Postgres."147- **Integration patterns between contexts.** "Ordering and Billing communicate via domain events, not synchronous HTTP."148- **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.149- **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.150- **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.151- **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."152- **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.153154---155156# CONTEXT.md Format157158## Structure159160```md161# {Context Name}162163{One or two sentence description of what this context is and why it exists.}164165## Language166167**Order**:168A customer's request to purchase one or more items.169_Avoid_: Purchase, transaction170171**Invoice**:172A request for payment sent to a customer after delivery.173_Avoid_: Bill, payment request174175**Customer**:176A person or organization that places orders.177_Avoid_: Client, buyer, account178179## Relationships180181- An **Order** produces one or more **Invoices**182- An **Invoice** belongs to exactly one **Customer**183184## Example dialogue185186> **Dev:** "When a **Customer** places an **Order**, do we create the **Invoice** immediately?"187> **Domain expert:** "No — an **Invoice** is only generated once a **Fulfillment** is confirmed."188189## Flagged ambiguities190191- "account" was used to mean both **Customer** and **User** — resolved: these are distinct concepts.192```193194## Rules195196- **Be opinionated.** When multiple words exist for the same concept, pick the best one and list the others as aliases to avoid.197- **Flag conflicts explicitly.** If a term is used ambiguously, call it out in "Flagged ambiguities" with a clear resolution.198- **Keep definitions tight.** One sentence max. Define what it IS, not what it does.199- **Show relationships.** Use bold term names and express cardinality where obvious.200- **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.201- **Group terms under subheadings** when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.202- **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.203204## Single vs multi-context repos205206**Single context (most repos):** One `CONTEXT.md` at the repo root.207208**Multiple contexts:** A `CONTEXT-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:209210```md211# Context Map212213## Contexts214215- Ordering — `src/ordering/CONTEXT.md` — receives and tracks customer orders216- Billing — `src/billing/CONTEXT.md` — generates invoices and processes payments217- Fulfillment — `src/fulfillment/CONTEXT.md` — manages warehouse picking and shipping218219## Relationships220221- **Ordering → Fulfillment**: Ordering emits `OrderPlaced` events; Fulfillment consumes them to start picking222- **Fulfillment → Billing**: Fulfillment emits `ShipmentDispatched` events; Billing consumes them to generate invoices223- **Ordering ↔ Billing**: Shared types for `CustomerId` and `Money`224```225226The skill infers which structure applies:227228- If `CONTEXT-MAP.md` exists, read it to find contexts229- If only a root `CONTEXT.md` exists, single context230- If neither exists, create a root `CONTEXT.md` lazily when the first term is resolved231232When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.233
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 |
|---|---|---|---|---|---|
| danielvm-git/bigpowers.windsurf/rules/organize-workspace.md · 139 | Windsurf rules | buildstylegitdeployment+2 | 89/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/guard-git.md · 139 | Windsurf rules | stylearchgitsecurity+2 | 89/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/quick-fix.md · 139 | Windsurf rules | teststylegitdeployment+1 | 85/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/develop-tdd.md · 139 | Windsurf rules | teststylearchtesting-strategy+5 | 85/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/extract-design.md · 139 | Windsurf rules | lint-formatstyledependenciesui | 82/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/commit-message.md · 139 | Windsurf rules | lint-formatstyletypesgit+3 | 82/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/session-state.md · 139 | Windsurf rules | lint-formatstyleagent-behaviour | 82/100 | 14 days ago | |
| danielvm-git/bigpowers.windsurf/rules/setup-environment.md · 139 | Windsurf rules | setupstylesecuritydo-not+1 | 81/100 | 14 days ago |
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-windsurf-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.