[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77VEJK0FB8H9RBWXGWS18BM":3,"skill-same:01M77VEJK0FB8H9RBWXGWS18BM":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77VEJK0FB8H9RBWXGWS18BM","iterative-refinement",null,"Use when a deliverable (document, diff, design, report, code module) is complete but \"good enough, not great\" and you want to improve it with a targeted re-iteration instead of starting over. Forbids re-running the task from scratch when refinement is more efficient. Operates on the y-axis (output) not the θ-axis (code or method).","CorvinLabs\u002FCorvinOS","CorvinLabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F289506478?v=4","01M77VCHYED8C391HPBTNYP0HS","01M77VCHZ5K92DH3W6SPN8Y4P2",25,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fbundle\u002Fskills\u002Fldd\u002Fiterative-refinement\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: iterative-refinement\ndescription: Use when a deliverable (document, diff, design, report, code module) is complete but \"good enough, not great\" and you want to improve it with a targeted re-iteration instead of starting over. Forbids re-running the task from scratch when refinement is more efficient. Operates on the y-axis (output) not the θ-axis (code or method).\n---\n\n# Iterative-Refinement\n\n## Overview\n\nMost agents, when told \"this is okay but can be better,\" do one of two wrong things:\n\n1. **Re-run the task from scratch.** Wastes budget, loses whatever was good in the first attempt, gambles on random variation.\n2. **Polish by gut feel.** No loss signal, no gradient, no stopping criterion. Converges to the agent's aesthetic prior, not to a better deliverable.\n\n**Core principle:** refinement is a *second* gradient-descent pass, on the **y-axis** (the deliverable itself), using a **specific gradient** derived from the previous output's defects. The inputs, the task, the code, the skills — all held fixed. Only the deliverable changes.\n\nThis is the skill-level equivalent of `awp refine` (AWP's normative refinement mode). See [`..\u002F..\u002Fdocs\u002Fldd\u002Fconvergence.md`](..\u002F..\u002Fdocs\u002Fldd\u002Fconvergence.md) §1 for the three-loop model.\n\n## When to Use\n\nInvoke when **all** of:\n\n- A deliverable (document, code module, design artifact, plan) is **complete** (not partial, not stuck)\n- The deliverable is **usable but imperfect** — passes the minimum bar, fails the bar you actually want\n- Re-running the task from scratch would **lose** specific good parts of the current output\n- You can **name** the defects concretely (missing sections, weak examples, ambiguous language, missed requirements, incomplete coverage)\n\nDo **not** use when:\n\n- The deliverable is broken (use `loop-driven-engineering` + `root-cause-by-layer` — that's an inner-loop problem, not refinement)\n- You don't know what's wrong with it (invoke `dialectical-reasoning` first to find the defects)\n- The right answer is a completely different approach (refinement preserves the approach; you want re-planning)\n- Budget is tight and a second pass is unaffordable (refinement is never free — document the trade-off)\n\n## The Refinement Gradient\n\nThe gradient is **derived, not imagined.** Build it from three concrete sources on the previous output:\n\n1. **Critique defects.** Enumerate the specific problems: missing content, weak arguments, wrong details, unclear structure. No hand-waving; each defect points to a location in the output.\n2. **Gate rejections.** If the deliverable went through any automated gates (tests, lint, schema, rubric), the rejections are direct gradient signal.\n3. **Evaluation deltas.** If the deliverable was scored (by a human, an eval harness, or a rubric), the delta from target score is a numeric component of the gradient.\n\nCompose into a structured prefix for the next iteration:\n\n```\nRefinement gradient:\n  Defects identified in the previous output:\n    - [defect 1 with location]\n    - [defect 2 with location]\n    - ...\n  Gate rejections:\n    - [rejection 1 with rule]\n    - ...\n  Evaluation deltas:\n    - Target: X. Actual: Y. Gap: Z.\nProduce a revised deliverable that addresses these and does not regress on what was already good.\n```\n\nInject this gradient into iteration 1's context **only**. Subsequent iterations build on the iteration-1 output with their own fresh critique, not the original.\n\n## Budget and Stopping\n\nRefinement runs **under a budget** — unlike code fix-loops, refinement is asymptotic by nature (every deliverable could be slightly better). The budget prevents infinite polish:\n\n| Budget dimension | Default |\n|---|---|\n| Maximum iterations | 3 (clamped to `[1, 10]`) |\n| Budget halving per iteration | Token and time budget halved on each iteration |\n| Wall-time cap | 2× the seed deliverable's original production time |\n| Stop conditions (any) | regression × 2, plateau × 2, wall-time exhausted, max iterations, empty gradient |\n\n**Empty gradient** = no concrete defects can be named. That is a stop signal, not an invitation to imagine defects. If nothing is wrong that you can name, the deliverable is done.\n\n**Regression** = iteration k's loss > iteration k-1's loss. Immediate revert to k-1 and stop.\n\n**Plateau** = |Δloss| \u003C noise threshold for 2 consecutive iterations. The gradient is exhausted.\n\n## Red Flags — STOP, this isn't refinement\n\n- \"I'll just regenerate from scratch\" → that's re-planning, not refinement; different skill\n- \"This could be slightly better\" → without named defects you're polishing, not refining\n- \"Let me run 10 refinement iterations\" → budget violation; at most 10, realistic is 2–3\n- \"The gradient is: 'make it better'\" → not a gradient; specific defects only\n- \"Iteration 2 is worse but iteration 3 might fix it\" → refinement is monotonic or stop; no wishful middle\n- Re-running the full task when you could preserve 80% of the previous output → you conflated refinement with re-planning\n\n## Distinguishing from the other loops\n\n| Situation | Right loop | Why |\n|---|---|---|\n| Code is buggy, test fails | Inner loop (`loop-driven-engineering`) | θ = code. Fix it. |\n| Code is fine, doc output is weak | **Refinement** | θ = the doc. Revise it. |\n| Same rubric violation across 5 projects | Outer loop (`method-evolution`) | θ = the skill. Evolve it. |\n| Agent produced a plan that's almost right | **Refinement** | θ = the plan. Sharpen it. |\n| Agent produced a plan for the wrong problem | Re-plan via `dialectical-reasoning` | Problem framing is wrong; don't refine. |\n| README says X but code does Y | `docs-as-definition-of-done` | Contract violation, not a refinement target. |\n\nIf the right loop is not obvious, stop. Running the wrong loop is worse than no loop — it wastes budget and may *regress* the deliverable.\n\n## Anti-Patterns\n\n| Pattern | Why wrong | Do instead |\n|---|---|---|\n| Regenerate entire doc because \"the introduction felt off\" | Loses the good sections; burns full budget | List defects, revise targeted sections, preserve the rest |\n| Ask the agent \"make it better\" without specifics | No gradient, output is aesthetic drift | Build the structured gradient (defects + rejections + deltas) |\n| Run 10 refinement iterations \"for safety\" | Budget violation, diminishing returns, likely regression past iter 3 | Hard cap at 3, stop on plateau |\n| Accept iter-3 even if it regressed from iter-2 | Non-monotonic refinement is drift | Revert to the best iteration so far; hard-link it as final |\n| Mix \"fix the code\" and \"improve the doc\" in one refinement pass | Conflates two different axes | Separate: inner loop for code, refinement for doc |\n\n## How to Apply — checklist\n\n1. **Verify you're in refinement scope.** The deliverable exists and is usable. You have concrete defects. Re-running isn't cheaper.\n2. **Build the gradient.** Enumerate defects, collect rejections, compute eval deltas.\n3. **Set the budget.** Max iterations (default 3), budget halving, wall-time cap (2× original).\n4. **Inject the gradient into iteration 1's context.** Subsequent iterations use fresh critique.\n5. **Run.** After each iteration: measure loss, check stop conditions.\n6. **Terminate.** Hard-link the best iteration as final. If iter-k regressed from iter-(k-1), the winner is k-1.\n7. **Log.** Record each iteration's gradient and loss. This is your audit trail and your outer-loop data (see `method-evolution`).\n\n## Common Rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"Starting over is cleaner\" | You lose the prior work and gamble on random improvement. Refinement preserves what worked. |\n| \"Refinement is pedantic\" | Refinement is the difference between shipping B+ and shipping A. For user-facing artifacts that matters. |\n| \"The budget is tight, I'll just commit what I have\" | Fair — document the trade-off. Refinement is always optional, never mandatory. |\n| \"I can refine forever if I want\" | No. Budget halving + plateau detection exists because aesthetic polishing is unbounded. |\n| \"Use an LLM to auto-refine on any text\" | Only with the structured gradient; \"make it better\" is not a gradient. |\n\n## Real-World Cue\n\nIf you're about to ship a document \u002F diff \u002F design that you know is \"C+\", consider: is the defect list finite and named? If yes, one refinement pass almost always moves it to B+ at 50% additional cost. If no, refinement won't help — you need `dialectical-reasoning` to find the defects first, then refine.\n","# Iterative-Refinement\n\n## Overview\n\nMost agents, when told \"this is okay but can be better,\" do one of two wrong things:\n\n1. **Re-run the task from scratch.** Wastes budget, loses whatever was good in the first attempt, gambles on random variation.\n2. **Polish by gut feel.** No loss signal, no gradient, no stopping criterion. Converges to the agent's aesthetic prior, not to a better deliverable.\n\n**Core principle:** refinement is a *second* gradient-descent pass, on the **y-axis** (the deliverable itself), using a **specific gradient** derived from the previous output's defects. The inputs, the task, the code, the skills — all held fixed. Only the deliverable changes.\n\nThis is the skill-level equivalent of `awp refine` (AWP's normative refinement mode). See [`..\u002F..\u002Fdocs\u002Fldd\u002Fconvergence.md`](..\u002F..\u002Fdocs\u002Fldd\u002Fconvergence.md) §1 for the three-loop model.\n\n## When to Use\n\nInvoke when **all** of:\n\n- A deliverable (document, code module, design artifact, plan) is **complete** (not partial, not stuck)\n- The deliverable is **usable but imperfect** — passes the minimum bar, fails the bar you actually want\n- Re-running the task from scratch would **lose** specific good parts of the current output\n- You can **name** the defects concretely (missing sections, weak examples, ambiguous language, missed requirements, incomplete coverage)\n\nDo **not** use when:\n\n- The deliverable is broken (use `loop-driven-engineering` + `root-cause-by-layer` — that's an inner-loop problem, not refinement)\n- You don't know what's wrong with it (invoke `dialectical-reasoning` first to find the defects)\n- The right answer is a completely different approach (refinement preserves the approach; you want re-planning)\n- Budget is tight and a second pass is unaffordable (refinement is never free — document the trade-off)\n\n## The Refinement Gradient\n\nThe gradient is **derived, not imagined.** Build it from three concrete sources on the previous output:\n\n1. **Critique defects.** Enumerate the specific problems: missing content, weak arguments, wrong details, unclear structure. No hand-waving; each defect points to a location in the output.\n2. **Gate rejections.** If the deliverable went through any automated gates (tests, lint, schema, rubric), the rejections are direct gradient signal.\n3. **Evaluation deltas.** If the deliverable was scored (by a human, an eval harness, or a rubric), the delta from target score is a numeric component of the gradient.\n\nCompose into a structured prefix for the next iteration:\n\n```\nRefinement gradient:\n  Defects identified in the previous output:\n    - [defect 1 with location]\n    - [defect 2 with location]\n    - ...\n  Gate rejections:\n    - [rejection 1 with rule]\n    - ...\n  Evaluation deltas:\n    - Target: X. Actual: Y. Gap: Z.\nProduce a revised deliverable that addresses these and does not regress on what was already good.\n```\n\nInject this gradient into iteration 1's context **only**. Subsequent iterations build on the iteration-1 output with their own fresh critique, not the original.\n\n## Budget and Stopping\n\nRefinement runs **under a budget** — unlike code fix-loops, refinement is asymptotic by nature (every deliverable could be slightly better). The budget prevents infinite polish:\n\n| Budget dimension | Default |\n|---|---|\n| Maximum iterations | 3 (clamped to `[1, 10]`) |\n| Budget halving per iteration | Token and time budget halved on each iteration |\n| Wall-time cap | 2× the seed deliverable's original production time |\n| Stop conditions (any) | regression × 2, plateau × 2, wall-time exhausted, max iterations, empty gradient |\n\n**Empty gradient** = no concrete defects can be named. That is a stop signal, not an invitation to imagine defects. If nothing is wrong that you can name, the deliverable is done.\n\n**Regression** = iteration k's loss > iteration k-1's loss. Immediate revert to k-1 and stop.\n\n**Plateau** = |Δloss| \u003C noise threshold for 2 consecutive iterations. The gradient is exhausted.\n\n## Red Flags — STOP, this isn't refinement\n\n- \"I'll just regenerate from scratch\" → that's re-planning, not refinement; different skill\n- \"This could be slightly better\" → without named defects you're polishing, not refining\n- \"Let me run 10 refinement iterations\" → budget violation; at most 10, realistic is 2–3\n- \"The gradient is: 'make it better'\" → not a gradient; specific defects only\n- \"Iteration 2 is worse but iteration 3 might fix it\" → refinement is monotonic or stop; no wishful middle\n- Re-running the full task when you could preserve 80% of the previous output → you conflated refinement with re-planning\n\n## Distinguishing from the other loops\n\n| Situation | Right loop | Why |\n|---|---|---|\n| Code is buggy, test fails | Inner loop (`loop-driven-engineering`) | θ = code. Fix it. |\n| Code is fine, doc output is weak | **Refinement** | θ = the doc. Revise it. |\n| Same rubric violation across 5 projects | Outer loop (`method-evolution`) | θ = the skill. Evolve it. |\n| Agent produced a plan that's almost right | **Refinement** | θ = the plan. Sharpen it. |\n| Agent produced a plan for the wrong problem | Re-plan via `dialectical-reasoning` | Problem framing is wrong; don't refine. |\n| README says X but code does Y | `docs-as-definition-of-done` | Contract violation, not a refinement target. |\n\nIf the right loop is not obvious, stop. Running the wrong loop is worse than no loop — it wastes budget and may *regress* the deliverable.\n\n## Anti-Patterns\n\n| Pattern | Why wrong | Do instead |\n|---|---|---|\n| Regenerate entire doc because \"the introduction felt off\" | Loses the good sections; burns full budget | List defects, revise targeted sections, preserve the rest |\n| Ask the agent \"make it better\" without specifics | No gradient, output is aesthetic drift | Build the structured gradient (defects + rejections + deltas) |\n| Run 10 refinement iterations \"for safety\" | Budget violation, diminishing returns, likely regression past iter 3 | Hard cap at 3, stop on plateau |\n| Accept iter-3 even if it regressed from iter-2 | Non-monotonic refinement is drift | Revert to the best iteration so far; hard-link it as final |\n| Mix \"fix the code\" and \"improve the doc\" in one refinement pass | Conflates two different axes | Separate: inner loop for code, refinement for doc |\n\n## How to Apply — checklist\n\n1. **Verify you're in refinement scope.** The deliverable exists and is usable. You have concrete defects. Re-running isn't cheaper.\n2. **Build the gradient.** Enumerate defects, collect rejections, compute eval deltas.\n3. **Set the budget.** Max iterations (default 3), budget halving, wall-time cap (2× original).\n4. **Inject the gradient into iteration 1's context.** Subsequent iterations use fresh critique.\n5. **Run.** After each iteration: measure loss, check stop conditions.\n6. **Terminate.** Hard-link the best iteration as final. If iter-k regressed from iter-(k-1), the winner is k-1.\n7. **Log.** Record each iteration's gradient and loss. This is your audit trail and your outer-loop data (see `method-evolution`).\n\n## Common Rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"Starting over is cleaner\" | You lose the prior work and gamble on random improvement. Refinement preserves what worked. |\n| \"Refinement is pedantic\" | Refinement is the difference between shipping B+ and shipping A. For user-facing artifacts that matters. |\n| \"The budget is tight, I'll just commit what I have\" | Fair — document the trade-off. Refinement is always optional, never mandatory. |\n| \"I can refine forever if I want\" | No. Budget halving + plateau detection exists because aesthetic polishing is unbounded. |\n| \"Use an LLM to auto-refine on any text\" | Only with the structured gradient; \"make it better\" is not a gradient. |\n\n## Real-World Cue\n\nIf you're about to ship a document \u002F diff \u002F design that you know is \"C+\", consider: is the defect list finite and named? If yes, one refinement pass almost always moves it to B+ at 50% additional cost. If no, refinement won't help — you need `dialectical-reasoning` to find the defects first, then refine.\n",{"name":5,"description":7},"main","3f28cfd9b82326ff325e645ff041589c3220d813","corvin_operator\u002Fbundle\u002Fskills\u002Fldd\u002Fiterative-refinement",4,"https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS","https:\u002F\u002Fcorvin-labs.com, https:\u002F\u002Fwww.youtube.com\u002F@Corvin-Labs","https:\u002F\u002Fgithub.com\u002FCorvinLabs","2026-11-14 23:30:13",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add CorvinLabs\u002FCorvinOS --skill iterative-refinement",{"tool":37,"command":38},"bunx","bunx skills add CorvinLabs\u002FCorvinOS --skill iterative-refinement",{"tool":40,"command":41},"pnpm","pnpm dlx skills add CorvinLabs\u002FCorvinOS --skill iterative-refinement","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fbundle\u002Fskills\u002Fldd\u002Fiterative-refinement\u002FSKILL.md",true,[],[46,53,59,65,72,78],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M77VGAEV6EQA3C62F78EDHQ3","voice","Voice mode for Claude Code — automatically reads assistant replies aloud via TTS, with German\u002FEnglish auto-detection and optional summarization for long responses. Trigger when the user mentions voice, vorlesen, sprachausgabe, TTS, \"speak\", \"say it out loud\", or asks about \u002Fvoice-* commands.","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fvoice\u002Fskills\u002Fvoice\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M77VG6N69YBC0CR0TSMGXHTV","paper-generator-orchestrator","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fskills\u002Fpaper-generator-orchestrator\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M77VG3DTRSZ1C4N57KNFARD5","academic-paper-generation","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fskills\u002Facademic-paper-generation\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77VFXA58C38HG5K5J4Q67MF","forge","Forge schema-bound, sandboxed tools at runtime. Paired with the cowork `forge` persona for chat-driven use in the voice-skill bridge. Use when you would otherwise write the same Bash snippet ≥3× with different parameters, when you need precise numerical results over a dataset, or when the user wants reproducible\u002Fdeterministic output written to a file.","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fforge\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M77VFTJ8KS80R6PVPTBH4CWV","cowork","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fcowork\u002Fskills\u002Fcowork\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M77VFQTC6WR708YMVHAKQWWN","quality-layer-control","Toggle quality disciplines (ADR Gate, docs-as-definition-of-done, etc.) on or off globally","https:\u002F\u002Fgithub.com\u002FCorvinLabs\u002FCorvinOS\u002Fblob\u002Fmain\u002Fcorvin_operator\u002Fbundle\u002Fskills\u002Fquality-layer-control\u002FSKILL.md",[],[]]