performance-goal
What it does
This skill guides an agent through making your code faster in a measured, goal-based way. It is for developers who want proof that each change actually helps.
When to use it
- ✓When you want to reduce startup time, latency, or another measurable speed target.
- ✓When you need every optimization checked by a repeatable benchmark or test.
- ✓When you want the progress of a performance goal saved as a record.
Skill link
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/performance-goal/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Reduce our CLI startup time by 20 percent and prove each change with the benchmark.”
5 new skills a week. 1 minute to read.
How it works
It sets an evaluator command and a pass or fail rule before any work begins. It then records checkpoints with evidence, and it marks the goal complete only after a passing result and an audit.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Performance Goal Workflow
Use this skill when a user asks OMX to optimize performance and wants a goal-oriented loop rather than a one-off review.
Contract
- OMX owns durable workflow state under
.omx/goals/performance/<slug>/. - Codex goal mode owns only the active-thread focus/accounting primitive.
- Shell commands do not mutate hidden Codex goal state. They write artifacts and emit model-facing handoff text.
- No optimization work may start until an evaluator command and pass/fail contract exist.
- Do not call
update_goal({status: "complete"})until the evaluator has a passing checkpoint and a completion audit proves the objective is done; then callget_goalagain and pass that fresh snapshot toomx performance-goal complete --codex-goal-json.
CLI
Create the workflow and evaluator contract:
omx performance-goal create \
--objective "Reduce CLI startup latency by 20%" \
--evaluator-command "npm run perf:startup" \
--evaluator-contract "PASS when p95 latency improves by 20% and regression tests pass" \
--slug startup-latency
Emit the Codex goal handoff:
omx performance-goal start --slug startup-latency
Record evaluator evidence:
omx performance-goal checkpoint --slug startup-latency --status pass --evidence "benchmark + tests passed"
omx performance-goal checkpoint --slug startup-latency --status fail --evidence "benchmark regressed"
omx performance-goal checkpoint --slug startup-latency --status blocked --evidence "missing fixture"
Complete only after a passing checkpoint:
omx performance-goal complete --slug startup-latency --evidence "final evaluator evidence" --codex-goal-json <get_goal-json-or-path>
Agent Loop
- Run
omx performance-goal createif no workflow exists. - Run
omx performance-goal startand follow the handoff:- call
get_goal; - call
create_goalonly when no active goal exists and the objective is explicit; - work only against the evaluator contract;
- after evaluator pass and completion audit, call
update_goal({status: "complete"}), callget_goalagain, and pass that snapshot toomx performance-goal complete --codex-goal-json; - after
omx performance-goal completesucceeds, run/goal clearin the Codex UI before starting another goal in this same thread/session; OMX prints this terminal cleanup step but does not invoke hidden clear routes;
- call
- Optimize in small reversible patches.
- Run the evaluator and related regression tests.
- Record each pass/fail/blocker with
checkpoint. - Complete only when the pass artifact exists and no required work remains.
Completion Gate
A performance goal is incomplete unless .omx/goals/performance/<slug>/state.json contains a lastValidation.status of pass and omx performance-goal complete receives a matching complete Codex get_goal snapshot via --codex-goal-json. Passing ordinary tests alone is not sufficient unless they are the declared evaluator contract.
Lifecycle: create_goal starts the Codex thread goal, update_goal({status: "complete"}) marks terminal success after the evaluator and audit pass, and /goal clear removes the completed thread goal when another same-thread goal is needed. OMX shell commands and hooks reconcile snapshots and print the cleanup instruction; they must not mutate hidden Codex goal state.
FAQ
Can it start optimizing before a benchmark exists?
No. An evaluator command and a pass or fail rule must exist before any optimization work starts.
Where is the progress stored?
Its files are saved in a performance goal folder inside the project.
Is it a one-time review?
No. It is a goal-oriented loop that continues until the evaluator confirms the result.
Details
Original description by the author
Run an evaluator-gated performance optimization workflow over Codex goal mode with durable OMX artifacts and safe goal handoffs.
repo: Yeachan-Heo/oh-my-codex
Popularity
- GitHub stars
- 34k
- Ranking position
- #8422
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
ai-slop-cleaner
34kHelps your agent clean up bloated, repetitive, or AI-generated code by removing dead code and needless wrappers, while keeping behavior intact.
analyze
34kLets your agent answer a question about a codebase by reading the relevant code and reporting ranked explanations with evidence, without making changes.
ask
34kLets your agent ask a locally installed Claude or Gemini command line tool for a second opinion or review, and saves the answer as a file.
autopilot
34kRuns a full, hands-off project from an idea through requirements, planning, and execution, pausing only for real blockers.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.