prepare-push

Format changed files, run lint and build checks, and draft PR descriptions before pushing.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/BrunoAlpezdev/lluvia-de-ideas --skill prepare-push
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-push
Source: https://github.com/BrunoAlpezdev/lluvia-de-ideas/tree/main/.claude/skills/prepare-push
Command: npx skills add https://github.com/BrunoAlpezdev/lluvia-de-ideas --skill prepare-push

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or low-quality code from being pushed by automatically preparing your branch with formatting, linting, and build validation, while drafting or updating a useful PR description.

Core Features & Use Cases

  • Change-aware formatting: Detects only unpushed changes and runs Prettier on just those files to keep the diff focused.
  • Quality gate before pushing: Runs lint and build checks (tests are skipped if no framework is configured) so failures are caught early.
  • PR description automation: Creates a draft PR summary with a test plan checklist or updates an existing PR’s body to stay consistent.
  • Push-readiness marker: Writes a temporary marker indicating the push gate can confirm the preflight ran recently.

Quick Start

Use the prepare-push skill before running git push to automatically rebase, format changed files, run lint and build, and draft an updated PR description.

Frequently Asked Questions about prepare-push

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

FAQPage Schema
How do I run preflight checks before a git push to ensure clean code?

Preflight checks before a git push automatically format modified files, run pnpm lint and pnpm build sequentially, and draft PR descriptions to prevent broken code from reaching the repository.

What is the best way to format only unpushed files with Prettier in a GitHub workflow?

Change-aware formatting detects only unpushed commits and runs pnpm exec prettier --write on those specific modified files, keeping your pull request diff focused and clean.

Does the pre-push quality gate run tests if no testing framework is configured?

The pre-push quality gate runs pnpm lint and pnpm build sequentially to catch failures early, but explicitly skips tests if no testing framework is configured in the project.

How do I rebase local changes onto a pull request base branch before pushing?

Pre-push preparation rebases your local commits onto the PR base branch, or falls back to master, ensuring your changes are synchronized before running formatting and lint checks.

Why do I need a temporary marker file for a push gate?

A temporary marker file written to /tmp coordinates the push gate by indicating that preflight formatting, linting, and build checks have recently run successfully.

What are the limitations of using automated pre-push checks for CI validation?

Automated pre-push checks are limited to pnpm lint and pnpm build validation, skipping tests entirely if no framework is configured, and require a GitHub-based workflow to rebase and draft PRs.