From ai-native-doc-system
Grilling session that challenges a plan against the existing domain model, feature docs, and documented decisions, then updates CONTEXT.md and ADRs as decisions crystallise. Use when user wants to stress-test a plan against project language, PRD/Spec assumptions, or durable technical decisions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-native-doc-system:grill-with-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<what-to-do>
围绕这个计划的每个方面持续追问我,直到我们达成共同理解。沿着 design tree 的每个分支往下走,逐一解决决策之间的依赖。对每个问题,都提供你推荐的答案。
一次只问一个问题,并等待我对每个问题的反馈后再继续。
如果某个问题可以通过探索 codebase 来回答,就去探索 codebase,而不是问我。
探索 codebase 时,也查找现有文档和 feature docs:
大多数 repos 只有一个 context:
/
├── AGENTS.md
├── CONTEXT.md
├── docs/
│ ├── agents/
│ │ └── document-system.md
│ ├── adr/
│ │ ├── 0001-event-sourced-orders.md
│ │ └── 0002-postgres-for-write-model.md
│ └── features/
│ └── <feature>/
│ ├── PRD.md
│ ├── SPEC.md
│ └── issues/
└── src/
如果根目录存在 CONTEXT-MAP.md,说明 repo 有多个 contexts。这个 map 指向每个 context 的位置:
/
├── CONTEXT-MAP.md
├── docs/
│ └── adr/ ← system-wide decisions
├── src/
│ ├── ordering/
│ │ ├── CONTEXT.md
│ │ └── docs/adr/ ← context-specific decisions
│ └── billing/
│ ├── CONTEXT.md
│ └── docs/adr/
懒创建文件:只有在有内容可写时才创建。如果没有 CONTEXT.md,在第一个 term 被解决时创建。如果没有 docs/adr/,在第一个 ADR 需要时创建。
在开始追问前,如果存在,读取 AGENTS.md、docs/agents/document-system.md、当前 feature 的 PRD.md / SPEC.md / PLAN.md。这些文件用于约束问题,而不是替代用户反馈。
当用户使用的 term 与 CONTEXT.md 中的现有语言冲突时,立即指出。“Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?”
当用户使用含糊或 overloaded terms 时,提出一个精确的 canonical term。“You're saying 'account' — do you mean the Customer or the User? Those are different things.”
讨论 domain relationships 时,用具体场景做 stress-test。发明能探测 edge cases 的场景,迫使用户精确说明概念之间的边界。
当用户说明某件事如何工作时,检查代码是否一致。如果发现矛盾,指出来:“Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?”
当一个 term 被解决时,立即更新 CONTEXT.md。不要攒到最后;随着发生就捕获。使用 CONTEXT-FORMAT.md 中的格式。
CONTEXT.md 应完全不包含实现细节。不要把 CONTEXT.md 当作 spec、scratch pad 或实现决策仓库。它只是 glossary,除此之外不承担别的职责。
如果讨论产出的是产品范围,建议后续运行 /to-prd 更新 docs/features/<feature>/PRD.md。
如果讨论产出的是行为契约、API、状态、数据结构、异常路径或验证命令,建议后续运行 /to-spec 更新 docs/features/<feature>/SPEC.md。
不要把 PRD/Spec 内容写入 CONTEXT.md。不要把临时任务拆分写入 ADR。
只有以下三点全部为真时,才提议创建 ADR:
如果三者缺一,就跳过 ADR。使用 ADR-FORMAT.md 中的格式。
npx claudepluginhub pop1414/ai-native-doc-systemCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.