ask
GitHub通过omc ask命令将提示路由至本地AI CLI(如Claude、Gemini等),自动处理参数与持久化结果。新增Muse支持,修复Grok角色提示传输问题,增强多模型交互能力。
Trigger Scenarios
Install
npx skills add Yeachan-Heo/oh-my-claudecode --skill ask -g -y
SKILL.md
Frontmatter
{
"name": "ask",
"description": "Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, Cursor, or Muse via `omc ask`, with artifact capture and no raw CLI assembly"
}
Ask
Use OMC's canonical advisor skill to route a prompt through the local Claude, Codex, Gemini, Antigravity, Grok, Cursor, or Muse CLI and persist the result as an ask artifact.
Usage
/oh-my-claudecode:ask <claude|codex|gemini|antigravity|grok|cursor|muse> <question or task>
Examples:
/oh-my-claudecode:ask codex "review this patch from a security perspective"
/oh-my-claudecode:ask gemini "suggest UX improvements for this flow"
/oh-my-claudecode:ask antigravity "suggest UX improvements for this flow"
/oh-my-claudecode:ask claude "draft an implementation plan for issue #123"
/oh-my-claudecode:ask cursor "apply this implementation plan"
/oh-my-claudecode:ask muse --agent-prompt critic "review this plan"
Routing
Required execution path — always use this command:
omc ask {{ARGUMENTS}}
Do NOT manually construct raw provider CLI commands. Never run codex, claude, gemini, agy, grok, cursor-agent, or muse directly to fulfill this skill. The omc ask wrapper handles correct flag selection, artifact persistence, and provider-version compatibility automatically. Manually assembling provider CLI flags will produce incorrect or outdated invocations.
Requirements
- The selected local CLI must be installed and authenticated.
- Verify availability with the matching command:
claude --version
codex --version
gemini --version
agy --version
grok --version
cursor-agent --version
muse --version
- Antigravity CLI install (Google's successor to the Gemini CLI): install the
agybinary per the official Antigravity instructions (inspect any installer before running it). Verify:agy --versionPlatform note:
omc ask antigravityis supported on macOS/Linux. On Windows it is guarded with a clear error, becauseagy --printtakes the prompt as an argv value (it cannot read stdin) and has known upstream Windows-plimitations; useomc ask geminion Windows. - Gemini CLI remains supported for enterprise/API-key use cases.
- Muse and Grok require versions supporting
--prompt-file. The wrapper uses private temporary files for prompts, including role files with YAML frontmatter. Muse runs with approvals disabled and preserves its configured sandbox behavior.
Artifacts
omc ask writes artifacts to:
.omc/artifacts/ask/<provider>-<slug>-<timestamp>.md
Task: {{ARGUMENTS}}
Version History
-
6688a30
Current 2026-10-19 08:26
新增对Muse AI模型的支持,并修复了Grok模型在角色提示传输中的兼容性问题。
- 41a4c0f 2026-07-25 07:05


