[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77832ZX1NJ1M2DC00JG29C3":3,"skill-same:01M77832ZX1NJ1M2DC00JG29C3":45},{"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":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77832ZX1NJ1M2DC00JG29C3","codex-runner",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcodex-runner\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# codex-runner Skill\n\n## 描述\n\n使用 Codex CLI 在后台长时间运行编码任务，不受 OpenClaw 会话限制。\n\n## ⚠️ 重要：异步执行\n\n**此 skill 会立即返回，不阻塞主会话！**\n\n任务在后台独立运行，你可以：\n- 继续与 OpenClaw 对话\n- 发送新消息\n- 查看日志进度\n\n## 使用场景\n\n- 需要 Agent 整夜写代码\n- 长时间运行的大型项目开发\n- 不希望 OpenClaw 会话超时导致任务中断\n\n## 前提条件\n\n- 已安装 Codex CLI (`npm install -g @openai\u002Fcodex`)\n- 配置好代理（翻墙）\n- 目标目录需要是 git 仓库（`git init`）\n\n## 命令\n\n### start\n\n启动 Codex 后台任务（**异步执行，不阻塞会话**）\n\n```bash\ncodex-runner start \"实现一个 React TODO 应用\" my-task \u002FUsers\u002Ftianyanan\u002Fmy-project\n```\n\n**参数：**\n- `$1`: 任务描述\n- `$2`（可选）: 任务名称，用于日志文件命名，默认 `codex-task`\n- `$3`（可选）: 目标目录路径，默认当前目录\n\n**关键：必须使用 `background=true` 执行！**\n\n由于 OpenClaw 默认同步等待命令完成，你需要这样调用：\n\n```bash\n# 在 skill 命令中使用 background 参数\n```\n\n或者直接使用 `sessions_spawn` 创建独立子会话：\n\n```bash\n# 让 Codex 在独立会话中运行，不影响主会话\n```\n\n### status\n\n检查 Codex 进程状态\n\n```bash\ncodex-runner status\n```\n\n### log\n\n查看任务日志\n\n```bash\ncodex-runner log my-task\n```\n\n参数：\n- `$1`（可选）: 任务名称，默认 `codex-task`\n\n### stop\n\n停止 Codex 任务\n\n```bash\ncodex-runner stop\n```\n\n## 解决方案：使用 sessions_spawn\n\n由于 OpenClaw 主会话执行 exec 会被阻塞，最佳方案是使用 **sessions_spawn** 创建独立子会话来运行 Codex。\n\n### 使用方法\n\n直接让 AI 助手（我）使用 sessions_spawn 启动任务：\n\n```bash\n# 我会这样执行：\nsessions_spawn {\n  \"runtime\": \"subagent\",\n  \"task\": \"在 ~\u002Fmy-project 实现一个简单的 Hello World\",\n  \"label\": \"codex-hello\"\n}\n```\n\n### 示例：启动 Codex 任务\n\n**你可以说**：\"用 codex 在桌面创建 test 文件夹，里面放一个 hello.txt\"\n\n**我会这样处理**：\n1. 使用 sessions_spawn 创建独立子会话\n2. 子会话中运行 Codex 执行任务\n3. 主会话立即返回，继续响应你\n\n---\n\n## 旧版命令（会阻塞，仅作备用）\n\n### start（已不推荐）\n\n```bash\n# 使用 --dangerously-bypass-approvals-and-sandbox 完全跳过沙箱\nTASK_NAME=${2:-codex-task}\nTARGET_DIR=${3:-.}\n\nnohup bash -c \"\n  cd '$TARGET_DIR'\n  \n  export https_proxy=http:\u002F\u002F127.0.0.1:8118\n  export http_proxy=http:\u002F\u002F127.0.0.1:8118\n  \n  codex --dangerously-bypass-approvals-and-sandbox exec '$1'\n\" > ~\u002F.codex-logs\u002Fcodex-$TASK_NAME.log 2>&1 &\n```\n\n### ⚠️ 关键参数\n\n**必须使用 `--dangerously-bypass-approvals-and-sandbox`** 才能写入文件：\n\n```bash\ncodex --dangerously-bypass-approvals-and-sandbox exec '任务描述'\n```\n\n| 参数 | 说明 |\n|------|------|\n| `--dangerously-bypass-approvals-and-sandbox` | 完全跳过沙箱和审批（必须） |\n| `exec` | 非交互执行模式 |\n\n### ⚠️ 注意\n\n- 目标目录需要是 git 仓库（`git init`）\n- 使用此参数会有安全风险，确保在安全环境下使用\n\n## 开发任务模板（重要！）\n\n建议在任务描述中包含以下流程要求：\n\n```bash\ncodex-runner start \"\n实现一个用户管理系统，包含：\n1. 用户增删改查 API\n2. 用户列表页面\n\n开发流程要求：\n1. 先写单元测试，再写业务代码\n2. 编码完成后执行单元测试：npm test\n3. 如果单测失败，自动修复直到通过\n4. 单测通过后执行构建：npm run build\n5. 如果构建失败，自动修复直到通过\n6. 单测和构建都通过后才算任务完成\n\" my-task \u002FUsers\u002Ftianyanan\u002Fmy-project\n```\n\n### 开发流程规范\n\n| 步骤 | 要求 |\n|------|------|\n| 1. 单元测试 | 先写测试，再写业务代码 |\n| 2. 执行单测 | `npm test` 或 `npm run test` |\n| 3. 修复单测 | 如果失败，自动修复直到通过 |\n| 4. 执行构建 | `npm run build` |\n| 5. 修复构建 | 如果失败，自动修复直到通过 |\n| 6. 完成标志 | 单测 + 构建都通过 |\n\n## 监控方法\n\n```bash\n# 查看进程\nps aux | grep codex | grep -v grep\n\n# 实时日志\ntail -f ~\u002F.codex-logs\u002Fcodex-my-task.log\n\n# 检查完成标志\ngrep \"已完成\\|build\\|test\" ~\u002F.codex-logs\u002Fcodex-my-task.log\n```\n\n## 日志位置\n\n- 默认: `~\u002F.codex-logs\u002Fcodex-\u003C任务名>.log`\n\n## 测试结果\n\n- ✅ 持续运行稳定\n- ✅ 可以写入文件（使用 --dangerously-bypass-approvals-and-sandbox）\n- ✅ 生成完整 React 项目\n- ✅ 构建验证通过\n\n## 参考\n\n- 源自 Eliason 的 Agent 整夜写代码方案\n- 测试时间: 2026-03-04 ~ 2026-03-05\n- 更新: 2026-03-05（增加开发流程规范）\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fcodex-runner",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill codex-runner",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill codex-runner",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill codex-runner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcodex-runner\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]