devtools-verification

star 3.9k

MANDATORY: Activate this skill ANY TIME you need to build the project, run tests, or verify code health in DevTools. You MUST use this skill before executing commands like npm test, npm run build, autoninja, or linters, as it contains critical, repository-specific instructions on how to correctly format these commands, filter test runs, and interpret failures.

ChromeDevTools By ChromeDevTools schedule Updated 5/28/2026

name: devtools-verification description: "MANDATORY: Activate this skill ANY TIME you need to build the project, run tests, or verify code health in DevTools. You MUST use this skill before executing commands like npm test, npm run build, autoninja, or linters, as it contains critical, repository-specific instructions on how to correctly format these commands, filter test runs, and interpret failures."

Instructions on how to verify your changes

Testing

  • To test a file, you can run npm run test -- <FILEPATH> where FILEPATH is a path to a *.test.ts file, relative to the working directory.
  • Test files are usually defined alongside their implementation. So if you are working on front_end/panels/timeline/TimelinePanel.ts, you would expect the test file to be defined in front_end/panels/timeline/TimelinePanel.test.ts.
  • You can also test an entire directory. For example, npm run test -- front_end/models/trace will run all tests in that directory.

Building & compiling

  • Check for build issues by running autoninja -C out/Default.

Linting

  • npm run lint will execute ESLint and StyleLint. It will report any violations and automatically fix them where possible.
  • To run the linter on a specific file or directory, you can run npm run lint -- <PATH> where PATH is a path to a file or directory. This will also automatically fix violations where possible.

Best practices

  • Run tests often to verify your changes.
  • Prefer using a fast build, if it exists, to keep the feedback loop shorter.
  • Periodically build to check for errors.
  • Run git cl presubmit -u at the end of your code changes.
Install via CLI
npx skills add https://github.com/ChromeDevTools/devtools-frontend --skill devtools-verification
Repository Details
star Stars 3,937
call_split Forks 669
navigation Branch main
article Path SKILL.md
More from Creator
ChromeDevTools
ChromeDevTools Explore all skills →