| Plan | plan, design, architecture, strategy | codex-plan-review.sh for existing plans, else codex-call.sh | Phases, risks, dependencies, acceptance criteria |
| Build/Implement | build, implement, create feature | codex-call.sh | Concrete code changes, tests, run/verify steps |
| Debug | debug, investigate failure, root cause | codex-call.sh | Repro, root cause, fix options, validation |
| Fix/Bug | fix bug, patch, hotfix | codex-call.sh | Minimal safe patch, regression protection |
| Refactor | refactor, clean up, restructure | codex-call.sh | Behavior-preserving changes, migration notes |
| Review | review PR, review code, review plan | codex-plan-review.sh for plan files, else codex-call.sh | Findings first, severity-ordered, refs |
| Test Engineering | add tests, coverage, test gaps | codex-call.sh | Test matrix, missing cases, test patches |
| Performance | optimize, speed up, memory, latency | codex-call.sh | Bottlenecks, benchmark plan, optimizations |
| Security | security review, harden, secrets/auth risk | codex-call.sh | Vulnerabilities, exploitability, prioritized remediations |
| Dependencies | upgrade deps, package update | codex-call.sh | Compatibility risks, upgrade order, lockfile impact |
| CI/CD | pipeline, workflow, deployment checks | codex-call.sh | CI edits, cache/reliability improvements |
| Data/Schema | migration, schema change, DB | codex-call.sh | Migration plan, rollback, compatibility checks |
| API/Contract | endpoint, interface, breaking change |