pre-push-check

Runs automated code review and compliance checks before pushing to staging or release workflows.

1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AndreJorgeLopes/devflow --skill pre-push-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-push-check
Source: https://github.com/AndreJorgeLopes/devflow/tree/main/skills/pre-push-check
Command: npx skills add https://github.com/AndreJorgeLopes/devflow --skill pre-push-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents broken or non-compliant changes from reaching the main branch by enforcing an automated pre-push quality pipeline and a self-review against project standards.

Core Features & Use Cases

  • Automated review pipeline: Runs the full devflow check rule set (Claude Code primary, OpenCode fallback, and direct lint/type-check fallback).
  • Self-review against CLAUDE.md: Verifies scope discipline, naming conventions, architecture patterns, import paths, error handling, security, and test coverage.
  • Common issue screening: Flags risky or low-quality commits such as secrets, debug logs, any usage, missing async error handling, and TODOs without ticket references.

Quick Start

Use the pre-push-check skill to validate your upcoming commits by running the Skill’s instructions right before pushing to your remote branch.

Frequently Asked Questions about pre-push-check

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

FAQPage Schema
How do I run automated code review checks before pushing my git diff?

To run automated code review checks before pushing, execute the pre-push pipeline which validates your git diff by performing a self-review against CLAUDE.md and screening for common issues like secrets or missing tests. This enforces project quality gates before changes reach the main branch.

What is a pre-push quality gate and how does it enforce compliance?

A pre-push quality gate is an automated validation checkpoint preventing broken commits from reaching the main branch. It enforces compliance by verifying scope discipline, architecture patterns, and security against the rules defined in your CLAUDE.md file.

Can I use pre-push checks for staging and release workflows?

Yes, you can use pre-push checks for staging and release workflows. They are specifically designed for environments requiring consistent quality gates, fast feedback, and reduced regression risk across diffs before integrating changes into upstream branches.

What common code issues are flagged during a pre-push self-review?

During a pre-push self-review, the pipeline flags risky or low-quality commits such as hardcoded secrets, leftover debug logs, `any` type usage, missing async error handling, and TODOs without ticket references to ensure clean, secure code.

What happens if the primary code review tool fails during the pre-push check?

If the primary Claude Code tool fails during the pre-push check, the pipeline automatically falls back to OpenCode, and subsequently to direct lint and type-check fallbacks. This ensures your diff-based self-review and issue screening still execute successfully.