preflight

Run preflight checks for formatting, GN, presubmit, and build.

4|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/brave-experiments/brave-core-bot --skill preflight-brave-experiments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preflight
Source: https://github.com/brave-experiments/brave-core-bot/tree/main/.claude/skills/preflight
Command: npx skills add https://github.com/brave-experiments/brave-core-bot --skill preflight-brave-experiments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of running essential code quality and build checks, ensuring that your work is ready for review and minimizing the chances of build or test failures later in the development cycle.

Core Features & Use Cases

  • Comprehensive Checks: Executes code formatting, build system checks (GN), presubmit tests, and compilation.
  • Automated Testing: Identifies and runs relevant tests based on code changes.
  • Use Case: Before submitting a pull request, run this Skill to catch any formatting errors, build issues, or failing tests, ensuring a smooth review process.

Quick Start

Run all preflight checks on the current branch.

Frequently Asked Questions about preflight

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

FAQPage Schema
How do I run preflight checks before submitting a pull request?

To run preflight checks before submitting a pull request, execute this Skill to automate code formatting, GN checks, presubmit tests, and compilation, validating your code changes against the master branch.

What is an automated presubmit test and build validation process?

An automated presubmit test and build validation process executes code formatting, build system checks, and compilation to identify failing tests based on code changes, ensuring build stability before review.

Do I need npm scripts to run code formatting and GN checks?

Yes, you need npm scripts for format, gn_check, presubmit, and build to execute the required code formatting, GN checks, and compilation validations.

Can I validate code changes against the master branch automatically?

Yes, you can validate code changes against the master branch automatically by running affected tests and checking build stability using git for branch and status checks.

What is the best way to ensure code readiness for review?

The best way to ensure code readiness for review is to automate essential code quality checks, running formatting, GN checks, presubmit tests, and compilation to minimize build or test failures later.

Why does my build fail during presubmit checks?

Your build may fail during presubmit checks due to formatting errors, build system issues, or failing tests identified when validating code changes against the master branch.