[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XDCSQ7QMWS99Y5RFR46FP":3,"skill-same:01M79XDCSQ7QMWS99Y5RFR46FP":63},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":52},"01M79XDCSQ7QMWS99Y5RFR46FP","loop",null,"Bounded foreground repetition for the current session. Creates a loop contract, runs or coordinates an action plus verifier up to a declared attempt limit, and records evidence under .planning\u002Floops\u002F. Use for repeat-until-pass work that is too small for daemon and not time-based scheduling.","mayankjain1815-commits\u002FCITADEL","mayankjain1815-commits","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234472344?v=4","01M79X9599EWEQTD62DMNTEG7X","Mayank jain","01M79X95AA0KDFTN1Z1A6DQTX1",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Floop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: loop\nlicense: MIT\ndescription: >-\n  Bounded foreground repetition for the current session. Creates a loop\n  contract, runs or coordinates an action plus verifier up to a declared attempt\n  limit, and records evidence under .planning\u002Floops\u002F. Use for repeat-until-pass\n  work that is too small for daemon and not time-based scheduling.\nuser-invocable: true\nauto-trigger: false\ntrigger_keywords:\n  - loop\n  - repeat until\n  - until tests pass\n  - until lint passes\n  - max attempts\n  - retry until\nlast-updated: 2026-06-09\n---\n\n# \u002Floop -- Bounded Foreground Loop\n\n## Orientation\n\n**Use when:** the user wants a visible repeat-until-pass cycle inside the\ncurrent session, such as \"loop until lint passes\" or \"try this up to three\ntimes and stop if tests still fail.\"\n\n**Don't use when:** the work should run unattended across sessions (`\u002Fdaemon`),\non a clock (`\u002Fschedule`), on file changes (`\u002Fwatch`), or as a metric-driven\noptimization experiment (`\u002Fexperiment`).\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Floop status` | Show all known Citadel loops with active\u002Fstopped grouping. |\n| `\u002Floop inspect {id}` | Show one loop's contract, verifier, budget, runs, and stop reason. |\n| `\u002Floop templates` | List built-in loop templates. |\n| `\u002Floop plan --template {name}` | Create a loop contract from a template. |\n| `\u002Floop run \"{action}\" --verify \"{command}\" --max {N}` | Run a bounded foreground loop. |\n| `\u002Floop stop {id}` | Mark a loop stopped. |\n\n## Protocol\n\n### Step 1: Classify the loop\n\nDetermine which kind of loop the user requested:\n\n| User intent | Route |\n|---|---|\n| Repeat within this active session | `\u002Floop` |\n| Continue campaign across sessions | `\u002Fdaemon` |\n| Run on a schedule | `\u002Fschedule` |\n| Watch PR checks\u002Freviews | `\u002Fpr-watch` |\n| Watch files or marker comments | `\u002Fwatch` |\n| Optimize a numeric metric | `\u002Fexperiment` |\n\nIf another route is clearly better, say so and route there.\n\n### Step 2: Require a verifier\n\nA `\u002Floop run` must have an explicit verifier. Explicit means the user supplied\n`--verify \"\u003Ccommand>\"` or an equally concrete verifier command in plain language.\nDo not infer a verifier from words like \"lint\", \"test\", \"until it works\", or\n\"fix until passing.\" If the verifier is missing, ask for it before executing and\ndo not run `loop-runner.js`, shell commands, or manual repair steps.\n\nAccept examples like:\n\n```text\n--verify \"npm run lint\"\n--verify \"npm run test\"\n--verify \"node scripts\u002Foperating-proof.js --write\"\n```\n\nIf missing, respond in this shape:\n\n```text\n\u002Floop needs an explicit verifier before it can run. Please provide one, for example:\n--verify \"npm run lint\"\n\nI will not run the loop until the verifier is explicit.\n```\n\n### Step 3: Create the contract\n\nFor status, inspect, templates, and stop commands, run:\n\n```bash\nnode .citadel\u002Fscripts\u002Floops.js \u003Ccommand>\n```\n\nFor template planning:\n\n```bash\nnode .citadel\u002Fscripts\u002Floops.js plan --template \u003Cname> --write\n```\n\nFor foreground execution:\n\n```bash\nnode .citadel\u002Fscripts\u002Floop-runner.js --action \"\u003Caction>\" --verify \"\u003Cverifier>\" --max-attempts \u003CN> --write\n```\n\nIf `.citadel\u002Fscripts\u002F` is not present and this is the Citadel harness repo\nitself, use `node scripts\u002Floops.js` or `node scripts\u002Floop-runner.js` instead.\n\nThe runner writes a contract under `.planning\u002Floops\u002F{id}.json`, appends each\nattempt, and stops with a shared stop status.\n\n### Step 4: Stop on the first terminal condition\n\nStop when any of these are true:\n\n- verifier passes\n- attempt limit is reached\n- the action fails in a way that needs human review\n- the requested action would cross a safety or approval boundary\n- the user asks to stop\n\nNever silently continue beyond the declared attempt limit.\n\n### Step 5: Report the outcome\n\nSummarize:\n\n- loop id\n- status\n- attempts used\n- verifier\n- runner command, including `--verify` and `--max-attempts`\n- state path\n- next action if stopped before success\n\n## Fringe Cases\n\n**If `.planning\u002F` does not exist:** create `.planning\u002Floops\u002F` before writing\nloop state. If writing fails, output the contract inline and tell the user\nsetup is needed.\n\n**No verifier:** ask for one. Do not infer a destructive or expensive verifier.\n\n**Action is an agent command, not a shell command:** run the action manually as\nthe agent for each attempt, then record the loop with `node scripts\u002Floops.js\nregister` or use the loop contract as the state artifact. Do not pass slash\ncommands to the shell runner.\n\n**Verifier keeps failing with the same cause:** stop at the attempt limit and\nreport `attempt-limit` with the latest evidence.\n\n**User asks for unattended looping:** route to `\u002Fdaemon` or `\u002Fschedule`, not\n`\u002Floop`.\n\n## Contextual Gates\n\n**Disclosure:** \"Running foreground loop: action `{action}`, verifier\n`{verifier}`, max attempts `{N}`.\"\n\n**Reversibility:** amber -- the loop may run user-provided shell commands and\nmodify files; inspect the diff or loop-owned artifacts to revert.\n\n**Trust gates:**\n- Any: require verifier and attempt cap.\n- Familiar: may execute shell action\u002Fverifier after disclosing the contract.\n- Risky commands: require normal tool approval boundaries before running.\n\n## Quality Gates\n\n- A loop contract exists under `.planning\u002Floops\u002F` unless the filesystem blocks it.\n- The verifier is explicit.\n- The attempt limit is explicit and >= 1.\n- The final status uses the shared loop vocabulary from `docs\u002FLOOP_CONTRACT.md`.\n- The final answer includes the loop id and state path.\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Loop: {id}\n- Status: {status}\n- Attempts: {used}\u002F{max}\n- Verifier: {command}\n- Runner: node .citadel\u002Fscripts\u002Floop-runner.js --action \"{action}\" --verify \"{command}\" --max-attempts {max} --write\n- State: .planning\u002Floops\u002F{id}.json\n- Next: {next action or \"none\"}\n---\n```\n","# \u002Floop -- Bounded Foreground Loop\n\n## Orientation\n\n**Use when:** the user wants a visible repeat-until-pass cycle inside the\ncurrent session, such as \"loop until lint passes\" or \"try this up to three\ntimes and stop if tests still fail.\"\n\n**Don't use when:** the work should run unattended across sessions (`\u002Fdaemon`),\non a clock (`\u002Fschedule`), on file changes (`\u002Fwatch`), or as a metric-driven\noptimization experiment (`\u002Fexperiment`).\n\n## Commands\n\n| Command | Behavior |\n|---|---|\n| `\u002Floop status` | Show all known Citadel loops with active\u002Fstopped grouping. |\n| `\u002Floop inspect {id}` | Show one loop's contract, verifier, budget, runs, and stop reason. |\n| `\u002Floop templates` | List built-in loop templates. |\n| `\u002Floop plan --template {name}` | Create a loop contract from a template. |\n| `\u002Floop run \"{action}\" --verify \"{command}\" --max {N}` | Run a bounded foreground loop. |\n| `\u002Floop stop {id}` | Mark a loop stopped. |\n\n## Protocol\n\n### Step 1: Classify the loop\n\nDetermine which kind of loop the user requested:\n\n| User intent | Route |\n|---|---|\n| Repeat within this active session | `\u002Floop` |\n| Continue campaign across sessions | `\u002Fdaemon` |\n| Run on a schedule | `\u002Fschedule` |\n| Watch PR checks\u002Freviews | `\u002Fpr-watch` |\n| Watch files or marker comments | `\u002Fwatch` |\n| Optimize a numeric metric | `\u002Fexperiment` |\n\nIf another route is clearly better, say so and route there.\n\n### Step 2: Require a verifier\n\nA `\u002Floop run` must have an explicit verifier. Explicit means the user supplied\n`--verify \"\u003Ccommand>\"` or an equally concrete verifier command in plain language.\nDo not infer a verifier from words like \"lint\", \"test\", \"until it works\", or\n\"fix until passing.\" If the verifier is missing, ask for it before executing and\ndo not run `loop-runner.js`, shell commands, or manual repair steps.\n\nAccept examples like:\n\n```text\n--verify \"npm run lint\"\n--verify \"npm run test\"\n--verify \"node scripts\u002Foperating-proof.js --write\"\n```\n\nIf missing, respond in this shape:\n\n```text\n\u002Floop needs an explicit verifier before it can run. Please provide one, for example:\n--verify \"npm run lint\"\n\nI will not run the loop until the verifier is explicit.\n```\n\n### Step 3: Create the contract\n\nFor status, inspect, templates, and stop commands, run:\n\n```bash\nnode .citadel\u002Fscripts\u002Floops.js \u003Ccommand>\n```\n\nFor template planning:\n\n```bash\nnode .citadel\u002Fscripts\u002Floops.js plan --template \u003Cname> --write\n```\n\nFor foreground execution:\n\n```bash\nnode .citadel\u002Fscripts\u002Floop-runner.js --action \"\u003Caction>\" --verify \"\u003Cverifier>\" --max-attempts \u003CN> --write\n```\n\nIf `.citadel\u002Fscripts\u002F` is not present and this is the Citadel harness repo\nitself, use `node scripts\u002Floops.js` or `node scripts\u002Floop-runner.js` instead.\n\nThe runner writes a contract under `.planning\u002Floops\u002F{id}.json`, appends each\nattempt, and stops with a shared stop status.\n\n### Step 4: Stop on the first terminal condition\n\nStop when any of these are true:\n\n- verifier passes\n- attempt limit is reached\n- the action fails in a way that needs human review\n- the requested action would cross a safety or approval boundary\n- the user asks to stop\n\nNever silently continue beyond the declared attempt limit.\n\n### Step 5: Report the outcome\n\nSummarize:\n\n- loop id\n- status\n- attempts used\n- verifier\n- runner command, including `--verify` and `--max-attempts`\n- state path\n- next action if stopped before success\n\n## Fringe Cases\n\n**If `.planning\u002F` does not exist:** create `.planning\u002Floops\u002F` before writing\nloop state. If writing fails, output the contract inline and tell the user\nsetup is needed.\n\n**No verifier:** ask for one. Do not infer a destructive or expensive verifier.\n\n**Action is an agent command, not a shell command:** run the action manually as\nthe agent for each attempt, then record the loop with `node scripts\u002Floops.js\nregister` or use the loop contract as the state artifact. Do not pass slash\ncommands to the shell runner.\n\n**Verifier keeps failing with the same cause:** stop at the attempt limit and\nreport `attempt-limit` with the latest evidence.\n\n**User asks for unattended looping:** route to `\u002Fdaemon` or `\u002Fschedule`, not\n`\u002Floop`.\n\n## Contextual Gates\n\n**Disclosure:** \"Running foreground loop: action `{action}`, verifier\n`{verifier}`, max attempts `{N}`.\"\n\n**Reversibility:** amber -- the loop may run user-provided shell commands and\nmodify files; inspect the diff or loop-owned artifacts to revert.\n\n**Trust gates:**\n- Any: require verifier and attempt cap.\n- Familiar: may execute shell action\u002Fverifier after disclosing the contract.\n- Risky commands: require normal tool approval boundaries before running.\n\n## Quality Gates\n\n- A loop contract exists under `.planning\u002Floops\u002F` unless the filesystem blocks it.\n- The verifier is explicit.\n- The attempt limit is explicit and >= 1.\n- The final status uses the shared loop vocabulary from `docs\u002FLOOP_CONTRACT.md`.\n- The final answer includes the loop id and state path.\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Loop: {id}\n- Status: {status}\n- Attempts: {used}\u002F{max}\n- Verifier: {command}\n- Runner: node .citadel\u002Fscripts\u002Floop-runner.js --action \"{action}\" --verify \"{command}\" --max-attempts {max} --write\n- State: .planning\u002Floops\u002F{id}.json\n- Next: {next action or \"none\"}\n---\n```\n",{"name":5,"license":15,"description":7,"auto-trigger":20,"last-updated":24,"user-invocable":25,"trigger_keywords":26},1780963200000,true,[5,27,28,29,30,31],"repeat until","until tests pass","until lint passes","max attempts","retry until","main","49119fa06efc769f502bede04ad99746ac20f021","skills\u002Floop",0,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits","2nd-yr EEE 📍 Bangalore | Python, C, Java, C# | ML, NLP & Flask backends | Building AI tools that ship 🚀 | Open to hackathons & collabs","2026-11-14 14:46:28",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":25},[42,45,48],{"tool":43,"command":44},"npx","npx skills add mayankjain1815-commits\u002FCITADEL --skill loop",{"tool":46,"command":47},"bunx","bunx skills add mayankjain1815-commits\u002FCITADEL --skill loop",{"tool":49,"command":50},"pnpm","pnpm dlx skills add mayankjain1815-commits\u002FCITADEL --skill loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Floop\u002FSKILL.md",[53,59],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"__benchmarks__\u002Fforeground-verify.md","REFERENCE","参考文档",848,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Floop\u002F__benchmarks__\u002Fforeground-verify.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"__benchmarks__\u002Fmissing-verifier.md",425,"https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Floop\u002F__benchmarks__\u002Fmissing-verifier.md",[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79XH1DBMXQEF9N0Q6NW7Q5P","workspace","Multi-repo campaign coordinator. Same lifecycle as fleet -- scope claims, discovery relay, wave-based execution -- but the unit of work is a repo, not a file. Coordinates campaigns across repositories with shared context.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79XGWJJHSKNTH78TNVX09VK","wiki","Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79XGNW2YTFHVMEZGZDEDN43","watch","File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through \u002Fdo. Use for automatic reactions to file changes; do NOT use for one-off inspection or tasks needing human judgment per file.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fwatch\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M79XGHZ0028HDW7SDT186D6Q","verify","Self-test the Citadel hook pipeline from within a live session. Exercises real tool calls (Write, Edit, Bash, Read) and checks that hooks fired, telemetry accumulated, and no errors occurred. Reports HOOK HEALTH: PASS or HOOK HEALTH: FAIL with a per-hook breakdown.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M79XGDKHMADJXC27T0FMQAN3","unharness","Remove Citadel from a project. Exports valuable state (campaigns, postmortems, research, backlog, discoveries) to docs\u002Fcitadel\u002F as human-readable markdown, then removes all harness files and hooks. The archive is detected by \u002Fdo setup on re-install and offered for restore.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Funharness\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M79XG81A3RHP2TKKBT5WYEY2","triage","GitHub issue and PR investigator. Pulls open issues\u002FPRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to GitHub issues.","https:\u002F\u002Fgithub.com\u002Fmayankjain1815-commits\u002FCITADEL\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]