[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MDYC51X362QEH046XG5HM":3,"skill-same:01M75MDYC51X362QEH046XG5HM":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},"01M75MDYC51X362QEH046XG5HM","adaptive-loop-budgeting",null,"Use when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision.","selamy-labs\u002Fagent-skills","selamy-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287832944?v=4","01M75MDKJ0CKAM94KZ7TWQJM5Q","01M75MDKJNP3TATHAW1MX1FWM6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-loop-budgeting\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: adaptive-loop-budgeting\ndescription: Use when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision.\n---\n\n# Adaptive Loop Budgeting\n\nUse this when a loop could keep consuming time, tokens, money, tool calls, or\nrisk without a natural stopping point. The goal is to spend effort where it\nreduces uncertainty, stop when confidence is high enough, and escalate when the\nnext iteration would be expensive or unsafe.\n\nThis skill applies to coding loops, research loops, product feedback loops,\nself-improving experiments, debugging sessions, and long-running verification.\n\n## Budget Contract\n\nBefore starting or continuing the loop, name:\n\n- **Objective:** what the loop is trying to improve, prove, or decide.\n- **Budget:** allowed attempts, time, cost, tool calls, external requests, or\n  verification depth.\n- **Confidence target:** what evidence is enough for this risk level.\n- **Risk tier:** low, medium, or high based on reversibility, user impact,\n  money, data sensitivity, and production exposure.\n- **Escalation trigger:** the condition that requires a human decision or a\n  different plan.\n\nIf the task already has an explicit user budget, honor it. If no budget exists,\nchoose the smallest budget that can produce useful evidence and state it before\nlooping.\n\n## Cheap-To-Expensive Ladder\n\nRun the cheapest check that can reduce the current uncertainty:\n\n| Uncertainty | Start with | Escalate to |\n| --- | --- | --- |\n| Is the task understood? | Restate goal and acceptance criteria | Ask for a decision |\n| Is the code shape plausible? | Static read, type check, unit test | Integration or browser check |\n| Is the user path working? | Local browser\u002FAPI check | Target-environment verification |\n| Is feedback actionable? | Cluster and confidence score | Experiment, metric, or user research |\n| Is a fix durable? | Regression test or fixture | Monitor, alert, or policy gate |\n| Is a claim real? | Direct artifact check | Independent system-of-record check |\n\nDo not jump to expensive verification because it feels thorough. Escalate when\nthe cheaper layer cannot prove the claim or when the risk tier requires it.\n\n## Loop Decision\n\nAt each iteration boundary, choose one:\n\n- **Continue:** the latest evidence changed the hypothesis, the budget remains\n  healthy, and the next step is likely to reduce uncertainty.\n- **Stop succeeded:** the confidence target is met with evidence at the right\n  layer.\n- **Stop partial:** the loop produced useful work, but remaining uncertainty is\n  explicit and bounded.\n- **Yield:** progress is waiting on slow external state; checkpoint and switch\n  work using [[yield-on-wait]].\n- **Escalate:** the next step crosses budget, authority, risk, or decision\n  boundaries.\n\nContinuing requires a changed hypothesis. Repeating the same action because the\nlast result was inconvenient is not iteration.\n\n## Adaptive Signals\n\nTighten or stop the loop when:\n\n- the same failure repeats after distinct hypotheses;\n- each iteration changes less than the one before;\n- verification cost is rising faster than confidence;\n- the diff, plan, or artifact is growing beyond the original objective;\n- tool output is noisy enough that more calls would not clarify it; or\n- the next action has irreversible or high-impact consequences.\n\nExpand the budget only when:\n\n- the loop is still reducing a named uncertainty;\n- the remaining risk justifies the extra cost;\n- the next step has a clear expected signal;\n- no cheaper check can answer the question; and\n- the user or governing policy permits the expansion.\n\n## Confidence Targets\n\nMatch confidence to risk:\n\n- **Low risk:** relevant local check, clear reasoning, and no known conflicting\n  signal may be enough.\n- **Medium risk:** automated checks plus direct artifact verification.\n- **High risk:** independent verification, source-of-record readback, rollback\n  plan, and human decision before irreversible action.\n\nUse [[process-aware-done]] for completion claims and [[verify-real-artifact]]\nwhen the result matters outside the local checkout.\n\n## Model Escalation Ladder\n\nWhen loops can run on models of different cost, spend most attempts on the\ncheapest model that passes the mechanical checks:\n\n- Order the models from cheapest to strongest. Choose the rung from real\n  attempts: `start rung + floor(real attempts \u002F N)`, with a small fixed `N`\n  such as four.\n- A run that ends unfinished starts the next run one rung higher, so a hard\n  task does not repeat its full climb.\n- Provider rate, quota, or credit limits are waits, not attempts. After a\n  bounded wait, send that iteration only to a pre-approved provider pool using\n  its already-authorized credentials instead of escalating the rung. If none\n  is available, wait or report blocked; do not expand provider or credential scope.\n- Reserve the strongest models for independent review and the top rung.\n- Record the rung and cost per change so repeated escalation shows up as a\n  signal about the task, the directive, or the checks.\n\n## Output Shape\n\n```text\nObjective: \u003Cwhat the loop is optimizing or proving>\nBudget: \u003Cattempts\u002Ftime\u002Fcost\u002Ftool calls\u002Frisk limit>\nEvidence so far: \u003Cstrongest signal>\nDecision: \u003Ccontinue, succeeded, partial, yield, or escalate>\nReason: \u003Cwhy this is the right boundary decision>\nNext step: \u003Conly if continuing or escalating>\n```\n\n## Anti-Patterns\n\n- Looping because no one chose a stopping condition.\n- Spending expensive checks on low-risk uncertainty.\n- Stopping because of fatigue while claiming confidence.\n- Expanding scope instead of escalating for a product decision.\n- Ignoring repeated failures because each one looks slightly different.\n- Reporting \"done\" when the budget ended but the evidence did not close the\n  claim.\n","# Adaptive Loop Budgeting\n\nUse this when a loop could keep consuming time, tokens, money, tool calls, or\nrisk without a natural stopping point. The goal is to spend effort where it\nreduces uncertainty, stop when confidence is high enough, and escalate when the\nnext iteration would be expensive or unsafe.\n\nThis skill applies to coding loops, research loops, product feedback loops,\nself-improving experiments, debugging sessions, and long-running verification.\n\n## Budget Contract\n\nBefore starting or continuing the loop, name:\n\n- **Objective:** what the loop is trying to improve, prove, or decide.\n- **Budget:** allowed attempts, time, cost, tool calls, external requests, or\n  verification depth.\n- **Confidence target:** what evidence is enough for this risk level.\n- **Risk tier:** low, medium, or high based on reversibility, user impact,\n  money, data sensitivity, and production exposure.\n- **Escalation trigger:** the condition that requires a human decision or a\n  different plan.\n\nIf the task already has an explicit user budget, honor it. If no budget exists,\nchoose the smallest budget that can produce useful evidence and state it before\nlooping.\n\n## Cheap-To-Expensive Ladder\n\nRun the cheapest check that can reduce the current uncertainty:\n\n| Uncertainty | Start with | Escalate to |\n| --- | --- | --- |\n| Is the task understood? | Restate goal and acceptance criteria | Ask for a decision |\n| Is the code shape plausible? | Static read, type check, unit test | Integration or browser check |\n| Is the user path working? | Local browser\u002FAPI check | Target-environment verification |\n| Is feedback actionable? | Cluster and confidence score | Experiment, metric, or user research |\n| Is a fix durable? | Regression test or fixture | Monitor, alert, or policy gate |\n| Is a claim real? | Direct artifact check | Independent system-of-record check |\n\nDo not jump to expensive verification because it feels thorough. Escalate when\nthe cheaper layer cannot prove the claim or when the risk tier requires it.\n\n## Loop Decision\n\nAt each iteration boundary, choose one:\n\n- **Continue:** the latest evidence changed the hypothesis, the budget remains\n  healthy, and the next step is likely to reduce uncertainty.\n- **Stop succeeded:** the confidence target is met with evidence at the right\n  layer.\n- **Stop partial:** the loop produced useful work, but remaining uncertainty is\n  explicit and bounded.\n- **Yield:** progress is waiting on slow external state; checkpoint and switch\n  work using [[yield-on-wait]].\n- **Escalate:** the next step crosses budget, authority, risk, or decision\n  boundaries.\n\nContinuing requires a changed hypothesis. Repeating the same action because the\nlast result was inconvenient is not iteration.\n\n## Adaptive Signals\n\nTighten or stop the loop when:\n\n- the same failure repeats after distinct hypotheses;\n- each iteration changes less than the one before;\n- verification cost is rising faster than confidence;\n- the diff, plan, or artifact is growing beyond the original objective;\n- tool output is noisy enough that more calls would not clarify it; or\n- the next action has irreversible or high-impact consequences.\n\nExpand the budget only when:\n\n- the loop is still reducing a named uncertainty;\n- the remaining risk justifies the extra cost;\n- the next step has a clear expected signal;\n- no cheaper check can answer the question; and\n- the user or governing policy permits the expansion.\n\n## Confidence Targets\n\nMatch confidence to risk:\n\n- **Low risk:** relevant local check, clear reasoning, and no known conflicting\n  signal may be enough.\n- **Medium risk:** automated checks plus direct artifact verification.\n- **High risk:** independent verification, source-of-record readback, rollback\n  plan, and human decision before irreversible action.\n\nUse [[process-aware-done]] for completion claims and [[verify-real-artifact]]\nwhen the result matters outside the local checkout.\n\n## Model Escalation Ladder\n\nWhen loops can run on models of different cost, spend most attempts on the\ncheapest model that passes the mechanical checks:\n\n- Order the models from cheapest to strongest. Choose the rung from real\n  attempts: `start rung + floor(real attempts \u002F N)`, with a small fixed `N`\n  such as four.\n- A run that ends unfinished starts the next run one rung higher, so a hard\n  task does not repeat its full climb.\n- Provider rate, quota, or credit limits are waits, not attempts. After a\n  bounded wait, send that iteration only to a pre-approved provider pool using\n  its already-authorized credentials instead of escalating the rung. If none\n  is available, wait or report blocked; do not expand provider or credential scope.\n- Reserve the strongest models for independent review and the top rung.\n- Record the rung and cost per change so repeated escalation shows up as a\n  signal about the task, the directive, or the checks.\n\n## Output Shape\n\n```text\nObjective: \u003Cwhat the loop is optimizing or proving>\nBudget: \u003Cattempts\u002Ftime\u002Fcost\u002Ftool calls\u002Frisk limit>\nEvidence so far: \u003Cstrongest signal>\nDecision: \u003Ccontinue, succeeded, partial, yield, or escalate>\nReason: \u003Cwhy this is the right boundary decision>\nNext step: \u003Conly if continuing or escalating>\n```\n\n## Anti-Patterns\n\n- Looping because no one chose a stopping condition.\n- Spending expensive checks on low-risk uncertainty.\n- Stopping because of fatigue while claiming confidence.\n- Expanding scope instead of escalating for a product decision.\n- Ignoring repeated failures because each one looks slightly different.\n- Reporting \"done\" when the budget ended but the evidence did not close the\n  claim.\n",{"name":5,"description":7},"main","6b6a67d773a694d476ec7aae2b1adbcaae06decb","skills\u002Fadaptive-loop-budgeting",3,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills","https:\u002F\u002Fselamy.dev","https:\u002F\u002Fgithub.com\u002Fselamy-labs","2026-11-15 03:50:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add selamy-labs\u002Fagent-skills --skill adaptive-loop-budgeting",{"tool":37,"command":38},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill adaptive-loop-budgeting",{"tool":40,"command":41},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill adaptive-loop-budgeting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-loop-budgeting\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"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},"01M75MY70JMSNFHQX63G90SKZ7","silence-phrase","A seemingly normal skill.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsilence-phrase\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M75MY5PKVKY60M8H2DFTW58C","selamy-bad-skill","This skill has a vendor prefix that should be rejected.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprefixed-name\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M75MY1TKXCH6WYN9ET0W4T02","oversized-description","This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foversized-description\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"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":70,"categories":71,"keywords":72,"publishedAt":18},"01M75MY0SZ7EKT99NWJEJ8HKS2","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75MXYMBREE6D7KRR87YM4DH","malicious-skill","A poisoned skill used only as a negative fixture for the security gate.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmalicious-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75MXX2B7AC2QSSRRQQXTA0N","leaking-org-name","A skill about something.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fleaking-org-name\u002FSKILL.md",[],[]]