agentleFS
dmlguq456dmlguq456/hearting/skills/code-refine/SKILL.md

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.

The file

Files
SKILL.md

code-refine

Plan resolution: Treat arguments-and-decisions.md#plan-resolution as the single authority for resolving $ARGUMENTS. Recognize both canonical plan.md and any existing companion such as legacy plan_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.

RigorReview after refinementCorrection budget
quickDirect invocation only: one fast sanity review or self-checkRecord residual concerns; no repeated loop
lightOne focused fast review when changed steps could affect executionOne bounded correction for blocking issues
standardOne lightweight qa/plan-review unit pass (the plan-check boundary) over changed stepsAt most one correction
thoroughMulti-axis review only when selected by intensity=thoroughUp to two synthesized corrections
adversarialThorough review plus explicit failure-mode, security, and adversarial critique when availableExplicit 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.