[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75EJB4RYW69CGX5MNMYDS4J":3,"skill-same:01M75EJB4RYW69CGX5MNMYDS4J":48},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M75EJB4RYW69CGX5MNMYDS4J","loop-budget",null,"Check token budget and run-log spend before and after a loop run. Enforces early exit when over budget or when there is no actionable work.","cobusgreyling\u002Floop-engineering","cobusgreyling","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7868717?v=4","01M75EJ2EYER7JRCZRRJ9FA3QH","Cobus Greyling","01M75EJ2FSRMRMYFMNN2XW6V2H",11770,"MIT","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fskills\u002Floop-budget\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: loop-budget\ndescription: Check token budget and run-log spend before and after a loop run. Enforces early exit when over budget or when there is no actionable work.\n---\n\n# Loop Budget Guard\n\nRun at the **start** and **end** of every loop iteration.\n\n## Start of run\n\n1. Read `loop-budget.md` for daily caps and kill-switch flags.\n2. Read recent entries in `loop-run-log.md` (last 24h).\n3. Sum `tokens_estimate` for the active pattern today.\n4. If spend ≥ 80% of the pattern's daily cap → **report-only mode** (no sub-agents, no auto-fix).\n5. If spend ≥ 90% and High Priority items remain in `STATE.md`, yield to the [budget-negotiator](..\u002Fbudget-negotiator\u002FSKILL.md) skill (if installed). Otherwise, if spend ≥ 100% or `loop-pause-all` is set → **exit immediately** with a one-line note in STATE.md.\n6. If watchlist\u002Fstate has no actionable items → **exit in \u003C5k tokens** (do not spawn sub-agents).\n\n## End of run\n\nAppend one JSON object to `loop-run-log.md`:\n\n```json\n{\n  \"run_id\": \"\u003CISO8601>\",\n  \"pattern\": \"\u003Cpattern-id>\",\n  \"duration_s\": \u003Cnumber>,\n  \"items_found\": \u003Cnumber>,\n  \"actions_taken\": \u003Cnumber>,\n  \"escalations\": \u003Cnumber>,\n  \"tokens_estimate\": \u003Cnumber>,\n  \"outcome\": \"no-op | report-only | fix-proposed | escalated\"\n}\n```\n\n## Rules\n\n- Never exceed `max sub-agent spawns\u002Frun` from `loop-budget.md`.\n- High-cadence patterns (CI Sweeper, PR Babysitter) **must** early-exit when nothing is actionable.\n- On self-throttle, append a line to `loop-budget.md` under **Alerts This Period**.","# Loop Budget Guard\n\nRun at the **start** and **end** of every loop iteration.\n\n## Start of run\n\n1. Read `loop-budget.md` for daily caps and kill-switch flags.\n2. Read recent entries in `loop-run-log.md` (last 24h).\n3. Sum `tokens_estimate` for the active pattern today.\n4. If spend ≥ 80% of the pattern's daily cap → **report-only mode** (no sub-agents, no auto-fix).\n5. If spend ≥ 90% and High Priority items remain in `STATE.md`, yield to the [budget-negotiator](..\u002Fbudget-negotiator\u002FSKILL.md) skill (if installed). Otherwise, if spend ≥ 100% or `loop-pause-all` is set → **exit immediately** with a one-line note in STATE.md.\n6. If watchlist\u002Fstate has no actionable items → **exit in \u003C5k tokens** (do not spawn sub-agents).\n\n## End of run\n\nAppend one JSON object to `loop-run-log.md`:\n\n```json\n{\n  \"run_id\": \"\u003CISO8601>\",\n  \"pattern\": \"\u003Cpattern-id>\",\n  \"duration_s\": \u003Cnumber>,\n  \"items_found\": \u003Cnumber>,\n  \"actions_taken\": \u003Cnumber>,\n  \"escalations\": \u003Cnumber>,\n  \"tokens_estimate\": \u003Cnumber>,\n  \"outcome\": \"no-op | report-only | fix-proposed | escalated\"\n}\n```\n\n## Rules\n\n- Never exceed `max sub-agent spawns\u002Frun` from `loop-budget.md`.\n- High-cadence patterns (CI Sweeper, PR Babysitter) **must** early-exit when nothing is actionable.\n- On self-throttle, append a line to `loop-budget.md` under **Alerts This Period**.",{"name":5,"description":7},"main","785d4203b109eda719f495de31f761642a7c1ce1","skills\u002Floop-budget",1586,"https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering","https:\u002F\u002Fcobusgreyling.github.io\u002Floop-engineering\u002F","https:\u002F\u002Fgithub.com\u002Fcobusgreyling","www.cobusgreyling.com","I explore AI agents, harness & loop engineering. Author of loop-engineering (11.8k★). cobusgreyling.com","2026-11-14 10:23:55",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add cobusgreyling\u002Floop-engineering --skill loop-budget",{"tool":40,"command":41},"bunx","bunx skills add cobusgreyling\u002Floop-engineering --skill loop-budget",{"tool":43,"command":44},"pnpm","pnpm dlx skills add cobusgreyling\u002Floop-engineering --skill loop-budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fskills\u002Floop-budget\u002FSKILL.md",true,[],[49,56,63,68,73,79],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75ENHZBHR1JVR6678GNTYVS","goal-verifier","Verify goal completion.","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Ftools\u002Fgoal-audit\u002Ftest\u002Ffixtures\u002Fgood-goal-project\u002Fskills\u002Fgoal-verifier\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M75ENEPZV21K069HNX3GFC0A","pr-review-triage","Triage open pull requests for CI status, review comments, and merge readiness. Use in PR babysitter loops. Respects project review norms and required checks.","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fstarters\u002Fpr-babysitter\u002F.grok\u002Fskills\u002Fpr-review-triage\u002FSKILL.md",[],[],{"skillNo":64,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M75ENBEQM1W27VTJBVY2PJ2N","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fstarters\u002Fpr-babysitter\u002F.codex\u002Fskills\u002Fpr-review-triage\u002FSKILL.md",[],[],{"skillNo":69,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75EN8ZWS4E60W89SBXDWCWF","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fstarters\u002Fpr-babysitter\u002F.claude\u002Fskills\u002Fpr-review-triage\u002FSKILL.md",[],[],{"skillNo":74,"name":58,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M75EN6CKDZPA2E900R186NB0","Watch open PRs, check CI status, review staleness, merge conflicts, and unanswered review comments. Produces a prioritized watchlist.","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fstarters\u002Fpr-babysitter-opencode\u002Fskills\u002Fpr-review-triage\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75EN3RPZ3QWT32EC6EKH150","post-merge-scan","Scan recent merges to main for follow-up cleanup: TODOs, deprecations, broken doc links, stale flags. Use in post-merge cleanup loops.","https:\u002F\u002Fgithub.com\u002Fcobusgreyling\u002Floop-engineering\u002Fblob\u002Fmain\u002Fstarters\u002Fpost-merge-cleanup\u002F.grok\u002Fskills\u002Fpost-merge-scan\u002FSKILL.md",[],[]]