omx-setup
Skill này làm gì
Skill này cài đặt và cập nhật thiết lập oh-my-codex trên máy tính hoặc trong một dự án. Skill dành cho người muốn công cụ được cấu hình đúng.
Khi nào nên dùng
- ✓Khi bạn cài oh-my-codex lần đầu trên máy tính hoặc trong dự án.
- ✓Khi bạn muốn làm mới một bản cài đặt có sẵn sau khi cập nhật.
- ✓Khi bạn muốn xem trước các thay đổi cài đặt trước khi chúng được áp dụng.
Liên kết skill
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/omx-setup/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
“Thiết lập oh-my-codex chỉ cho dự án này và cho tôi xem nó sẽ thay đổi gì trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy lệnh cài đặt với các tùy chọn về phạm vi người dùng hoặc dự án, hành vi gộp và công cụ MCP. Tùy chọn dry-run xem trước các hành động, còn tùy chọn verbose liệt kê từng bước.
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.
OMX Setup
Use this task card to install or refresh OMX for the current project and/or user scope. Shared safety, lifecycle, hook, team, autonomy, and cancellation rules live in templates/AGENTS.md. Do not infer new CLI behavior from this card; the implementation is authoritative.
Command and alternatives
omx setup [--force] [--merge-agents|--no-merge-agents|--clear-merge-agents-policy] [--dry-run] [--verbose] [--scope <user|project>] [--plugin|--legacy|--install-mode <legacy|plugin>] [--mcp <none|compat>] [--no-mcp|--with-mcp] [--disable-team|--enable-team|--team-mode <enabled|disabled>]
omx agents-init [path] [--dry-run] [--force] [--verbose]
Use agents-init for lightweight AGENTS.md scaffolding only, not a full install.
Supported setup options:
--force: overwrite/reinstall managed artifacts; transient, not persisted or replayed.--merge-agents,--no-merge-agents,--clear-merge-agents-policy: exact bare selectors (no values/equals). Repeated identical selectors are idempotent; conflicting selectors fail before mutations. Set persists an explicit policy per invoking project root; clear removes it and cannot combine with a set. Merge refreshes managed sections; no-merge only suppresses that branch and is not a preserve mode.--dry-run,--verbose: preview actions or show per-file/per-step detail.--scope user|project: choose user (~/.codex,~/.omx/agents) or project (./.codex,./.omx/agents) targets.--plugin/--legacy: select delivery mode;--install-mode legacy|pluginis the canonical scripted spelling. Conflicting mode flags fail.--mcp none|compat(plus--no-mcp/--with-mcp): omit or enable first-party MCP compatibility and shared registry sync.--disable-team,--enable-team,--team-mode enabled|disabled: select Team skill/context generation; conflicting selectors fail.
Resolve setup
- Scope: explicit flag, valid persisted
./.omx/setup-scope.json, TTY choice (defaultuser), or non-interactiveuser. Legacyproject-localmigrates toproject. - Mode: explicit flag, persisted mode when retained, discovered
${CODEX_HOME:-~/.codex}/plugins/cache/**/.codex-plugin/plugin.jsonwithname: oh-my-codex(plugin default), otherwise legacy. TTY reruns summarize saved choices and offer keep/review/reset; non-interactive runs do not block. - Create required directories and atomically persist preferences only after successful setup.
What setup changes
- Legacy mode installs prompts/native agents/skills and merges full config.toml.
- Plugin mode archives/removes legacy OMX-managed prompts/skills, refreshes installable native agent TOMLs and stale generated non-installable agents, and keeps setup-owned runtime hooks.
- Both modes verify Team CLI interop markers in built
dist/cli/team.js, generate AGENTS defaults only when selected/allowed, and write./.omx/hud-config.json; notification hook references are setup-owned outside plugin skill delivery. AGENTS.mdis./AGENTS.md. Without--forceor--merge-agents, interactive runs ask before overwrite and non-interactive runs preserve it. Active-session safeguards may skip writes. Plugin mode may separately prompt for AGENTS anddeveloper_instructionsdefaults; non-interactive runs preserve existing files.- Plugin mode enables setup-owned runtime flags (
plugin_hooks,goals, or legacyhooks/codex_hooksfallback). Project scope usesCODEX_HOME=./.codexunless explicitly overridden.
Verify
omx setup --force --verbose
omx doctor
Expect doctor evidence for prompts and skills in the selected scope, project-root AGENTS.md, .omx/state, and CLI-first config in the scope target config.toml. First-party MCP and shared registry sync are omitted unless setup used --mcp compat (if supported by the installed CLI).
If using local source, run npm run build before node dist/cli/omx.js setup --force --verbose and node dist/cli/omx.js doctor. If AGENTS was not overwritten or merged, stop the active OMX session and rerun with --force or --merge-agents; do not edit lifecycle state manually.
Discovery troubleshooting
If $omx-setup is absent/stale: run omx setup --verbose, then omx doctor; verify ./.codex/skills/omx-setup/SKILL.md for project scope or ${CODEX_HOME:-~/.codex}/skills/omx-setup/SKILL.md for legacy user scope. In plugin mode verify the oh-my-codex plugin is installed/discovered. For duplicates, inspect historical `~/.ag
Câu hỏi thường gặp
Tôi có thể xem thay đổi trước khi chúng được thực hiện không?
Có. Tùy chọn dry-run xem trước các hành động mà không áp dụng.
Phạm vi người dùng khác phạm vi dự án thế nào?
Phạm vi người dùng ảnh hưởng đến toàn bộ thiết lập người dùng của bạn, còn phạm vi dự án chỉ áp dụng cho dự án hiện tại.
Có tùy chọn nhẹ hơn không?
Có. Lệnh agents-init chỉ thêm một file AGENTS.md cơ bản, không cài đặt đầy đủ.
Chi tiết
Mô tả gốc của tác giả
Setup and configure oh-my-codex using current CLI behavior
repo: Yeachan-Heo/oh-my-codex
Độ phổ biến
- Sao GitHub
- 34k
- Vị trí xếp hạng
- #8421
- 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ự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.