xiaohongshu
xiaohongshu
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 ...
Full skill instructions
Review diff classification cases to determine if the LLM correctly categorized hunks, identified change type, and told a coherent story.
The classification drives a story-guided review UI where:
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.
y key)Before evaluating, gather this context (extract repo, branch, commit hashes from the input):
bd show <branch> # e.g., bd show diffview-7yu
Gives: Why was this change made? What problem does it solve?
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?
gh pr list --head <branch> --json number,title,body --jq '.[0]'
Gives: Author's description of the change, which helps verify summary accuracy.
git log --oneline -3 <filepath>
Gives: Is this a refactor of recent work, or new functionality?
What each context verifies:
| Type | Correct when... | Misapplied when... |
|---|---|---|
| bugfix | Removes incorrect behavior or adds missing behavior that should have existed | Adds genuinely new capability (→ feature) |
| feature | Adds new capability that didn't exist before | Restructures existing capability (→ refactor) |
| refactor | Same behavior, different structure | Behavior actually changes |
| chore | Maintenance: deps, CI, build scripts. No functional changes | Includes functional changes |
| docs | Only docs/comments change | Code changes accompany doc changes |
| Pattern | Correct when... | Misapplied when... |
|---|---|---|
| cause-effect | Clear problem → solution structure | No identifiable "problem" |
| core-periphery | One central change causes ripples | Changes are independent |
| before-after | Transformation from old to new pattern | No clear "before" state |
| rule-instances | Pattern defined once, applied N times | Each change is unique |
| entry-implementation | Public API defined, then implementation | No clear API boundary |
| Category | Correct when... | Dangerous if wrong |
|---|---|---|
| core | Changes program behavior. Must review | Marked systematic → hides bugs |
| systematic | Mechanical: renames, params, boilerplate | Marked core → wastes attention |
| refactoring | Code moves without behavior change | Behavior actually changes |
| noise | Formatting, whitespace only | Real changes hidden |
Key test: If skipping could cause a reviewer to miss a bug, it's core.
Beads files (.beads/) require special handling based on what they affect:
| Change Scope | Category | UI Treatment | Rationale |
|---|---|---|---|
| Current issue status/closed | noise | Suppress | Reviewer is already reviewing this work |
| Current issue notes updated | noise | Suppress | Mechanical bookkeeping |
| Dependency edges added/removed | noise | Suppress | Graph maintenance |
| Wiring notes to other issues | supporting | Show (de-emphasized) | Documents decisions for future work |
| New issues created | supporting | Show (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.
| Role | Contains... |
|---|---|
| problem | What's broken/missing |
| fix | The solution |
| test | Test additions/modifications |
| core | Essential logic changes |
| supporting | Enables but isn't focus (including exceptions to patterns) |
| pattern | Repeatable approach being applied |
| interface | API/interface definitions |
| cleanup | Removing old code |
Grouping test: Hunks in a section should be semantically related, not just in the same file.
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:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience