Grill the user through a structured domain modeling interview. Use when the user says their codebase is messy, they don't understand their own domain, things feel "乱", they have multiple subsystems tangled together, or they want to clarify domain boundaries before designing or building something. Also use when the user explicitly asks for domain modeling help, DDD analysis, or says "grill me on the domain".
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interview the user relentlessly through a four-step domain modeling process. Walk down each step one question at a time, waiting for feedback before continuing. The goal is to help the user build a clear mental model of their domain — who does what, what facts exist, what's independent, and how things connect — before any code or architecture decisions.
The user is confused about their own system. They say things like:
This skill is NOT for code review, implementation planning, or bug fixing. It's purely for building mental clarity about the domain.
digraph grill_me_domain {
"Step 1: 角色" [shape=box];
"Step 2: 动作" [shape=box];
"Step 3: 实体" [shape=box];
"Step 4: 关联" [shape=box];
"Bonus: 数据建模" [shape=box];
"Summary" [shape=doublecircle];
"Step 1: 角色" -> "Step 2: 动作" [label="确认角色清晰后"];
"Step 2: 动作" -> "Step 3: 实体" [label="确认动作事实后"];
"Step 3: 实体" -> "Step 4: 关联" [label="确认实体独立后"];
"Step 4: 关联" -> "Bonus: 数据建模" [label="如果接下来要实现"];
"Bonus: 数据建模" -> "Summary" [label="确认字段后"];
"Step 4: 关联" -> "Summary" [label="如果只是梳理,不实现"];
}
One question at a time. Never ask multiple questions in one message. Wait for the user's answer, then ask the next question. This is critical — overwhelming the user defeats the purpose.
Question to ask: "这个系统里,有几种不同的人,每个人来这里是为了干什么?"
Not "有哪些功能" — that's implementation. Ask "有哪些人,各来干嘛的"。Same person can do multiple things, but different people have different purposes.
Distinguish 人 from 工具. A dashboard is not a person. A report is not a person. If the user lists a tool as a role, point it out: "看板是人吗?谁在看看板?" — that helps them realize the tool belongs to a role, it's not a role itself.
When the user can clearly state: "这个系统里有 N 种人,第一种来干 X,第二种来干 Y"。No tools mixed in as roles.
Question to ask: "对每个角色,从头到尾会做哪些动作?每个动作之后,世界里多出了什么?"
Focus on "多出了什么" — every write action produces a fact. Read actions produce nothing. This distinction is the foundation of entity identification.
"查询不会多出任何东西" — if an action is read-only, it doesn't produce an entity. Don't model it. Only "写" actions create facts that become entities.
When the user has listed every role's actions and what each action produces. Verify by summarizing: "你说店东做两件事:对话产生调用记录,安装产生安装记录。管理员做三件事:创建产生skill,发布改变skill状态,看看板不产生任何东西。对吗?"
Question to ask: "把每个'事实'拎出来,问:这个事实能独立存在吗?如果删掉其他事实,它还有意义吗?"
For each fact produced in Step 2, test independence with the deletion test:
"如果删掉 skill 本身,调用记录还有意义吗?" "如果删掉 skill 本身,安装记录还有意义吗?"
The test is: "这个事实产生之后,还会因为别的东西变化而失效吗?"
Critical teaching moment: The user will likely say "删掉 skill 后其他都没意义了" — this is the trap. Push back:
"一个 skill 从市场下架了(published → deleted),它以前的调用记录还有意义吗?管理员下架了一个 skill,但想知道'这个 skill 之前被用了多少次'。这时候调用记录还在吗?"
This helps them realize: 调用记录一旦产生,就和 skill 本身解绑了。 It records "某时某刻 AI 调了一个叫 brainstorming 的技能" — this fact doesn't depend on the skill still existing in the market.
When the user agrees that each fact is either independent or附属, and can explain why. The result should be a list of entities, each marked independent or not.
Common mistake to catch: Don't let the user put everything under one "核心实体". If the deletion test shows independence, it's independent — don't force it into a parent-child relationship.
Question to ask: "这些独立实体之间,是靠什么字段找到彼此的?"
For each pair of entities that need to connect, identify the linking field:
"调用记录里有什么字段能关联到 skill?" "安装记录里有什么字段能关联到 skill?"
There are two types of association:
标识关联(Identity Association): A stores B's ID/name directly. Simple, no dependency on rules.
映射关联(Mapping Association): A's name can't directly link to B, needs transformation.
Design principle: 优先用标识关联。映射关联用方法封装隔离不确定性(比如 resolve_origin_skill())。
When the user can clearly state: "实体 A 靠字段 X 关联到实体 B,是标识关联/映射关联"。
Only if the user says they want to implement next. If they just wanted to understand the domain, skip to Summary.
For each entity, ask three questions:
① "这个实体要回答什么问题?" → 决定存哪些字段 ② "这个实体会被怎么查?" → 决定索引和粒度(一行存什么维度的组合) ③ "这个实体的生命周期是什么?" → 追加(只 INSERT)还是更新(upsert)还是覆盖
"一行存什么" is determined by how it's queried. If the dashboard shows "每天每个技能的 PV/UV", the granularity must be parent_skill × stat_date — one row per skill per day. Not just stat_date.
At the end, present a compressed card:
四步建模法:
① 找角色 → 问"谁在这里做事"(区分人和工具)
② 找动作 → 问"每个角色做什么,做完多了什么"(只写动作产生事实)
③ 找实体 → 问"这个事实能独立存在吗"(删了别的还失效吗)
④ 找关联 → 问"实体之间靠什么找到彼此"(标识关联 vs 映射关联)
如果接下来要实现,加一步:
⑤ 数据建模 → 问"存什么字段、怎么查、什么生命周期"
Then present the domain model the user built:
角色:...
动作 → 事实:
...
实体:...(独立/附属)
关联:...(标识/映射)
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/executing-plansUse when you have a written implementation plan to execute in a separate session with review checkpointsOther plugins' skills for the same job
/huaka1-superpowers:grill-me-domainfrom superpowers
Generated from the plugin's indexed repository (huaka1/oh-my-harness) — no native marketplace selected
npx claudepluginhub p/huaka1-superpowers