PluginBench
Skill
Official
Pass
Audit score 90

fix

facebook/react

Fix formatting and lint errors before committing code.

What is fix?

Automatically resolves formatting issues and checks for lint errors in your codebase. Use this before committing to ensure your code passes CI checks and meets project standards.

  • Run prettier to automatically fix code formatting
  • Execute linc to identify remaining lint issues
  • Report any manual fixes required before committing
  • Ensure code meets CI requirements before pushing

How to install fix

npx skills add https://github.com/facebook/react --skill fix
Prerequisites
  • yarn package manager installed
  • Project configured with prettier and linc
Claude Code
Cursor
Windsurf
Cline

How to use fix

  1. 1.Run `yarn prettier` to fix formatting issues
  2. 2.Run `yarn linc` to check for remaining lint errors
  3. 3.Review any reported issues that require manual fixes
  4. 4.Commit your changes once all issues are resolved

Use cases

Good for
  • Fix formatting issues across changed files before committing
  • Resolve lint errors that would fail CI checks
  • Prepare code for code review by ensuring it meets style standards
  • Validate code quality before pushing to a shared branch
Who it's for
  • React developers
  • Contributors to React projects
  • Teams using prettier and linc for code quality

fix FAQ

What does `yarn prettier` do?

It automatically fixes code formatting on changed files according to the project's prettier configuration.

What is `yarn linc` used for?

It checks for remaining lint issues that prettier cannot automatically fix. These must be resolved before committing.

Will prettier fix all issues?

No, prettier only handles formatting. Lint errors found by linc may require manual fixes.

When should I run this skill?

Run it before committing code to ensure it passes CI checks and meets project standards.

Full instructions (SKILL.md)

Source of truth, from facebook/react.


name: fix description: Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

Fix Lint and Formatting

Instructions

  1. Run yarn prettier to fix formatting
  2. Run yarn linc to check for remaining lint issues
  3. Report any remaining manual fixes needed

Common Mistakes

  • Running prettier on wrong files - yarn prettier only formats changed files
  • Ignoring linc errors - These will fail CI, fix them before committing