code-refine
Skill8 starsChanged 2 months agoMITView on GitHub
Use only when autopilot-code dispatches plan revision after user notes, plan-check feedback, or verification failure. Not for top-level user requests or primary capability routing.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex_setting/AGENTS.mdAGENTS.md
- opencode_setting/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude_setting/CLAUDE.mdCLAUDE.md
- analyze-projectSkill
- analyze-userSkill
- artifact-projection-readSkill
- auditSkill
- autopilot-applySkill
- autopilot-codeSkill
- autopilot-designSkill
- autopilot-draftSkill
- autopilot-labSkill
- autopilot-refineSkill
- autopilot-researchSkill
- autopilot-shipSkill
- autopilot-specSkill
- code-executeSkill
- code-planSkill
- code-reportSkill
- code-testSkill
- design-componentsSkill
- design-handoffSkill
- design-initSkill
- design-refsSkill
- design-reviewSkill
- design-tokensSkill
- draft-refineSkill
- draft-strategySkill
- post-itSkill
- session-tidySkill
The file
Files
code-refine
Plan resolution: Treat arguments-and-decisions.md#plan-resolution as the single authority for resolving
$ARGUMENTS. Recognize both canonicalplan.mdand any existing companion such as legacyplan_ko.md; swap between known companion paths only when both files actually belong to the same plan.
Language rule: Follow the audience and artifact language contract in arguments-and-decisions.md#language-rule. Preserve the canonical plan's selected language and synchronize only companions that already exist or are explicitly required.
Delegate Refinement
Re-enter the plan/plan-author unit boundary with this task:
Refine mode. Update an existing implementation plan from user memos, plan-check feedback, or verification-failure notes.
Supplied plan: {$ARGUMENTS}
Canonical plan: {resolved plan.md path}
Existing companion plans: {resolved paths, or none}
Read the supplied and canonical plan files and identify user memos per your refine-mode memo forms; additionally treat any HTML comment as a user memo. Do not treat original plan prose as a memo. Then follow your refine-mode procedure and return format.Memo forms, in-place update, companion synchronization, and the single-line return contract are owned by the plan/plan-author unit persona; do not restate them in the prompt.
Refine Assurance
Derive verification rigor from the plan's selected --intensity context under CONVENTIONS §1.1. This capability is an optional correction of a durable plan; it is not an automatic stage in direct or quick.
| Rigor | Review after refinement | Correction budget |
quick | Direct invocation only: one fast sanity review or self-check | Record residual concerns; no repeated loop |
light | One focused fast review when changed steps could affect execution | One bounded correction for blocking issues |
standard | One lightweight qa/plan-review unit pass (the plan-check boundary) over changed steps | At most one correction |
thorough | Multi-axis review only when selected by intensity=thorough | Up to two synthesized corrections |
adversarial | Thorough review plus explicit failure-mode, security, and adversarial critique when available | Explicit unavailable requests fail loudly; automatic escalation falls back to thorough and reports it |
After the plan/plan-author unit returns, run only the review action selected by the caller's graph. Do not open a repeated QA loop merely because the rigor tier is high. A refinement is one verdict round against the caller's shared review_round_cap.round_budget (CONVENTIONS §1.1); a crashed or capacity-dead prior round never spent it, so this refinement may still be the first real correction even when it is not the first attempt. Add unresolved concerns to the plan's risk or unresolved section after the selected budget and report them to the caller.
Task
Refine the plan at: $ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

