Notre avis
Lint et corrige automatiquement les fichiers JavaScript, CSS et PHP en utilisant ESLint, Stylelint et PHPCS avec les normes de codage WordPress.
Points forts
- Couvre trois langages web principaux
- Propose une correction automatique
- Applique les normes de codage WordPress
- Intégré aux scripts npm
Limites
- Nécessite que les scripts npm soient configurés
- Ne couvre pas TypeScript ou d'autres langages
- La correction automatique peut ne pas résoudre tous les problèmes
Utilisez avant de valider le code pour garantir la qualité et la cohérence.
Évitez si le projet utilise d'autres outils de linting ou des langages non supportés.
Analyse de sécurité
SûrThe skill only runs standard linting npm scripts (eslint, stylelint, phpcs) with no destructive or exfiltrating actions.
Aucun point d'attention détecté
Exemples
Run all linters on the project to check for code quality issues.Auto-fix JavaScript linting errors in the project.Lint PHP files using WordPress coding standards.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
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.