ask-gemini

Ask Gemini via local CLI and capture a reusable artifact

18,419 stars

Best use case

ask-gemini is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Ask Gemini via local CLI and capture a reusable artifact

Teams using ask-gemini should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ask-gemini/SKILL.md --create-dirs "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-codex/main/skills/ask-gemini/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ask-gemini/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ask-gemini Compares

Feature / Agentask-geminiStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Ask Gemini via local CLI and capture a reusable artifact

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Ask Gemini (Local CLI)

Use the locally installed Gemini CLI as a direct external advisor for brainstorming, design feedback, and second opinions.

## Usage

```bash
/ask-gemini <question or task>
```

## Routing

### Preferred: Local CLI execution
Run Gemini through the canonical OMX CLI command path (no MCP routing):

```bash
omx ask gemini "{{ARGUMENTS}}"
```

Exact non-interactive Gemini CLI command from `gemini --help`:

```bash
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.

### Missing binary behavior
If `gemini` is not found, do **not** switch to MCP.
Instead:
1. Explain that local Gemini CLI is required for this skill.
2. Ask the user to install/configure Gemini CLI.
3. Provide a quick verification command:

```bash
gemini --version
```

## Artifact requirement
After local execution, save a markdown artifact to:

```text
.omx/artifacts/gemini-<slug>-<timestamp>.md
```

Minimum artifact sections:
1. Original user task
2. Final prompt sent to Gemini CLI
3. Gemini output (raw)
4. Concise summary
5. Action items / next steps

Task: {{ARGUMENTS}}