validate-before-pr

Run lint and format checks before opening a pull request.

3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/alkofu/ai-tpk --skill validate-before-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-before-pr
Source: https://github.com/alkofu/ai-tpk/tree/main/claude/skills/validate-before-pr
Command: npx skills add https://github.com/alkofu/ai-tpk --skill validate-before-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill acts as a mandatory gate that enforces lint and format checks before any pull request is opened, preventing low-quality code from entering the review process.

Core Features & Use Cases

  • Enforces stack-aware validation by running lint and format checks prior to PR creation.
  • Prevents PR creation when checks fail, ensuring only compliant code is proposed.
  • Applicable to any repository workflow that opens PRs and requires pre-PR checks to maintain code quality.

Quick Start

Run pre-PR validation before opening any pull request.

Frequently Asked Questions about validate-before-pr

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

FAQPage Schema
How do I run lint and format checks before opening a pull request?

Pre-PR validation detects your project stack, executes lint and format-check commands, and blocks PR creation if failures occur. This automated gate prevents low-quality code from entering the review process.

Why should I enforce pre-PR checks in my CI-CD workflow?

Enforcing pre-PR checks prevents low-quality code from entering the review process by acting as a mandatory gate. It runs stack-aware lint and format validations before a PR is opened, ensuring only compliant code is proposed.

Does pre-PR validation work with any repository stack?

Pre-PR validation applies to any repository workflow that opens PRs and requires automated quality gates. It features stack detection to ensure lint and format-check commands execute correctly for your specific environment.

What happens if lint or format checks fail during pre-PR validation?

If lint or format checks fail during pre-PR validation, the system blocks PR creation. This ensures that only compliant code passes the automated quality gate and enters the review process.

Can I use this validation gate for automated pull request quality enforcement?

Yes, you can use this validation gate for automated pull request quality enforcement. It runs stack-aware validations and blocks PR creation when failures occur, ensuring only compliant code is proposed.