一键导入
refine
Use when the user prompts "refine design".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user prompts "refine design".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when the user prompts "code doc" to create or update internal Orchid ORM code documentation from changes/ specs, short-code feature folders, or existing implementation code.
Use when the user prompts "implementation note" for an existing change idea.
Use when the user prompts "write spec" or "make spec".
Use when the user prompts "do task".
Use when the user prompts "changeset".
Use when the user prompts "write ideas" or "make ideas".
基于 SOC 职业分类
| name | refine |
| description | Use when the user prompts "refine design". |
Run an interactive refinement session for an existing feature design document.
This command is for clarifying and tightening a proposal that already exists. It is not a one-shot rewrite. The workflow may span multiple user turns.
The normal behavior is:
## Refinement section## Refinement synchronized with every confirmed conclusionInput
This workflow can start in two ways:
Directly from the user
The prompt argument should identify:
If the user does not specify a file, default to:
changes/<feature-name>/<NUMBER-idea-name>/selected-variant.md
Examples:
/refine 611-row-level-security-integration 2/refine row-level-security-integration "Run work inside an explicit RLS context"/refine row-level-security-integration 2 variants.mdFrom another workflow
If the calling workflow already knows the input file, use that file directly instead of re-resolving it.
By default, update that same file in place.
Only write to a different output path when the caller or the user explicitly instructs you to do so.
Goal
Make the design document more reliable for later work by resolving important questions collaboratively and keeping both:
in sync throughout the session.
The refinement log is part of the artifact. It should help a later reader understand which questions mattered and what was decided.
Steps
Resolve the input file
If another workflow already provided the input file path, use it.
If the user initiated the workflow directly:
changes/changes/<feature-name>/selected-variant.md unless the user specified another fileMatching rules:
2-run-work-inside-an-explicit-rls-contextideas.mdIf multiple folders or ideas are plausible, ask one focused clarifying question. Do not guess.
If the resolved input file does not exist, stop and tell the user. Do not create the starting design file in this command.
Read the proposal and supporting context
Read the full input file before commenting on it.
Understand:
Read only the extra context that is needed to understand or verify the design:
docs/src/.vitepress/dist/llms.txtWhen researching online, prefer official docs and trustworthy primary sources.
Ensure the document has a refinement section
If the input file does not already contain ## Refinement, append an empty ## Refinement section at the end of the file immediately.
If ## Refinement already exists, preserve it and continue working inside it.
There must be exactly one top-level ## Refinement section in the final document.
Give the user your initial assessment
After you understand the proposal, tell the user:
You may propose refinement questions at this point.
Do not write those proposed questions into the document unless the user confirms that they should be tracked.
Add only confirmed questions to ## Refinement
When the user confirms a question to track, write it into ## Refinement unless that same question is already present.
Use one subsection per tracked question in this form:
## Refinement
### 1. <question title>
<explain the question>
Pending.
Rules:
Work through questions collaboratively
Process questions one by one. Let the user steer the order when they want to.
Different question types need different behavior:
Technical questions
Ergonomics or product-shape questions
While a question is still open, you may temporarily write notes under it such as:
Pending.Keep these notes concise and useful.
Only record an answer after user confirmation
Do not treat a tentative discussion as a final answer.
Once the user confirms the conclusion for a question:
The final recorded answer should include:
Use this form:
### Question 1: <question>
#### Answer:
<final conclusion, why it was chosen, and the key evidence or reasoning behind it>
Synchronize the main design after every confirmed answer
After every confirmed answer, immediately update the document above ## Refinement so it matches the new conclusion.
Update whichever parts are affected:
If a confirmed answer changes the design, the main document must be updated before you move on.
Remove contradictions and stale statements instead of leaving the log to explain them away.
Continue until the open questions are resolved
The user may add more questions later in the same session.
Each time:
## Refinement## RefinementIf the user asks you to investigate something in the codebase or online, do that work before recording the answer.
Finish cleanly
When all tracked questions are answered, make sure the document is coherent as a whole.
The refinement log should still remain in the file unless the user explicitly asks to remove it.
Quality check
Before finishing, verify:
selected-variant.md unless the user chose another file## Refinement exists exactly once## Refinement was updated after each confirmed conclusionGuardrails