browser-validator
Automatically validate implementations in real browsers after code is written or when user says "test this", "test what you built…
Run the right linting, formatting, and static-analysis commands after changing code, and check it against PHPCS, ESLint, WordPress Coding Standards, or Drupal Coding Standards. Reads the scripts blocks in composer.json and package.json to find the project's own commands, runs
Claude Code
$ npx -y skills add kanopi/cms-cultivator --skill code-standards-checker --agent claude-code
Codex
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a codex -y
Cursor
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a cursor -y
Gemini CLI
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a gemini-cli -y
GitHub Copilot
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a github-copilot -y
OpenCode
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a opencode -y
Windsurf
$ npx skills add kanopi/cms-cultivator --skill code-standards-checker -a windsurf -y
name: code-standards-checker description: Run the right linting, formatting, and static-analysis commands after changing code, and check it against PHPCS, ESLint, WordPress Coding Standards, or Drupal Coding Standards. Reads the scripts blocks in composer.json and package.json to find the project's own commands, runs auto-fix before check-only and verifies after, and picks the most specific level (theme, plugin, module, or project root) covering the changed files. Invoke when the user mentions "coding standards", "code style", "linting", "lint", "PHPCS", "phpcbf", "PHPStan", "Rector", "ESLint", "stylelint", "twig-lint", asks what to run after editing PHP, Twig, JS, SCSS, or CSS, or asks whether code follows conventions.
Run the project's own standards tooling against the code that changed, then report what is left. Discover the commands by reading the project. Do not recall them.
discovers what that is; step 2 maps the changed files to jobs.
tool (PHPCS, PHPStan, Rector, ESLint, stylelint, twig-lint).
Not for logic review. `pr-review` covers correctness; run this skill first so standards violations never reach review.
Dependency-only updates need no standards run. This tooling grades custom code, and a version bump changes none of it.
**Not a skip:** a core, framework, or PHP upgrade beyond a patch release (Drupal 11.3 → 11.4, WordPress 6.7 → 6.8, PHP 8.3 → 8.4). The upgrade deprecates APIs the custom code calls, so run the static checks against the custom code even though none of it was edited. Core patch and security releases (11.3.19 → 11.3.20) stay in the skip list.
**Exception:** if a dependency is being patched, forked, or overridden as part of the work — a `cweagans/composer-patches` entry, a committed patch file, a vendor override — that changed code is custom code. Map it in step 2 and run the full pass against it.
Name the files you classified as dependency-only, then move on. In particular, do not run `format` against a `composer.json` version bump on the strength of the JSON row in step 2's table.
Script aliases are project-defined. Read them; never assume a name exists.
Start with CI. Whatever CI gates on is what must pass, so its config is the authoritative list of checks and the exact commands it runs:
cat .circleci/config.yml # Kanopi default ls .github/workflows/ .gitlab-ci.yml bitbucket-pipelines.yml 2>/dev/null
Then the task runners CI usually calls:
# Every level that could own the changed files jq -r '.scripts | keys[]' composer.json jq -r '.scripts | keys[]' package.json jq -r '.scripts | keys[]' web/themes/custom/*/package.json # Drupal theme jq -r '.scripts | keys[]' public/wp-content/themes/*/package.json # WordPress theme jq -r '.scripts | keys[]' public/wp-content/plugins/*/package.json # block plugin # What an alias actually does — many are aggregates of other aliases composer run-script --list jq -r '.scripts["code-fix"]' composer.json
Then check two things:
`ddev` (`ddev composer phpcbf`, `ddev npm run lint:js`).
`.phpcs.xml.dist`, `phpstan.neon`, `rector.php`, `.twig-cs-fixer.php`, `.eslintrc*`, `.stylelintrc*`.
If no alias covers the job, use the raw invocation from the table below. If neither the alias nor the binary exists, say so rather than inventing a command.
| Changed | Job | Sequence | Raw fallback | |---|---|---|---| | PHP (`.php`, `.module`, `.inc`, `.install`, `.theme`, `.profile`) | Coding standards | `phpcbf` then `phpcs` | `vendor/bin/phpcbf --standard=Drupal,DrupalPractice <path>` (Drupal), `--standard=WordPress` (WordPress), or `--standard=./.phpcs.xml.dist` when the project ships one | | PHP with logic changes | Static analysis | `phpstan` (no auto-fix) | `vendor/bin/phpstan analyse --memory-limit=-1 <paths>` | | PHP after a refactor | Modernization | dry run, then apply | `vendor/bin/rector process <path> --dry-run`, then without `--dry-run` | | Twig templates | Twig standards | fix then lint | `vendor/bin/twig-cs-fixer lint --fix <path>`, then without `--fix` | | JavaScript | Format, then lint | `format` then `lint:js` | `npx wp-scripts format`, `npx wp-scripts lint-js` or `npx eslint <path>` | | SCSS / CSS | Style lint | `lint:css` | `npx wp-scripts lint-style "**/*.scss"` or `npx stylelint --fix "**/*.scss"` | | JSON, HTML, config | Format | `format` | `npx wp-scripts format` | | Any asset in a compiled theme | Build | `build` after the lint pass | `npx wp-scripts build` |
Rector is the one inversion: preview with `--dry-run` first, then apply. Everything else auto-fixes first and verifies after.
A lookup, not a command list. Confirm the name in step 1 before running it.
| Alias | Job | Commonly seen in | |---|---|---| | `code-fix` / `code-sniff` | phpcbf then phpcs across custom modules and themes | Kanopi Drupal starter | | `code-fix-modules`, `code-fix-themes`, `code-sniff-modules`, `code-sniff-themes` | Same, scoped to one area | Kanopi Drupal starter | | `code-check` | Aggregate: phpstan, rector dry run, code-sniff | Kanopi Drupal starter | | `phpcbf` / `phpcs` | Auto-fix then check against `.phpcs.xml.dist` | Kanopi WordPress starter, vanilla PHP | | `phpstan` | Static analysis | Bot
Specialist agents and auto-invoked skills for Drupal/WordPress development. Works in Claude Code, Claude Desktop, and OpenAI Codex. Full documentation: What changed in 2.0? CMS Cultivator now focuses on CMS development workflows.
Automatically validate implementations in real browsers after code is written or when user says "test this", "test what you built…
Automatically generate conventional commit messages when user has staged changes and mentions committing. Analyzes git diff and…
Generate and maintain patches for Composer-installed packages (Drupal contrib modules, WordPress packages, PHP libraries) using…
Automatically analyze test coverage when user asks which code is tested, mentions coverage gaps, or shows code asking about…
Deterministic cleanup of DDEV and Docker disk usage on OrbStack, Docker Desktop, or any Docker provider. Safely reclaims space by…
Operate a Kanopi DDEV site day to day — get a fresh clone or worktree actually serving pages, pull a database from the hosting…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.