# Kwiggen Claude Code Plugin Gemini Advisor

> Gemini Advisor Skill

- Skill: `tomevault-io/kwiggen-claude-code-plugin-gemini-advisor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/kwiggen-claude-code-plugin-gemini-advisor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/kwiggen-claude-code-plugin-gemini-advisor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/kwiggen-claude-code-plugin-gemini-advisor

---


# Gemini Advisor Skill

## Before Starting

1. **Check Gemini availability** — Run `test -n "$GEMINI_API_KEY"` via Bash to verify
   the API key is configured. If it fails, inform the user that Gemini API key is not
   configured and offer to answer the question directly.
2. **Determine context** — Figure out what the user wants Gemini's opinion on:
   - A specific file → read the file content
   - A code question → formulate the question with relevant context
   - A discussion/decision → summarize the current discussion state
   - A general topic → pass the question directly

## Process

### Step 1: Prepare the Query

Build a clear, self-contained prompt for Gemini that includes:
- The user's question or topic
- Relevant context (file contents, discussion summary, code snippets)
- Framing: "Provide your independent technical opinion on the following."

### Step 2: Send to Gemini

Use Bash to invoke the Gemini API entrypoint:

```bash
echo "<context>" | node {pluginDir}/dist/gemini/cli.js --prompt "<question with framing>"
```

Or without stdin if no file/code context is needed:

```bash
node {pluginDir}/dist/gemini/cli.js --prompt "<full question with context>"
```

The CLI outputs JSON with `success`, `output`, `model`, and optional error fields.

### Step 3: Present Results

## Output Format

### Gemini's Take

[Gemini's full response, formatted cleanly]

### Claude's Commentary

[Brief commentary on Gemini's response — agreements, disagreements,
additional considerations, or alternative perspectives. Keep this
concise — the point is to get a second opinion, not to debate.]

## Fallback Behavior

If Gemini API key is not configured or the call fails:
1. Inform the user: "Gemini API key not configured."
2. Offer to answer the question directly as Claude.
3. Do NOT block on Gemini unavailability.

## Guidelines

- Present Gemini's output faithfully — do not rewrite or censor it.
- Claude's commentary should be brief and additive, not defensive.
- If the user's question is about a file, always read and pipe the file content.
- Keep Gemini prompts self-contained — Gemini has no conversation context.
- Do not send sensitive information (secrets, credentials) to Gemini.

## When to Use This Skill

Use **gemini-advisor** for second opinions on any topic, file, or technical question. Use **gemini-reviewer** (`/gemini-review`) for structured dual code reviews with formal synthesis and verdict.

## CLI Reference

If unsure about Gemini CLI flags, run:

```bash
node {pluginDir}/dist/gemini/cli.js --help
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/kwiggen) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

