preflight

Run npm preflight checks for formatting, build, and tests.

3.5k|1.4k|Updated Nov 10, 2017
One-click install
npx skills add https://github.com/brave/brave-core --skill preflight-brave
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preflight
Source: https://github.com/brave/brave-core/tree/main/.claude/skills/preflight
Command: npx skills add https://github.com/brave/brave-core --skill preflight-brave

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of verifying code quality and correctness before submitting it for review, catching common issues early and saving valuable developer time.

Core Features & Use Cases

  • Comprehensive Checks: Runs formatting, build, and testing procedures.
  • Early Error Detection: Identifies potential problems before they reach the review stage.
  • Use Case: Before pushing a new feature, run this skill to ensure your code adheres to project standards, builds successfully, and passes all relevant tests.

Quick Start

Run all preflight checks for 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 automate code formatting and build verification before a code review?

To automate code formatting and build verification before a review, you can run preflight checks that execute formatting, build, and test operations to ensure code quality. This requires specific npm scripts to function correctly.

What is the best way to run preflight checks for a new feature branch?

The best way to run preflight checks for a new feature branch is to execute a skill that automates formatting, build verification, and test execution. This ensures your code adheres to project standards before submission.

Do I need npm scripts to run preflight testing and formatting checks?

Yes, you need npm scripts for format, gn_check, presubmit, build, and test operations to run preflight testing and formatting checks. These scripts are required to execute the automated verification procedures.

How does early error detection work in a CI workflow?

Early error detection in a CI workflow works by running preflight checks that identify potential formatting, build, and testing problems before they reach the review stage. This catches common issues early and saves developer time.

Can I streamline the review process by automating presubmit checks?

Yes, you can streamline the review process by automating presubmit checks to verify code quality and correctness. Running these comprehensive checks ensures code integrity before submitting it for review.

Why does code readiness verification fail when missing build or test scripts?

Code readiness verification fails when missing build or test scripts because the preflight execution requires npm scripts for format, gn_check, presubmit, build, and test operations to successfully run its checks.