omc-setup by yeachan-heo/oh-my-claudecode
npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill omc-setup这是你唯一需要学习的命令。运行此命令后,其他所有操作都将自动进行。
当此技能被调用时,立即执行以下工作流程。不要仅仅向用户复述或总结这些说明。
注意:本指南中所有 ~/.claude/... 路径在设置了 CLAUDE_CONFIG_DIR 环境变量时,会遵循该变量。
检查用户调用中的标志:
--help → 显示帮助文本(见下文)并停止--local → 仅执行阶段 1(目标=本地),然后停止--global → 仅执行阶段 1(目标=全局),然后停止--force → 跳过预设置检查,运行完整设置(阶段 1 → 2 → 3 → 4)当用户使用 --help 运行时,显示此内容并停止:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
OMC 设置 - 配置 oh-my-claudecode
用法:
/oh-my-claudecode:omc-setup 运行初始设置向导(如果已配置则更新)
/oh-my-claudecode:omc-setup --local 配置本地项目 (.claude/CLAUDE.md)
/oh-my-claudecode:omc-setup --global 配置全局设置 (~/.claude/CLAUDE.md)
/oh-my-claudecode:omc-setup --force 强制运行完整设置向导,即使已配置
/oh-my-claudecode:omc-setup --help 显示此帮助
模式:
初始设置(无标志)
- 首次设置的交互式向导
- 配置 CLAUDE.md(本地或全局)
- 设置 HUD 状态行
- 检查更新
- 提供 MCP 服务器配置
- 配置团队模式默认值(代理数量、类型、模型)
- 如果已配置,提供快速更新选项
本地配置 (--local)
- 下载新的 CLAUDE.md 到 ./.claude/
- 备份现有的 CLAUDE.md 到 .claude/CLAUDE.md.backup.YYYY-MM-DD
- 项目特定设置
- 在 OMC 升级后使用此选项更新项目配置
全局配置 (--global)
- 下载新的 CLAUDE.md 到 ~/.claude/
- 备份现有的 CLAUDE.md 到 ~/.claude/CLAUDE.md.backup.YYYY-MM-DD
- 适用于所有 Claude Code 会话
- 清理遗留的钩子
- 在 OMC 升级后使用此选项更新全局配置
强制完整设置 (--force)
- 绕过“已配置”检查
- 从头开始运行完整的设置向导
- 当你想重新配置偏好时使用
示例:
/oh-my-claudecode:omc-setup # 首次设置(或如果已配置则更新 CLAUDE.md)
/oh-my-claudecode:omc-setup --local # 更新此项目
/oh-my-claudecode:omc-setup --global # 更新所有项目
/oh-my-claudecode:omc-setup --force # 重新运行完整设置向导
更多信息:https://github.com/Yeachan-Heo/oh-my-claudecode
关键:在执行任何其他操作之前,检查设置是否已完成。这可以防止用户在每次更新后都必须重新运行完整的设置向导。
# 检查设置是否已完成
CONFIG_FILE="$HOME/.claude/.omc-config.json"
if [ -f "$CONFIG_FILE" ]; then
SETUP_COMPLETED=$(jq -r '.setupCompleted // empty' "$CONFIG_FILE" 2>/dev/null)
SETUP_VERSION=$(jq -r '.setupVersion // empty' "$CONFIG_FILE" 2>/dev/null)
if [ -n "$SETUP_COMPLETED" ] && [ "$SETUP_COMPLETED" != "null" ]; then
echo "OMC 设置已于以下时间完成:$SETUP_COMPLETED"
[ -n "$SETUP_VERSION" ] && echo "设置版本:$SETUP_VERSION"
ALREADY_CONFIGURED="true"
fi
fi
如果 ALREADY_CONFIGURED 为真且用户没有传递 --force、--local 或 --global 标志:
使用 AskUserQuestion 提示:
问题: "OMC 已配置。你想做什么?"
选项:
如果用户选择“仅更新 CLAUDE.md”:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" localbash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" global如果用户选择“再次运行完整设置”:
如果用户选择“取消”:
如果用户传递了 --force 标志,跳过此检查并直接进行设置。
在开始任何阶段之前,检查现有状态:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" resume
如果状态存在(输出不是 "fresh"),使用 AskUserQuestion 提示:
问题: "发现之前的设置会话。你想恢复还是重新开始?"
选项:
如果用户选择“重新开始”:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" clear
--local 或 --global 标志:读取 ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md 处的文件并遵循其说明。(阶段文件处理标志模式的提前退出。)
按顺序执行阶段。对于每个阶段,读取相应的文件并遵循其说明:
阶段 1 - 安装 CLAUDE.md:读取 ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md 并遵循其说明。
阶段 2 - 环境配置:读取 ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/02-configure.md 并遵循其说明。阶段 2 必须将 HUD/statusLine 设置委托给 hud 技能;不要在此处内联生成或修补 statusLine 路径。
阶段 3 - 集成设置:读取 ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/03-integrations.md 并遵循其说明。
阶段 4 - 完成:读取 ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/04-welcome.md 并遵循其说明。
重要:此设置过程通过 ${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh 在每个阶段后保存进度。如果被中断(Ctrl+C 或连接丢失),设置可以从上次中断的地方恢复。
在安装 oh-my-claudecode 更新(通过 npm 或插件更新)后:
自动:只需运行 /oh-my-claudecode:omc-setup - 它会检测到你已配置并提供跳过完整向导的快速“仅更新 CLAUDE.md”选项。
手动选项:
/oh-my-claudecode:omc-setup --local 仅更新项目配置/oh-my-claudecode:omc-setup --global 仅更新全局配置/oh-my-claudecode:omc-setup --force 重新运行完整向导(重新配置偏好)这确保你拥有最新的功能和代理配置,而无需重复完整设置的令牌成本。
每周安装次数
152
仓库
GitHub 星标数
11.2K
首次出现
2026年1月22日
安全审计
安装于
claude-code142
opencode141
cursor136
gemini-cli134
codex134
github-copilot124
This is the only command you need to learn. After running this, everything else is automatic.
When this skill is invoked, immediately execute the workflow below. Do not only restate or summarize these instructions back to the user.
Note: All ~/.claude/... paths in this guide respect CLAUDE_CONFIG_DIR when that environment variable is set.
Check for flags in the user's invocation:
--help → Show Help Text (below) and stop--local → Phase 1 only (target=local), then stop--global → Phase 1 only (target=global), then stop--force → Skip Pre-Setup Check, run full setup (Phase 1 → 2 → 3 → 4)When user runs with --help, display this and stop:
OMC Setup - Configure oh-my-claudecode
USAGE:
/oh-my-claudecode:omc-setup Run initial setup wizard (or update if already configured)
/oh-my-claudecode:omc-setup --local Configure local project (.claude/CLAUDE.md)
/oh-my-claudecode:omc-setup --global Configure global settings (~/.claude/CLAUDE.md)
/oh-my-claudecode:omc-setup --force Force full setup wizard even if already configured
/oh-my-claudecode:omc-setup --help Show this help
MODES:
Initial Setup (no flags)
- Interactive wizard for first-time setup
- Configures CLAUDE.md (local or global)
- Sets up HUD statusline
- Checks for updates
- Offers MCP server configuration
- Configures team mode defaults (agent count, type, model)
- If already configured, offers quick update option
Local Configuration (--local)
- Downloads fresh CLAUDE.md to ./.claude/
- Backs up existing CLAUDE.md to .claude/CLAUDE.md.backup.YYYY-MM-DD
- Project-specific settings
- Use this to update project config after OMC upgrades
Global Configuration (--global)
- Downloads fresh CLAUDE.md to ~/.claude/
- Backs up existing CLAUDE.md to ~/.claude/CLAUDE.md.backup.YYYY-MM-DD
- Applies to all Claude Code sessions
- Cleans up legacy hooks
- Use this to update global config after OMC upgrades
Force Full Setup (--force)
- Bypasses the "already configured" check
- Runs the complete setup wizard from scratch
- Use when you want to reconfigure preferences
EXAMPLES:
/oh-my-claudecode:omc-setup # First time setup (or update CLAUDE.md if configured)
/oh-my-claudecode:omc-setup --local # Update this project
/oh-my-claudecode:omc-setup --global # Update all projects
/oh-my-claudecode:omc-setup --force # Re-run full setup wizard
For more info: https://github.com/Yeachan-Heo/oh-my-claudecode
CRITICAL : Before doing anything else, check if setup has already been completed. This prevents users from having to re-run the full setup wizard after every update.
# Check if setup was already completed
CONFIG_FILE="$HOME/.claude/.omc-config.json"
if [ -f "$CONFIG_FILE" ]; then
SETUP_COMPLETED=$(jq -r '.setupCompleted // empty' "$CONFIG_FILE" 2>/dev/null)
SETUP_VERSION=$(jq -r '.setupVersion // empty' "$CONFIG_FILE" 2>/dev/null)
if [ -n "$SETUP_COMPLETED" ] && [ "$SETUP_COMPLETED" != "null" ]; then
echo "OMC setup was already completed on: $SETUP_COMPLETED"
[ -n "$SETUP_VERSION" ] && echo "Setup version: $SETUP_VERSION"
ALREADY_CONFIGURED="true"
fi
fi
If ALREADY_CONFIGURED is true AND the user did NOT pass --force, --local, or --global flags:
Use AskUserQuestion to prompt:
Question: "OMC is already configured. What would you like to do?"
Options:
If user chooses "Update CLAUDE.md only":
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" localbash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" globalIf user chooses "Run full setup again":
If user chooses "Cancel":
If user passes --force flag, skip this check and proceed directly to setup.
Before starting any phase, check for existing state:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" resume
If state exists (output is not "fresh"), use AskUserQuestion to prompt:
Question: "Found a previous setup session. Would you like to resume or start fresh?"
Options:
If user chooses "Start fresh":
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" clear
--local or --global flags:Read the file at ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md and follow its instructions. (The phase file handles early exit for flag mode.)
Execute phases sequentially. For each phase, read the corresponding file and follow its instructions:
Phase 1 - Install CLAUDE.md : Read ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md and follow its instructions.
Phase 2 - Environment Configuration : Read ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/02-configure.md and follow its instructions. Phase 2 must delegate HUD/statusLine setup to the hud skill; do not generate or patch statusLine paths inline here.
Phase 3 - Integration Setup : Read ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/03-integrations.md and follow its instructions.
Phase 4 - Completion : Read ${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/04-welcome.md and follow its instructions.
IMPORTANT : This setup process saves progress after each phase via ${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh. If interrupted (Ctrl+C or connection loss), the setup can resume from where it left off.
After installing oh-my-claudecode updates (via npm or plugin update):
Automatic : Just run /oh-my-claudecode:omc-setup - it will detect you've already configured and offer a quick "Update CLAUDE.md only" option that skips the full wizard.
Manual options :
/oh-my-claudecode:omc-setup --local to update project config only/oh-my-claudecode:omc-setup --global to update global config only/oh-my-claudecode:omc-setup --force to re-run the full wizard (reconfigure preferences)This ensures you have the newest features and agent configurations without the token cost of repeating the full setup.
Weekly Installs
152
Repository
GitHub Stars
11.2K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
claude-code142
opencode141
cursor136
gemini-cli134
codex134
github-copilot124
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
155,300 周安装
charting图表绘制技能:TradingView风格K线图,支持技术指标与资产比较
3,800 周安装
React Email:使用React组件构建HTML电子邮件模板的现代解决方案
3,900 周安装
Kubernetes清单生成器 - 生产就绪K8s YAML配置文件生成指南
3,800 周安装
事件存储设计指南:EventStoreDB、PostgreSQL、Kafka等技术选择与实现
3,900 周安装
Temporal Python 测试策略:使用 pytest 进行工作流单元、集成与重放测试
3,900 周安装
创业公司指标框架:种子轮到A轮关键绩效指标(KPI)计算与优化指南
3,900 周安装