一键导入
craft-tune
Improve an existing prompt or skill in place. Use for refine, sharpen, tighten, fix, upgrade, "feels off", or inconsistent artifact requests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Improve an existing prompt or skill in place. Use for refine, sharpen, tighten, fix, upgrade, "feels off", or inconsistent artifact requests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create or refine spec/capabilities.md from repo signals. Use after spec-charter or for capability specs, component contracts, middle-layer specs, repo boundaries, 능력 명세, or grill.
Optimize prompts or skills with measured eval loops. Use for repeatable test inputs, eval runners, scoring, bounded mutations, or written stop conditions.
Decide where agent guidance belongs in a repo and propose the smallest harness change. Use for AGENTS.md/CLAUDE.md, hooks, subagents, MCP, plugins, sync, or pruning.
Create or amend spec/system-map.md. Use for architecture scope, system shape, runtime boundaries, core flows, invariants, storage/external systems, or SYSTEM_MAP.
Create, amend, or reassess spec/charter.md. Use for project direction, Objectives, Non-Goals, Decisions, stale spec findings, 기준, 헌장, 방향성, or spec axis.
Critique prompts or skills without editing. Use for review-only diagnosis, audit, "feels off" artifacts, or findings before a rewrite.
| name | craft-tune |
| description | Improve an existing prompt or skill in place. Use for refine, sharpen, tighten, fix, upgrade, "feels off", or inconsistent artifact requests. |
| disable-model-invocation | true |
| metadata | {"related-skills":"craft-critique, craft-autoresearch"} |
Run an autonomous critique-and-edit loop over an existing prompt or skill until the artifact is good enough by its own critique standard — preserving the original intent throughout.
A working artifact rarely converges in one pass: diagnosis surfaces issues, edits introduce new ones, and the next round of diagnosis depends on the revised text rather than the original. craft-tune keeps cycling on its own: re-critique against the current state, apply minimal-diff edits, re-critique again. The loop terminates when the critique itself has nothing significant left to say (the Self-LGTM condition) — at which point the user gets the final artifact and the round-by-round trail of how it got there.
This is not eval-driven (no scored rubric, no eval runner — that's craft-autoresearch). It is judgment-driven: the same critique discipline that produced a trusted finding in Round 1 also decides when to stop in Round N.
craft-autoresearch overhead) isn't worth it for this artifactcraft-tune always edits. When the user wants a one-shot critique without edits — "review only," "diagnose only," "what's wrong with this but don't change it yet," "audit before I touch it" — use craft-critique instead, which is read-only and stops at findings.
Each round is autonomous. Do not pause for user input between rounds — run them back-to-back and present the full trail at the end.
[CARRIED]. Apply edits.The loop is how craft-tune always runs — there is no separate mode and no user-keyword stop signal; the skill self-judges. If the user wants to pause mid-loop they can interrupt via chat; that's a chat mechanic, not part of the contract.
Exit the loop as soon as any of these fire. The rationale and a worked example behind this taxonomy live in docs/methodology/loop-stop-conditions.md, CraftKit's standalone methodology reference.
[HIGH] or [MED] items (including any [CARRIED] items at those severities — [CARRIED] does not lower a finding's severity). Remaining [LOW] items, or an empty list, mean the artifact is good enough by its own critique standard. State the rationale in the final output: "Converged at Round N — no [HIGH]/[MED] findings remain."[HIGH] or [MED] item appears with [CARRIED] tag across two consecutive rounds, meaning the current edit strategy isn't resolving it. Treat two Diagnostics items as the same when they name the same underlying defect — even if the wording shifts between rounds — and would be resolved by the same kind of edit. Stop and surface this in the final output as "Unresolvable in this loop's vocabulary" — the user may need to provide additional context, an example, or a different framing.[HIGH]/[MED] Diagnostics that weren't resolved.The first three are the healthy exits; the fourth is the safety net.
Each round produces a compact block — enough to audit the run, not so much that the trail buries the final artifact. Do not include the full revised artifact per round; that goes in the final output only.
A single line: Round 1, Round 2, etc. — so the user can refer to past rounds by number.
One short paragraph, Round 1 only. Name the original artifact's concrete job in task-specific terms — reference a detail a reader could use to guess what the input was about. "The original job remains intact" or "improves the existing prompt" fails the bar. Subsequent rounds skip this section entirely (the intent is locked).
Prioritized list, 1-5 items, against the current state of the artifact. Each item carries an explicit severity tag ([HIGH], [MED], [LOW]). When failure outputs were supplied as input, each [HIGH] item must name the specific failure it explains. From Round 2 onward, tag any item already raised in a prior round (and not resolved) as [CARRIED] and explain in one phrase why the prior edit did not resolve it.
Compact changelog — one line per change in the form changed → why (Diagnostics #N) → effect. No full three-column table per round; that depth lives in the final output's cumulative changelog. Never omit this section. If a round applies no edits (no-op stop, or Self-LGTM with only [LOW] items below the action threshold), write "No edits — ." This keeps the per-round trail uniform and auditable.
Once a stop condition fires, append this block. This is what the user reads to take the result away.
One line: "Converged at Round N — ." Use the exact condition name from § Stop conditions (Self-LGTM / Persistent fixpoint / No-op round / Hard cap).
On a Self-LGTM exit, before shipping, publishing, or generalizing the tuned artifact beyond this session, run an independent second pass — craft-critique in a fresh context, or ordinary PR review. The loop judges its own output, and a same-context re-read shares the loop's blind spots.
The fully revised prompt or skill at its final state. Copy-pasteable as a standalone replacement.
Full table of every distinct change across all rounds. Every entry names all three fields:
Use a three-column table. Bare bullets fail the spec; bundling unrelated changes into one entry fails the spec. The cumulative changelog must not introduce changes that no Diagnostics item from any round justifies.
Name at least one concrete cost with a direction (length ↑, flexibility ↓, specificity ↑, adaptability ↓). "No tradeoffs" is acceptable only when paired with a one-line justification of why the run carries no cost; vague acknowledgments ("small tradeoff in clarity") fail.
If the loop exited on Persistent fixpoint, No-op round, or Hard cap, list the [HIGH]/[MED] Diagnostics that remain unresolved, one per line, each with a one-line note on why the loop couldn't resolve it. Omit this section entirely on a clean Self-LGTM exit.
[HIGH]/[MED] items in the final round's Diagnostics — do not declare convergence just because edits are getting smallerShared with craft-prompt — full statements in references/shared-principles.md. Check a stuck round against all four:
If a round's Diagnostics keeps surfacing the same fuzzy complaint ("this just feels off"), switch to the categorized diagnostic in references/failure-modes.md. It splits issues into ambiguity, scope, context, portability, verification, and structure — which usually makes the real problem easier to name and fix in the next round.
[HIGH] or [MED] items still in the final Diagnostics — the only clean exit requires the list to be empty or [LOW]-onlyInput: tune Review my code and tell me what to fix. Be thorough. so reviews are consistent across agents.
Output sketch:
[LOW] items; no edits are applied and Self-LGTM fires.For the expanded round trail and final artifact, load references/full-run-example.md.
references/shared-principles.md — full statements of the four principles shared with craft-prompt.references/failure-modes.md — categorized diagnostic vocabulary for vague or repeated findings.references/full-run-example.md — compact full-loop example with rounds, revised artifact, changelog, and tradeoffs.