[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NSHQPRJS2TAFJ6XWSZCRSJ":3,"skill-same:01M6NSHQPRJS2TAFJ6XWSZCRSJ":79},{"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":22,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":13,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":64,"install":65,"resources":78},"01M6NSHQPRJS2TAFJ6XWSZCRSJ","codex",null,"Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository.","qubit-calculus\u002FQubit","qubit-calculus","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271071935?v=4","01M6NS19569VZ1F2Z0SACBWPS7","01M6NS1992MKFQVNP9AGRTSZXN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fautonomous-ai-agents\u002Fcodex\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[5,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"repository","features","for","reviews","hermes-agent","openai codex","issue","use","delegate","refactoring","review","batch","code-review","git","code","tasks","pr","codex cli","cli","2026-11-10 10:12:30",false,"---\nname: codex\ndescription: Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository.\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [Coding-Agent, Codex, OpenAI, Code-Review, Refactoring]\n    related_skills: [claude-code, hermes-agent]\n---\n\n# Codex CLI\n\nDelegate coding tasks to [Codex](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex) via the Hermes terminal. Codex is OpenAI's autonomous coding agent CLI.\n\n## Prerequisites\n\n- Codex installed: `npm install -g @openai\u002Fcodex`\n- OpenAI API key configured\n- **Must run inside a git repository** — Codex refuses to run outside one\n- Use `pty=true` in terminal calls — Codex is an interactive terminal app\n\n## One-Shot Tasks\n\n```\nterminal(command=\"codex exec 'Add dark mode toggle to settings'\", workdir=\"~\u002Fproject\", pty=true)\n```\n\nFor scratch work (Codex needs a git repo):\n```\nterminal(command=\"cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'\", pty=true)\n```\n\n## Background Mode (Long Tasks)\n\n```\n# Start in background with PTY\nterminal(command=\"codex exec --full-auto 'Refactor the auth module'\", workdir=\"~\u002Fproject\", background=true, pty=true)\n# Returns session_id\n\n# Monitor progress\nprocess(action=\"poll\", session_id=\"\u003Cid>\")\nprocess(action=\"log\", session_id=\"\u003Cid>\")\n\n# Send input if Codex asks a question\nprocess(action=\"submit\", session_id=\"\u003Cid>\", data=\"yes\")\n\n# Kill if needed\nprocess(action=\"kill\", session_id=\"\u003Cid>\")\n```\n\n## Key Flags\n\n| Flag | Effect |\n|------|--------|\n| `exec \"prompt\"` | One-shot execution, exits when done |\n| `--full-auto` | Sandboxed but auto-approves file changes in workspace |\n| `--yolo` | No sandbox, no approvals (fastest, most dangerous) |\n\n## PR Reviews\n\nClone to a temp directory for safe review:\n\n```\nterminal(command=\"REVIEW=$(mktemp -d) && git clone https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && codex review --base origin\u002Fmain\", pty=true)\n```\n\n## Parallel Issue Fixing with Worktrees\n\n```\n# Create worktrees\nterminal(command=\"git worktree add -b fix\u002Fissue-78 \u002Ftmp\u002Fissue-78 main\", workdir=\"~\u002Fproject\")\nterminal(command=\"git worktree add -b fix\u002Fissue-99 \u002Ftmp\u002Fissue-99 main\", workdir=\"~\u002Fproject\")\n\n# Launch Codex in each\nterminal(command=\"codex --yolo exec 'Fix issue #78: \u003Cdescription>. Commit when done.'\", workdir=\"\u002Ftmp\u002Fissue-78\", background=true, pty=true)\nterminal(command=\"codex --yolo exec 'Fix issue #99: \u003Cdescription>. Commit when done.'\", workdir=\"\u002Ftmp\u002Fissue-99\", background=true, pty=true)\n\n# Monitor\nprocess(action=\"list\")\n\n# After completion, push and create PRs\nterminal(command=\"cd \u002Ftmp\u002Fissue-78 && git push -u origin fix\u002Fissue-78\")\nterminal(command=\"gh pr create --repo user\u002Frepo --head fix\u002Fissue-78 --title 'fix: ...' --body '...'\")\n\n# Cleanup\nterminal(command=\"git worktree remove \u002Ftmp\u002Fissue-78\", workdir=\"~\u002Fproject\")\n```\n\n## Batch PR Reviews\n\n```\n# Fetch all PR refs\nterminal(command=\"git fetch origin '+refs\u002Fpull\u002F*\u002Fhead:refs\u002Fremotes\u002Forigin\u002Fpr\u002F*'\", workdir=\"~\u002Fproject\")\n\n# Review multiple PRs in parallel\nterminal(command=\"codex exec 'Review PR #86. git diff origin\u002Fmain...origin\u002Fpr\u002F86'\", workdir=\"~\u002Fproject\", background=true, pty=true)\nterminal(command=\"codex exec 'Review PR #87. git diff origin\u002Fmain...origin\u002Fpr\u002F87'\", workdir=\"~\u002Fproject\", background=true, pty=true)\n\n# Post results\nterminal(command=\"gh pr comment 86 --body '\u003Creview>'\", workdir=\"~\u002Fproject\")\n```\n\n## Rules\n\n1. **Always use `pty=true`** — Codex is an interactive terminal app and hangs without a PTY\n2. **Git repo required** — Codex won't run outside a git directory. Use `mktemp -d && git init` for scratch\n3. **Use `exec` for one-shots** — `codex exec \"prompt\"` runs and exits cleanly\n4. **`--full-auto` for building** — auto-approves changes within the sandbox\n5. **Background for long tasks** — use `background=true` and monitor with `process` tool\n6. **Don't interfere** — monitor with `poll`\u002F`log`, be patient with long-running tasks\n7. **Parallel is fine** — run multiple Codex processes at once for batch work\n","# Codex CLI\n\nDelegate coding tasks to [Codex](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex) via the Hermes terminal. Codex is OpenAI's autonomous coding agent CLI.\n\n## Prerequisites\n\n- Codex installed: `npm install -g @openai\u002Fcodex`\n- OpenAI API key configured\n- **Must run inside a git repository** — Codex refuses to run outside one\n- Use `pty=true` in terminal calls — Codex is an interactive terminal app\n\n## One-Shot Tasks\n\n```\nterminal(command=\"codex exec 'Add dark mode toggle to settings'\", workdir=\"~\u002Fproject\", pty=true)\n```\n\nFor scratch work (Codex needs a git repo):\n```\nterminal(command=\"cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'\", pty=true)\n```\n\n## Background Mode (Long Tasks)\n\n```\n# Start in background with PTY\nterminal(command=\"codex exec --full-auto 'Refactor the auth module'\", workdir=\"~\u002Fproject\", background=true, pty=true)\n# Returns session_id\n\n# Monitor progress\nprocess(action=\"poll\", session_id=\"\u003Cid>\")\nprocess(action=\"log\", session_id=\"\u003Cid>\")\n\n# Send input if Codex asks a question\nprocess(action=\"submit\", session_id=\"\u003Cid>\", data=\"yes\")\n\n# Kill if needed\nprocess(action=\"kill\", session_id=\"\u003Cid>\")\n```\n\n## Key Flags\n\n| Flag | Effect |\n|------|--------|\n| `exec \"prompt\"` | One-shot execution, exits when done |\n| `--full-auto` | Sandboxed but auto-approves file changes in workspace |\n| `--yolo` | No sandbox, no approvals (fastest, most dangerous) |\n\n## PR Reviews\n\nClone to a temp directory for safe review:\n\n```\nterminal(command=\"REVIEW=$(mktemp -d) && git clone https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && codex review --base origin\u002Fmain\", pty=true)\n```\n\n## Parallel Issue Fixing with Worktrees\n\n```\n# Create worktrees\nterminal(command=\"git worktree add -b fix\u002Fissue-78 \u002Ftmp\u002Fissue-78 main\", workdir=\"~\u002Fproject\")\nterminal(command=\"git worktree add -b fix\u002Fissue-99 \u002Ftmp\u002Fissue-99 main\", workdir=\"~\u002Fproject\")\n\n# Launch Codex in each\nterminal(command=\"codex --yolo exec 'Fix issue #78: \u003Cdescription>. Commit when done.'\", workdir=\"\u002Ftmp\u002Fissue-78\", background=true, pty=true)\nterminal(command=\"codex --yolo exec 'Fix issue #99: \u003Cdescription>. Commit when done.'\", workdir=\"\u002Ftmp\u002Fissue-99\", background=true, pty=true)\n\n# Monitor\nprocess(action=\"list\")\n\n# After completion, push and create PRs\nterminal(command=\"cd \u002Ftmp\u002Fissue-78 && git push -u origin fix\u002Fissue-78\")\nterminal(command=\"gh pr create --repo user\u002Frepo --head fix\u002Fissue-78 --title 'fix: ...' --body '...'\")\n\n# Cleanup\nterminal(command=\"git worktree remove \u002Ftmp\u002Fissue-78\", workdir=\"~\u002Fproject\")\n```\n\n## Batch PR Reviews\n\n```\n# Fetch all PR refs\nterminal(command=\"git fetch origin '+refs\u002Fpull\u002F*\u002Fhead:refs\u002Fremotes\u002Forigin\u002Fpr\u002F*'\", workdir=\"~\u002Fproject\")\n\n# Review multiple PRs in parallel\nterminal(command=\"codex exec 'Review PR #86. git diff origin\u002Fmain...origin\u002Fpr\u002F86'\", workdir=\"~\u002Fproject\", background=true, pty=true)\nterminal(command=\"codex exec 'Review PR #87. git diff origin\u002Fmain...origin\u002Fpr\u002F87'\", workdir=\"~\u002Fproject\", background=true, pty=true)\n\n# Post results\nterminal(command=\"gh pr comment 86 --body '\u003Creview>'\", workdir=\"~\u002Fproject\")\n```\n\n## Rules\n\n1. **Always use `pty=true`** — Codex is an interactive terminal app and hangs without a PTY\n2. **Git repo required** — Codex won't run outside a git directory. Use `mktemp -d && git init` for scratch\n3. **Use `exec` for one-shots** — `codex exec \"prompt\"` runs and exits cleanly\n4. **`--full-auto` for building** — auto-approves changes within the sandbox\n5. **Background for long tasks** — use `background=true` and monitor with `process` tool\n6. **Don't interfere** — monitor with `poll`\u002F`log`, be patient with long-running tasks\n7. **Parallel is fine** — run multiple Codex processes at once for batch work\n",{"name":5,"author":47,"license":14,"version":48,"metadata":49,"description":7},"Hermes Agent","1.0.0",{"hermes":50},{"tags":51,"related_skills":57},[52,53,54,55,56],"Coding-Agent","Codex","OpenAI","Code-Review","Refactoring",[58,27],"claude-code","main","a05c0ccfff1cda2a5d12e9ee7d02b75350ac0557","packages\u002Fskills\u002Fhermes\u002Fautonomous-ai-agents\u002Fcodex","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit","https:\u002F\u002Fgithub.com\u002Fqubit-calculus","2026-04-07 15:16:13",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add qubit-calculus\u002FQubit --skill codex",{"tool":71,"command":72},"bunx","bunx skills add qubit-calculus\u002FQubit --skill codex",{"tool":74,"command":75},"pnpm","pnpm dlx skills add qubit-calculus\u002FQubit --skill codex","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fautonomous-ai-agents\u002Fcodex\u002FSKILL.md",true,[],[80,115,143,160,180,202],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":100,"publishedAt":42},"01M6NT8MKBM6Q660B4D7SHXE3F","writing-plans","Use when you have a spec or requirements for a multi-step task. Creates comprehensive implementation plans with bite-sized tasks, exact file paths, and complete code examples.","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[86,89,92,97],{"categoryNo":87,"categoryName":88,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":90,"categoryName":91,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000036","内容创作者",[101,102,103,104,33,105,106,38,107,37,108,35,109,30,110,111,112,113,114,25],"writing","writing plans","plans","design","workflow","documentation","development","planning","subagent","superpowers","complete","paths","test-driven-development","you",{"skillNo":116,"name":113,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":128,"publishedAt":42},"01M6NT8G9H510DV7VMY4X4Q9F3","Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[120,123,126,127],{"categoryNo":121,"categoryName":122,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":124,"categoryName":125,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":90,"categoryName":91,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},[129,130,107,131,132,101,133,37,134,109,110,135,136,137,138,103,139,140,141,142],"test","test driven development","driven","testing","debugging","refactor","red-green-refactor","cycle","green","feature","systematic","bugfix","implementing","systematic-debugging",{"skillNo":144,"name":142,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":149,"publishedAt":42},"01M6NT87T34SVN9P1S3PCBWY2D","Use when encountering any bug, test failure, or unexpected behavior. 4-phase root cause investigation — NO fixes without understanding the problem first.","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[148],{"categoryNo":124,"categoryName":125,"taxonomyType":20,"taxonomyTypeDesc":21},[150,133,139,101,129,107,151,152,109,153,154,30,110,155,156,157,103,158,113,159],"systematic debugging","first","investigation","hermes","behavior","bug","root-cause","problem-solving","problem","fixes",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":173,"publishedAt":42},"01M6NT83GMFJRDY84BWJHQSVQE","subagent-driven-development","Use when executing implementation plans with independent tasks. Dispatches fresh delegate_task per task with two-stage review (spec compliance then code quality).","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",[166,167,168,169,170],{"categoryNo":90,"categoryName":91,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},{"categoryNo":171,"categoryName":172,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000037","律师与法务",[107,174,109,131,101,33,105,175,38,37,176,35,177,31,30,110,178,103,179,113],"subagent driven development","code quality","delegation","parallel","stage","fresh",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":188,"publishedAt":42},"01M6NT7YMC7H5NK632ED23WMV6","requesting-code-review","Pre-commit verification pipeline — static security scan, baseline-aware quality gates, independent reviewer subagent, and auto-fix loop. Use after code changes and before committing, pushing, or opening a PR.","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Frequesting-code-review\u002FSKILL.md",[186,187],{"categoryNo":121,"categoryName":122,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},[189,33,37,190,101,191,192,35,193,194,195,196,109,197,198,199,110,113,200,201],"code review","requesting code review","security","commit","verification","security scan","pipeline","loop","reviewer","fix","auto","static","auto-fix",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":42},"01M6NT7AWK0VW1RFSJTAG92363","plan","Plan mode for Hermes — inspect context, write a markdown plan into the active workspace's `.hermes\u002Fplans\u002F` directory, and do not execute the work.","https:\u002F\u002Fgithub.com\u002Fqubit-calculus\u002FQubit\u002Fblob\u002Fmain\u002Fpackages\u002Fskills\u002Fhermes\u002Fsoftware-development\u002Fplan\u002FSKILL.md",[],[204,101,209,105,107,108,210,109,211,212,213,214,215,216,103,217,218,219,25,220],"directory","markdown","workspace","work","write","implementation","do","active","plan mode","inspect","mode","plan-mode"]