一键导入
rein-interview
Runtime-backed Socratic interview with durable state, clarity scoring, and spec bundle output
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Runtime-backed Socratic interview with durable state, clarity scoring, and spec bundle output
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run one task through the full REIN flow from clarification through implementation, cleanup, review, and verification
Use before committing. Self-reviews the current diff for unrelated changes, debug leftovers, test weakening, and scope drift.
Run a regression-tests-first cleanup/refactor workflow to reduce slop
Use after triage, before implementation. Breaks complex work into sequenced steps with risks, checkpoints, rollback boundaries, and interview-result handoff support.
Use before ambiguous or multi-file work. Surfaces relevant files, assumptions, success criteria, and cheating boundaries.
Understand a codebase and maintain .rein/codebase/ as a navigable map with evidence-backed findings
| name | rein-interview |
| description | Runtime-backed Socratic interview with durable state, clarity scoring, and spec bundle output |
| argument-hint | [--quick|--standard|--deep] [--resume <slug>] <idea or vague description> |
<Use_When>
rein-plan, direct implementation, or further refinement
</Use_When><Do_Not_Use_When>
<Runtime_Contract> The runtime owns:
.rein/state/.rein/context/You own:
<Execution_Policy>
<Interview_Presentation_Contract> Use a consistent chat-safe presentation frame for every visible interview turn.
Normal round:
[ Interview ]
| Phase: clarifying structure
| Current clarity: N%
| Question
| [one to two short lines]
|
| A. ...
| B. ...
| C. ...
Open-question variant:
[ Interview ]
| Phase: clarifying structure
| Current clarity: N%
| Question
| [one to two short lines]
Review:
[ Review ]
| Phase: confirming summary
| Current clarity: N%
| Question
| [one to two short lines]
Handoff:
[ Handoff ]
| Phase: preparing handoff
| Status: ready for handoff
| Question
| [one to two short lines]
Current clarity: N%.Status: ready for handoff.[ Interview ] for normal rounds.[ Review ] for final confirmation and crystallization.[ Handoff ] for transition into the next workflow.Use only these phase names:
clarifying structurenarrowing scoperesolving tensionconfirming summarypreparing handoffA., B., and C. options when the user is choosing between clear alternatives.Use clarity score as guidance, but make the final phase choice with interviewer judgment.
clarifying structure.narrowing scope when structure is clear and clarity is at least 65%.resolving tension when contradiction exists or direction is unstable.confirming summary when clarity is at least 85% and no major tension remains.preparing handoff when the summary is confirmed and the next workflow is identifiable.[ Review ].<Command_Sequence>
--resume <slug> is present, skip to the resume flow--quick|--standard|--deep or default to standardrein interview init --profile <quick|standard|deep> --idea "<idea>" [--slug <slug>] --json
rein interview resume --slug <slug> --json
currentRound, readinessGates, weakestDimension, and nextAction.
Valid nextAction values are:
continuecrystallizeblockedcompletedAfter each answer, compute updated dimension scores and readiness gates, then call:
rein interview update-round \
--slug <slug> \
--round <n> \
--target <dimension> \
--question "<question>" \
--answer "<answer>" \
--scores '{"intent":0.8,"outcome":0.7,"scope":0.6,"constraints":0.7,"success":0.5,"context":0.7}' \
[--refinement "<summary>"] \
[--challenge-mode "<contrarian|simplifier|ontologist>"] \
[--decision-summary "<short note>"] \
[--non-goals-explicit] \
[--decision-boundaries-explicit] \
[--pressure-pass-complete] \
--json
Use brownfield dimensions (intent, outcome, scope, constraints, success, context) unless the interview was initialized as greenfield.
Immediately use the returned JSON to decide whether to:
When you want structured runtime guidance for the next move, call:
rein interview next --slug <slug> --json
Use its output for:
suggestedModesuggestedFocusquestionStrategysuggestedMoveTreat that as structure, not as a replacement for your own question framing.
At any time, or when you need a refreshed external view, call:
rein interview status --slug <slug> --json
If the user asks to continue later, tell them they can rerun:
rein interview resume --slug <slug> --json
When the runtime says nextAction=crystallize, build a structured summary JSON with at least:
titleintentdesiredOutcomeinScopeoutOfScopedecisionBoundariesconstraintsacceptanceCriteriaassumptionspressureFindingstechnicalContextexecutionBridgetranscriptSummaryUse canonical executionBridge values so runtime handoff stays machine-usable:
planimplementationrefinementscopeThen call:
rein interview crystallize --slug <slug> --summary '<json>' --json
This writes:
.rein/interviews/<slug>-<timestamp>.md.rein/specs/rein-interview-<slug>/spec.md.rein/specs/rein-interview-<slug>/result.jsonAfter crystallization, ask the runtime for the recommended next workflow:
rein interview handoff --slug <slug> --to plan --json
Use that output to:
result.jsonrein-plan --from-interview <slug>recommendedSkillInvocation or the best available runtime handoff hint to build the final user-facing close-out
</Command_Sequence><Interview_Strategy>
<Final_Output> When crystallization succeeds:
Recommended next step: <command or step>rein-plan --from-interview <slug>
</Final_Output>Task: {{ARGUMENTS}}