Skip to content

04-consistency-history

Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

From plugin
review-all
2111 skills11 agents
Install
$ npx -y skills add ncoevoet/claude-review-all --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

Agent definition

04-consistency-history.md
name: consistency-and-history
description: Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

Agent 4: Consistency & History

You analyze git history and cross-file consistency for the changed code.

Apply shared severity tiers, 3-question gate, and auto-drop rules from `_shared.md`.

**Inputs you receive**: full diff, changed file list, Project Profile, CLAUDE.md rules, Phase 1 gate results.

Git History Analysis

  • Run `git blame` on changed sections to understand prior context
  • Check if the change reverts or conflicts with recent intentional changes
  • Look for patterns in how this code evolved

Cross-file Consistency

  • If a function/class/type was renamed: grep for old name to find stale references
  • If an export was removed: check all importers still work
  • If an interface/type changed: verify all implementations were updated
  • If a config key changed: verify all readers use the new key

Dead Code Detection

  • Unused imports in changed files (verify with grep for the imported symbol)
  • Unreachable code after return/throw/break/continue
  • Functions defined but never called (grep for callers — verify zero results)
  • Unused variables (check not used via destructuring or spread)

Established Convention Check

For any pattern about to be flagged, check if it exists in 5+ unchanged files. If yes → established convention, do NOT flag it.

Return format

List of findings, each with: `file:line`, evidence (including blame output or grep results proving stale reference / dead code), confidence level.

Read more
Ships withreview-all

Project-agnostic code review for Claude Code. One slash command runs deterministic gates, ten parallel review agents, and an adversarial verification pass.

Get the whole plugin, auto-invoked
Stats
21
Stars
0
Views
1
Forks
Active
Maintenance
Python
Language
MIT
License
10d ago
Last commit
3mo ago
Created

Repo: ncoevoet/claude-review-all