presubmit

Run presubmit checks to validate code readiness before merging.

26|11|Updated Jul 21, 2023
One-click install
npx skills add https://github.com/wowsignal-io/pedro --skill presubmit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: presubmit
Source: https://github.com/wowsignal-io/pedro/tree/main/.claude/skills/presubmit
Command: npx skills add https://github.com/wowsignal-io/pedro --skill presubmit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive battery of tests and static checks to run before code changes are merged, helping teams catch issues early and reduce regressions.

Core Features & Use Cases

  • Extensive test suite: Run linting, unit tests, and static analysis as part of the presubmit process.
  • Deterministic checks: Use the real presubmit script to ensure consistent results across environments.
  • CI workflow integration: Easily integrate into CI pipelines to enforce code quality before merge.

Quick Start

  1. Ensure you are at the repository root.
  2. Run ${CLAUDE_PLUGIN_ROOT}/scripts/presubmit.sh.
  3. Review the output file for errors and fix issues accordingly.

Frequently Asked Questions about presubmit

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

FAQPage Schema
How do I automate code quality checks before merging?

Automate code quality checks by running presubmit validation to execute tests, linting, type checking, and static analysis before merge. This catches issues early, reduces regressions, and enforces policy conformance across your repository in a single deterministic step.

What tests and checks does a presubmit process run?

Presubmit runs linting, unit tests, type checks, and static analysis together. These comprehensive checks validate code correctness, quality, and policy compliance, surfacing problems before code reaches the main branch.

Can I integrate presubmit checks into my CI pipeline?

Yes. Presubmit checks integrate into CI workflows to enforce code quality gates before merge. Run the presubmit script from your repository root, capture output, and use results to block or approve merges based on conformance.

How do I handle presubmit failures and fix issues?

Review presubmit output to identify failures in linting, tests, or static analysis. Fix the underlying issues—code errors, style violations, or type mismatches—then rerun presubmit to confirm all checks pass before proceeding.

What's the best way to run presubmit checks for large refactors?

For large refactors and feature branches, run the presubmit script from your repository root to validate all changes at once. This deterministic approach ensures consistent results and surfaces correctness issues across the entire refactored codebase.

Do I need manual review after presubmit checks pass?

Presubmit automates technical validation—linting, testing, and policy checks—but does not replace code review. After checks pass, human review ensures design quality and business logic correctness before merge.