Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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.

bonnyот bonny★ 315 звёзд на GitHub38 установок в других каталогах

Об этом скилле

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

  1. Always escape output - Use WordPress escaping functions
  2. Prefix everything - All hooks, functions, classes
  3. Run tools after changes - phpcs/phpstan before committing

Detailed Guidelines

Related Files

  • phpcs.xml.dist - PHP_CodeSniffer config
  • phpstan.neon - PHPStan config

Установить code-quality в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash

Вложенные файлы

css-standards.mddesign-principles.mdjs-standards.mdphp-standards.mdtooling.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить code-quality с