hf.diff-sanity

Analyze git diffs for accidental deletions, debug code, and logic errors.

5|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/T-rav/hydraflow --skill hf-diff-sanity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf.diff-sanity
Source: https://github.com/T-rav/hydraflow/tree/main/.codex/skills/hf.diff-sanity
Command: npx skills add https://github.com/T-rav/hydraflow --skill hf-diff-sanity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review branch diffs to catch accidental deletions, leftover debug code, missing imports, scope creep, and logic errors before merging.

Core Features & Use Cases

  • Detects stray modifications and potential bugs in diffs.
  • Provides actionable feedback for pre-commit and code-review workflows.
  • Use case: during feature completion, run this to ensure only intended changes are present.

Quick Start

Run the diff sanity check on the current branch before committing.

Frequently Asked Questions about hf.diff-sanity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check a git diff for accidental deletions and leftover debug code before committing?

To check a git diff for accidental deletions and leftover debug code, run a pre-commit sanity scan. This process analyzes branch outputs to surface stray modifications and missing imports, preventing faulty code from being committed.

What is diff sanity checking and when should I use it during code review?

Diff sanity checking is the process of analyzing branch differences to catch logic errors and scope creep. Use it during code reviews and feature audits to ensure only intended changes are present before merging into the main project.

Can I detect missing imports and scope creep in my current git branch diff?

Yes, you can detect missing imports and scope creep in your current git branch diff by applying deterministic checks. This analysis surfaces potential mistakes and provides actionable feedback for your code-review workflow.

Does this pre-commit diff check work without additional dependencies?

Yes, this pre-commit diff check works without additional dependencies. It analyzes your git diff outputs using structured findings and deterministic checks to identify potential bugs across typical software projects and team workflows.

What is the best way to find stray modifications in a feature branch before merging?

The best way to find stray modifications in a feature branch before merging is to run a structured diff analysis. This identifies potential bugs and logic errors, providing actionable feedback to ensure only intended changes are committed.