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.

Stars 6
Forks 3

Install this agent skill to your Project

npx add-skill https://github.com/BerryKuipers/claude-code-toolkit/tree/main/.claude/api-skills-source/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)

json
{
  "status": "success",
  "lint": {
    "status": "passing",
    "errors": 0,
    "warnings": 0,
    "files": []
  },
  "canProceed": true
}

Errors/Warnings Found

json
{
  "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

Expand your agent's capabilities with these related and highly-rated skills.

BerryKuipers/claude-code-toolkit

validate-typescript

Run TypeScript compiler type-checking (tsc --noEmit) to validate type safety and catch type errors. Returns structured output with error counts, categories (type/syntax/import errors), and affected files. Used for quality gates and pre-commit validation.

6 3
Explore
BerryKuipers/claude-code-toolkit

validate-coverage-threshold

Validate test coverage meets minimum thresholds (default 80% overall, 80% statements, 75% branches, 80% functions). Parses coverage reports from coverage/coverage-summary.json or test output. Returns pass/fail status with detailed metrics and identifies uncovered files.

6 3
Explore
BerryKuipers/claude-code-toolkit

quality-gate

Comprehensive quality validation for TypeScript/JavaScript projects - runs TypeScript checks, tests, coverage analysis, build validation, and linting with structured JSON results

6 3
Explore
BerryKuipers/claude-code-toolkit

run-comprehensive-tests

Execute comprehensive test suite (Vitest/Jest) with coverage reporting and failure analysis. Returns structured output with test counts (total/passed/failed), coverage percentage, duration, and detailed failure information. Used for quality gates and CI/CD validation.

6 3
Explore
BerryKuipers/claude-code-toolkit

validate-build

Run production build validation (npm run build, vite build, tsc) to ensure code compiles and builds successfully. Returns structured output with build status, duration, size metrics, and error details. Used for quality gates and deployment readiness checks.

6 3
Explore
BerryKuipers/claude-code-toolkit

validate-git-hygiene

Validate git commit messages, branch naming conventions, and repository hygiene. Returns structured output with validation results for commit format (conventional commits), branch naming, and best practices. Used for quality gates and git workflow validation.

6 3
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results