Skip to content
Back to skills

Ask Gemini

ASecurity

Use when a Codex or generic local agent needs a focused second opinion from Gemini CLI without MCP routing.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
ai-agentsshellbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill ask-gemini --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ask Gemini?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ask Gemini
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-ask-gemini/badge)](https://www.skillsdirectory.com/skills/yeaight7-ask-gemini)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ask-gemini
description: Use when a Codex or generic local agent needs a focused second opinion from Gemini CLI without MCP routing.
---

# Ask Gemini

## Purpose

Use local Gemini CLI as an external advisor for brainstorming, design feedback, or focused reviews. The workflow is local-first and always leaves a Markdown artifact.

## When to Use

- Need a Gemini second opinion from Codex App or another shell-capable agent.
- Want reviewable output from `gemini -p` saved for later.
- Do not use when Gemini CLI is missing or unauthenticated.
- Do not use as an MCP fallback.

**For multi-turn advisory sessions** (persistent context across follow-ups), use `relay-gemini` instead — `apx relay start <name> --provider gemini` keeps context across turns.

## Inputs

- A specific prompt or task.
- Local `gemini` command available in PATH.
- Optional artifact directory.

## Workflow

Run through APX:

```bash
apx ask-gemini "Brainstorm edge cases for this CLI"
```

Equivalent nested APX and direct CLI calls:

```bash
apx ask gemini "Brainstorm edge cases for this CLI"
```

```bash
gemini -p "Brainstorm edge cases for this CLI"
```

If `gemini` is missing, stop and ask the user to install/configure Gemini CLI. Verify with:

```bash
gemini --version
```

## Output

APX writes:

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

Artifact sections:

- Original user task
- Final prompt sent to Gemini CLI
- Gemini output (raw)
- Concise summary
- Action items / next steps

## Verification

```bash
apx check ask-gemini
apx ask-gemini "Return OK only" --json
```

Confirm JSON includes `provider`, `artifactPath`, `promptLength`, and raw output in `stdout`. Open the artifact before applying advice.

## Failure Modes

- **Missing CLI**: do not use MCP; ask user to install/configure `gemini`.
- **Auth failure**: keep artifact if APX created one, report CLI stderr.
- **Broad prompt**: narrow the question before running to avoid noisy advice.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…