verify-branch-commits

Verify each commit on the current branch passes the project's full check suite.

10|2|Updated Oct 3, 2020
One-click install
npx skills add https://github.com/Gelio/dotfiles --skill verify-branch-commits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-branch-commits
Source: https://github.com/Gelio/dotfiles/tree/main/universal/claude/skills/verify-branch-commits
Command: npx skills add https://github.com/Gelio/dotfiles --skill verify-branch-commits

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verifying every commit on the current branch ensures that the entire history remains clean and passes the project's checks independently, preventing bad commits from propagating.

Core Features & Use Cases

  • Discover the base ref and the project's verification commands from documentation (AGENTS.md, agent-docs, CLAUDE.md) and prepare the environment.
  • Clear ESLint caches and perform an interactive rebase, editing each commit and applying verification results before continuing.
  • Generate a final report of commits that passed or required fixes, aiding code review and PR readiness.

Quick Start

Rebase onto a base reference if provided and verify every commit on the current branch.

Frequently Asked Questions about verify-branch-commits

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

FAQPage Schema
How do I verify every commit on a branch passes linting and tests independently?

To verify every commit on a branch, you can perform an interactive rebase to edit and check each commit individually. This ensures every commit is independently green across compilation, linting, tests, and formatting before creating a PR.

What is the best way to ensure my git history is clean before a pull request?

Ensuring a clean git history before a pull request requires verifying that each commit passes the project's full check suite independently. This prevents bad commits from propagating and involves rebasing to amend commits as needed.

Does verifying commits independently require specific project configuration files?

Yes, verifying commits independently requires reading project verification commands from specific documentation files. The process discovers the base ref and check commands from AGENTS.md, agent-docs, or CLAUDE.md files to prepare the environment.

Why do I need to clear ESLint caches when checking commits during a rebase?

Clearing ESLint caches is necessary when checking commits during a rebase to ensure formatting and linting checks run accurately against each specific commit state. This prevents stale cache data from masking formatting or lint errors in individual commits.

Can I automatically fix and amend commits that fail project checks during verification?

Yes, you can fix and amend commits that fail project checks during verification. The process performs an interactive rebase with edit, allowing you to apply fixes and amend commits as needed before continuing to the next commit in the history.