본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4205

codex-delegate

하는 일

이 도구는 코딩 작업을 전문 AI(OpenAI Codex CLI)에 맡길 수 있게 해 줍니다. 작업을 정의하면 AI가 별도 환경에서 실행하고, 사용자는 최종 결과를 검토하고 승인합니다.

사용하는 경우

  • ✓특정 코드 조각을 AI가 작성하도록 하고 싶을 때.
  • ✓AI가 만든 코드를 사용하기 전에 검토하고 싶을 때.
  • ✓코딩 작업이 명확하고 나머지 작업과 분리될 수 있는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/codex-delegate/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/codex-delegate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“숫자 목록의 평균을 계산하는 Python 함수를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

작업에 대한 명확한 설명(‘브리프’)을 작성해 도구에 보냅니다. 도구는 안전한 환경에서 코드를 실행하고, 사용자는 결과를 받아 검토하고 승인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Codex Delegate

When to Use

  • You want to delegate a bounded coding task to a separate codex implementer (OpenAI Codex) and then review its diff yourself.
  • The user explicitly asked for delegation to this implementer.

You are the orchestrator. This skill lets you hand a bounded coding task to a separate implementer — the OpenAI Codex CLI — then review what it produced and land it yourself. You write the brief and own the judgment; Codex does the typing in its own sandbox; you verify and commit.

Nothing here is specific to one orchestrating agent. The loop needs only the ability to run a shell command and read a file, so it works the same whether you are Claude Code, OpenCode with a selected model, or any comparable agent. (It is designed for and run on Claude Code; treat other orchestrators as designed-for, not yet proven.)

When NOT to use this

  • The task is small enough to just do inline — delegation overhead is not worth it.
  • The codex CLI is not installed or not authenticated (run codex login).
  • You want to write the code yourself, or you only need a review (use Codex's own review command).

Prerequisites (check once)

  1. codex --version succeeds. If not, install (npm i -g @openai/codex) and codex login.
  2. Confirm which codex is on PATH. Multiple installs are common (e.g. a current npm/nvm copy and a stale Homebrew one). command -v codex shows the active one and codex --version its version — an old binary predates flags this skill relies on (codex exec --json, -o, exec resume). The relay also records the version it ran into result.json, so a stale binary is visible after the fact.
  3. You are in (or will point --cd at) the target git repository.

The loop

Run these five steps per task. Steps 1, 4, and 5 are your judgment; 2 and 3 are mechanical.

1. Write the brief

Codex sees only the text you send — no repo memory, no chat history, no shared context. Everything the task needs goes in the brief: the goal, the current state, what to change, what to leave untouched, the project's actual gate commands (discover them from the repo's CLAUDE.md/AGENTS.md/Makefile — do not assume), and a report contract. Tell Codex it will not commit (you will). Keep one task per brief. Full guidance and a template: references/writing-the-brief.md.

2. Dispatch

Send the brief to Codex with the bundled helper. It wraps codex exec, captures the run, and writes a structured result.json — so your only job is "run a command, read a file." (<skill-dir> below is this skill's installed directory — the folder containing this SKILL.md, i.e. the directory you loaded the skill from. Claude Code prints it as "Base directory for this skill" when the skill loads; on other orchestrators use that same directory — if unsure where it landed, run find ~ -name relay.mjs -path '*codex-delegate*' and substitute the directory above it.)

node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo
# read-only (review/diagnosis, no edits):   add --read-only
# continue the exact Codex session:         add --session <threadId>  (from result.json; send only the delta brief)
# fallback when no thread id is available:  add --resume-last
# hard time limit (watchdog):               add --timeout 2h  (default: off; implementation runs routinely need 1-2h)
# see all options:                          node .../relay.mjs --help

The helper defaults to a write-capable (workspace-write) sandbox and writes its artifacts to a temp dir, so the repo under review stays clean. It never commits — see step 5. Mechanics, flags, and the result.json shape: references/dispatch-and-poll.md.

3. Wait for completion

The helper blocks until Codex finishes, so back it with whatever your orchestrator offers and resume when it returns:

  • Claude Code: run the Bash call with run_in_background: true; you are notified on completion.
  • Plain shell / other agents: run it in the foreground for short tasks, or background it and poll the result file — … & in bash/zsh (including Git Bash/WSL), or your shell's equivalent (Start-Job in PowerShell, start /b in cmd). The run is done when result.json exists with a status. (A pre-run usage error — bad args or an empty brief — instead exits with code 2 and a stderr message and

…

자주 묻는 질문

‘브리프’란 무엇인가요?

AI에게 무엇을 해야 하는지, 현재 상태가 어떠한지, 어떤 명령을 사용해야 하는지 자세히 설명하는 지시문입니다.

AI가 코드를 자동으로 커밋하나요?

아니요, AI는 별도 환경에서 코드를 실행합니다. 코드를 검토하고 최종 커밋을 하는 책임은 사용자에게 있습니다.

AI가 실수하면 어떻게 되나요?

생성된 코드를 검토합니다. 오류가 있거나 기대와 다르면 AI에게 다시 작업하거나 고쳐 달라고 요청하고, 승인하기 전에 직접 수정할 수도 있습니다.

상세 정보

작성자의 원본 설명

Delegate coding tasks to the OpenAI Codex CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4205
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬