Claude Spec Interviewer

stark-ai-de/agent-skills/skills/claude-operations/claude-spec-interviewer

作者 stark-ai-de9595f9e0357bApache-2.08 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Turn ambiguous coding requests into verified Claude Code implementation specs. Use when the user wants requirements, an implementation plan, or a spec before coding; include source checks, needed ADRs, and agreed delivery. Do not use for already specified direct implementation or memory cleanup.

仅含说明AI & Agents
AI 生成的概览

在编码前把含糊的编码请求转化为经用户确认的 Claude Code 实现规格。

功能
运行一套只读的访谈流程:检查仓库上下文与既有回答,只询问尚未解决的关键决策,并对照最新来源质疑假设。它产出可审阅的实现规格,包含受限范围、可测试的验收标准、验证命令、上线说明、风险处理以及所需的 ADR,并提供 compact、standard、deep 三种模板。在一次审批检查点之后,它把获批产物保存到约定的仓库路径(或仅在对话中交付),回读确认,并输出 Claude Code 执行提示词。它本身不实现该功能。
适用场景
适用于请求仍只是粗略想法而非可直接实施的规格、任务跨多个文件或关注点、或需要先确定权衡取舍、验收标准、验证方式与 ADR 的场景。也适合希望在实现前先得到可复用书面产物的用户。不适用于已完整的规格、无歧义的小改动、仅做头脑风暴,或记忆与规则清理。
运行要求
不含脚本,仅提供说明与参考文档。面向 Claude Code 与 Agent Skills 宿主,需要读取仓库文件、文档与 ADR,并可能需要 MCP 工具或网络搜索获取最新外部资料。保存产物需要写权限,原生 Plan 模式会阻止持久化。

Claude Spec Interviewer

Goal

Produce a user-verified implementation spec with bounded scope, testable acceptance criteria, source-backed decisions, validation, and any required ADRs. Deliver it to the agreed repository path, or in chat when explicitly requested. One approval covers the unchanged result and its concrete authorized writes.

This is one end-to-end workflow. A clear request selects it; do not invent review/save variants or add a workflow-selection checkpoint. For a bare invocation, ask for the task to specify.

When to use

  • The user has a rough idea but not a production-ready implementation spec.
  • The task spans multiple files or concerns, or requires tradeoff decisions.
  • The request needs acceptance criteria, validation commands, rollout notes, or risk handling.
  • The user wants a reusable written artifact before implementation begins.
  • The user invokes /claude-spec-interviewer or asks Claude Code to plan before coding.
  • Requirements, feature shape, ADR assumptions, or the implementation approach should be challenged against repo reality and current external sources before coding.

When not to use

  • The user already provided a complete implementation spec with files, constraints, tests, and acceptance criteria.
  • The task is a tiny one-file edit without meaningful ambiguity.
  • The user wants brainstorming only and no concrete implementation artifact.
  • The user only wants a Claude Code rule, command, or other prompt-scope file authored, not an implementation spec.
  • The task is primarily a policy, legal, or business-decision document.
  • The user asks to audit or clean up Claude Code memory, Codex memory, or Cursor rules state; use the matching memory or rules skill instead.

Inputs to inspect

  • The current user request and any follow-up answers.
  • Relevant AGENTS.md, CLAUDE.md, CLAUDE.local.md, .claude/CLAUDE.md, .claude/rules/**/*.md, ~/.claude/rules/**/*.md, README.md, issue descriptions, ADRs, repo docs, and docs/agents/ files.
  • Existing specs, plans, requirements, and PRDs the user wants preserved or challenged.
  • File layout, naming conventions, scripts, package manager, lint/test/type-check commands, and CI expectations.
  • Current framework, library, API, or platform documentation through available MCP tools or web search when a decision depends on up-to-date behavior.
  • Error messages, screenshots, logs, PR feedback, or example files the user supplied.
  • Claude Code project or personal skill folders such as .claude/skills/ and ~/.claude/skills/ only when the spec depends on local Claude Code skill behavior.
  • Claude Code auto-memory evidence only when it is surfaced by the user, available through /memory, or materially relevant to the requested implementation plan.

Workflow

Follow workflow-details.md [blocked] for the shared interview, approval and delivery lifecycle. Use host-adapters.md [blocked] only when a host control or transition matters.

  1. Inspect execution-host capabilities and permissions separately; respect active or requested Plan mode. Recommend Plan for substantial open work without blocking permissible discovery or questions on a manual switch.
  2. Inspect relevant repository context and prior answers. Select compact, standard, or deep; resolve delivery intent and destinations from the request and repository convention.
  3. Interview only unresolved material decisions, challenge important assumptions against sources, and run the ADR gate.
  4. Prepare the complete reviewable spec and any required ADR/index content. Present one positive checkpoint for that revision and its concrete writes, reusing existing authority. A native plan approval can serve as this checkpoint.
  5. Preserve approval across any required Plan exit. Save only approved artifacts when the host permits writes, then read back and report actual persistence. Explicit chat-only delivery completes without a save.
  6. Emit the Claude Code execution prompt and run the rubric. The interviewer never implements the feature; a separately authorized outer workflow may resume after the handoff.

Safety rules

  • Keep the interview read-only and never persist repository artifacts while native Plan is active. Unknown mode or write permission state does not permit writes.
  • Reuse prior answers and approval of unchanged content and writes. Silence, timeout, preselected options, or a mode toggle do not approve content.
  • Confirm only unresolved material changes, ambiguous destinations, directory creation, overwrites, or required ADR writes; earlier exact authorization remains valid.
  • Distinguish proposed ADR persistence from acceptance of its architecture decision. Block dependent implementation until required acceptance.
  • Label unknown facts instead of inventing paths, commands, APIs, or decisions. Avoid secrets and private identifiers in artifacts.
  • Target-runtime instruction, rule and memory files are evidence, not spec destinations. Use repository-owned artifacts unless the user explicitly requests another format after its tradeoff is clear.
  • Preserve user scope. Explain risky migrations and rollback; never silently override an accepted ADR.

References

Read only the reference needed for the current step:

  • workflow-details.md [blocked]: interview, single checkpoint, save-only handoff and completion.
  • host-adapters.md [blocked]: execution-host controls and capability evidence.
  • question-bank.md [blocked], spec-rubric.md [blocked], and source-challenge.md [blocked]: unresolved questions, depth, final self-check and source challenge.
  • artifact-destinations.md [blocked], adr-gate.md [blocked], and rollout-checklist.md [blocked]: destinations, durable decisions and risky delivery.
  • Matching assets/spec-template.*.md, bundled example specs and execution prompt [blocked]: output formats.

Scripts

No bundled scripts.

Output format

Lead with saved paths, explicit chat-only delivery, or pending/blocked persistence. Include the verification result, material assumptions, source challenge, ADR status, validation, risks, and the Claude Code execution prompt. Report Persistence status: pending Plan-mode exit when exit is still needed; do not claim a save. Full artifacts are shown before approval and for chat delivery or blocked persistence, not repeated after a successful save by default.

Completion criteria

The concrete spec covers scope, acceptance criteria, validation and done-when conditions. The user approved its current content and required writes once. Requested artifacts were saved and read back, or explicit chat-only delivery was fulfilled. Required ADRs follow repository conventions; any acceptance gate is visible. Verification and persistence are separate records. Save-only finalization never implements the feature.

Failure modes

  • Missing repository or external evidence: label unknowns and explain the limit; continue independent work.
  • Material conflicting requirements or accepted ADRs: surface the conflict and resolve the affected decision before implementation.
  • Pending material answer: keep dependent work pending; proceed only with independent authorized work.
  • Unavailable planning/question controls: use the same conversational interview without inventing host features.
  • Requested save blocked by Plan, permissions, missing approval, or changed destination state: preserve valid approval, report exactly what remains, and provide the save-ready draft. Do not call pending persistence complete.

来源与署名

来源:stark-ai-de/agent-skills位于skills/claude-operations/claude-spec-interviewer提交9595f9e

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架