novotnyllc/codex-director/director-optimize
Claude Code and agent skill by novotnyllc/codex-director
- community
Checking that the SKILL.md file is still in the repository.
Runs the Codex Director optimization lane for performance, cost, memory, bundle size, throughput, or latency work. Use when a Director worker brief explicitly invokes $codex-director:director-optimize for measurement-led improvement, bottleneck diagnosis, optimization patches, or performance verification.
Install
npx vskill@latest install novotnyllc/codex-director/director-optimizeSKILL.md
Director Optimize
Quick Start
Use only when explicitly invoked by a Director brief or by the user.
This split workflow skill is worker-side. If its activation marker, skill body, callback text, or readback evidence appears in a parent Director thread, the parent treats it only as routing input or child evidence. It does not load this workflow into the parent and does not permit parent inline browser, repo, provider, or project execution.
- Read local instructions and the owning Director brief.
- Load Optimize Workflow.
- Report activation:
workflow-skill-loaded:$codex-director:director-optimize, selected workflow/playbookdirector-optimize, top-level control loop, metric target, user-outcome fit, helper/subagent lane plan, and evidence contract. - Establish a baseline or explain why one cannot be captured.
- Change only after measurement, then verify improvement and regression risk.
Native Helper Mapping
During activation, report native helper runtime surface, V2 helper policy, planned RP-style helper profiles, and helper cleanup. multi_agent_v2 is the worker-internal equivalent of RP agent_run/agent_manage, not a substitute for Director-created top-level worker threads.
When V2 is available:
- Treat
spawn_agentas RPagent_run op=start: choose a stable lowercasetask_name, setagent_type,model,reasoning_effort,service_tier, andfork_turnswhen exposed, and otherwise state those choices in the helper prompt. - Treat
wait_agentas RP wait/poll: it is only a mailbox wake signal. Usesend_messagefor queued context,followup_taskto steer or continue a helper turn,list_agentsfor status/path checks, andclose_agentfor cleanup after evidence is consumed. - Helper briefs must include role/profile, metric, workload, scope boundary, measurement command, sibling lanes, model/thinking/fork rationale, expected output, evidence standard, and cleanup expectation.
- Use
explorehelpers for bottleneck candidates, target/call-graph mapping, benchmark discovery, conventions, and scope boundaries. Usepairhelpers for instrumentation/baseline or one optimization-and-harden loop. Usedesignonly for bounded UX/perceived-performance critique. - Keep optimization attribution serial. Parallel helpers are allowed only for disjoint scouting or explicitly approved alternative experiments; do not run multiple metric-changing patches in parallel.
- V2 evidence counts only after this worker spot-checks measurements, compares against variance/baseline, summarizes scoreboard impact, and records
close_agentorclose_blocked:<reason>.
Workflow
- Activate: restate optimization goal, metric, target threshold if any, selected workflow, top-level loop, user outcome, helper policy, and verification contract.
- Baseline: measure or locate existing reliable measurements. Record command, dataset, environment, sample size, and noise caveats.
- Diagnose: identify likely bottlenecks using profiling, traces, logs, code inspection, or targeted experiments.
- Helper lane: for non-trivial work, use a helper/subagent lane for profiling interpretation, hypothesis review, benchmark design, or regression review.
- Plan: choose the smallest change likely to move the metric, with correctness risks and rollback path.
- Implement: make scoped changes and preserve public behavior.
- Re-measure: rerun comparable checks, compare to baseline, and capture regressions or noise.
- Review: inspect correctness, concurrency, resource use, data safety, and user-facing behavior.
- Finish: return baseline, changed metric, validation, review verdict, residual risk, commit status when authorized, and cleanup/archive state.
Measurement Standard
Prefer repeatable commands and comparable inputs. If measurement is impossible or too expensive in the worker context, return measurement_blocked:<reason> and a safe next measurement plan rather than claiming improvement.
Required Invariants
- Optimization is measurement-led; do not claim improvement without evidence or a stated measurement blocker.
- Keep correctness and public behavior ahead of speed.
- Use helper/subagent lanes for non-trivial bottleneck search, measurement, or review, or record a blocked helper capability.
- Stop for production load tests, destructive actions, cost-incurring experiments, or ambiguous metrics.
- If the work becomes broad or multi-lane, ask the Director to reroute to
$codex-director:director-orchestrateor$codex-director:director-dynamic-workflow. - Do not treat an improved metric as completion of a broader user outcome unless the metric is the final verification surface. Report checkpoint evidence and remaining proof separately when optimization supports a larger task.
- Do not treat
wait_agent,list_agents, or helper final-status notifications as measurement evidence. - Treat final output as candidate evidence until Director readback and reconciliation.
Output
Report baseline, change, post-change measurement, verification, regressions considered, native helper surface, V2 helper paths/evidence/owner verification/cleanup when used, unresolved risks, commit status when authorized, and cleanup/archive state.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/codex-director/skills/director-optimize/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/novotnyllc/codex-director/director-optimize)