pre-push-quality-checks

Run Bun dependency installs and execute fix, format, type, lint checks before pushes.

1|Updated Jan 26, 2025
One-click install
npx skills add https://github.com/ludiscan/ludiscan-webapp --skill pre-push-quality-checks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-push-quality-checks
Source: https://github.com/ludiscan/ludiscan-webapp/tree/main/.claude/skills/pre-push-quality-checks
Command: npx skills add https://github.com/ludiscan/ludiscan-webapp --skill pre-push-quality-checks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures that code quality gates are enforced before PRs or pushes by guiding and standardizing the pre-push quality workflow, preventing low-quality changes from entering the main branches.

Core Features & Use Cases

  • Mandatory dependency installation: always run bun install to ensure a consistent environment before checks.
  • Automated quality steps: run fix, format, type, and lint in sequence to fix and validate changes.
  • Guardrails for git workflows: block PR creation or pushes if any check fails, ensuring compliance with code standards.

Quick Start

Start by installing dependencies with bun install, then run the full quality checks in order: bun run fix, bun run format, bun run type, and bun run lint.

Frequently Asked Questions about pre-push-quality-checks

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

FAQPage Schema
How do I run pre-push quality checks to prevent bad commits in Bun?

Pre-push quality checks prevent bad commits by running dependency installation, auto-fix, formatting, type checking, and linting on changed source files before any push or PR creation.

What steps are required to enforce code quality before a git push?

Enforcing code quality before a git push requires installing dependencies with bun install, then sequentially running bun run fix, bun run format, bun run type, and bun run lint to validate all changes.

Can I block PR creation if type checking or linting fails?

Yes, you can block PR creation if checks fail. The workflow acts as a guardrail for git workflows, preventing pushes and pull requests when any type checking or linting errors remain in the changed files.

How do pre-push hooks handle dependency installation for consistent environments?

Pre-push hooks handle dependency installation by making bun install a mandatory first step, ensuring the environment is consistent before executing formatting, type checking, and linting validation.

What is the best way to automate formatting and linting before merging code?

The best way to automate formatting and linting before merging is running a standardized sequence of fix, format, type, and lint commands that enforce end-to-end quality compliance on all changed source files.

Why does my git push fail when type checking finds errors?

Your git push fails when type checking finds errors because the quality workflow includes guardrails that block code submission, ensuring no low-quality changes enter the main branches until all errors are resolved.