[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718GRHX09C0WZ65ZKSH527F":3,"skill-same:01M718GRHX09C0WZ65ZKSH527F":145},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M718GRHX09C0WZ65ZKSH527F","single-agent-loop",null,"Move a multi-agent system (router, planner, subagents) toward one agent loop with skills and tools, one measured change at a time. Use when asked to audit subagents, decide which to fold, merge, keep or call as tools, fold a subagent into a skill, or check whether a fold held up.","anthropics\u002Fsingle-agent-loop-kit","anthropics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76263028?v=4","01M697XGDPXJAVQ8391V2BCYTE","Anthropic","01M718GNJEBM3FC3Y5KE87VQ2Q",551,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"loop","single agent loop","agent loop","single","router","check","agent system","subagent","keep","when","use","call","up","system","decide","time","move","Fold","which","as","2026-11-10 10:12:30",false,"---\nname: single-agent-loop\ndescription: Move a multi-agent system (router, planner, subagents) toward one agent loop with skills and tools, one measured change at a time. Use when asked to audit subagents, decide which to fold, merge, keep or call as tools, fold a subagent into a skill, or check whether a fold held up.\n---\n\n# Single agent loop\n\nThis skill takes a codebase where a router or orchestrator delegates to specialist\nsubagents and moves it, in stages, toward one agent loop that loads skills and tools on\ndemand. Every change is measured against the same eval before and after, and a subagent\nonly goes away when the numbers say the replacement holds.\n\nKeeping a subagent is a fine outcome. The goal is a system you have evidence for, not the\nsmallest possible number of agents.\n\n## The steps\n\nRead only the file for the step you are on.\n\n| Step | File | Done when |\n| --- | --- | --- |\n| 0. Audit | `steps\u002F00-audit.md` | The person has seen the inventory and agreed the verdicts |\n| 1. Baseline | `steps\u002F01-baseline.md` | The current system has a score the person trusts |\n| 2. Merge | `steps\u002F02-merge.md` | One pair is merged and compared |\n| 3. Fold | `steps\u002F03-fold.md` | One subagent is folded and compared |\n| 4. Keep as a tool | `steps\u002F04-as-tool.md` | One kept subagent is called as a tool and compared |\n| 5. Upkeep | `steps\u002F05-upkeep.md` | The prompt, skills and ownership rules are tidy |\n\nSteps 2 to 4 repeat, once per row of the plan.\n\n## How to run it\n\nStart at step 0, unless `single-loop\u002FPLAN.md` already exists in the repo. If it does, read\nit and pick up at the first unticked box in its status list, then the first unticked item\nin its worklist.\n\nFor each change in the plan:\n\n1. Make the one change on its own branch or commit. If the folder is not a git\n   repository, run `git init` and commit the starting state first, with the person's\n   okay. Commit `single-loop\u002F` with it, so the plan travels with the code. If the repo\n   ignores that folder, say so at the first check-in. Keep eval results and traces out of\n   git unless the team wants them shared.\n2. Run the eval as the next variant. Variants are numbered in the order changes are made,\n   not by their place in the worklist: the first change made is `v1`.\n3. Run `scripts\u002Fcompare.py` against the last variant that was kept.\n4. Check in (see below) with the comparison and whether you would keep, fix or revert, or\n   rerun when the result is unclear (see \"When a result is unclear\"). The person makes\n   that call.\n5. Tick the item in `single-loop\u002FPLAN.md` and fill in its section under \"Changes\" with\n   the numbers and the decision.\n\n## Check-ins\n\nThe person decides and you recommend. They know things the code does not: who owns an\nagent, which failures hurt, what is about to change. Stop at the same four points every\ntime:\n\n1. **After the audit**, before anything is built on the verdicts.\n2. **Before a paid run no earlier check-in covered**, with its size: how many\n   conversations, an estimate of the tokens, and what that estimate is based on. In\n   practice this is the baseline. After that, stops 3 and 4 name the next change together\n   with every eval run it needs and their estimates. A merge or an as-tool change needs\n   one run, the new variant. A fold that produces a skill needs two: the new variant, and\n   the with and without skill check on that domain's tasks. You can say that without\n   opening the next step's file. Anything a result leads to afterwards (more reps, a run\n   without a skill that turned out not to be needed) is a new spend with its own yes. A yes there covers building that change and those runs, once each. It does not\n   cover a rerun, or keeping the change. Do not stop a second time between building a\n   change and running the evals the person already agreed. Do write one line before the\n   run starts, without waiting for an answer: what you exercised with no model (unit\n   tests, an offline run) and what the paid run will be the first to exercise.\n3. **After the baseline**, before the first change.\n4. **After each change**, once it is compared, before the next one starts. A change is one\n   row of the worklist: one subagent folded, one pair merged, one subagent turned into a\n   tool. That is one check-in per change, not one per edit inside it.\n\nStep 1 can add questions before the first paid run, when it has to build an eval: what it\nneeds to build one, and a sign-off on the tasks it wrote. Those are stops too. End your\nturn and wait for the answer. They do not use the layout below, since they ask for\nmaterial, not a decision.\n\nAt each one of the four, end your turn with a check-in in this layout. The question is\nthe last line: nothing comes before the heading or after the question. Keep it to about\nfifteen lines with at most one small table. The check-in after a change has more to carry\nand may run to about twenty-five. The detail lives in `single-loop\u002FPLAN.md`.\n\n```text\n## Check-in: \u003Cwhich stop, for example \"after the baseline\">\n\n**Found**\n- \u003Cfirst, a direct answer to anything the person asked since the last check-in>\n- \u003Ctwo to four lines: the numbers or verdicts, and anything that surprised you>\n- \u003Canything you did that the plan did not ask for: a file you edited, where the code is>\n\n**Recommend**\n- \u003Cone next action, and the reason in a sentence. If it leads to a paid run, its size and token estimate>\n- \u003Cthe other choice worth knowing about, if there is one, and what it costs>\n\n**Need from you**\n- \u003Cone question with its answers spelled out, for example \"Fold returns next? yes \u002F merge orders and shipping first\">\n```\n\nOne question means one decision, answerable in a word or two. After a change it is\n\"Keep it and go on to \u003Cnext item>? keep and go on \u002F keep and stop \u002F fix \u002F revert\". When\nyou are recommending more reps or another paid run first, ask that instead, with its size:\n\"Rerun t01 and t10 first, 16 conversations? rerun \u002F keep \u002F revert\". A second open choice\ngoes under Recommend as the other option. Questions only an\nowner can answer do not fit here: say how many there are, that they are in `PLAN.md`\nunder \"Open questions for owners\", and ask only the one that blocks the next step, if any.\n\nRules for check-ins:\n\n- A stop means stop. Do not start the next piece of work in the same turn, not even\n  reading for it.\n- One answer covers one stop. A yes to the spend is not a yes to the verdicts.\n- A request that lists several steps at once does not remove the stops between them. Only\n  the person saying so in plain words does. If they do, still write each check-in to\n  `PLAN.md` as you go.\n- With a long worklist, the person can ask you to keep going while results are clean. Then\n  a change that holds, with no task worse in any rep and no route changed on a task the\n  change should not touch, gets its check-in written to `PLAN.md` and you move on. In this\n  mode that counts as the person's keep. Stop and check in as usual the moment a task gets\n  worse, a route moves on a task the change should not touch, a check is skipped, or a run\n  errors. Never offer this before the\n  first change has had a full check-in.\n- If the person's answer to a check-in also asks you something, answer it in a line\n  before you carry on. Do not hold it for the next check-in.\n- If the run surprised you (a task got worse, a number moved the wrong way, a check was\n  skipped), say it under Found. Do not leave it for a summary at the end.\n- If nobody is there to answer, stop at the check-in and leave it as the last thing you\n  wrote.\n\n## When a result is unclear\n\n`compare.py` can say a change scores worse and, in the same output, that the task changed\nin a single rep and may be noise. If that task is off the changed path and its trace shows\nno cause, neither keep, fix nor revert is a recommendation you can stand behind. Recommend\nmore reps instead, at the check-in, as a paid run with its size and estimate:\n\n1. Pick the tasks: each one whose score changed in a single rep, and each one the change\n   should not touch whose route changed. Four more reps of each is a reasonable start.\n   `estimate.py \u003Cflow dir> \u003Cvariant> --only \u003Cids> --reps 4` gives the size of each side.\n2. Run them on both sides, the last kept variant and the new one, under new variant names\n   that pair up: `baseline-rerun-v1` and `v1-rerun`. Do not add more reps of a task to a\n   variant that has already been compared. Filling in a task that only has a harness\n   error is different, and goes in the variant it belongs to.\n3. The old side has to run on the old code. Check out the commit the last kept variant was\n   scored on in a second working copy (`git worktree add`), run the eval there, and point\n   its output at the same results folder. Record the commit each rerun used. Remove the\n   second copy afterwards.\n4. Compare the two rerun variants, then report each task over all of its reps on each\n   side, the first run included. Check in again with keep, fix or revert. More reps make a\n   small effect less likely, not impossible, so say how many reps the answer rests on.\n\n## What holds in every step\n\n- **One change per eval run.** If two things change at once, nobody can say which one\n  moved the score.\n- **No change without a task on its chains.** Before a merge, fold or tool conversion,\n  the eval must have a task for every production chain that includes the agents being\n  changed, and that task must grade the end of the chain. `scripts\u002Fchain_coverage.py`\n  checks the first half. You check the second by reading the task. If you ran it for these\n  agents at the baseline and neither the eval nor the traces have changed, cite that run.\n  Step 1 also lists the other breaks to expect (a lost rule, a shortcut, a wrong pick, an\n  unwanted write) and which tasks would notice each. A chain with no task has no way\n  round it. A gap in the break map is the person's call: recommend adding the task first,\n  and if they go ahead without it, write the gap in `change.md` and say at the check-in\n  that the result says nothing about that break.\n- **Score the system you would keep, and keep the old code until the person says keep.**\n  In the variant you run, no model is offered the old path: it is out of every prompt,\n  tool list and list of targets that names it, the main agent's and any other subagent's.\n  The old code and prompt files stay in the repo, unused, so a revert is one step. Once\n  the person says keep, delete them. Deleting then must change nothing a model sees. If\n  it would, it is a change of its own, with its own variant.\n- **Any edit to the main agent's prompt or tool list reaches every task.** Each sentence\n  and each tool definition is paid for on every call, and it can change how unrelated\n  tasks are routed. Keep such edits as small as the change allows, and say in `change.md`\n  exactly what you edited there.\n- **Read routes, not only scores.** After every change, look at \"Paths that changed\" in\n  the `compare.py` output. Pass `--exclude` for the main agent and for the agent the\n  change removes, whose route is meant to move, so what is left is what you did not\n  intend. Open the traces of those tasks. A task can keep passing while it goes through\n  an extra agent. Report a route that moved with what it costs in model calls and tokens,\n  and whether the unchanged system does the same from rep to rep. If the section is\n  missing because the rows do not record which agents ran, say that routes were not\n  checked.\n- **Eval runs spend money.** Before a paid run, say how big it is (tasks times reps) and\n  give a token estimate from `scripts\u002Festimate.py`, which works from a run that was already\n  measured. Say what the estimate rests on and how far to trust it. After the run, show the\n  estimate next to what was used. Do not turn tokens into money unless the person gives you\n  their prices, and say that the estimate leaves out your own usage while reading and\n  editing, which this skill cannot measure.\n- **Use what the team already has.** Their evals, their runner, their idioms. Do not bring\n  in a framework.\n- **Every verdict cites evidence**: a file and line, or a number from the traces. Say when\n  something is inferred.\n- **Leave alone what the team does not own.** An agent run by another company or behind\n  another team's endpoint gets flagged, not edited.\n\n## Scripts and templates\n\nEverything here sits in this skill's folder, next to this file. The scripts are plain\nPython 3 with no dependencies. Run them with `--help` for the details.\n\n- `scripts\u002Fcoupling_map.py traces.jsonl` shows which subagents carry the traffic and which\n  ones always run together.\n- `scripts\u002Fcompare.py \u003Cflow dir> \u003Cbefore> \u003Cafter>` puts two eval runs side by side on task\n  completion, latency, model calls, tokens and cost, lists the tasks whose writes or\n  routes changed, and says whether the change holds.\n  The flow dir is the folder with one subfolder per variant, `.claude\u002Fhillclimb\u002F\u003Cname>\u002F`\n  unless the team keeps results somewhere else.\n- `scripts\u002Fchain_coverage.py \u003Ctraces> \u003Cflow dir> baseline` lists every set of agents that\n  run together in production and the eval tasks that cover it, and fails when a chain has\n  none.\n- `scripts\u002Festimate.py \u003Cflow dir> \u003Cmeasured variant> --reps N` estimates the tokens the\n  next run will use from one already measured, and with `--actual \u003Cvariant>` shows the\n  estimate next to what a finished run used.\n\n| Template | Used in |\n| --- | --- |\n| `templates\u002Finventory.tsv`, `templates\u002FPLAN.md` | Step 0 |\n| `templates\u002Fskill-template.md`, `templates\u002Fskill_loader.py` | Step 3 |\n| `templates\u002Ftool_spec.md` | Steps 3 and 4 |\n| `templates\u002Fsubagent_response.schema.json` | Step 4 |\n| `templates\u002FCONTRIBUTING-skills.md` | Step 5 |\n\n## Commands this leans on\n\nThe steps hand off to these where they do the job better than anything written here:\n\n- `\u002Fclaude-api build-eval` builds or adapts an eval set.\n- `\u002Fclaude-api hillclimb` tunes a prompt, skill or tool description against an eval.\n- `\u002Fclaude-api prompt-audit` finds instructions written for older models.\n- `\u002Fclaude-api cost-optimize` profiles spend once the design has settled.\n- `\u002Fskill-creator` writes and audits skills. It is a plugin:\n  `\u002Fplugin install skill-creator@claude-plugins-official`.\n- `\u002Fskill-doctor` shows what each skill costs and how often it is used.\n\nIf one of them is not available in the session, say so and do that part by hand from the\nstep file.\n","# Single agent loop\n\nThis skill takes a codebase where a router or orchestrator delegates to specialist\nsubagents and moves it, in stages, toward one agent loop that loads skills and tools on\ndemand. Every change is measured against the same eval before and after, and a subagent\nonly goes away when the numbers say the replacement holds.\n\nKeeping a subagent is a fine outcome. The goal is a system you have evidence for, not the\nsmallest possible number of agents.\n\n## The steps\n\nRead only the file for the step you are on.\n\n| Step | File | Done when |\n| --- | --- | --- |\n| 0. Audit | `steps\u002F00-audit.md` | The person has seen the inventory and agreed the verdicts |\n| 1. Baseline | `steps\u002F01-baseline.md` | The current system has a score the person trusts |\n| 2. Merge | `steps\u002F02-merge.md` | One pair is merged and compared |\n| 3. Fold | `steps\u002F03-fold.md` | One subagent is folded and compared |\n| 4. Keep as a tool | `steps\u002F04-as-tool.md` | One kept subagent is called as a tool and compared |\n| 5. Upkeep | `steps\u002F05-upkeep.md` | The prompt, skills and ownership rules are tidy |\n\nSteps 2 to 4 repeat, once per row of the plan.\n\n## How to run it\n\nStart at step 0, unless `single-loop\u002FPLAN.md` already exists in the repo. If it does, read\nit and pick up at the first unticked box in its status list, then the first unticked item\nin its worklist.\n\nFor each change in the plan:\n\n1. Make the one change on its own branch or commit. If the folder is not a git\n   repository, run `git init` and commit the starting state first, with the person's\n   okay. Commit `single-loop\u002F` with it, so the plan travels with the code. If the repo\n   ignores that folder, say so at the first check-in. Keep eval results and traces out of\n   git unless the team wants them shared.\n2. Run the eval as the next variant. Variants are numbered in the order changes are made,\n   not by their place in the worklist: the first change made is `v1`.\n3. Run `scripts\u002Fcompare.py` against the last variant that was kept.\n4. Check in (see below) with the comparison and whether you would keep, fix or revert, or\n   rerun when the result is unclear (see \"When a result is unclear\"). The person makes\n   that call.\n5. Tick the item in `single-loop\u002FPLAN.md` and fill in its section under \"Changes\" with\n   the numbers and the decision.\n\n## Check-ins\n\nThe person decides and you recommend. They know things the code does not: who owns an\nagent, which failures hurt, what is about to change. Stop at the same four points every\ntime:\n\n1. **After the audit**, before anything is built on the verdicts.\n2. **Before a paid run no earlier check-in covered**, with its size: how many\n   conversations, an estimate of the tokens, and what that estimate is based on. In\n   practice this is the baseline. After that, stops 3 and 4 name the next change together\n   with every eval run it needs and their estimates. A merge or an as-tool change needs\n   one run, the new variant. A fold that produces a skill needs two: the new variant, and\n   the with and without skill check on that domain's tasks. You can say that without\n   opening the next step's file. Anything a result leads to afterwards (more reps, a run\n   without a skill that turned out not to be needed) is a new spend with its own yes. A yes there covers building that change and those runs, once each. It does not\n   cover a rerun, or keeping the change. Do not stop a second time between building a\n   change and running the evals the person already agreed. Do write one line before the\n   run starts, without waiting for an answer: what you exercised with no model (unit\n   tests, an offline run) and what the paid run will be the first to exercise.\n3. **After the baseline**, before the first change.\n4. **After each change**, once it is compared, before the next one starts. A change is one\n   row of the worklist: one subagent folded, one pair merged, one subagent turned into a\n   tool. That is one check-in per change, not one per edit inside it.\n\nStep 1 can add questions before the first paid run, when it has to build an eval: what it\nneeds to build one, and a sign-off on the tasks it wrote. Those are stops too. End your\nturn and wait for the answer. They do not use the layout below, since they ask for\nmaterial, not a decision.\n\nAt each one of the four, end your turn with a check-in in this layout. The question is\nthe last line: nothing comes before the heading or after the question. Keep it to about\nfifteen lines with at most one small table. The check-in after a change has more to carry\nand may run to about twenty-five. The detail lives in `single-loop\u002FPLAN.md`.\n\n```text\n## Check-in: \u003Cwhich stop, for example \"after the baseline\">\n\n**Found**\n- \u003Cfirst, a direct answer to anything the person asked since the last check-in>\n- \u003Ctwo to four lines: the numbers or verdicts, and anything that surprised you>\n- \u003Canything you did that the plan did not ask for: a file you edited, where the code is>\n\n**Recommend**\n- \u003Cone next action, and the reason in a sentence. If it leads to a paid run, its size and token estimate>\n- \u003Cthe other choice worth knowing about, if there is one, and what it costs>\n\n**Need from you**\n- \u003Cone question with its answers spelled out, for example \"Fold returns next? yes \u002F merge orders and shipping first\">\n```\n\nOne question means one decision, answerable in a word or two. After a change it is\n\"Keep it and go on to \u003Cnext item>? keep and go on \u002F keep and stop \u002F fix \u002F revert\". When\nyou are recommending more reps or another paid run first, ask that instead, with its size:\n\"Rerun t01 and t10 first, 16 conversations? rerun \u002F keep \u002F revert\". A second open choice\ngoes under Recommend as the other option. Questions only an\nowner can answer do not fit here: say how many there are, that they are in `PLAN.md`\nunder \"Open questions for owners\", and ask only the one that blocks the next step, if any.\n\nRules for check-ins:\n\n- A stop means stop. Do not start the next piece of work in the same turn, not even\n  reading for it.\n- One answer covers one stop. A yes to the spend is not a yes to the verdicts.\n- A request that lists several steps at once does not remove the stops between them. Only\n  the person saying so in plain words does. If they do, still write each check-in to\n  `PLAN.md` as you go.\n- With a long worklist, the person can ask you to keep going while results are clean. Then\n  a change that holds, with no task worse in any rep and no route changed on a task the\n  change should not touch, gets its check-in written to `PLAN.md` and you move on. In this\n  mode that counts as the person's keep. Stop and check in as usual the moment a task gets\n  worse, a route moves on a task the change should not touch, a check is skipped, or a run\n  errors. Never offer this before the\n  first change has had a full check-in.\n- If the person's answer to a check-in also asks you something, answer it in a line\n  before you carry on. Do not hold it for the next check-in.\n- If the run surprised you (a task got worse, a number moved the wrong way, a check was\n  skipped), say it under Found. Do not leave it for a summary at the end.\n- If nobody is there to answer, stop at the check-in and leave it as the last thing you\n  wrote.\n\n## When a result is unclear\n\n`compare.py` can say a change scores worse and, in the same output, that the task changed\nin a single rep and may be noise. If that task is off the changed path and its trace shows\nno cause, neither keep, fix nor revert is a recommendation you can stand behind. Recommend\nmore reps instead, at the check-in, as a paid run with its size and estimate:\n\n1. Pick the tasks: each one whose score changed in a single rep, and each one the change\n   should not touch whose route changed. Four more reps of each is a reasonable start.\n   `estimate.py \u003Cflow dir> \u003Cvariant> --only \u003Cids> --reps 4` gives the size of each side.\n2. Run them on both sides, the last kept variant and the new one, under new variant names\n   that pair up: `baseline-rerun-v1` and `v1-rerun`. Do not add more reps of a task to a\n   variant that has already been compared. Filling in a task that only has a harness\n   error is different, and goes in the variant it belongs to.\n3. The old side has to run on the old code. Check out the commit the last kept variant was\n   scored on in a second working copy (`git worktree add`), run the eval there, and point\n   its output at the same results folder. Record the commit each rerun used. Remove the\n   second copy afterwards.\n4. Compare the two rerun variants, then report each task over all of its reps on each\n   side, the first run included. Check in again with keep, fix or revert. More reps make a\n   small effect less likely, not impossible, so say how many reps the answer rests on.\n\n## What holds in every step\n\n- **One change per eval run.** If two things change at once, nobody can say which one\n  moved the score.\n- **No change without a task on its chains.** Before a merge, fold or tool conversion,\n  the eval must have a task for every production chain that includes the agents being\n  changed, and that task must grade the end of the chain. `scripts\u002Fchain_coverage.py`\n  checks the first half. You check the second by reading the task. If you ran it for these\n  agents at the baseline and neither the eval nor the traces have changed, cite that run.\n  Step 1 also lists the other breaks to expect (a lost rule, a shortcut, a wrong pick, an\n  unwanted write) and which tasks would notice each. A chain with no task has no way\n  round it. A gap in the break map is the person's call: recommend adding the task first,\n  and if they go ahead without it, write the gap in `change.md` and say at the check-in\n  that the result says nothing about that break.\n- **Score the system you would keep, and keep the old code until the person says keep.**\n  In the variant you run, no model is offered the old path: it is out of every prompt,\n  tool list and list of targets that names it, the main agent's and any other subagent's.\n  The old code and prompt files stay in the repo, unused, so a revert is one step. Once\n  the person says keep, delete them. Deleting then must change nothing a model sees. If\n  it would, it is a change of its own, with its own variant.\n- **Any edit to the main agent's prompt or tool list reaches every task.** Each sentence\n  and each tool definition is paid for on every call, and it can change how unrelated\n  tasks are routed. Keep such edits as small as the change allows, and say in `change.md`\n  exactly what you edited there.\n- **Read routes, not only scores.** After every change, look at \"Paths that changed\" in\n  the `compare.py` output. Pass `--exclude` for the main agent and for the agent the\n  change removes, whose route is meant to move, so what is left is what you did not\n  intend. Open the traces of those tasks. A task can keep passing while it goes through\n  an extra agent. Report a route that moved with what it costs in model calls and tokens,\n  and whether the unchanged system does the same from rep to rep. If the section is\n  missing because the rows do not record which agents ran, say that routes were not\n  checked.\n- **Eval runs spend money.** Before a paid run, say how big it is (tasks times reps) and\n  give a token estimate from `scripts\u002Festimate.py`, which works from a run that was already\n  measured. Say what the estimate rests on and how far to trust it. After the run, show the\n  estimate next to what was used. Do not turn tokens into money unless the person gives you\n  their prices, and say that the estimate leaves out your own usage while reading and\n  editing, which this skill cannot measure.\n- **Use what the team already has.** Their evals, their runner, their idioms. Do not bring\n  in a framework.\n- **Every verdict cites evidence**: a file and line, or a number from the traces. Say when\n  something is inferred.\n- **Leave alone what the team does not own.** An agent run by another company or behind\n  another team's endpoint gets flagged, not edited.\n\n## Scripts and templates\n\nEverything here sits in this skill's folder, next to this file. The scripts are plain\nPython 3 with no dependencies. Run them with `--help` for the details.\n\n- `scripts\u002Fcoupling_map.py traces.jsonl` shows which subagents carry the traffic and which\n  ones always run together.\n- `scripts\u002Fcompare.py \u003Cflow dir> \u003Cbefore> \u003Cafter>` puts two eval runs side by side on task\n  completion, latency, model calls, tokens and cost, lists the tasks whose writes or\n  routes changed, and says whether the change holds.\n  The flow dir is the folder with one subfolder per variant, `.claude\u002Fhillclimb\u002F\u003Cname>\u002F`\n  unless the team keeps results somewhere else.\n- `scripts\u002Fchain_coverage.py \u003Ctraces> \u003Cflow dir> baseline` lists every set of agents that\n  run together in production and the eval tasks that cover it, and fails when a chain has\n  none.\n- `scripts\u002Festimate.py \u003Cflow dir> \u003Cmeasured variant> --reps N` estimates the tokens the\n  next run will use from one already measured, and with `--actual \u003Cvariant>` shows the\n  estimate next to what a finished run used.\n\n| Template | Used in |\n| --- | --- |\n| `templates\u002Finventory.tsv`, `templates\u002FPLAN.md` | Step 0 |\n| `templates\u002Fskill-template.md`, `templates\u002Fskill_loader.py` | Step 3 |\n| `templates\u002Ftool_spec.md` | Steps 3 and 4 |\n| `templates\u002Fsubagent_response.schema.json` | Step 4 |\n| `templates\u002FCONTRIBUTING-skills.md` | Step 5 |\n\n## Commands this leans on\n\nThe steps hand off to these where they do the job better than anything written here:\n\n- `\u002Fclaude-api build-eval` builds or adapts an eval set.\n- `\u002Fclaude-api hillclimb` tunes a prompt, skill or tool description against an eval.\n- `\u002Fclaude-api prompt-audit` finds instructions written for older models.\n- `\u002Fclaude-api cost-optimize` profiles spend once the design has settled.\n- `\u002Fskill-creator` writes and audits skills. It is a plugin:\n  `\u002Fplugin install skill-creator@claude-plugins-official`.\n- `\u002Fskill-doctor` shows what each skill costs and how often it is used.\n\nIf one of them is not available in the session, say so and do that part by hand from the\nstep file.\n",{"name":5,"description":7},"release","c43796287b83bec847db923f07131d1cc8de750d","skill",49,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit","https:\u002F\u002Fgithub.com\u002Fanthropics","https:\u002F\u002Fanthropic.com","2026-10-21 21:14:57",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add anthropics\u002Fsingle-agent-loop-kit --skill single-agent-loop",{"tool":63,"command":64},"bunx","bunx skills add anthropics\u002Fsingle-agent-loop-kit --skill single-agent-loop",{"tool":66,"command":67},"pnpm","pnpm dlx skills add anthropics\u002Fsingle-agent-loop-kit --skill single-agent-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002FSKILL.md",true,[71,77,81,85,89,95,99,103,107,111,115,119,125,129,133,137,141],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fchain_coverage.py","SCRIPT","脚本",7047,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fscripts\u002Fchain_coverage.py",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fcompare.py",18641,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fscripts\u002Fcompare.py",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fcoupling_map.py",9576,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fscripts\u002Fcoupling_map.py",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Festimate.py",8112,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fscripts\u002Festimate.py",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"steps\u002F00-audit.md","REFERENCE","参考文档",8298,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F00-audit.md",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"steps\u002F01-baseline.md",13616,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F01-baseline.md",{"path":100,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":101,"sourceHtmlUrl":102},"steps\u002F02-merge.md",4824,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F02-merge.md",{"path":104,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":105,"sourceHtmlUrl":106},"steps\u002F03-fold.md",9238,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F03-fold.md",{"path":108,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":109,"sourceHtmlUrl":110},"steps\u002F04-as-tool.md",8255,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F04-as-tool.md",{"path":112,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":113,"sourceHtmlUrl":114},"steps\u002F05-upkeep.md",2479,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Fsteps\u002F05-upkeep.md",{"path":116,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":117,"sourceHtmlUrl":118},"templates\u002FCONTRIBUTING-skills.md",2227,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002FCONTRIBUTING-skills.md",{"path":120,"resourceType":121,"resourceTypeDesc":122,"sizeBytes":123,"sourceHtmlUrl":124},"templates\u002Finventory.tsv","OTHER","其他",639,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002Finventory.tsv",{"path":126,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":127,"sourceHtmlUrl":128},"templates\u002FPLAN.md",2660,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002FPLAN.md",{"path":130,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":131,"sourceHtmlUrl":132},"templates\u002Fskill_loader.py",2844,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002Fskill_loader.py",{"path":134,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":135,"sourceHtmlUrl":136},"templates\u002Fskill-template.md",976,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002Fskill-template.md",{"path":138,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":139,"sourceHtmlUrl":140},"templates\u002Fsubagent_response.schema.json",1155,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002Fsubagent_response.schema.json",{"path":142,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":143,"sourceHtmlUrl":144},"templates\u002Ftool_spec.md",909,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fskill\u002Ftemplates\u002Ftool_spec.md",[146],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":44},"01M718GQ4R5PJSS68E3ZY1S0YD","returns","Return policy and how to start a return. Load when a customer wants to return or send back an item, or asks whether they can.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fsingle-agent-loop-kit\u002Fblob\u002Frelease\u002Fexamples\u002Fsupport-desk\u002Fsingle_loop\u002Fskills\u002Freturns\u002FSKILL.md",[],[148,153,154,155,156,157,158,33,159,160,161,162],"back","how to","start","return policy","load","customer","how","policy","send","can"]