mcpbeat Sign in

Preflight Agent Skill

'Run all preflight checks (format, gn_check, presubmit, build, tests) to make sure the current work is ready for review.'

782 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
3472
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/brave/brave-core --skill preflight

The instruction itself

13 sections, as written by the author

Preflight Checks

Run all preflight checks to make sure the current work is ready for review.

Execute each step sequentially and stop immediately if any step fails.

Arguments

  • all — Run all test suites (brave_browser_tests, brave_unit_tests,

brave_component_unittests) without filters, instead of only running tests

affected by the change. Usage: /preflight all

Current State

  • Branch: !git branch --show-current
  • Status: !git status --short

Steps

0. Check branch

If on master, create a new branch off of master before proceeding (use a

descriptive branch name based on the changes).

1. Format code

Run pnpm run format. If formatting changes any files, stage and include them

in the commit later.

2. GN check

Run pnpm run gn_check. Fix any issues found and re-run until it passes.

Skip this step if the only changes are to test filter files

(test/filters/*.filter) — filter files don't affect GN build configuration.

3. Presubmit

Run pnpm run presubmit. Fix any issues found and re-run until it passes.

4. Commit if needed

Check git status. If there are any uncommitted changes (staged, unstaged, or

untracked files relevant to the work), create a commit. The commit message

should be short and succinct, describing what was done. If there are no changes,

skip this step.

5. Build

Run pnpm run build to make sure the code builds. If it fails, fix the build

errors, amend the commit, and retry.

If work is targeting a different platform, follow the build instructions at

README.md or confirm with the user which build arguments or technique to use.

6. Run tests

If the all argument was provided: Run all test suites without filters:

  • pnpm run test brave_browser_tests
  • pnpm run test brave_unit_tests
  • pnpm run test brave_component_unittests
  • pnpm run test-unit

Otherwise (default): Determine which test suites are affected by the changes

in this branch (compare against master). Look at the changed files and

identify the corresponding test suites and relevant test filters.

  • pnpm run test [test suite] --filter="..."

where test suite is any of:

  • brave_components_unittests (C++ unit tests in brave/components)
  • brave_unit_tests (C++ unit tests anywhere else in brave/)
  • brave_browser_tests
  • chromium_unit_tests (Chromium C++ unit tests in src/)
  • browser_tests (Chromium browser tests in src/)

Or pnpm run test-unit [path blob filter] to run jest for any

\*.test.{ts,tsx} files.

If no tests are affected, note that and move on.

7. Re-run checks if fixes were needed

If any step required fixes (build errors, test failures, format/lint issues),

amend the commit with the fixes and re-run checks until everything passes

cleanly.

Important

  • Stop and report if any step fails after exhausting reasonable fix attempts.
  • Report a summary of results when all steps complete successfully.

Other skills for the same job

different authors, same section of the catalogue
Webapp Testing
by anthropics
vendor ×12

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

6k tokens scripts
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
Test Driven Development
by w95
×7

Use when implementing any feature or bugfix, before writing implementation code

2k tokens
Systematic Debugging
by ratacat
×7

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

10k tokens scripts
Verification Before Completion
by ZhanlinCui
×6

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

1k tokens
Backtest Expert
by BaggaT236
×3

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

15k tokens scripts
Adaptyv
by christophacham
×3

Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.

16k tokens
Aeon
by christophacham
×3

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

19k tokens

How to use it

Copy the folder

Take brave/preflight from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.