Ask Gemini via local CLI and capture a reusable artifact
Use the locally installed Gemini CLI as a direct external advisor for brainstorming, design feedback, and second opinions.
/ask-gemini <question or task>
Run Gemini through the canonical OMX CLI command path (no MCP routing):
omx ask gemini "{{ARGUMENTS}}"
Exact non-interactive Gemini CLI command from gemini --help:
gemini -p "{{ARGUMENTS}}"
# equivalent: gemini --prompt "{{ARGUMENTS}}"
If needed, adapt to the user's installed Gemini CLI variant while keeping local execution as the default path.
Legacy compatibility entrypoints (./scripts/ask-gemini.sh, npm run ask:gemini -- ...) are transitional wrappers.
If gemini is not found, do not switch to MCP.
Instead:
gemini --version
After local execution, save a markdown artifact to:
.omx/artifacts/gemini-<slug>-<timestamp>.md
Minimum artifact sections:
Task: {{ARGUMENTS}}