Skip to content
Back to skills

Fresh Context Review

ASecurity

Review an artifact against acceptance criteria with a fresh-context agent that never sees the chat history.

  • 130 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgogitsecurity

Works with

  • claude code
  • cursor
  • cli

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add jellydn/my-ai-tools --skill fresh-context-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fresh Context Review?

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

Security grade badge for Fresh Context Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jellydn-fresh-context-review/badge)](https://www.skillsdirectory.com/skills/jellydn-fresh-context-review)

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: fresh-context-review
description: "Review an artifact against acceptance criteria with a fresh-context agent that never sees the chat history."
license: MIT
compatibility: cline, claude, opencode, amp, codex, gemini, cursor, pi
hint: Use after tests, lint, and type checks pass, to get an independent pass or fail verdict on a spec, diff, or test output
user-invocable: true
metadata:
---

# Fresh-Context Review

The agent that wrote an artifact shares the assumptions of the conversation that made it. A reviewer that reads the
same conversation inherits them. This skill gives a new agent only the artifact and the acceptance criteria, so it
must judge what was produced, not what was intended.

## When to Use

- Before you merge a diff, approve a spec, or report a task as done.
- When the author agent and the conversation are long and full of decisions that the artifact may not record.
- When you want a second opinion that does not depend on the author's explanation.

Do not use it for formatting, syntax, or type problems. Automation finds those faster and more reliably.

## Step 1: Run the Deterministic Checks First

This review comes after the deterministic checks. It does not replace them.

1. Run the project's tests, linter, formatter check, and type checker. Use the commands from the repository guidance
   (for example `AGENTS.md`, `CONTRIBUTING.md`, or CI configuration).
2. If a check fails, stop. Fix the failure and run the checks again. Do not ask a reviewer to judge an artifact that
   fails a deterministic check.
3. Keep the commands and their decisive output. The test output can be part of the review packet.

If a check that the project requires cannot run, stop and tell the user which check is unavailable and why. Continue
only when the user accepts the gap, and list the check as "did not run" in the packet and in your report. A check that
the project does not have (for example, no type checker) is not a gap; record it as "not applicable".

## Step 2: Build the Review Packet

The packet contains exactly two parts.

**Artifact** — the thing to judge, in full or by path:

- a spec or design document;
- a diff (`git diff <base>...HEAD`) and the files it touches. That range omits uncommitted work: commit first, or add
  `git diff HEAD` and the untracked files;
- test, lint, and type-check output from Step 1.

**Acceptance criteria** — numbered statements that a reviewer can check against the artifact, such as "AC2: A failed
delivery retries at most three times." Use the criteria from the task, issue, or spec. If no criteria exist, write
them from the request, mark each one as derived, and show them to the user before the review when the work is risky.

Do not put these in the packet:

- the chat history, or a summary of it;
- the author's reasoning, plan, or self-assessment ("this should work", "I verified X");
- earlier review verdicts, or the findings you expect;
- a pull request description that argues for the change. Give the reviewer the criteria, not the argument.

Before you send the packet, read it once and remove each sentence that tells the reviewer what to conclude.

## Step 3: Start a Fresh Reviewer

Start a new agent context for each review: a subagent (`Task` in Amp or Claude Code), a new session, or a separate
CLI run. Give it the packet and the prompt below. The reviewer may read repository files that the artifact refers to,
but it must not edit files or run commands that change state.

If the harness cannot start a fresh context, stop and tell the user. Do not simulate the review in the current
context; that review shares every assumption this skill tries to remove.

```text
You are an independent reviewer. You did not write this artifact and you have no context except this message.

Judge the artifact only against the acceptance criteria. For each criterion, find evidence in the artifact or in the
repository files it refers to. Do not assume that a behavior exists because a name, comment, or message says so.
Do not edit files.

Return:
VERDICT: PASS or FAIL
CRITERIA:
- AC<n>: met | not met | cannot verify — evidence (file:line, test name, or output line)
FINDINGS:
- [blocker|major|minor] AC<n> or "general" — location — problem — smallest fix

Rules:
- PASS only when every criterion is met with evidence and no blocker exists.
- A criterion with no evidence in the packet or in the repository files it refers to is "cannot verify" and makes
  the verdict FAIL.
- Report a general finding only for a defect that breaks a criterion's intent or adds a clear risk.
- Do not report style preferences or problems that the listed deterministic checks already cover.

ARTIFACT:
<artifact or paths>

DETERMINISTIC CHECKS:
<commands and results, including checks that did not run>

ACCEPTANCE CRITERIA:
<numbered criteria>
```

## Step 4: Act on the Result

- Treat each finding as a claim. Verify it against the code or document before you change anything.
- Fix confirmed findings, run Step 1 again, and start a **new** reviewer with a new packet. Do not reuse the earlier
  reviewer or show it your rebuttal; that gives it the author's context.
- Stop after three review rounds and give the open findings to the user.
- When you disagree with a finding, tell the user the finding and your evidence. The user decides.

Report the verdict, the criteria table, the confirmed findings, and the findings you rejected with your reason.

## Limits

- This is an AI review, not deterministic verification. A reviewer can miss defects or report false ones. A `PASS`
  means that one reviewer found evidence for each criterion; it does not prove correctness.
- It does not replace tests, type checks, security review, or human approval.
- The result is only as good as the acceptance criteria. Weak criteria give a weak review.

## Reference

The approach comes from the [Elephant-Goldfish Model (EGM)](https://github.com/google/elephant-goldfish-model), an
Apache-2.0 plugin for AI assistants. In EGM, an "elephant" agent holds the project context and drafts a
specification, and "goldfish" reviewers examine the draft and its referenced source material without the earlier
conversation, to expose unstated assumptions. EGM stops a review when the agent cannot create fresh subagent contexts,
and states that a review does not replace tests or human judgment.

Caveats:

- EGM is AI-based review, not deterministic verification.
- EGM's README states: "This is not an officially supported Google product."
- This skill is a local adaptation of the idea. It does not install or call EGM, and EGM's built-in workflow targets
  software specifications, while this skill also applies to diffs and test output.

Files in this skill

  • SKILL.md6.6 KB
  • evals/evals.json1.6 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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