performance-goal
Skill này làm gì
Skill này hướng dẫn agent làm mã nhanh hơn theo cách đo lường và có mục tiêu. Skill dành cho lập trình viên muốn có bằng chứng rằng mỗi thay đổi thực sự có ích.
Khi nào nên dùng
- ✓Khi bạn muốn giảm thời gian khởi động, độ trễ hoặc một mục tiêu tốc độ đo được khác.
- ✓Khi bạn cần mỗi lần tối ưu được kiểm tra bằng một benchmark hoặc bài kiểm tra lặp lại được.
- ✓Khi bạn muốn tiến độ của một mục tiêu hiệu năng được lưu thành hồ sơ.
Liên kết skill
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/performance-goal/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giảm thời gian khởi động CLI của chúng tôi xuống 20 phần trăm và chứng minh mỗi thay đổi bằng benchmark.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đặt một lệnh đánh giá và quy tắc đạt hoặc không đạt trước khi bất kỳ công việc tối ưu nào bắt đầu. Sau đó nó ghi lại các điểm kiểm tra kèm bằng chứng, và chỉ đánh dấu mục tiêu hoàn thành sau một kết quả đạt và một lần kiểm toán.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó có thể tối ưu trước khi có benchmark không?
Không. Phải có lệnh đánh giá và quy tắc đạt hoặc không đạt trước khi bắt đầu tối ưu.
Tiến độ được lưu ở đâu?
Các file của nó được lưu trong một thư mục mục tiêu hiệu năng bên trong dự án.
Đây có phải là một lần đánh giá không?
Không. Đó là một vòng lặp hướng mục tiêu, tiếp tục cho đến khi bộ đánh giá xác nhận kết quả.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 34k
- Vị trí xếp hạng
- #8422
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
ai-slop-cleaner
34kGiúp agent của bạn dọn dẹp mã cồng kềnh, lặp lại hoặc do AI tạo ra bằng cách loại bỏ mã chết và các lớp bọc không cần thiết, đồng thời giữ nguyên hành vi.
analyze
34kGiúp agent của bạn trả lời một câu hỏi về mã nguồn bằng cách đọc các đoạn mã liên quan và báo cáo các giải thích được xếp hạng kèm bằng chứng, mà không thực hiện thay đổi nào.
ask
34kCho phép agent của bạn hỏi một công cụ dòng lệnh Claude hoặc Gemini đã cài sẵn trên máy để lấy ý kiến thứ hai hoặc đánh giá, rồi lưu câu trả lời thành file.
autopilot
34kChạy một dự án trọn gói, không cần can thiệp, từ ý tưởng qua yêu cầu, lập kế hoạch và thực hiện, chỉ tạm dừng khi gặp trở ngại thật sự.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.