precommit-diagnostics

Diagnose pre-commit and pre-push failures across PHP and JS/TS toolchains.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/majedsiefalnasr/bunyan-app-cursor --skill precommit-diagnostics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: precommit-diagnostics
Source: https://github.com/majedsiefalnasr/bunyan-app-cursor/tree/main/.agents/skills/precommit-diagnostics
Command: npx skills add https://github.com/majedsiefalnasr/bunyan-app-cursor --skill precommit-diagnostics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pre-commit failures in codebases often derail development, causing wasted time on debugging, flaky CI runs, and delayed releases. This skill provides a centralized checklist and guidance to diagnose and fix issues before commits reach the repository.

Core Features & Use Cases

  • Backend (PHP): Pint formatting checks, PHPStan static analysis, PHPUnit parallel tests
  • Frontend (JS/TS): ESLint, Nuxt typecheck, Vitest
  • Use Case: When a pre-commit runs, you see actionable diagnostics and fixes to pass hooks before pushing.

Quick Start

Run the pre-commit diagnostics to catch and fix failures before committing.

Frequently Asked Questions about precommit-diagnostics

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

FAQPage Schema
How do I fix pre-commit hook failures for PHP and JS toolchains?

Pre-commit diagnostics triage hook failures across backend PHP and frontend JS/TS toolchains by applying Laravel Pint, PHPStan, PHPUnit, ESLint, Nuxt typecheck, and Vitest workflows to provide actionable fixes before pushing code.

How do I run static analysis and lint checks before committing code?

Static analysis and lint checks are enforced by running pre-commit diagnostics, which evaluate configured Laravel Pint, PHPStan, and ESLint toolchains to catch formatting, typing, and lint issues before a commit is finalized.

Can I diagnose PHPUnit and Vitest test failures before pushing?

Yes, you can diagnose PHPUnit and Vitest test failures before pushing by running the pre-commit diagnostics skill, which evaluates parallel tests and frontend workflows to report issues early in the developer cycle.

What is the best way to triage Nuxt typecheck and ESLint errors locally?

The best way to triage Nuxt typecheck and ESLint errors locally is to use pre-commit diagnostics, which centralize frontend JS/TS toolchain checks to report and guide fixes for type and lint issues before they reach CI.

Does pre-commit diagnostics work with both Laravel Pint and PHPStan?

Yes, pre-commit diagnostics works with both Laravel Pint and PHPStan, applying backend PHP checks to diagnose formatting and static analysis issues to maintain code quality in your developer workflow.