florianbruniaux/claude-code-ultimate-guide/validate-changes

Claude Code and agent skill by florianbruniaux/claude-code-ultimate-guide

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Evaluate staged changes using LLM-as-a-Judge before committing

Install

npx vskill@latest install florianbruniaux/claude-code-ultimate-guide/validate-changes

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as florianbruniaux/claude-code-ultimate-guide/validate-changes.

Validate changes before commit

Evaluate staged git changes using the output-evaluator agent to catch issues before committing.

Process

Step 1: Check for staged changes

Run git diff --cached --stat to see what's staged. If nothing is staged, inform the user and exit.

Step 2: Get the full diff

Run git diff --cached to get the complete diff of all staged changes.

Step 3: Invoke the evaluator

Use the Agent tool to launch the output-evaluator subagent (examples/agents/output-evaluator.md; it must be installed in .claude/agents/) with the diff:

Evaluate these staged changes for correctness, completeness, and safety.
Return a JSON verdict with scores and issues.
Changes:
[paste the git diff here]
Step 4: Parse and act on verdict

Based on the evaluation result:

If APPROVE:

  • Tell the user the changes passed evaluation
  • Show the summary and scores
  • Ask if they want to proceed with commit

If NEEDS_REVIEW:

  • Show all issues found (grouped by severity)
  • Show the suggestion from the evaluator
  • Ask the user how to proceed:
  • Fix issues and re-evaluate
  • Commit anyway (acknowledge risks)
  • Abort

If REJECT:

  • Clearly state the changes were rejected
  • Show critical issues that caused rejection
  • Do NOT offer to commit anyway
  • Suggest specific fixes
Step 5: Commit (if approved)

If user confirms, create the commit using the standard commit flow.

Usage examples

/validate-changes

Output:

Evaluating 3 staged files...
VERDICT: NEEDS_REVIEW
Scores:
Correctness: 8/10
Completeness: 6/10
Safety: 9/10
Issues Found:
[MEDIUM] src/api/handler.ts:45
Missing error handling for network failures
[LOW] src/utils/format.ts:12
Consider adding input validation
Suggestion: Add try-catch around the fetch call in handler.ts
How would you like to proceed?
1. Fix issues and re-evaluate
2. Commit anyway (1 medium issue)
3. Abort

Cost awareness

This skill invokes an LLM evaluation, which uses API tokens:

  • Typical cost: \$0.01-0.05 per evaluation (using Haiku)
  • Larger diffs: May cost more due to increased token usage

When to use

  • After significant code changes before committing
  • When working on unfamiliar parts of the codebase
  • For changes that affect security-sensitive code
  • Before pushing to shared branches

When to skip

  • Trivial changes (typos, formatting)
  • Documentation-only changes
  • When you've already manually reviewed thoroughly
  • When iterating quickly on a feature branch

Integration with git hooks

For automatic evaluation on every commit, see pre-commit-evaluator.sh hook. This skill is the manual alternative when you want control over when evaluation runs.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
5,719
Repository forks
749
7-day trend score
43

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/florianbruniaux/claude-code-ultimate-guide/validate-changes/badge)](https://verified-skill.com/skills/florianbruniaux/claude-code-ultimate-guide/validate-changes)

Something wrong with this skill or its page? Tell us.