Agent skill
validate-lint
Run ESLint and Prettier validation to check code style, formatting, and best practices. Returns structured output with error/warning counts, rule violations, and affected files. Used for code quality gates and pre-commit validation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/validate-lint
SKILL.md
Validate Lint
Executes linting tools (ESLint, Prettier) to validate code style and formatting without making changes.
Usage
This skill runs linting checks and returns structured validation results.
Supported Tools
- ESLint: JavaScript/TypeScript linting
- Prettier: Code formatting validation
- Supports both npm scripts and direct tool invocation
Output Format
Success (No Errors)
{
"status": "success",
"lint": {
"status": "passing",
"errors": 0,
"warnings": 0,
"files": []
},
"canProceed": true
}
Errors/Warnings Found
{
"status": "warning",
"lint": {
"status": "failing",
"errors": 5,
"warnings": 12,
"files": [
"src/components/CharacterCard.tsx",
"src/utils/helpers.ts"
],
"rules": {
"no-unused-vars": 3,
"prefer-const": 2,
"@typescript-eslint/no-explicit-any": 7
}
},
"canProceed": false,
"details": "5 linting error(s) must be fixed before proceeding"
}
When to Use
- Quality gate validation (before commit/PR)
- Pre-refactor validation
- After code changes
- Conductor Phase 3 (Quality Assurance)
- Refactor agent validation
Requirements
- ESLint installed (npm package)
- Configuration file (.eslintrc, eslint.config.js, or package.json)
- Optional: Prettier for formatting checks
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?