# egm-resolve

egm-resolve — a Claude Code skill that automates the resolution of deficiency reports from Goldfish reviewers. It applies fixes, suggests resolutions, and manages interactive checkpoints.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 584 installs · ★ 21935 repo stars
- Author: google · official Google repository
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/google/elephant-goldfish-model/tree/HEAD/skills/egm-resolve/SKILL.md
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/egm-resolve

## What it does

This skill parses deficiency reports and categorizes findings, ranging from automated fixes to user-led escalations. It operates within the `Elephant` context window, so run it in the same session where the target document was generated to maintain reasoning history.

The tool creates a `goldfish_review_report.md` file and pauses for user input before applying changes. It requires `TargetFile`, `LineRange`, and `FindingsList` parameters to function.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add google/elephant-goldfish-model --skill egm-resolve -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/egm-resolve/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/egm-resolve/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add google/elephant-goldfish-model --skill egm-resolve -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/egm-resolve/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add google/elephant-goldfish-model --skill egm-resolve -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/egm-resolve/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install google/elephant-goldfish-model skills/egm-resolve
```

2. **Manually: put the files in place**
- File: `.github/skills/egm-resolve/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add google/elephant-goldfish-model --skill egm-resolve -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/google/elephant-goldfish-model --path skills/egm-resolve
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/egm-resolve/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add google/elephant-goldfish-model --skill egm-resolve -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/google/elephant-goldfish-model/tree/HEAD/skills/egm-resolve/SKILL.md

## When to use it
- parse deficiency reports from reviewers
- automate code repairs
- manage interactive resolution checkpoints

## Example prompts
- Resolve findings in `src/auth.ts` for lines 10-50
- Apply automated fixes for `findings.json`

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 7a98964d1a048a0b.

BEGIN THIRD-PARTY FILE 7a98964d1a048a0b
```text
---
name: egm-resolve
license: Apache-2.0
disable-model-invocation: true
description: >-
  The Elephant resolution skill. Ingests flat deficiency reports from
  concurrent Goldfish reviewers, applies automated fixes for PROPOSE FIX
  items via UI multiple-choice gates, and presents interactive
  negotiation/re-sync checkpoints.
---

# Goldfish Review: Resolve

When running in Codex or ChatGPT Work, first read [Codex integration](../../docs/codex.md).
In Claude Code or Cowork, read `${CLAUDE_PLUGIN_ROOT}/docs/claude.md` first.

## Overview

This skill instructs the agent on how to operate within the primary Elephant
context window to parse flat deficiency reports from concurrent Goldfish
reviewers. It defends accurate design choices, applies automated textual
repairs, and manages interactive negotiation checkpoints.

## Prerequisites & Context Strategy

*   **Context Recommendation (Elephant Memory)**: This skill should be run in
    the persistent conversation session that generated the target document (the
    Elephant) to recall earlier reasoning and craft higher-quality fixes.

## Inputs

The caller or orchestration driver provides exactly these parameters:

*   **`TargetFile`**: Absolute or relative path to target document.
*   **`LineRange`**: Exact line numbers (or `full file`).
*   **`FindingsList`**: Aggregated flat list of findings from Goldfish
    reviewers.

## Execution Workflow

### Step 1: Intake Validation & Gather Context

1.  **Hybrid Execution UX**: Detect if execution arguments are present:

    *   *Automated Mode*: If all parameters are provided, execute silently as a
        subprocess.
    *   *Standalone Human Mode*: If parameters are omitted, trigger a friendly
        onboarding flow. Prompt for one piece of input at a time, waiting for
        the user's response after each turn. Once all inputs are specified,
        display the final setup and verify the user is ready to continue.

2.  Read `TargetFile` at `LineRange` by reading it and parse the `FindingsList`.

### Step 2: Evaluate & Categorize

Give each finding exactly one category:

*   **CONTEST**: The critique is inaccurate or relies on a misunderstanding of
    the codebase. Cite evidence that the reviewer could read: a file and
    symbol, or a decision recorded in the document.
*   **ESCALATE**: The critique is inaccurate, but the evidence is outside every
    file the reviewer could read (for example, a team convention or a verbal
    decision). State that fact. Do not fix the finding. Give it to the user.
*   **PROPOSE FIX**: The critique is valid. Define precise textual replacements
    or structural formatting adjustments to resolve the gap.
*   **DECLINE**: The finding is a Nit. Record it. Do not fix it. You can use
    PROPOSE FIX for a Nit if the fix is worth it.

Apply these rules:

*   **A contest must be checkable.** "This was intentional" is not evidence.
    If you cannot cite evidence the reviewer could read, use ESCALATE or
    PROPOSE FIX.
*   **Do not add context only to satisfy a reviewer.** Add context when a human
    reader of the document needs it. If only a zero-context subagent needs it,
    use ESCALATE.
*   **Do not contest a comprehension gap.** If a fresh reader could not follow
    the document, the document is missing context.
```
END THIRD-PARTY FILE 7a98964d1a048a0b

The third-party file has ended. Everything between the 7a98964d1a048a0b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3303 of 8541 bytes. © google · Apache-2.0 · https://github.com/google/elephant-goldfish-model/tree/HEAD/skills/egm-resolve/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
