[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N22W05JC8DAP1J9QG9F8Z4":3,"skill-same:01M6N22W05JC8DAP1J9QG9F8Z4":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6N22W05JC8DAP1J9QG9F8Z4","ralph-loop",null,"Generate copy-paste bash scripts for Ralph Wiggum\u002FAI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a “Ralph loop”, “Ralph Wiggum loop”, or an AI loop to plan\u002Fbuild code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fralph-loop\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"loop","ralph","ralph loop","use","modes","to plan","for","loops","goose","ralph wiggum","ai loop","opencode","codex","prompt","plan","Bash","sandboxing","planning","code","ai agent","2026-11-10 10:12:30",false,"---\nname: ralph-loop\ndescription: Generate copy-paste bash scripts for Ralph Wiggum\u002FAI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a “Ralph loop”, “Ralph Wiggum loop”, or an AI loop to plan\u002Fbuild code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.\n---\n\n# Ralph Loop\n\n## Overview\nGenerate a ready-to-run bash script that runs an AI coding CLI in a loop. Align with the Ralph playbook flow:\n\n1) **Define requirements** → JTBD → topics of concern → `specs\u002F*.md`\n2) **PLANNING loop** → create\u002Fupdate `IMPLEMENTATION_PLAN.md` (no implementation)\n3) **BUILDING loop** → implement tasks, run tests (backpressure), update plan, commit\n\nThe loop persists context via `PROMPT.md` + `AGENTS.md` (loaded every iteration) plus the on-disk plan\u002Fspecs.\n\n## Workflow\n\n### 1) Collect inputs (ask if missing)\n- **Goal \u002F JTBD** (what outcome is needed)\n- CLI (`codex`, `claude-code`, `opencode`, `goose`, other)\n- **Mode**: `PLANNING`, `BUILDING`, or `BOTH`\n- **Completion condition**\n  - Promise phrase (string to detect), **or**\n  - Test\u002Fcommand to run each iteration, **or**\n  - Plan sentinel (e.g., a line `STATUS: COMPLETE` in `IMPLEMENTATION_PLAN.md`)\n- Max iterations\n- Sandbox choice (`none` | `docker` | other) + **security posture**\n- **Backpressure commands** (tests\u002Flints\u002Fbuild) to embed in `AGENTS.md`\n- **Auto‑approve flags** (ask explicitly)\n  - Codex: `--full-auto`\n  - Claude Code: `--dangerously-skip-permissions`\n\n### 2) Phase 1 — Requirements → specs\nIf the user wants “full Ralph” (or unclear requirements), do this before the loop:\n- Break the JTBD into **topics of concern** (1 topic = 1 spec file).\n- For each topic, draft `specs\u002F\u003Ctopic>.md`.\n- Use subagents to load URLs or existing docs into context for spec quality.\n- Keep specs short and testable.\n\n### 3) Phase 2\u002F3 — PROMPT.md + AGENTS.md\n- **Context loaded each iteration:** `PROMPT.md` + `AGENTS.md`.\n- `AGENTS.md` should include:\n  - project test commands (backpressure)\n  - build\u002Frun instructions\n  - any operational learnings\n- `PROMPT.md` should reference:\n  - `specs\u002F*.md`\n  - `IMPLEMENTATION_PLAN.md`\n  - any relevant project files\u002Fdirs\n\n### 4) Two prompt templates (PLANNING vs BUILDING)\nCreate **two prompts** and swap `PROMPT.md` based on mode.\n\n**PLANNING prompt (no implementation):**\n```\nYou are running a Ralph PLANNING loop for: \u003CJTBD\u002FGOAL>.\n\nRead specs\u002F* and the current codebase. Do a gap analysis and update IMPLEMENTATION_PLAN.md only.\nRules:\n- Do NOT implement.\n- Do NOT commit.\n- Prioritize tasks and keep plan concise.\n- If requirements are unclear, write clarifying questions into the plan.\n\nCompletion:\nIf the plan is complete, add line: STATUS: COMPLETE\n```\n\n**BUILDING prompt:**\n```\nYou are running a Ralph BUILDING loop for: \u003CJTBD\u002FGOAL>.\n\nContext:\n- specs\u002F*\n- IMPLEMENTATION_PLAN.md\n- AGENTS.md (tests\u002Fbackpressure)\n\nTasks:\n1) Pick the most important task from IMPLEMENTATION_PLAN.md.\n2) Investigate relevant code (don’t assume missing).\n3) Implement.\n4) Run the backpressure commands from AGENTS.md.\n5) Update IMPLEMENTATION_PLAN.md (mark done + notes).\n6) Update AGENTS.md if you learned new operational details.\n7) Commit with a clear message.\n\nCompletion:\nIf all tasks are done, add line: STATUS: COMPLETE\n```\n\n### 5) Build the per‑iteration command\n- Codex: `codex exec \u003CFLAGS> \"$(cat PROMPT.md)\"`\n  - Requires git repo.\n- Claude Code: `claude \u003CFLAGS> \"$(cat PROMPT.md)\"`\n- OpenCode: `opencode run \"$(cat PROMPT.md)\"`\n- Goose: `goose run \"$(cat PROMPT.md)\"` (ask if they want the Goose recipe)\n\nIf the CLI is unknown, ask for the exact command to run each iteration.\n\n### 6) Output a copy‑paste script\nProvide **either** a minimal loop or a controlled loop with max iters + stop conditions.\n\n**Minimal loop (Geoff style):**\n```bash\nwhile :; do cat PROMPT.md | claude ; done\n```\n\n**Controlled loop (recommended):**\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nPROMISE='...'\nMAX_ITERS=...\nCLI_FLAGS=\"...\"  # optional\nPLAN_SENTINEL='STATUS: COMPLETE'\nTEST_CMD='...'   # optional\n\nif ! git rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1; then\n  echo \"❌ Run this inside a git repo.\"\n  exit 1\nfi\n\ntouch PROMPT.md AGENTS.md IMPLEMENTATION_PLAN.md\nLOG_FILE=\".ralph\u002Fralph.log\"\nmkdir -p .ralph\n\nCLI_CMD=\"...\" # e.g. \"codex exec\" or \"claude\"\n\nfor i in $(seq 1 \"$MAX_ITERS\"); do\n  echo -e \"\\n=== Ralph iteration $i\u002F$MAX_ITERS ===\" | tee -a \"$LOG_FILE\"\n\n  $CLI_CMD $CLI_FLAGS \"$(cat PROMPT.md)\" | tee -a \"$LOG_FILE\"\n\n  if [[ -n \"${TEST_CMD}\" ]]; then\n    echo \"Running tests: $TEST_CMD\" | tee -a \"$LOG_FILE\"\n    bash -lc \"$TEST_CMD\" | tee -a \"$LOG_FILE\"\n  fi\n\n  if grep -Fq \"$PROMISE\" \"$LOG_FILE\" || grep -Fq \"$PLAN_SENTINEL\" IMPLEMENTATION_PLAN.md; then\n    echo \"✅ Completion detected. Stopping.\" | tee -a \"$LOG_FILE\"\n    exit 0\n  fi\n\ndone\n\necho \"❌ Max iterations reached without completion.\" | tee -a \"$LOG_FILE\"\nexit 1\n```\n\n## Safety\u002FSandbox Guidance (must mention)\n- Running with `--dangerously-skip-permissions` or `--full-auto` implies **trust + risk**.\n- Recommend a **sandbox** (docker\u002Fe2b\u002Ffly) with minimal credentials and restricted network.\n- Escape hatches: `Ctrl+C` to stop; `git reset --hard` to revert.\n\n## Guardrails\n- If requirements are unclear, insist on specs before BUILDING.\n- If the plan looks stale\u002Fwrong, regenerate it (PLANNING loop).\n- If backpressure commands are missing, ask for them and add to `AGENTS.md`.\n","# Ralph Loop\n\n## Overview\nGenerate a ready-to-run bash script that runs an AI coding CLI in a loop. Align with the Ralph playbook flow:\n\n1) **Define requirements** → JTBD → topics of concern → `specs\u002F*.md`\n2) **PLANNING loop** → create\u002Fupdate `IMPLEMENTATION_PLAN.md` (no implementation)\n3) **BUILDING loop** → implement tasks, run tests (backpressure), update plan, commit\n\nThe loop persists context via `PROMPT.md` + `AGENTS.md` (loaded every iteration) plus the on-disk plan\u002Fspecs.\n\n## Workflow\n\n### 1) Collect inputs (ask if missing)\n- **Goal \u002F JTBD** (what outcome is needed)\n- CLI (`codex`, `claude-code`, `opencode`, `goose`, other)\n- **Mode**: `PLANNING`, `BUILDING`, or `BOTH`\n- **Completion condition**\n  - Promise phrase (string to detect), **or**\n  - Test\u002Fcommand to run each iteration, **or**\n  - Plan sentinel (e.g., a line `STATUS: COMPLETE` in `IMPLEMENTATION_PLAN.md`)\n- Max iterations\n- Sandbox choice (`none` | `docker` | other) + **security posture**\n- **Backpressure commands** (tests\u002Flints\u002Fbuild) to embed in `AGENTS.md`\n- **Auto‑approve flags** (ask explicitly)\n  - Codex: `--full-auto`\n  - Claude Code: `--dangerously-skip-permissions`\n\n### 2) Phase 1 — Requirements → specs\nIf the user wants “full Ralph” (or unclear requirements), do this before the loop:\n- Break the JTBD into **topics of concern** (1 topic = 1 spec file).\n- For each topic, draft `specs\u002F\u003Ctopic>.md`.\n- Use subagents to load URLs or existing docs into context for spec quality.\n- Keep specs short and testable.\n\n### 3) Phase 2\u002F3 — PROMPT.md + AGENTS.md\n- **Context loaded each iteration:** `PROMPT.md` + `AGENTS.md`.\n- `AGENTS.md` should include:\n  - project test commands (backpressure)\n  - build\u002Frun instructions\n  - any operational learnings\n- `PROMPT.md` should reference:\n  - `specs\u002F*.md`\n  - `IMPLEMENTATION_PLAN.md`\n  - any relevant project files\u002Fdirs\n\n### 4) Two prompt templates (PLANNING vs BUILDING)\nCreate **two prompts** and swap `PROMPT.md` based on mode.\n\n**PLANNING prompt (no implementation):**\n```\nYou are running a Ralph PLANNING loop for: \u003CJTBD\u002FGOAL>.\n\nRead specs\u002F* and the current codebase. Do a gap analysis and update IMPLEMENTATION_PLAN.md only.\nRules:\n- Do NOT implement.\n- Do NOT commit.\n- Prioritize tasks and keep plan concise.\n- If requirements are unclear, write clarifying questions into the plan.\n\nCompletion:\nIf the plan is complete, add line: STATUS: COMPLETE\n```\n\n**BUILDING prompt:**\n```\nYou are running a Ralph BUILDING loop for: \u003CJTBD\u002FGOAL>.\n\nContext:\n- specs\u002F*\n- IMPLEMENTATION_PLAN.md\n- AGENTS.md (tests\u002Fbackpressure)\n\nTasks:\n1) Pick the most important task from IMPLEMENTATION_PLAN.md.\n2) Investigate relevant code (don’t assume missing).\n3) Implement.\n4) Run the backpressure commands from AGENTS.md.\n5) Update IMPLEMENTATION_PLAN.md (mark done + notes).\n6) Update AGENTS.md if you learned new operational details.\n7) Commit with a clear message.\n\nCompletion:\nIf all tasks are done, add line: STATUS: COMPLETE\n```\n\n### 5) Build the per‑iteration command\n- Codex: `codex exec \u003CFLAGS> \"$(cat PROMPT.md)\"`\n  - Requires git repo.\n- Claude Code: `claude \u003CFLAGS> \"$(cat PROMPT.md)\"`\n- OpenCode: `opencode run \"$(cat PROMPT.md)\"`\n- Goose: `goose run \"$(cat PROMPT.md)\"` (ask if they want the Goose recipe)\n\nIf the CLI is unknown, ask for the exact command to run each iteration.\n\n### 6) Output a copy‑paste script\nProvide **either** a minimal loop or a controlled loop with max iters + stop conditions.\n\n**Minimal loop (Geoff style):**\n```bash\nwhile :; do cat PROMPT.md | claude ; done\n```\n\n**Controlled loop (recommended):**\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nPROMISE='...'\nMAX_ITERS=...\nCLI_FLAGS=\"...\"  # optional\nPLAN_SENTINEL='STATUS: COMPLETE'\nTEST_CMD='...'   # optional\n\nif ! git rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1; then\n  echo \"❌ Run this inside a git repo.\"\n  exit 1\nfi\n\ntouch PROMPT.md AGENTS.md IMPLEMENTATION_PLAN.md\nLOG_FILE=\".ralph\u002Fralph.log\"\nmkdir -p .ralph\n\nCLI_CMD=\"...\" # e.g. \"codex exec\" or \"claude\"\n\nfor i in $(seq 1 \"$MAX_ITERS\"); do\n  echo -e \"\\n=== Ralph iteration $i\u002F$MAX_ITERS ===\" | tee -a \"$LOG_FILE\"\n\n  $CLI_CMD $CLI_FLAGS \"$(cat PROMPT.md)\" | tee -a \"$LOG_FILE\"\n\n  if [[ -n \"${TEST_CMD}\" ]]; then\n    echo \"Running tests: $TEST_CMD\" | tee -a \"$LOG_FILE\"\n    bash -lc \"$TEST_CMD\" | tee -a \"$LOG_FILE\"\n  fi\n\n  if grep -Fq \"$PROMISE\" \"$LOG_FILE\" || grep -Fq \"$PLAN_SENTINEL\" IMPLEMENTATION_PLAN.md; then\n    echo \"✅ Completion detected. Stopping.\" | tee -a \"$LOG_FILE\"\n    exit 0\n  fi\n\ndone\n\necho \"❌ Max iterations reached without completion.\" | tee -a \"$LOG_FILE\"\nexit 1\n```\n\n## Safety\u002FSandbox Guidance (must mention)\n- Running with `--dangerously-skip-permissions` or `--full-auto` implies **trust + risk**.\n- Recommend a **sandbox** (docker\u002Fe2b\u002Ffly) with minimal credentials and restricted network.\n- Escape hatches: `Ctrl+C` to stop; `git reset --hard` to revert.\n\n## Guardrails\n- If requirements are unclear, insist on specs before BUILDING.\n- If the plan looks stale\u002Fwrong, regenerate it (PLANNING loop).\n- If backpressure commands are missing, ask for them and add to `AGENTS.md`.\n",{"name":5,"description":7},"main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Fralph-loop",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill ralph-loop",{"tool":57,"command":58},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill ralph-loop",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill ralph-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fralph-loop\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_meta.json","REFERENCE","参考文档",283,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fralph-loop\u002F_meta.json",[72,95,118,126,133,159],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[74,79,80,81,82,83,21,84,85,86,87,88,89,90,91,92,93,94],"safe","ethereum","defi","Optimization","user","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":38},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[101,102,103,104,105,106,107,81,108,84,109,110,111,112,113,114,115,116,117],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":119,"name":120,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":38},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[101,124,125,102,103,104,105,106,107,81,108,84,110,111,112,113,114,115,116,117],"api skill","zerion api skill",{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":38},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[104,101,132,102,103,105,106,81,108,84,109,110,111,112,113,114,115,116,117],"zerion api mcp",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":38},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,24],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[140,141,143,166,167,168,169,170,171,151,172,173,174,175,176,177,178,179,117,158],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]