performance-goal
Fungsinya
Skill ini memandu agent membuat kode Anda lebih cepat dengan cara yang terukur dan berbasis tujuan. Cocok untuk pengembang yang ingin bukti bahwa setiap perubahan benar-benar membantu.
Kapan dipakai
- ✓Saat Anda ingin mengurangi waktu mulai, latensi, atau target kecepatan lain yang bisa diukur.
- ✓Saat Anda membutuhkan setiap optimasi diperiksa dengan benchmark atau tes yang bisa diulang.
- ✓Saat Anda ingin kemajuan tujuan performa disimpan sebagai catatan.
Link skill
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/performance-goal/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Kurangi waktu mulai CLI kami sebesar 20 persen dan buktikan setiap perubahan dengan benchmark.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menetapkan perintah evaluator dan aturan lulus atau gagal sebelum pekerjaan apa pun dimulai. Lalu skill mencatat titik pemeriksaan beserta buktinya, dan menandai tujuan selesai hanya setelah hasil lulus dan audit.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Bisakah optimasi dimulai sebelum ada benchmark?
Tidak. Perintah evaluator dan aturan lulus atau gagal harus ada sebelum pekerjaan optimasi dimulai.
Di mana kemajuannya disimpan?
File-filenya disimpan di folder tujuan performa di dalam proyek.
Apakah ini tinjauan sekali saja?
Tidak. Ini adalah siklus berorientasi tujuan yang terus berjalan sampai evaluator memastikan hasilnya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 34k
- Peringkat
- #8422
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
ai-slop-cleaner
34kMembantu agent Anda membersihkan kode yang gemuk, berulang, atau dihasilkan AI dengan menghapus kode mati dan pembungkus yang tidak perlu, sambil menjaga perilakunya tetap sama.
analyze
34kMemungkinkan agent Anda menjawab pertanyaan tentang basis kode dengan membaca kode yang relevan dan melaporkan penjelasan yang diurutkan beserta buktinya, tanpa membuat perubahan.
ask
34kMemungkinkan agent Anda meminta pendapat kedua atau tinjauan dari alat baris perintah Claude atau Gemini yang terpasang di komputer, lalu menyimpan jawabannya sebagai file.
autopilot
34kMenjalankan proyek penuh tanpa banyak campur tangan, dari ide, persyaratan, dan perencanaan sampai pelaksanaan, dan hanya berhenti jika ada hambatan nyata.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.