From director-mode-lite
Automatically routes tasks to external AI CLIs (Codex or Gemini) for large refactors (10+ files), batch changes, template generation, and complex analysis when scoring indicates efficiency.
How this skill is triggered — by the user, by Claude, or both
Slash command
/director-mode-lite:interop-routerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Auto-trigger**: This skill evaluates tasks automatically and decides whether to delegate to an external CLI. No manual invocation needed.
Auto-trigger: This skill evaluates tasks automatically and decides whether to delegate to an external CLI. No manual invocation needed.
Automatically evaluate when detecting:
Calculate delegation score using 3 factors:
| Factor | Range | Description |
|---|---|---|
| Benefit | 0.0 - 0.6 | Can external CLI produce faster/more reliable results? |
| Cost | -0.3 - 0.0 | Overhead of wrapping, normalizing, reviewing |
| Risk | -0.3 - 0.0 | Permission/write/secret leakage risks |
Threshold: Score >= 0.15 with auto-interop enabled -> auto-execute delegation
| Task Type | Target CLI | Reason |
|---|---|---|
| Large codebase exploration | Gemini | 1M token context |
| Batch implementation | Codex | Fast bulk generation |
| Complex architecture analysis | Gemini | Deep reasoning |
| Template generation | Codex | Efficient structured output |
bash "$CLAUDE_PROJECT_DIR/skills/interop-router/scripts/check_cli_available.sh" --json
python3 "$CLAUDE_PROJECT_DIR/skills/interop-router/scripts/score_decision.py" \
--task "task description" \
--files 15 \
--complexity high \
--json
python3 "$CLAUDE_PROJECT_DIR/skills/interop-router/scripts/wrap_context.py" \
--files src/*.py \
--diff \
--output /tmp/context.md
# Codex
codex "Your task description" < /tmp/context.md
# Gemini
gemini "Your task description" -f /tmp/context.md
Enable auto-interop:
# Project-level (takes precedence)
mkdir -p .claude/flags
echo '{"enabled": true}' > .claude/flags/auto-interop.json
# User-level
mkdir -p ~/.claude/flags
echo '{"enabled": true}' > ~/.claude/flags/auto-interop.json
npx claudepluginhub claude-world/director-mode-liteDelegates implementation and review tasks to external AI CLI tools (Codex, Gemini) with cross-model adversarial review for cost savings and improved accuracy.
Delegates batch edits, boilerplate, multi-file refactors, and test scaffolding from Claude to Codex CLI to save tokens on mechanical work.
Delegates code generation, test writing, refactoring, and bulk edits to Codex CLI for optimal latency and token efficiency. Use when implementing features or making batch code changes.