AugmentClaude
Apache-2.0SpecsBackend

Domain Modeler

Build domain glossaries and bounded context reference kits with decision queues.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up β€” so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/model-serpro69/ β€” the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.

    What this command does
    1. Makes a new, empty temporary folder.
    2. Downloads the skill's folder, klaude-plugin/skills/model, from github.com/serpro69/agentstakk (branch master), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep.
    3. Copies that folder to ~/.claude/skills/model-serpro69/.
    4. Deletes the temporary folder.

    Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.

    How we check skills, and what we don't Β· Report this skill

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β€” they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description β€” no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the β€œWhat this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

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.

What this skill does

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:
  • Profiles are not consulted β€” /kk:model is 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.

  1. 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.
  2. Execute the seven phases per model-process.md:
    1. 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.
    2. Requirements-harvesting gate (guard, F1) β€” read every linked ticket + one hop; quote the actual asks into working notes before any modelling.
    3. Archaeology β€” read code state β†’ time β†’ invariants per archaeology.md; two-clock discipline (code-clock facts verifiable, intent stays proposed).
    4. Draft the kit per kit-contract.md β€” glossary page + divergences/traps page (+ conventions index if the home has none).
    5. Verify β€” at least one confirm-pass plus at least one open-question pass (guard, F4).
    6. Self-check β€” conventions-bind-author lint: the produced pages obey the kit's own declared conventions.
    7. 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.md under 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.

Related skills