pre-push

Run diff-aware pre-push checks on changed files before pushing.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eric-sabe/engsys --skill pre-push-eric-sabe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-push
Source: https://github.com/eric-sabe/engsys/tree/main/core/skills/pre-push
Command: npx skills add https://github.com/eric-sabe/engsys --skill pre-push-eric-sabe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the wasted time and frustration of pushing code that fails CI checks, or running slow, full test suites for small, targeted code changes that only impact a subset of the project.

Core Features & Use Cases

  • Diff-Aware Check Selection: Automatically maps changed files to only the relevant build, lint, and test checks, skipping unnecessary suites to keep pre-push validation fast.
  • Project-Agnostic Integration: Works with any project's existing precheck command (npm scripts, Make targets, Taskfile, etc.) so it adapts to your team's existing workflow without reconfiguration.
  • Pre-Push Code Review Integration: Optionally runs a local code review before pushing to catch issues early, reducing wasted CI minutes on post-push review loops.
  • Use Case: If you only modified a single UI component, the gate runs build, lint, and frontend tests instead of the full backend, e2e, and infrastructure suites, cutting pre-push time from 30 minutes to under 2.

Quick Start

Use the pre-push skill to run the diff-aware pre-push gate for your current branch changes before pushing to the remote repository.

Frequently Asked Questions about pre-push

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

FAQPage Schema
How do I run only relevant tests before pushing with a git hook?

Diff-aware pre-push validation maps changed files to relevant build, lint, and test checks, skipping unnecessary suites to keep pre-push testing fast and targeted for small code changes.

What is diff-aware testing and how does it optimize CI workflows?

Diff-aware testing eliminates post-push CI failures by running only checks relevant to changed files, reducing full-suite test runs for small code changes and cutting pre-push validation time significantly.

Can I integrate pre-push checks with existing npm scripts or Make targets?

Yes, this project-agnostic git hook integrates with any existing precheck command like npm scripts, Make targets, or Taskfile, adapting to your team's workflow without requiring reconfiguration.

What's the best way to skip optional tooling during local code validation?

The pre-push gate features graceful skipping of optional tooling, ensuring local code validation proceeds smoothly by bypassing unavailable tools without breaking the check workflow.

Is there an emergency bypass for git hooks when pushing urgent fixes?

Yes, the diff-aware pre-push gate includes an emergency bypass option for edge cases, allowing you to push urgent fixes quickly when standard validation checks must be skipped.