AgentSkillsCN

Codex Worker Skill

Codex 工作人员技能

SKILL.md

Codex Worker Skill — Delegation Criteria

When to Delegate to Codex

Delegate to the codex-worker agent when the task meets ANY of these conditions:

  • Large-scale refactoring: 10+ files need consistent changes
  • Boilerplate generation: Repetitive code across multiple files
  • Framework migration: Moving between frameworks or major versions
  • Multi-file implementation: 50+ lines across multiple files
  • Long context tasks: Context exceeds 150K+ tokens

When NOT to Delegate

Keep the task in Claude Code when:

  • Test design / TDD: Test strategy and design require orchestrator-level thinking
  • Architecture design: System design decisions need holistic understanding
  • Security review: Security-sensitive code needs careful review
  • Small changes: Less than 20 lines of simple modifications
  • Interactive debugging: Tasks requiring back-and-forth investigation

Usage

Single-Turn (simple implementation)

code
mcp__codex__codex(
  prompt: "Create utility module...",
  model: "gpt-5.3-codex",
  approval-policy: "never",   # 必須: Claude Code が elicitation 未対応のため
  sandbox: "workspace-write"
)

Multi-Turn (complex implementation)

  1. Start with mcp__codex__codex for the initial task
  2. Use mcp__codex__codex-reply with the threadId to continue the conversation
  3. Iterate until the implementation is complete

Division of Labor

RoleResponsibility
Claude CodeDesign, test, review, orchestration
Codex MCPImplementation, refactoring, boilerplate