pre-push

Installation
SKILL.md

Run pre-push checks to ensure code quality before pushing to remote.

Usage:

  • /pre-push - Run all pre-push checks for the current project

Instructions:

  1. Check for npm pre-push script:

    • Look for package.json in the current directory
    • If found, check if it has a pre-push script in the scripts section
    • If the script exists, run npm run pre-push and report the results
    • If successful, inform the user and STOP here
  2. If no pre-push script exists, auto-detect and run checks in parallel:

    a. Identify project type:

    • Check for package.json (Node.js/JavaScript/TypeScript project)
    • Check for pyproject.toml, setup.py, requirements.txt (Python project)
    • Check for Cargo.toml (Rust project)
Related skills

More from morphet81/cheat-sheets

Installs
78
First Seen
Apr 7, 2026