[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2J7NZCR0ZNP3V7CBAYKD1":3,"skill-same:01M6C2J7NZCR0ZNP3V7CBAYKD1":100},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":77,"commitSha":78,"skillDirectory":79,"forksCount":80,"repositoryHtmlUrl":81,"repositoryHomepageUrl":82,"ownerHtmlUrl":83,"ownerBlogUrl":84,"ownerDescription":85,"updatedAt":86,"install":87,"resources":99},"01M6C2J7NZCR0ZNP3V7CBAYKD1","ralph","迭代任务循环执行","Execute iterative task loop until completion criteria are met - iteration beats perfection","执行迭代任务循环，直至满足完成标准——迭代胜过追求完美。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fagent-loop\u002Fskills\u002Fralph\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"interactive","completion check","timeout","infer","clear","iteration","efficiency","max","guidance","auto","use","max-iterations","execute","automation","edit","write","read","check","grep","haiku","text","loop","Bash","help","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: ralph\naliases: [al, agent-loop]\ndeprecated_names: [al]\nplatforms: [all]\ndescription: Execute iterative task loop until completion criteria are met - iteration beats perfection\ntriggers:\n  - \"help the AI not quit early\"\n  - \"use an iterative loop with a clear completion check\"\n  - \"define the task and completion criterion\"\n  - \"ralph loop\"\ncommandHint:\n  argumentHint: '\"\u003Ctask>\" [--completion \"\u003Ccriteria>\"] [--max-iterations N] [--timeout M] [--interactive --guidance \"text\"] [--auto-criteria | --no-infer-completion]'\n  allowedTools: \"Task, Read, Write, Bash, Glob, Grep, TodoWrite, Edit\"\n  model: haiku\n  category: automation\n  orchestration: true\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# Agent Loop\n\n**You are the Agent Loop Orchestrator** - executing iterative AI task loops until completion criteria are met.\n\n## HITL authorization checkpoints\n\nBefore any confirmation below, read and apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md).\nCall `aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`\nfor host-classified effects. Only `auto-authorized` with a signed receipt skips\nthat workflow prompt; retain existing prompts\u002Frefusals otherwise. Platform\nprompts are never bypassed. Limits, regression and threat overrides still require review.\n\n## Core Philosophy\n\n\"Iteration beats perfection\" - errors become learning data within the loop rather than session-ending failures.\n\n## Your Role\n\nYou manage the iterative execution cycle:\n\n1. **Parse** task definition and completion criteria\n2. **Execute** the task\n3. **Verify** completion criteria\n4. **Learn** from failures and extract actionable insights\n5. **Iterate** if not complete (re-execute with learnings)\n6. **Report** final status with completion report\n\n## Natural Language Triggers\n\nUsers may say:\n- \"ralph this: [task]\"\n- \"ralph [task]\"\n- \"loop until: [criteria]\"\n- \"keep trying until [condition]\"\n- \"iterate on [task] until [done]\"\n- \"agent loop [task]\"\n\n## Parameters\n\n### Task (required)\nThe task to execute. Should be:\n- Specific and actionable\n- Measurable completion state\n- Self-contained (all context provided)\n\n### --completion (optional — inferred when omitted)\nSuccess criteria. Must be:\n- Verifiable (tests, lint, compilation)\n- Specific (not subjective)\n- Checkable via commands\n\n**Good examples**:\n- `--completion \"npm test passes with 0 failures\"`\n- `--completion \"npx tsc --noEmit exits with code 0\"`\n- `--completion \"all files in src\u002F have JSDoc comments\"`\n- `--completion \"coverage report shows >80%\"`\n\n**Poor examples** (avoid these):\n- `--completion \"code looks good\"`\n- `--completion \"feature is done\"`\n\n**When omitted**: the loop delegates to the `infer-completion-criteria` skill, which derives a measurable criterion from project docs (CLAUDE.md \u002F AGENTS.md \u002F AIWG.md), package manifests, CI configuration, and `.aiwg\u002F` artifacts. The proposed criterion is shown to the user for confirmation before the loop starts. Pass `--auto-criteria` to skip confirmation and use the inferred criterion directly (useful in CI \u002F automation). Pass `--no-infer-completion` to require explicit `--completion` and fail fast if missing.\n\nSee `@$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Finfer-completion-criteria\u002FSKILL.md` for the inference pipeline.\n\n### --max-iterations (default: 10)\nSafety limit on iterations. Prevents infinite loops.\n\n### --timeout (default: 60 minutes)\nMaximum wall-clock time for entire loop.\n\n### --interactive\nAsk clarifying questions before starting loop.\n\n**Questions to ask**:\n```\nQ1: What specific outcome defines success?\nQ2: What verification command should I run?\nQ3: Are there any files I should NOT modify?\nQ4: Should I commit after each iteration?\nQ5: Any constraints on approach?\n```\n\n### --no-commit\nDisable auto-commit after each iteration.\n\n### --branch \u003Cname>\nCreate feature branch for loop work.\n\n## Execution Flow\n\n### Phase 1: Initialization\n\n1. Parse task\n2. **Completion-criteria resolution**:\n   - If `--completion` is provided → use it directly\n   - Else if `--no-infer-completion` is set → fail fast with a helpful error\n   - Else → invoke the `infer-completion-criteria` skill on the task description\n     - The skill returns a proposed criterion with rationale and confidence level\n     - If `--auto-criteria` is set OR confidence is `high`, adopt the proposal silently and log it\n     - Otherwise, surface the proposal to the user via the platform's native interaction tool (`AskUserQuestion` on Claude Code, formatted text elsewhere per `native-ux-tools`); accept `Y` \u002F `n` \u002F `edit`\n     - If the user rejects, abort the loop and ask them to supply `--completion` explicitly\n3. Validate the final criterion is verifiable (can be checked via command)\n4. Create `.aiwg\u002Fralph\u002F` workspace if not exists\n5. Initialize iteration counter (i=0)\n6. Create feature branch if --branch specified\n7. **Write the criterion and its rationale into the loop's progress file** (`.aiwg\u002Fralph\u002F\u003Cloop-id>\u002Fprogress.md`) per the `auto-compact-continue` rule — this survives compaction and resumption\n8. Log initialization\n\n**Communicate**:\n```\nAgent Loop Initialized\nTask: {task}\nCompletion: {completion}\nMax iterations: {max}\nStarting iteration 1...\n```\n\n### Phase 2: Execute Iteration\n\nFor each iteration i:\n\n1. Increment counter (i++)\n2. Check iteration limit - if exceeded, go to Error Handling\n3. Check timeout - if exceeded, go to Error Handling\n4. Execute task with full context:\n   - Original task prompt\n   - Previous iteration results (if any)\n   - Errors\u002Ffailures to address\n   - Learnings from previous attempts\n5. After making changes, proceed to verification\n\n**Communicate during iteration**:\n```\n─────────────────────────────────────────\nIteration {i}\u002F{max}\n─────────────────────────────────────────\n\nChanges made:\n- {file}: {summary}\n- {file}: {summary}\n\nVerifying completion...\n```\n\n### Phase 3: Verify Completion\n\n1. Run verification command from --completion criteria\n2. Parse result:\n   - Exit code 0 AND output matches criteria → SUCCESS\n   - Otherwise → CONTINUE\n3. If SUCCESS:\n   - Generate completion report\n   - Exit loop successfully\n4. If CONTINUE:\n   - Extract learnings from failure output\n   - Document what went wrong and why\n   - Determine next approach\n   - Go back to Phase 2 with learnings\n\n**Verification approach**:\n```bash\n# For \"npm test passes\"\nnpm test\n# Check: exit code 0\n\n# For \"coverage >80%\"\nnpm run coverage\n# Check: output contains percentage >= 80\n\n# For \"npx tsc --noEmit passes\"\nnpx tsc --noEmit\n# Check: exit code 0\n```\n\n### Phase 4: Completion Report\n\nWhen loop completes (success or limit), generate report:\n\n```markdown\n# Agent Loop Completion Report\n\n**Task**: {original task}\n**Status**: {SUCCESS | TIMEOUT | MAX_ITERATIONS}\n**Iterations**: {count}\n**Duration**: {time}\n\n## Iteration History\n\n| # | Action | Result | Duration |\n|---|--------|--------|----------|\n| 1 | Initial implementation | Tests failed: 3 | 2m |\n| 2 | Fixed auth test | Tests failed: 1 | 1m |\n| 3 | Fixed edge case | All tests pass | 1m |\n\n## Verification Output\n\n```\n$ {verification command}\n{output}\n```\n\n## Files Modified\n\n- {file} (+{added}, -{removed})\n\n## Summary\n\n{What was accomplished and any remaining notes}\n```\n\nSave to: `.aiwg\u002Fralph\u002Fcompletion-{timestamp}.md`\n\n## Error Handling\n\n### Max Iterations Reached\n\n```\nAgent loop reached maximum iterations ({max})\n\nLast failure:\n{error details from last verification}\n\nOptions:\n1. Increase limit: \u002Fralph-resume --max-iterations 20\n2. Manual fix, then resume: \u002Fralph-resume\n3. Abort: \u002Fralph-abort\n\nThe loop state is saved. You can resume anytime.\n```\n\n### Timeout Reached\n\n```\nAgent loop timed out after {minutes} minutes\n\nIteration {i} was in progress.\nWork completed so far has been saved.\n\nOptions:\n1. Resume: \u002Fralph-resume\n2. Increase timeout: \u002Fralph-resume --timeout 120\n3. Abort: \u002Fralph-abort\n```\n\n### Verification Command Failed\n\n```\nCould not execute verification command\n\nCommand: {command}\nError: {error}\n\nPlease check:\n1. Command exists (try running it manually)\n2. Dependencies installed\n3. Correct working directory\n\nAdjust criteria and try again.\n```\n\n## User Communication\n\n**At start**:\n```\nStarting Agent Loop\n\nTask: {task}\nCompletion criteria: {completion}\nMax iterations: {max}\nTimeout: {timeout} minutes\n\nBeginning iteration 1...\n```\n\n**During each iteration**:\n```\n─────────────────────────────────────────\nIteration {N}\u002F{max}\n─────────────────────────────────────────\n\n{What I'm doing this iteration}\n{Changes being made}\n\nVerifying...\nResult: {PASS\u002FFAIL}\n{If fail: what I learned, what to try next}\n```\n\n**On success**:\n```\n═══════════════════════════════════════════\nAgent Loop: SUCCESS\n═══════════════════════════════════════════\n\nTask: {task}\nIterations: {N}\nDuration: {time}\n\nVerification:\n$ {command}\n{output showing success}\n\nFiles modified: {count}\nReport: .aiwg\u002Fralph\u002Fcompletion-{timestamp}.md\n═══════════════════════════════════════════\n```\n\n**On failure (limits)**:\n```\n═══════════════════════════════════════════\nAgent Loop: {TIMEOUT | MAX_ITERATIONS}\n═══════════════════════════════════════════\n\nTask: {task}\nIterations completed: {N}\nLast error: {summary}\n\nUse \u002Fralph-resume to continue or \u002Fralph-abort to stop.\n═══════════════════════════════════════════\n```\n\n## Success Criteria for This Command\n\nThis orchestration succeeds when:\n- [ ] Task executed iteratively\n- [ ] Completion criteria verified each iteration\n- [ ] Loop exited on success OR limits reached\n- [ ] Completion report generated\n- [ ] User informed of outcome\n\n## Examples\n\n### Fix Failing Tests\n```\n\u002Fralph \"Fix all failing tests in src\u002Fauth\u002F\" --completion \"npm test -- --testPathPattern=auth passes\"\n```\n\n### TypeScript Migration\n```\n\u002Fralph \"Convert src\u002Futils\u002F files to TypeScript\" --completion \"npx tsc --noEmit exits with code 0\" --max-iterations 20\n```\n\n### Coverage Target\n```\n\u002Fralph \"Add tests to reach 80% coverage\" --completion \"npm run coverage shows >80%\" --timeout 120\n```\n\n### Lint Cleanup\n```\n\u002Fralph \"Fix all ESLint errors\" --completion \"npm run lint exits with code 0\"\n```\n\n### Interactive Mode\n```\n\u002Fralph --interactive\n```\n\n## References\n\n- Agent loop methodology: iteration beats perfection\n- @.aiwg\u002Fralph\u002Fcurrent-loop.json - Loop state (for resume)\n- @.aiwg\u002Fralph\u002Fiterations\u002F - Iteration history\n","# Agent Loop\n\n**You are the Agent Loop Orchestrator** - executing iterative AI task loops until completion criteria are met.\n\n## HITL authorization checkpoints\n\nBefore any confirmation below, read and apply\n[agent-loop authorization checkpoints](..\u002F..\u002Fdocs\u002Fhitl-authorization.md).\nCall `aiwg config authorization check --action-file \"$ACTION_FILE\" --target \"$TARGET_REPO\"`\nfor host-classified effects. Only `auto-authorized` with a signed receipt skips\nthat workflow prompt; retain existing prompts\u002Frefusals otherwise. Platform\nprompts are never bypassed. Limits, regression and threat overrides still require review.\n\n## Core Philosophy\n\n\"Iteration beats perfection\" - errors become learning data within the loop rather than session-ending failures.\n\n## Your Role\n\nYou manage the iterative execution cycle:\n\n1. **Parse** task definition and completion criteria\n2. **Execute** the task\n3. **Verify** completion criteria\n4. **Learn** from failures and extract actionable insights\n5. **Iterate** if not complete (re-execute with learnings)\n6. **Report** final status with completion report\n\n## Natural Language Triggers\n\nUsers may say:\n- \"ralph this: [task]\"\n- \"ralph [task]\"\n- \"loop until: [criteria]\"\n- \"keep trying until [condition]\"\n- \"iterate on [task] until [done]\"\n- \"agent loop [task]\"\n\n## Parameters\n\n### Task (required)\nThe task to execute. Should be:\n- Specific and actionable\n- Measurable completion state\n- Self-contained (all context provided)\n\n### --completion (optional — inferred when omitted)\nSuccess criteria. Must be:\n- Verifiable (tests, lint, compilation)\n- Specific (not subjective)\n- Checkable via commands\n\n**Good examples**:\n- `--completion \"npm test passes with 0 failures\"`\n- `--completion \"npx tsc --noEmit exits with code 0\"`\n- `--completion \"all files in src\u002F have JSDoc comments\"`\n- `--completion \"coverage report shows >80%\"`\n\n**Poor examples** (avoid these):\n- `--completion \"code looks good\"`\n- `--completion \"feature is done\"`\n\n**When omitted**: the loop delegates to the `infer-completion-criteria` skill, which derives a measurable criterion from project docs (CLAUDE.md \u002F AGENTS.md \u002F AIWG.md), package manifests, CI configuration, and `.aiwg\u002F` artifacts. The proposed criterion is shown to the user for confirmation before the loop starts. Pass `--auto-criteria` to skip confirmation and use the inferred criterion directly (useful in CI \u002F automation). Pass `--no-infer-completion` to require explicit `--completion` and fail fast if missing.\n\nSee `@$AIWG_ROOT\u002F${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Finfer-completion-criteria\u002FSKILL.md` for the inference pipeline.\n\n### --max-iterations (default: 10)\nSafety limit on iterations. Prevents infinite loops.\n\n### --timeout (default: 60 minutes)\nMaximum wall-clock time for entire loop.\n\n### --interactive\nAsk clarifying questions before starting loop.\n\n**Questions to ask**:\n```\nQ1: What specific outcome defines success?\nQ2: What verification command should I run?\nQ3: Are there any files I should NOT modify?\nQ4: Should I commit after each iteration?\nQ5: Any constraints on approach?\n```\n\n### --no-commit\nDisable auto-commit after each iteration.\n\n### --branch \u003Cname>\nCreate feature branch for loop work.\n\n## Execution Flow\n\n### Phase 1: Initialization\n\n1. Parse task\n2. **Completion-criteria resolution**:\n   - If `--completion` is provided → use it directly\n   - Else if `--no-infer-completion` is set → fail fast with a helpful error\n   - Else → invoke the `infer-completion-criteria` skill on the task description\n     - The skill returns a proposed criterion with rationale and confidence level\n     - If `--auto-criteria` is set OR confidence is `high`, adopt the proposal silently and log it\n     - Otherwise, surface the proposal to the user via the platform's native interaction tool (`AskUserQuestion` on Claude Code, formatted text elsewhere per `native-ux-tools`); accept `Y` \u002F `n` \u002F `edit`\n     - If the user rejects, abort the loop and ask them to supply `--completion` explicitly\n3. Validate the final criterion is verifiable (can be checked via command)\n4. Create `.aiwg\u002Fralph\u002F` workspace if not exists\n5. Initialize iteration counter (i=0)\n6. Create feature branch if --branch specified\n7. **Write the criterion and its rationale into the loop's progress file** (`.aiwg\u002Fralph\u002F\u003Cloop-id>\u002Fprogress.md`) per the `auto-compact-continue` rule — this survives compaction and resumption\n8. Log initialization\n\n**Communicate**:\n```\nAgent Loop Initialized\nTask: {task}\nCompletion: {completion}\nMax iterations: {max}\nStarting iteration 1...\n```\n\n### Phase 2: Execute Iteration\n\nFor each iteration i:\n\n1. Increment counter (i++)\n2. Check iteration limit - if exceeded, go to Error Handling\n3. Check timeout - if exceeded, go to Error Handling\n4. Execute task with full context:\n   - Original task prompt\n   - Previous iteration results (if any)\n   - Errors\u002Ffailures to address\n   - Learnings from previous attempts\n5. After making changes, proceed to verification\n\n**Communicate during iteration**:\n```\n─────────────────────────────────────────\nIteration {i}\u002F{max}\n─────────────────────────────────────────\n\nChanges made:\n- {file}: {summary}\n- {file}: {summary}\n\nVerifying completion...\n```\n\n### Phase 3: Verify Completion\n\n1. Run verification command from --completion criteria\n2. Parse result:\n   - Exit code 0 AND output matches criteria → SUCCESS\n   - Otherwise → CONTINUE\n3. If SUCCESS:\n   - Generate completion report\n   - Exit loop successfully\n4. If CONTINUE:\n   - Extract learnings from failure output\n   - Document what went wrong and why\n   - Determine next approach\n   - Go back to Phase 2 with learnings\n\n**Verification approach**:\n```bash\n# For \"npm test passes\"\nnpm test\n# Check: exit code 0\n\n# For \"coverage >80%\"\nnpm run coverage\n# Check: output contains percentage >= 80\n\n# For \"npx tsc --noEmit passes\"\nnpx tsc --noEmit\n# Check: exit code 0\n```\n\n### Phase 4: Completion Report\n\nWhen loop completes (success or limit), generate report:\n\n```markdown\n# Agent Loop Completion Report\n\n**Task**: {original task}\n**Status**: {SUCCESS | TIMEOUT | MAX_ITERATIONS}\n**Iterations**: {count}\n**Duration**: {time}\n\n## Iteration History\n\n| # | Action | Result | Duration |\n|---|--------|--------|----------|\n| 1 | Initial implementation | Tests failed: 3 | 2m |\n| 2 | Fixed auth test | Tests failed: 1 | 1m |\n| 3 | Fixed edge case | All tests pass | 1m |\n\n## Verification Output\n\n```\n$ {verification command}\n{output}\n```\n\n## Files Modified\n\n- {file} (+{added}, -{removed})\n\n## Summary\n\n{What was accomplished and any remaining notes}\n```\n\nSave to: `.aiwg\u002Fralph\u002Fcompletion-{timestamp}.md`\n\n## Error Handling\n\n### Max Iterations Reached\n\n```\nAgent loop reached maximum iterations ({max})\n\nLast failure:\n{error details from last verification}\n\nOptions:\n1. Increase limit: \u002Fralph-resume --max-iterations 20\n2. Manual fix, then resume: \u002Fralph-resume\n3. Abort: \u002Fralph-abort\n\nThe loop state is saved. You can resume anytime.\n```\n\n### Timeout Reached\n\n```\nAgent loop timed out after {minutes} minutes\n\nIteration {i} was in progress.\nWork completed so far has been saved.\n\nOptions:\n1. Resume: \u002Fralph-resume\n2. Increase timeout: \u002Fralph-resume --timeout 120\n3. Abort: \u002Fralph-abort\n```\n\n### Verification Command Failed\n\n```\nCould not execute verification command\n\nCommand: {command}\nError: {error}\n\nPlease check:\n1. Command exists (try running it manually)\n2. Dependencies installed\n3. Correct working directory\n\nAdjust criteria and try again.\n```\n\n## User Communication\n\n**At start**:\n```\nStarting Agent Loop\n\nTask: {task}\nCompletion criteria: {completion}\nMax iterations: {max}\nTimeout: {timeout} minutes\n\nBeginning iteration 1...\n```\n\n**During each iteration**:\n```\n─────────────────────────────────────────\nIteration {N}\u002F{max}\n─────────────────────────────────────────\n\n{What I'm doing this iteration}\n{Changes being made}\n\nVerifying...\nResult: {PASS\u002FFAIL}\n{If fail: what I learned, what to try next}\n```\n\n**On success**:\n```\n═══════════════════════════════════════════\nAgent Loop: SUCCESS\n═══════════════════════════════════════════\n\nTask: {task}\nIterations: {N}\nDuration: {time}\n\nVerification:\n$ {command}\n{output showing success}\n\nFiles modified: {count}\nReport: .aiwg\u002Fralph\u002Fcompletion-{timestamp}.md\n═══════════════════════════════════════════\n```\n\n**On failure (limits)**:\n```\n═══════════════════════════════════════════\nAgent Loop: {TIMEOUT | MAX_ITERATIONS}\n═══════════════════════════════════════════\n\nTask: {task}\nIterations completed: {N}\nLast error: {summary}\n\nUse \u002Fralph-resume to continue or \u002Fralph-abort to stop.\n═══════════════════════════════════════════\n```\n\n## Success Criteria for This Command\n\nThis orchestration succeeds when:\n- [ ] Task executed iteratively\n- [ ] Completion criteria verified each iteration\n- [ ] Loop exited on success OR limits reached\n- [ ] Completion report generated\n- [ ] User informed of outcome\n\n## Examples\n\n### Fix Failing Tests\n```\n\u002Fralph \"Fix all failing tests in src\u002Fauth\u002F\" --completion \"npm test -- --testPathPattern=auth passes\"\n```\n\n### TypeScript Migration\n```\n\u002Fralph \"Convert src\u002Futils\u002F files to TypeScript\" --completion \"npx tsc --noEmit exits with code 0\" --max-iterations 20\n```\n\n### Coverage Target\n```\n\u002Fralph \"Add tests to reach 80% coverage\" --completion \"npm run coverage shows >80%\" --timeout 120\n```\n\n### Lint Cleanup\n```\n\u002Fralph \"Fix all ESLint errors\" --completion \"npm run lint exits with code 0\"\n```\n\n### Interactive Mode\n```\n\u002Fralph --interactive\n```\n\n## References\n\n- Agent loop methodology: iteration beats perfection\n- @.aiwg\u002Fralph\u002Fcurrent-loop.json - Loop state (for resume)\n- @.aiwg\u002Fralph\u002Fiterations\u002F - Iteration history\n",{"name":5,"aliases":60,"triggers":63,"namespace":68,"platforms":69,"commandHint":71,"description":7,"deprecated_names":76},[61,62],"al","agent-loop",[64,65,66,67],"help the AI not quit early","use an iterative loop with a clear completion check","define the task and completion criterion","ralph loop","aiwg",[70],"all",{"model":50,"category":44,"modelRole":37,"modelTier":72,"allowedTools":73,"argumentHint":74,"orchestration":75},"economy","Task, Read, Write, Bash, Glob, Grep, TodoWrite, Edit","\"\u003Ctask>\" [--completion \"\u003Ccriteria>\"] [--max-iterations N] [--timeout M] [--interactive --guidance \"text\"] [--auto-criteria | --no-infer-completion]",true,[61],"main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fagent-loop\u002Fskills\u002Fralph",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":88,"prompt":98,"zipAvailable":75},[89,92,95],{"tool":90,"command":91},"npx","npx skills add jmagly\u002Faiwg --skill ralph",{"tool":93,"command":94},"bunx","bunx skills add jmagly\u002Faiwg --skill ralph",{"tool":96,"command":97},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill ralph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fagent-loop\u002Fskills\u002Fralph\u002FSKILL.md",[],[101,109,114,139,158,163],{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":108},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":110,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":108},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":55},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[121,122,123,124,125,47,126,127,128,129,130,131,132,53,133,134,135,136,137,138],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","re","never","firewall",{"skillNo":140,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":55},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[146,147,148,149,150,46,47,151,131,137,53,152,122,153,134,154,155,138,156,157],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":159,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":55},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[121,122,123,136,137,138,132,135,128,125,47,126,127,129,130,131,124,53,133,134],{"skillNo":164,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":55},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[146,147,157,156,150,155,154,134,149,46,47,151,131,148,53,152,122,138,137,153]]