Skip to main content
skill

lint-and-validate · davila7 — Claude Code skill: linting and setup

This skill runs linting, type checks, and security audits after code changes. Use it to keep project checks in the editing loop.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/lint-and-validate
Open on GitHub

What lint-and-validate does

The skill sets up a repeatable check cycle after each code edit: run the relevant tools, inspect the report, fix failures, and run the checks again. For Node.js and TypeScript, it can use npm run lint or npx eslint "path" --fix, followed by npx tsc --noEmit and npm audit --audit-level=high. Python projects use ruff check "path" --fix, bandit -r "path" -ll, and mypy "path".

It also includes scripts/lint_runner.py for a unified lint check and scripts/type_coverage.py for type coverage analysis. When the project has no configured checker, the skill looks for .eslintrc, tsconfig.json, and pyproject.toml, then suggests creating a configuration. A failed check means the code should not be reported as done.

What it helps with

  • catch style and syntax issues after edits
  • check TypeScript and Python type errors
  • run a Node.js dependency security audit
  • scan Python code with Bandit
  • measure type coverage for a project

Example prompts for the agent

  • Run the relevant checks on the code I just changed and fix every failure.
  • Check the project types and dependency security before marking the task done.
  • Run python scripts/lint_runner.py <project_path> and explain the audit results.

How to install lint-and-validate

1claude-code-templates

npx claude-code-templates@latest --skill development/lint-and-validate

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill lint-and-validate -a claude-code

3Manually: put the files in place

~/.claude/skills/lint-and-validate/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/lint-and-validate/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about lint-and-validate

How do I install lint-and-validate in Claude Code?

Run npx skills add davila7/claude-code-templates --skill lint-and-validate -a claude-code. The skill will then be available in Claude Code.

What does lint-and-validate do?

It runs linting, type checks, and security audits after code changes. The commands vary for Node.js, TypeScript, and Python projects.

What happens when a project has no configured lint tool?

The skill checks the project root for .eslintrc, tsconfig.json, and pyproject.toml, then suggests creating a configuration.

Similar skills

All skills for Testing and QA →

lint-and-validate by other authors comes first.

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor