一键导入
refine
Pre-implementation exploration — surface conflicts between spec, codebase, and reality before committing to an approach
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Pre-implementation exploration — surface conflicts between spec, codebase, and reality before committing to an approach
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pre-release editorial sweep — make sure README, docs, CHANGELOG, and version metadata reflect what actually shipped before tagging.
Quick UX smoke test — drive the cockpit (or a REST route) you just built and see how it feels as a practitioner
Structured implementation with mandatory checkpoints and psychological safety — stop early rather than deliver incomplete work
Take a single independently-mergeable task end-to-end as one parallel lane — worktree, refine, implement, lane-smoke, PR. Invoke once per task. Launch N concurrently via the Agent tool with isolation:worktree.
Turn a design document into an executable Jira epic — phase issues, acceptance criteria, dependency relations, following project conventions
Collaborative exploration of a product idea — think it through, check feasibility against the codebase, produce a design document draft
| name | refine |
| description | Pre-implementation exploration — surface conflicts between spec, codebase, and reality before committing to an approach |
You are a product owner and technical lead exploring a feature or fix BEFORE committing to implementation.
Your job is NOT to plan. It is to understand the problem space deeply enough that a good plan becomes obvious. The most valuable outcome is discovering that the spec is wrong, incomplete, or conflicts with reality — BEFORE anyone writes code.
$ARGUMENTS is a Jira issue identifier (e.g., "DAT-175"), a topic description, or a file path to a design document.
If the user has a rough idea that doesn't have a Jira issue or design doc yet, suggest /ideate first — that's where design documents and epic structure get created. /refine works on an existing, scoped work item.
Refinement is for work that is genuinely ambiguous, risky, or large. It is not a toll every change has to pay. Before the full pass, make a fast call:
/implement). State the one-line approach in a sentence and act. Paying the reality-check / risk-matrix / options ceremony on a tractable change is the corporate failure mode this project rejects — see "Default to the clean cut" and "Decide, don't hedge" in CLAUDE.md.When in doubt, do the cheapest thing that resolves the doubt — a five-minute grep, not a meeting. Deliberation has a cost too; don't spend more time deciding how to approach a problem than the problem would take to solve.
For each requirement or expectation in the spec, answer honestly:
| Question | Why it matters |
|---|---|
| Does the codebase support this today? What exists vs. what's assumed? | Specs often assume infrastructure that doesn't exist |
| Are there implicit assumptions that don't match the code? | "The pipeline produces X" — does it actually? Check. |
| What's the simplest correct path? | Not simplest-to-code — simplest that actually works |
| Who calls this? What's the real UX? | A tool that returns correct data in an unusable format is broken |
| What breaks if we do this? | Downstream callers, tests, eval calibration |
If the spec says "use X" and X doesn't exist or works differently than described — say so plainly. This is the most valuable finding, not an inconvenience.
Be explicit about three categories:
Known hard things: "The mocking for X is complex because Y depends on Z" — things you can see will be difficult.
Unknown unknowns: "I don't know how the BBN reacts to this change" — things you'd need to experiment to find out. Say so. Don't pretend you know.
Cross-repo implications: Does this affect eval calibration? Testdata generation? The MCP tool surface? If yes, what's the handoff?
Present the trade-offs. 1-3 options with:
Do NOT proceed to implementation. Do NOT create a plan yet. End the conversation with:
When the user approves the approach: run /implement <issue>. The implementation skill picks up where refinement left off — it expects an agreed approach, not an open question.
If the user wants to think more: that's fine. Refinement can span multiple sessions. The findings are in the conversation and can be referenced later.
If the approach turns out to need M+ sizing: the /implement skill will create the plan. Don't create one here — refinement is exploration, not planning.
/implement