Interview Framework 标志

Interview Framework

社区
tzachbon
interview-framework

This skill should be used when a Ralph phase must identify critical user decisions, run a layered grill, persist partial answers, obtain explicit approval, or resume an interrupted phase interview before delegating artifact work.

概览

发布者tzachbon
代码仓库smart-ralph
技能名称interview-framework
星标数
559
复刻数
50
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 tzachbon 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Interview Framework AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/tzachbon/smart-ralph/tree/main/plugins/ralph-specum/skills/interview-framework
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tzachbon/smart-ralph.git /tmp/smart-ralph
mkdir -p .claude/skills
cp -r /tmp/smart-ralph/plugins/ralph-specum/skills/interview-framework .claude/skills/interview-framework
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Interview Framework,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Interview Framework。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Interview Framework 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Interview Framework

Treat every normal-mode interview governed by this framework as a grill. Run the approval-gated interview for start, triage, research, requirements, design, and tasks. Treat this skill and its references as the single source of truth for interview behavior. Phase commands supply exploration territory and artifact context; they do not redefine the algorithm.

Quick mode bypasses interview questions only. It still requires current discovery, contract loading, bypass receipts, delegation checks, and artifact-agent load parity.

Entry Contract

Before each new or resumed interview:

  1. Complete the applicable skill discovery pass from ${CLAUDE_PLUGIN_ROOT}/references/normal-mode-gates.md.
  2. Reload this entire SKILL.md, references/algorithm.md, references/domain-modeling.md, every selected skill body, and every selected skill resource required for the current work. Load references/examples.md only when an example is needed.
  3. Record the load manifest with phase_gate.py record-skill-load.
  4. Begin or resume the interview with the matching phase, interview ID, discovery revision, and context digest.

Block when this skill or the core algorithm reference cannot be loaded. Warn and continue when a domain skill fails to load. Put unresolved material conflicts in the first critical frontier.

Critical Decision Test

Grill only a decision that meets both conditions:

  • The answer cannot be established by inspecting the project, prior artifacts, configuration, or selected skill contracts.
  • Different answers would materially change scope, observable behavior, architecture, risk acceptance, delivery sequencing, or the acceptance standard.

Inspect facts with read-only tools or an Explore agent. Exclude setup choices, administrative preferences, status questions, facts the repository can answer, and low-impact polish. Treat a prescribed task action in a loaded domain skill as reference material during preload; do not execute it until the phase has approval and delegation begins.

Before building the tree, read the goal, state, .progress.md, prior phase artifacts, the configured .index/index.md, and the applicable CONTEXT.md reached through CONTEXT-MAP.md when present. Open only relevant indexed entries. Inspect code, configuration, tests, and existing specs for every discoverable fact. Run independent read-only lookups in parallel; a pending fact blocks only the nodes that depend on it.

  • Fact: discoverable from project evidence. Resolve it through inspection; never ask the user.
  • Decision: a consequential preference, priority, boundary, or tradeoff only the user can settle. Put it on the design tree.

Build the Design Tree and Traverse the Layered Frontier

Build a design tree from the phase territory. Each node contains a stable decision ID, dependencies, known evidence, viable options, recommendation, tradeoffs, and material consequences. Track nodes as open, investigating, resolved, or explicitly out of scope. The frontier contains every open critical decision whose prerequisites are resolved.

Ask the whole currently unblocked critical frontier. Use as many AskUserQuestion calls as needed, with at most four questions per call. Batch independent decisions together.

Before every AskUserQuestion call, call open-frontier for every decision ID in that batch.

After each response:

  1. Call deterministic classify-reply on the whole reply before applying any part of it.
  2. Persist every answered decision immediately with record-answer.
  3. Preserve unanswered pending decisions when the response is partial.
  4. Recompute the frontier from new answers and inspected facts.
  5. Ask the next unblocked frontier until no critical node remains open.

Ask the whole current frontier in one round. Number each question (Q1, Q2, and so on). Use AskUserQuestion for the round when the tool is available. If AskUserQuestion is unavailable, render the same numbered round in the response and wait for the answers.

Turn an Other response into a specific dependent question in the next frontier. Never use a generic follow-up. Add branches exposed by concrete answers or contradictions, and remove branches that evidence resolves.

Each question must:

  • Give 2-4 viable options.
  • Put the recommended option first and label it (Recommended) unless the options are symmetric.
  • State the recommendation rationale and the material tradeoff in the question or option description.
  • Avoid straw-man alternatives and unnecessary flexibility.

Give a recommended answer with a short rationale. Provide 2-4 meaningful options. Require that the design-tree frontier is empty before final confirmation. Continue only when the user confirms the resulting shared understanding through the explicit approval choice.

See references/algorithm.md for the complete state machine.

Domain Language

Apply references/domain-modeling.md during every grill. Challenge terms that conflict with the applicable CONTEXT.md, replace fuzzy or overloaded words with a proposed canonical term, and use boundary or edge-case scenarios to test the model. Record resolved domain terms promptly. Keep implementation details out of CONTEXT.md. This interview framework does not create ADRs; design.md remains the specification's technical-decision record.

Reply Semantics

Classify the entire reply before applying it.

Substantive reply

Apply text that answers one or more active decisions. Persist answered decisions and keep the rest open. A substantive answer can include control words without losing its decision content.

Control-only reply

These replies do not answer any active decision by themselves:

  • apply the changes
  • continue
  • proceed
  • go ahead

Keep the active frontier open and ask it again. Do not infer defaults or approval from a control-only reply.

Bare skip

Treat bare skip, after an active question, as authorization to default the remaining phase interview. Call skip with explicit defaults and assumptions; this moves to awaiting_confirmation, not a delegable terminal state. Continue to final approval and confirm decision ID skip-confirmation. A sentence that contains skip plus substantive decision text is a substantive reply, not bare skip.

Final Approval

When the critical frontier is exhausted or skipped:

  1. Present the decision brief: resolved decisions, recommended approach, tradeoffs, defaults, assumptions, and material conflicts.
  2. Call await-confirmation with a stable confirmation decision ID and the proposed approach.
  3. Ask one explicit approval question through AskUserQuestion:
    • Approve and delegate (Recommended)
    • Revise decisions
    • Cancel
  4. Accept only an explicit approval selection. Control-only replies do not approve.
  5. On approval, call confirm --source approve-and-delegate, run check-delegation, and delegate immediately in the same response. Do not ask another question or stop between approval and delegation.

When the user requests revisions, call one revise transition with every affected --decision-id before updating answers. Recompute any dependent frontier, return to final approval using the same confirmation ID, and keep the same interview record until the brief is approved again.

Artifact Approval

Artifact review is a separate approval gate after delegation. apply the changes during artifact review means revise the artifact using the supplied feedback, redisplay the walkthrough, and remain in artifact approval. It never approves the artifact or advances the phase.

Persistence

Use phase_gate.py transitions after each state change. Append every completed frontier round to .progress.md without treating that Markdown as enforcement state:

markdown
### <Phase> Grill - Round <N>
- Facts resolved: <fact and evidence>
- Decisions: <decision-id> -> <answer>
- Out of scope: <explicitly excluded branch or none>
- Domain language: <canonical term and definition or none>
- Frontier after round: <remaining unblocked decisions or empty>

For triage, store enforcement state in the epic .epic-state.json. For spec phases, use .ralph-state.json.

References

  • references/algorithm.md - Critical-frontier state machine and reply handling.
  • references/domain-modeling.md - Required context discovery, language challenges, scenarios, and glossary updates.
  • references/examples.md - Optional examples for frontier, partial-answer, skip, approval, and artifact revision cases.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Interview Framework AI 技能有什么作用?

This skill should be used when a Ralph phase must identify critical user decisions, run a layered grill, persist partial answers, obtain explicit approval, or resume an interrupted phase interview before delegating artifact work.

为什么在 TypingMind 中使用 Interview Framework?

因为您只需安装一次,就能搭配任何模型使用。Interview Framework 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Interview Framework?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/tzachbon/smart-ralph/tree/main/plugins/ralph-specum/skills/interview-framework。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Interview Framework?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Interview Framework 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Interview Framework 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Interview Framework AI 技能免费吗?

是的。tzachbon 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇