[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MDJTRES3HNWT1MG3J6KMMW":3,"skill-same:01M6MDJTRES3HNWT1MG3J6KMMW":65},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":47,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6MDJTRES3HNWT1MG3J6KMMW","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.","compozy\u002Fcompozy","compozy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F205107042?v=4","01M6JWVTXX4DX38AWZ7SPFEKEV","CompozyOS","01M6JWVV2P34GM1PDATVB2EV05",2864,"MIT","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Ftestdata\u002Fclient-plugins\u002Floop-engineering\u002Fskills\u002Floop-budget\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000040","财务","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36],"Budget","loop","loop budget","run","before and after","work","check","log","exit","token","token budget","actionable","when","2026-11-10 10:12:30",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","65613632bb94072e27fc5015d17387e28a870111","internal\u002Fextension\u002Ftestdata\u002Fclient-plugins\u002Floop-engineering\u002Fskills\u002Floop-budget",188,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy","https:\u002F\u002Fcompozy.com","https:\u002F\u002Fgithub.com\u002Fcompozy","An OS for AI agents","2026-11-13 03:54:53",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add compozy\u002Fcompozy --skill loop-budget",{"tool":57,"command":58},"bunx","bunx skills add compozy\u002Fcompozy --skill loop-budget",{"tool":60,"command":61},"pnpm","pnpm dlx skills add compozy\u002Fcompozy --skill loop-budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Ftestdata\u002Fclient-plugins\u002Floop-engineering\u002Fskills\u002Floop-budget\u002FSKILL.md",true,[],[66,101,124,147,158,170],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":79,"publishedAt":37},"01M6MD7W312X49RNEJRKKVKTTD","security-review","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[74],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,36,100],"security","security review","review","injection","authentication","code review","issues","Bash","code","xss","audit","systematic","read","reporting","cryptography","owasp","systematic review","for","use","task","audit security",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":110,"publishedAt":37},"01M6MD5K93G1GP8VA56V2FEPZV","lesson-learned","Extract evidence-backed engineering lessons from recent changes or incidents. Use for requested reflection, lesson updates, or retiring an obsolete workflow rule.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flesson-learned\u002FSKILL.md",[107],{"categoryNo":108,"categoryName":109,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000039","教师与教育",[111,112,113,97,114,115,116,117,118,119,120,121,98,122,123],"learned","lesson learned","lesson","changes","evidence","incidents","workflow","engineering","updates","extract","rule","lessons","reflection",{"skillNo":125,"name":9,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":37},"01M6MDPNH3J60VRCGTPHVTHZR8","Operate CompozyOS. Use when working with CompozyOS sessions, agents, native tools, skills, tasks, Loops, Goals, Terminal, desktops and windows, automation, extensions, or configuration. Don't use for unrelated projects.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fskills\u002Fcompozy\u002FSKILL.md",[],[9,130,131,132,133,97,134,135,98,136,137,138,139,140,141,142,143,144,145,146,36],"sessions","windows","projects","operate","runtime","true","automation","tasks","extensions","with","loops","unrelated","goals","native","terminal","configuration","Tools",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":37},"01M6MDPHKNPQHJ1TF21E1HSFNF","remotion-upgrade","Upgrade Remotion, and related packages","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-upgrade\u002FSKILL.md",[],[154,155,156,157],"remotion upgrade","upgrade","Remotion","packages",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":37},"01M6MDPFT91ZWC7Z09MRNZPAJG","remotion-studio","Preview a Remotion video","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-studio\u002FSKILL.md",[],[165,166,156,167,168,169],"studio","remotion studio","Video","preview","remotion video",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":37},"01M6MDPD5XDZPYB5NAZGKMPXWC","remotion-saas","Build an app with Remotion","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-saas\u002FSKILL.md",[],[177,178,156,139,179,180],"saas","remotion saas","app","build"]