humanmade/claude-code-standards/run-linters
Claude Code and agent skill by humanmade/claude-code-standards
- community
Checking that the SKILL.md file is still in the repository.
Discover and run a project's linters — PHPCS, PHPStan, ESLint, Stylelint. Use when asked to lint, run the linters, check code quality, run static analysis, fix coding standard violations, or verify changes before opening a pull request. Prefers the project's own composer or npm script over calling the binary.
Install
npx vskill@latest install humanmade/claude-code-standards/run-lintersSKILL.md
Run Project Linters
When asked to run linters, check code quality, or verify changes:
1. Discover Available Linters
Check for configuration files to determine which linters are available:
PHP Linting
phpcs.xmlorphpcs.xml.dist→ PHPCS availablephpstan.neonorphpstan.neon.dist→ PHPStan available
JavaScript Linting
.eslintrc.*oreslint.config.*→ ESLint available
CSS/SCSS Linting
.stylelintrc*→ Stylelint available
2. Check for Lint Scripts
Look in composer.json and package.json for predefined lint commands:
composer.json scripts:
package.json scripts:
3. Run Linters Based on Changed Files
Determine what type of files were changed and run appropriate linters:
For PHP Changes
For JavaScript/TypeScript Changes
For CSS/SCSS Changes
For All Changes
4. For Altis Projects
Run linters through the local server:
5. Report and Fix
After running linters:
- Report findings - Summarize errors and warnings by category
- Offer auto-fix - If available, offer to run:
composer run fixorvendor/bin/phpcbffor PHPnpm run lint:fixornpx eslint --fixfor JSnpx stylelint --fixfor CSS/SCSS
- Manual fixes - For issues that can't be auto-fixed, explain what needs to change
Common Issues and Fixes
PHPCS
- Missing docblocks → Add appropriate PHPDoc comments
- Incorrect spacing → Usually auto-fixable with phpcbf
- Naming conventions → Rename to match standards
ESLint
- Unused variables → Remove or prefix with underscore
- Missing dependencies in hooks → Add to dependency array
- Prefer const → Change let to const where possible
Stylelint
- Color format → Convert to preferred format
- Selector specificity → Refactor to reduce nesting
- Unknown properties → Check for typos or vendor prefixes
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/run-linters/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/humanmade/claude-code-standards/run-linters)