code-quality
БесплатноБез исполняемых скриптовНе проверенRuns linting and static analysis on PHP/CSS/JS using phpcs, phpstan, and rector. Use when checking code style, fixing lint errors, or running static analysis.
Об этом скилле
Code Quality Standards
Quick Commands
composer lint # Check PHP style (local, fastest)
composer lint-fix # Auto-fix PHP issues (local)
npm run php:lint # Same check, in Docker
npm run php:lint-fix # Same fix, in Docker
npm run php:phpstan # Static analysis
npm run lint:js # JavaScript
npm run lint:css # CSS
Always run phpstan via npm run php:phpstan. Bare vendor/bin/phpstan analyse
crashes a worker at the default 128M and still crashes at 1G; the npm script
passes the 2048M that actually works.
Project-Specific Rules
| Area | Standard |
|---|---|
| PHP | 7.4+, WordPress Coding Standards |
| Prefixes | sh, simplehistory, simple_history |
| Text domain | simple-history |
| CSS naming | SuitCSS: sh-ComponentName-subpart |
| Array syntax | Short [] not array() |
| Control structures | Always use braces {}, never colon syntax |
Essential Principles
- Always escape output - Use WordPress escaping functions
- Prefix everything - All hooks, functions, classes
- Run tools after changes - phpcs/phpstan before committing
Detailed Guidelines
- php-standards.md - PHP style, happy path, early returns
- css-standards.md - SuitCSS naming conventions
- js-standards.md - JavaScript conventions
- tooling.md - phpcs, phpstan, rector usage
- design-principles.md - DRY, YAGNI, refactoring patterns
Related Files
phpcs.xml.dist- PHP_CodeSniffer configphpstan.neon- PHPStan config
Установить code-quality в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashВложенные файлы
FAQ
Что делает скилл code-quality?
Runs linting and static analysis on PHP/CSS/JS using phpcs, phpstan, and rector. Use when checking code style, fixing lint errors, or running static analysis.
Как установить скилл code-quality?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-quality запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic