[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M7DG6KHGYAQX206VCSFDK":3,"skill-same:01M75M7DG6KHGYAQX206VCSFDK":42},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":27,"install":28,"resources":41},"01M75M7DG6KHGYAQX206VCSFDK","loop-until",null,"shivam2014\u002Fpi-files","shivam2014","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9844921?v=4","01M75M1325NPT6T3NRWXS00WMZ","Shivam Bhalla","01M75M1337SYAAT4GAPWWES6J4",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Floop-until\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# loop-until\n\n## When to Use\n\nUse `loop_until` for iterative tasks with checkable completion criteria — when the orchestrator needs to repeatedly delegate\u002Fevaluate until a criterion is met.\n\n**Confirm ALL THREE before using loop_until:**\n1. Criterion is checkable by an evaluator (not subjective like \"looks good\")\n2. Endpoint is NOT known upfront (if you know the exact file, single-pass)\n3. Iterations produce measurably different output (not just shuffling)\n\n## When NOT to Use\n\n- Single deliverables (\"write the README\", \"add a logout button\")\n- Known endpoints (\"fix bug in auth.ts line 42\")\n- Subjective completion (\"make it look good\", \"clean up the docs\")\n\nIf uncertain, ask the user: \"This looks like it might need iteration. Want me to loop until the criterion is met, or do a single pass?\"\nThe user can also explicitly request a loop: \"keep fixing until clean\"\n\n## Syntax\n\nLoop step in a plan:\n```js\nplan(\"Fix all lint errors\", [{\n  label: \"Fix until clean\",\n  kind: \"loop_until\",\n  loopUntil: {\n    criterion: \"Zero lint errors\",\n    evaluator: \"reviewer\",\n    maxIterations: 5,\n    mode: \"satisficing\",\n    satisficingPasses: 1,\n    iterationTemplate: { specialist: \"coder\", task: \"Fix lint errors\" }\n  }\n}])\n```\n\nMixed with single steps:\n```js\nplan(\"Resolve all issues\", [\n  \"Read all open issues\",\n  { label: \"Fix each issue\", kind: \"loop_until\", loopUntil: { ... } },\n  \"Summarize results\"\n])\n```\n\n## Behavior\n\n### Loop step execution\n- loop_until steps execute internally — the plan panel runs iterations automatically. You do NOT manually delegate for each iteration.\n- The loop handles: iteration counting, evaluation, feedback, stopping.\n- After each iteration, the loop updates the rolling summary (visible in plan panel) and checks the criterion.\n- If criterion met → loop completes, step marked done.\n- If maxIterations exhausts → loop surfaces last evaluation to you with a ⚠️ message. You decide: escalate to user, refine criteria, or add follow-up steps.\n- If oscillation detected (2 consecutive iterations with net-zero progress) → loop exits early with diagnostic.\n\n### Loop output\n- If satisfied: read the final iteration's output and proceed.\n- If exhausted: output contains per-iteration delta. If net progress was made, consider plan_add_steps([follow-up loop]). If no progress, report ⚠️ to user.\n\n### After a loop step completes\n- If satisfied: proceed with next step.\n- If exhausted with progress: consider follow-up loop with refined criterion.\n- If exhausted without progress: report ⚠️ to user with diagnostic.\n\n### Plan-step rules for loops\n- A loop_until step is ONE plan step that internally executes multiple delegate\u002Fevaluate cycles. Do not decompose a loop into multiple plan steps — the loop mechanism owns the iteration lifecycle.\n- Loop steps are auto-advanced by the loop mechanism. Do NOT call advance_plan_step() for loop steps.\n",{},"main","ae78deab08a1a02b9f591b45f9a4358c92f54985","skills\u002Floop-until","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files","https:\u002F\u002Fgithub.com\u002Fshivam2014","2026-10-29 01:40:21",{"source":7,"skillName":5,"commands":29,"prompt":39,"zipAvailable":40},[30,33,36],{"tool":31,"command":32},"npx","npx skills add shivam2014\u002Fpi-files --skill loop-until",{"tool":34,"command":35},"bunx","bunx skills add shivam2014\u002Fpi-files --skill loop-until",{"tool":37,"command":38},"pnpm","pnpm dlx skills add shivam2014\u002Fpi-files --skill loop-until","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Floop-until\u002FSKILL.md",true,[],[43,50,57,63,70,77],{"skillNo":44,"name":45,"nameZh":6,"description":46,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":47,"categories":48,"keywords":49,"publishedAt":18},"01M75M7EP7577YQ3C6FZMPAG7V","writing-x-posts","Create engaging X (Twitter) posts and threads that drive engagement and grow audience. Use this skill when asked to write X\u002FTwitter content, create threads, craft viral tweets, or help with X engagement strategy. Triggers include requests for tweets, X posts, Twitter threads, or social media content for X.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-x-posts\u002FSKILL.md",[],[],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M75M78V1GAC7X3GQRC8A98KM","i-have-adhd","Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with \u002Fi-have-adhd; stays on until \"stop adhd mode\".","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Fi-have-adhd\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M75M779RJJN5FV11H106J1TW","local-latex","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fextensions\u002Flocal-latex\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M75M72149P5F9BJ0G6VKTZ7E","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75M6ZFWFEFJPPW2HHKEMXH9","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M75M6XTRZKNR4ARZGTW07S87","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[]]