Skip to content
eval-review logo

Eval Review

eval-review

Review LLM-generated diff classifications for the diffview eval system. Use when the user invokes this skill or pastes yanked case data from evalreview (containing "# Diff Classification Review" header). Evaluates whether classifications accurately help code reviewers, provides pass/fail verdict ...

SKILL.md

Full skill instructions

Eval Review

Review diff classification cases to determine if the LLM correctly categorized hunks, identified change type, and told a coherent story.

Why Classifications Matter

The classification drives a story-guided review UI where:

  1. PRs become "pages" — Each story section is a page showing a subset of hunks with narration
  2. Categories control visibility:
    • core → Shown prominently. Reviewer must see this.
    • supporting → Shown de-emphasized. Worth a glance.
    • noise → Suppressed. Don't waste reviewer attention.
  3. Narration guides understanding — Section explanations tell the reviewer what they're looking at and why it matters

The stakes: A miscategorized hunk either hides something important (core → noise) or wastes attention on trivia (noise → core). The classifier's job is to help reviewers focus.

Workflow

  1. Receive case data — User pastes yanked content from evalreview (y key)
  2. Gather context — Fetch additional context to verify claims
  3. Evaluate — Apply criteria tables below
  4. Verdict — Provide pass/​fail with actionable critique

Context Discovery

Before evaluating, gather this context (extract repo, branch, commit hashes from the input):

1. Beads Issue (intent)

bd show <branch>   # e.g., bd show diffview-7yu

Gives: Why was this change made? What problem does it solve?

2. Full Files at Commit (surrounding code)

git show <hash>:<filepath>   # e.g., git show abc123:pkg/​auth/​login.go

Gives: See functions around the changed hunks. Is a "systematic" hunk actually changing behavior?

3. PR Description (if exists)

gh pr list --head <branch> --json number,title,body --jq '.[0]'

Gives: Author's description of the change, which helps verify summary accuracy.

4. Recent History of Changed Files

git log --oneline -3 <filepath>

Gives: Is this a refactor of recent work, or new functionality?

What each context verifies:

  • Beads issue → change_type, narrative pattern
  • Full files → hunk categories (core vs systematic)
  • PR description → summary quality
  • File history → feature vs refactor distinction

Evaluation Criteria

Change Types

TypeCorrect when...Misapplied when...
bugfixRemoves incorrect behavior or adds missing behavior that should have existedAdds genuinely new capability (→ feature)
featureAdds new capability that didn't exist beforeRestructures existing capability (→ refactor)
refactorSame behavior, different structureBehavior actually changes
choreMaintenance: deps, CI, build scripts. No functional changesIncludes functional changes
docsOnly docs/​comments changeCode changes accompany doc changes

Narratives

PatternCorrect when...Misapplied when...
cause-effectClear problem → solution structureNo identifiable "problem"
core-peripheryOne central change causes ripplesChanges are independent
before-afterTransformation from old to new patternNo clear "before" state
rule-instancesPattern defined once, applied N timesEach change is unique
entry-implementationPublic API defined, then implementationNo clear API boundary

Hunk Categories

CategoryCorrect when...Dangerous if wrong
coreChanges program behavior. Must reviewMarked systematic → hides bugs
systematicMechanical: renames, params, boilerplateMarked core → wastes attention
refactoringCode moves without behavior changeBehavior actually changes
noiseFormatting, whitespace onlyReal changes hidden

Key test: If skipping could cause a reviewer to miss a bug, it's core.

Beads/​Issue Tracker Changes

Beads files (.beads/) require special handling based on what they affect:

Change ScopeCategoryUI TreatmentRationale
Current issue status/​closednoiseSuppressReviewer is already reviewing this work
Current issue notes updatednoiseSuppressMechanical bookkeeping
Dependency edges added/​removednoiseSuppressGraph maintenance
Wiring notes to other issuessupportingShow (de-emphasized)Documents decisions for future work
New issues createdsupportingShow (de-emphasized)Discovered scope worth noting

The rule: Changes scoped to <current-branch-id> → noise. Changes propagating context to other issue IDs → supporting.

Mixed hunks: If a beads hunk contains both current-issue bookkeeping and downstream wiring notes, categorize by dominant content. Pure status updates = noise; substantive wiring notes = supporting.

Section Roles

RoleContains...
problemWhat's broken/​missing
fixThe solution
testTest additions/​modifications
coreEssential logic changes
supportingEnables but isn't focus (including exceptions to patterns)
patternRepeatable approach being applied
interfaceAPI/​interface definitions
cleanupRemoving old code

Grouping test: Hunks in a section should be semantically related, not just in the same file.

Output Format

Use this structured format for consistent, scannable reviews:

## Verdict: PASS | FAIL

[One sentence summary of the classification quality]

## Evaluation

### Change Type: [type] — ✓ Correct | ✗ Wrong
[1-2 sentences explaining why this type fits or doesn't fit]

### Narrative: [pattern] — ✓ Correct | ✗ Wrong
[1-2 sentences explaining why this pattern fits or doesn't fit]

### Hunk Assignments
| Hunk | Assigned | Correct? | Issue |
|------|----------|----------|-------|
| file.go:H0 | core | ✓ | — |
| test.go:H0 | test | ✓ | — |
| .beads:H0 | supporting | ✓ | Could argue noise |

### Section Structure
[Are sections well-organized? Do explanations help reviewers?]

## Context Gathered
- `bd show <id>` — [what it revealed]
- `git log <file>` — [what it revealed]

Formatting rules:

  • Use ✓ for correct, ✗ for incorrect
  • Keep each evaluation to 1-2 sentences max
  • The hunk table should list every hunk with quick assessment
  • If FAIL, the "Issue" column should state what it should be

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View