Multi-language Linting and Auto-fixing

VerifiedSafe

Analyze and auto-fix your JavaScript, CSS, and PHP files according to WordPress standards. Checks code quality, naming conventions, and security best practices.

Sby Skills Guide Bot
DevelopmentBeginner
306/2/2026
Claude Code
#eslint#stylelint#wordpress-coding-standards#php-linting#code-quality

Recommended for

Our review

Lints and auto-fixes JavaScript, CSS, and PHP files to ensure code quality and adherence to coding standards (WordPress, ESLint, Stylelint).

Strengths

  • Enforces WordPress coding standards across JS, CSS, and PHP
  • Auto-fix saves time by correcting many issues automatically
  • Covers multiple languages with a single skill
  • Works seamlessly with existing npm scripts

Limitations

  • Relies on lint scripts being defined in package.json
  • Requires a Node.js and npm environment
  • Does not catch logical or runtime errors
When to use it

Before committing to automatically catch style issues and enforce code quality standards.

When not to use it

When you need to temporarily bypass specific lint rules or when the project does not use these linters.

Security analysis

Safe
Quality score85/100

The skill only instructs running linting commands (npm run lint:*) which are safe development scripts. No destructive, exfiltration, or obfuscated actions are performed.

No concerns found

Examples

Lint all files
Run all linters (JS, CSS, PHP) on the project and show results.
Auto-fix JavaScript issues
Run JavaScript linting with auto-fix enabled.
Lint and fix before commit
Lint and auto-fix all JavaScript, CSS, and PHP files before preparing the commit.

name: lint description: Lint and auto-fix JavaScript, CSS, and PHP files disable-model-invocation: true allowed-tools: Bash(npm run *), Bash(npx wp-env *), Bash(git *), Read, Glob

Lint JavaScript, CSS, and PHP files for code quality and standards compliance.

Lint Commands

JavaScript:

npm run lint:js

Auto-fix JavaScript:

npm run lint:js -- --fix

CSS/SCSS:

npm run lint:css

Auto-fix CSS:

npm run lint:css -- --fix

PHP (WordPress Coding Standards):

npm run lint:php

Run all linters:

npm run lint:js && npm run lint:css && npm run lint:php

What Gets Checked

JavaScript:

  • ESLint with @wordpress/eslint-plugin
  • WordPress coding standards
  • No deprecated APIs
  • Proper i18n usage

CSS:

  • Stylelint
  • BEM naming conventions
  • No duplicate selectors
  • Property ordering

PHP:

  • WordPress PHP Coding Standards (WPCS)
  • Security best practices
  • Proper escaping and sanitization
  • Documentation standards

Before Committing

Always lint before committing:

npm run lint:js -- --fix && npm run lint:css -- --fix
Related skills