Skip to content
Back to skills

003 Name Skill A28e9a79

ASecurity

Get a second opinion from Gemini on code, architecture, debugging, or security. Uses gemini-coach CLI with AI-to-AI prompting for clear, actionable analysis. Trigger with 'ask gemini', 'gemini review', 'second opinion', 'peer review', or 'consult gemini'.

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 31, 2026
code-qualitygobashdebuggingapisecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 003-name-skill_a28e9a79 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 003 Name Skill A28e9a79?

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

Security grade badge for 003 Name Skill A28e9a79
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-003-name-skill-a28e9a79/badge)](https://www.skillsdirectory.com/skills/tools-only-003-name-skill-a28e9a79)

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: gemini-peer-review
description: "Get a second opinion from Gemini on code, architecture, debugging, or security. Uses gemini-coach CLI with AI-to-AI prompting for clear, actionable analysis. Trigger with 'ask gemini', 'gemini review', 'second opinion', 'peer review', or 'consult gemini'."
compatibility: claude-code-only
---

# Gemini Peer Review

Consult Gemini as a coding peer for a second opinion on code quality, architecture decisions, debugging, or security reviews.

## Prerequisites

- `gemini-coach` CLI installed (wraps Gemini CLI with AI-to-AI prompting)
- Gemini CLI authenticated (`gemini` to test)

## Modes

### Code Review

```bash
gemini-coach review src/auth.ts src/api.ts
```

Review specific files for bugs, logic errors, security vulnerabilities, performance issues, and best practice violations.

### Architecture Advice

```bash
gemini-coach architect "Should I use D1 or KV for session storage?" .
```

Get feedback on design decisions with trade-off analysis. Passing `.` includes project context.

### Debugging Help

```bash
gemini-coach debug src/problematic-file.ts
```

Analyse errors when stuck after 2+ failed fix attempts. Gemini sees the code fresh without your debugging context bias.

### Security Scan

```bash
gemini-coach security-scan ./src/api/
```

Scan code for security vulnerabilities (injection, auth bypass, data exposure).

### Quick Question

```bash
gemini-coach quick "Best way to handle WebSockets in Workers?"
```

Fast question without file context.

### Project Review

```bash
gemini-coach project-review "Analyse architecture and suggest improvements" /path/to/project
```

Full project analysis using Gemini's 1M token context.

## When to Use

**Good use cases**:
- Before committing major changes (final review)
- When stuck debugging after multiple attempts
- Architecture decisions with multiple valid options
- Security-sensitive code review
- "What am I missing?" moments

**Avoid using for**:
- Simple syntax checks (Claude handles these faster)
- Every single edit (too slow, unnecessary)
- Questions with obvious answers

## Model Selection

`gemini-coach` automatically selects the right model:

| Mode | Model | Typical Time |
|------|-------|-------------|
| review, debug, quick | gemini-2.5-flash | 5-15s |
| architect, security-scan | gemini-2.5-pro | 15-30s |

Override: `GEMINI_MODEL=gemini-2.5-pro gemini-coach review ...`

## Synthesizing Results

After receiving Gemini's analysis:
1. Present Gemini's findings to the user
2. Add your own perspective — agree/disagree with specific points
3. Let the user decide which recommendations to implement

## Reference Files

| When | Read |
|------|------|
| AI-to-AI prompt templates, model details | [references/prompt-templates.md](references/prompt-templates.md) |

Files in this skill

  • README.md901 B
  • skill.md2.7 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.