跳到正文
cccskills
免费在 GitHub 公开

domain-model

Stress-test a plan against existing domain language, code behavior, and durable decisions. Use when the user wants DDD/domain-model grilling, glossary refinement, terminology challenges, context documentation, ADR candidates, or plan validation against a repo's language.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md5.2 KB
  • references/ADR-FORMAT.md2.7 KB
  • references/CONTEXT-FORMAT.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

domain-model

Run a relentless domain-modeling interview that sharpens a plan against the repo's existing language, code, and decisions. Ask one question at a time, include your recommended answer, and wait for feedback before continuing.

Core behavior

  • Walk the design tree branch by branch, resolving dependent decisions in order.
  • Ask exactly one question per turn, with a recommended answer and the evidence behind it.
  • If code or existing docs can answer the question, inspect them instead of asking.
  • Challenge terms against the glossary or known domain language immediately.
  • Sharpen vague or overloaded words into precise canonical terms.
  • Stress-test relationships with concrete scenarios and edge cases.
  • Cross-reference user claims with code; surface contradictions directly.
  • Record terms and decisions as they crystallize instead of batching them at the end.

Before the first question

  1. Identify the target plan, Beads task, target repo, and any active alignment or contract file.
  2. Read relevant harness context first:
    • bd show <id> for the active issue when one exists.
    • knowledge/_shared.yaml and the relevant knowledge/repos/<repo>.yaml.
    • .tmp/work/<TASK-ID>-alignment.md or interface contracts when provided.
  3. Explore the target repo before interviewing:
    • Existing domain docs: CONTEXT-MAP.md, CONTEXT.md, docs/adr/, and context-local docs/adr/.
    • Code terms: exported types, entities, events, routes, database tables, command names, and tests.
    • Prior decisions in Beads comments, especially design: and worklog: notes.
  4. Summarize the current model in two or three sentences, then ask the first unresolved question.

Persistence

Default to Agent Forge persistence unless the target repo already has domain docs or the user asks for them.

  • Prefer knowledge/ for durable repo/domain facts that future agents should reuse.
  • Use Beads comments for issue-scoped discoveries:
    • design: for terminology, boundaries, and decision rationale.
    • worklog: for session progress and investigation notes.
  • When a target repo already has CONTEXT.md, CONTEXT-MAP.md, or ADR conventions, update those files inline as terms or decisions are resolved.
  • When the user explicitly requests target-repo docs, create or update CONTEXT.md and docs/adr/ lazily using the reference formats.
  • Do not create real domain docs just because this skill was loaded; create them only when there is resolved content to record.

See:

  • references/CONTEXT-FORMAT.md for glossary/context structure.
  • references/ADR-FORMAT.md for minimal ADR guidance.

Session loop

For each unresolved branch:

  1. Check whether the answer is already in code, tests, knowledge, Beads, CONTEXT.md, or ADRs.
  2. If the answer is discoverable, report the finding and cite the evidence.
  3. If the answer needs human judgment, ask one question only.
  4. Include a recommended answer in the same turn:
    • Name the canonical term or boundary you recommend.
    • Explain the trade-off or invariant it protects.
    • Mention what documentation would change if accepted.
  5. Wait for feedback before asking the next question.
  6. When the user accepts or corrects a term or decision, record it immediately in the chosen persistence target.

Challenge rules

Glossary conflicts

When the user uses a term differently from existing language, stop and reconcile it:

CONTEXT.md defines "Cancellation" as voiding an entire Order, but this plan uses it for removing one line item. Should the canonical term be "Line-item removal" instead?

Fuzzy language

When a word is overloaded, propose a precise term:

You said "account." Do you mean Customer, User, Tenant, or Billing Account? I recommend Billing Account because the scenario is about invoices and payment ownership.

Concrete scenarios

Probe boundaries with examples:

If an Order has three shipments and one shipment fails, does Billing reverse the whole Invoice or issue a partial Credit? I recommend modeling Credit separately from Cancellation so fulfillment failures do not rewrite order history.

Code contradictions

Check claims against implementation:

The plan says partial cancellation is allowed, but Order.cancel() currently cancels the whole order and tests only cover full cancellation. Which behavior is authoritative?

ADR threshold

Offer an ADR only when all three are true:

  1. The decision is hard to reverse.
  2. The decision would surprise a future reader without context.
  3. The decision reflects a real trade-off among viable options.

If any condition is missing, record the rationale in Beads or knowledge instead of creating an ADR.

Done

End the session with:

  • Resolved terms and decisions.
  • Remaining ambiguities, each phrased as a single next question.
  • Where durable context was recorded, or why nothing was written.
  • Any code/documentation contradictions that still need follow-up work.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

add-bead

免费

Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

add-repo

免费

Register a new sub-repo in the knowledge base.

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

Add focused Bun unit tests for mission-critical behavior and edge cases — not blanket coverage.

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

ask

免费

Answer questions about the codebase from knowledge files. Use when the user runs /ask or asks a domain/knowledge question about the repos.

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

Meta-skill for creating Agent Forge skills under .claude/skills/ with SKILL.md, optional references/ and scripts/, and Bun scaffolds. Use when the user wants to add or author a skill, scaffold a new skill folder, or align skill docs with harness conventions (JSON script output, Beads for tasks).

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

Choose Beads issue priority (P0–P4, numeric, or named) from urgency, impact, and risk when creating or triaging work.

中文简介正在准备中。当前显示原文说明。

jupes/agent-forge-harness22026年10月19日 更新

查看 jupes 的全部技能

报告此技能的问题