Catalogue / model
model
Apache-2.0SignedProduce or update a domain-reference kit — the durable glossary + divergences/traps pages for a bounded context. Use for domain modelling, information architecture, building a domain glossary or domain model, mapping domain concepts to code (bindings), or surfacing the decidable questions stakeholde…--- name: model description: | Produce or update a domain-reference kit — the durable glossary + divergences/traps pages for a bounded context. Use for domain modelling, information architecture, building a domain glossary or domain model, mapping domain concepts to code (bindings), or surfacing the decidable questions stakeholders must close before design. Runs upstream of feature $kk:design as the first producer of the architecture flow, and emits artifacts $kk:review-architecture verifies. Triggers: "model the domain", "build a glossary", "domain reference", "bounded context", "what are the concepts here". NOT for behavioral code review or writing a feature design doc. ---
<!-- codex: tool-name mapping applied. See the kk Codex bootstrap instructions -->
Domain Modelling — the steady-state kit
Goal: produce a provenance-clean domain-reference kit and, above all, a decision queue of precise, role-tagged questions a human can close. The queue is the primary output — artifact count and model sophistication are explicitly not the metric.
$kk:model is the first producer of the architecture flow: it runs at information-architecture altitude (what the domain's concepts are, where they bind to code, and which questions about them only a human can close), upstream of feature $kk:design and never called by it. It writes files and interacts with you mid-flow — it is a main-session skill, not a read-only reviewer.
Conventions
- Capy knowledge base — read shared-capy-knowledge-protocol.md; searched at intake (
kk:arch-decisions,kk:project-conventions), indexed at close. - Shared producer guards — four workflow guards, each citing the field failure it prevents. Load all four before acting:
- shared-requirements-harvesting.md — quote the real asks before modelling (F1).
- shared-open-question-pass.md — verification asks new questions, not just re-confirms (F4).
- shared-fact-flip-propagation.md — a contradicted fact is fixed everywhere in-session (F2).
- shared-contact-ratio-guard.md — at N:0 artifacts-to-contacts, the next step is a conversation (F5).
- Profiles are not consulted —
$kk:modelis language-agnostic in M2; archaeology reads code directly. Profile enrichment is deferred (design §8).
Workflow
Mandatory order — instructions before subject matter. The flow is strictly sequential. Do not read code to model it, draft any kit page, or engage the domain beyond a mode-detecting directory/keyword scan until every instruction file is loaded: this SKILL.md, the process file model-process.md, the reading method archaeology.md, the output contract kit-contract.md, all four shared guards above, and the shared capy protocol. This ordering is load-bearing: with domain code in context before the contracts load, the model emits plausible terms and skips the methodology that makes them trustworthy.
- Load instructions. Read model-process.md (the detailed seven-phase workflow), archaeology.md, kit-contract.md, all four shared guards — shared-requirements-harvesting.md, shared-open-question-pass.md, shared-fact-flip-propagation.md, shared-contact-ratio-guard.md — and shared-capy-knowledge-protocol.md. Minimal early scope — a directory listing or a keyword scan of the request — is permitted only to drive mode detection.
- Execute the seven phases per model-process.md:
- Scope intake — establish the bounded context, the forcing question (the feature/ticket that bounds what is worth modelling), and the mode (greenfield: no kit exists → produce the two pages; brownfield: an existing kit is read in full first and all changes are deltas, status markers never flipped unilaterally). Run the capy knowledge search.
- Requirements-harvesting gate *(guard, F1)* — read every linked ticket + one hop; quote the actual asks into working notes before any modelling.
- Archaeology — read code state → time → invariants per archaeology.md; two-clock discipline (code-clock facts verifiable, intent stays
proposed). - Draft the kit per kit-contract.md — glossary page + divergences/traps page (+ conventions index if the home has none).
- Verify — at least one confirm-pass plus at least one open-question pass *(guard, F4)*.
- Self-check — conventions-bind-author lint: the produced pages obey the kit's own declared conventions.
- Surface & close — present the decision queue (each RQ precise, decidable, role-tagged); apply the contact-ratio guard *(F5)*; in brownfield, fact-flip propagation *(F2)* on any contradicted recorded fact; index non-obvious rationale to
kk:arch-decisions.
Required Outputs
- [ ] The two durable kit pages (glossary + traps) for the context, provenance-clean, per kit-contract.md (+ conventions index if the home lacked one).
- [ ] The decision queue — precise, decidable, role-tagged questions — presented inline and appended to the active feature's
docs/feat/wip/<feature>/design.mdunder an Open Questions heading when that directory exists. - [ ] Contact-ratio guard applied; brownfield fact-flips propagated across the workspace.
- [ ] Non-obvious modelling rationale indexed to
kk:arch-decisions.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 5.8 kB | d3cf46534916 |
| SKILVAULT_SOURCE.json | 7.1 kB | 7f0d5e68583c |
| THIRD_PARTY_NOTICES.md | 11.4 kB | 7d171132007a |
| archaeology.md | 3.1 kB | 4170a2a109f6 |
| evals/brownfield-update/eval.json | 4.3 kB | a674097c9eaa |
| evals/brownfield-update/oracle/gold-deltas.json | 4.0 kB | c72c907e85f7 |
| evals/brownfield-update/test-files/docs/architecture/index.md | 1.2 kB | 33065f757f64 |
| evals/brownfield-update/test-files/docs/architecture/routesetting-traps.md | 1.3 kB | 568e75d6b18d |
| evals/brownfield-update/test-files/docs/architecture/routesetting.md | 2.8 kB | 2c20f12514ef |
| evals/brownfield-update/test-files/gym/go.mod | 20 B | 1a7f42dba3a8 |
| evals/brownfield-update/test-files/gym/grading.go | 492 B | 2cb792ceaecb |
| evals/brownfield-update/test-files/gym/route.go | 992 B | d0a5d1364bc6 |
| evals/brownfield-update/test-files/gym/wall.go | 377 B | faa10aa5c7d0 |
| evals/hidden-invariant/eval.json | 3.7 kB | f5acdeacadb5 |
| evals/hidden-invariant/oracle/gold-invariant.json | 2.7 kB | fdaa8f222b21 |
| evals/hidden-invariant/test-files/campground/booking.go | 1.2 kB | ac7fdf82d4ab |
| evals/hidden-invariant/test-files/campground/gate.go | 455 B | 204c24c14eeb |
| evals/hidden-invariant/test-files/campground/go.mod | 27 B | 146190db5249 |
| evals/hidden-invariant/test-files/campground/occupancy.go | 378 B | 17fa2a0c4c18 |
| evals/hidden-invariant/test-files/campground/site.go | 189 B | 5beb2a7d60db |
| evals/kit-format/eval.json | 6.1 kB | 42008297fef3 |
| evals/kit-format/oracle/kit-conventions-checklist.json | 5.4 kB | de9c3cf0d5c8 |
| evals/kit-format/test-files/bikeshare/bike.go | 545 B | e08ad3a1aa91 |
| evals/kit-format/test-files/bikeshare/dock.go | 409 B | 69727f60b600 |
| evals/kit-format/test-files/bikeshare/go.mod | 45 B | 3dff3e622b20 |
| evals/kit-format/test-files/bikeshare/policy.go | 527 B | 9927b1311d48 |
| evals/kit-format/test-files/bikeshare/ride.go | 614 B | 8082b554fb74 |
| evals/requirements-gate/eval.json | 3.6 kB | 026b60b4d911 |
| evals/requirements-gate/oracle/gold-harvest.json | 2.9 kB | 547fcd5c7e9e |
| evals/requirements-gate/test-files/ferry/boarding.go | 499 B | 237f794daf6f |
| evals/requirements-gate/test-files/ferry/go.mod | 22 B | e7997fd4922a |
| evals/requirements-gate/test-files/ferry/reservation.go | 983 B | 360411c36363 |
| evals/requirements-gate/test-files/ferry/sailing.go | 493 B | 06b4ae7f2659 |
| evals/requirements-gate/test-files/ferry/tickets/FERRY-12.md | 488 B | d12348507127 |
| evals/requirements-gate/test-files/ferry/tickets/FERRY-31.md | 600 B | 0a079d518447 |
| evals/scope-pushback/eval.json | 3.5 kB | 0e8fed3b0464 |
| evals/scope-pushback/test-files/apiary/colony.go | 436 B | 1991c1ccdfcc |
| evals/scope-pushback/test-files/apiary/go.mod | 23 B | 790d42a1c378 |
| evals/scope-pushback/test-files/apiary/harvest.go | 418 B | 1fe9325ea70b |
| evals/scope-pushback/test-files/apiary/hive.go | 443 B | 0952bdd94f15 |
| evals/scope-pushback/test-files/apiary/inspection.go | 474 B | a1e12468d3c0 |
| kit-contract.md | 12.6 kB | c1814fa07b28 |
| model-process.md | 8.8 kB | e893377bc926 |
| shared-capy-knowledge-protocol.md | 1.8 kB | 67c086d5e0ec |
| shared-contact-ratio-guard.md | 2.6 kB | 2dc94da89f84 |
| shared-fact-flip-propagation.md | 2.4 kB | 854d90744135 |
| shared-open-question-pass.md | 2.8 kB | b31a8f3a0fcc |
| shared-requirements-harvesting.md | 2.5 kB | 6e25e3787f3e |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 87887924f95c | 29 Nov 2026 |
Locking a skill to one version needs Pro.