PluginBench
Skill
Pass
Audit score 90

extract-errors

react/react

Extract and manage error codes in React development.

What is extract-errors?

A utility for React developers to extract error messages and assign error codes. Use it when adding new error messages to React or encountering "unknown error code" warnings to ensure all errors are properly tracked and coded.

  • Extracts error messages from React codebase
  • Assigns error codes to new messages
  • Detects unassigned or unknown error codes
  • Validates error code consistency
  • Reports missing error code assignments

How to install extract-errors

npx skills add https://github.com/react/react --skill extract-errors
Prerequisites
  • Yarn package manager installed
  • Access to React repository
Claude Code
Cursor
Windsurf
Cline

How to use extract-errors

  1. 1.Run `yarn extract-errors` in the React repository
  2. 2.Review the output for any new errors that need codes assigned
  3. 3.Check that all error codes are up to date
  4. 4.Address any missing or unknown error code warnings

Use cases

Good for
  • Adding new error messages to React source code
  • Resolving "unknown error code" warnings during development
  • Auditing error code coverage in the codebase
  • Ensuring error codes are up to date before releases
  • Maintaining error message documentation
Who it's for
  • React core contributors
  • React library maintainers
  • Developers adding features to React
  • Teams managing error handling systems

extract-errors FAQ

When should I run extract-errors?

Run it when adding new error messages to React or when you see "unknown error code" warnings in the codebase.

What does the tool output?

It reports which errors have codes assigned, which are new and need codes, and flags any unknown error codes.

Do I need special permissions to use this?

You need write access to the React repository and Yarn installed to run the extraction process.

Can this be automated in CI/CD?

Yes, you can run `yarn extract-errors` as part of your build or pre-commit checks to validate error codes.

Full instructions (SKILL.md)

Source of truth, from react/react.


name: extract-errors description: Use when adding new error messages to React, or seeing "unknown error code" warnings.

Extract Error Codes

Instructions

  1. Run yarn extract-errors
  2. Report if any new errors need codes assigned
  3. Check if error codes are up to date