pre-submit-pr

Automate pre-submit PR validation with linting, tests, and RFC analysis.

2.5k|421|Updated Oct 1, 2025
One-click install
npx skills add https://github.com/meta-pytorch/OpenEnv --skill pre-submit-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-submit-pr
Source: https://github.com/meta-pytorch/OpenEnv/tree/main/.claude/skills/pre-submit-pr
Command: npx skills add https://github.com/meta-pytorch/OpenEnv --skill pre-submit-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the pre-submit validation of code changes, reducing manual review time by ensuring standards are met before a pull request is created.

Core Features & Use Cases

  • Lint and style checks: Enforces formatting and coding standards across the codebase.
  • Automated tests: Runs unit and integration tests to catch regressions before submission.
  • Alignment review: Validates adherence to project guidelines and design principles.
  • RFC analysis: Assesses RFC compliance and potential design intents before review.
  • PR metadata validation: Checks branch status, commit history, and required reviews to prevent out-of-date or unreviewed PRs.

Quick Start

Run the pre-submit-pr checks on your current branch before creating or updating a PR.

Frequently Asked Questions about pre-submit-pr

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

FAQPage Schema
How do I automate pre-submit validation for pull requests?

Pre-submit validation automates checks before PR creation, running linting, tests, alignment reviews, and RFC analysis to catch issues early. This reduces manual review time by enforcing standards automatically on your feature branch.

What checks does pre-submit PR validation cover?

Pre-submit PR validation covers lint and style enforcement, unit and integration tests, alignment with project guidelines, RFC compliance assessment, and PR metadata validation including branch status and commit history.

Can I run pre-submit checks before creating a pull request?

Yes, you can run pre-submit checks on your current branch before creating or updating a PR. This catches code quality issues, test failures, and compliance problems locally, preventing out-of-date or non-compliant submissions.

How does pre-submit validation fit into a CI workflow?

Pre-submit validation integrates into CI workflows as a gating step applicable across feature branches, running repository hooks and scripted checks to report blocking issues before PR submission, ensuring consistent code standards.

What's the difference between pre-submit checks and code review?

Pre-submit checks are automated, blocking validations that catch formatting, test, and compliance issues before review begins. Code review is manual and evaluates design, logic, and broader architectural concerns after these automated gates pass.

Do I need to configure pre-submit checks for my repository?

Pre-submit checks work with repository hooks and metadata parsing, so configuration depends on your repository structure. The Skill automates standard linting, testing, and alignment validation applicable to most codebases with CI setup.