This runs linting, type checking, and static analysis after every code change you make, supporting both Node.js/TypeScript (ESLint, tsc) and Python (Ruff, MyPy, Bandit) ecosystems. The skill enforces a strict quality loop where you can't mark work as done until all checks pass. It's opinionated about when to run (always) and what constitutes acceptable code (zero errors in the final audit). If you're the type who forgets to lint before committing or tends to skip type checks when in a hurry, this acts as an automatic guardrail. The approach is heavy handed but effective for maintaining standards.

skills.sh installs
334
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill lint-and-validate --agent claude-code

Installs into .claude/skills of the current project.

Files

Lint and Validate Skill

MANDATORY: Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.

Procedures by Ecosystem

Node.js / TypeScript
  1. Lint/Fix: npm run lint or npx eslint "path" --fix
  2. Types: npx tsc --noEmit
  3. Security: npm audit --audit-level=high
Python
  1. Linter (Ruff): ruff check "path" --fix (Fast & Modern)
  2. Security (Bandit): bandit -r "path" -ll
  3. Types (MyPy): mypy "path"

The Quality Loop

  1. Write/Edit Code
  2. Run Audit: npm run lint && npx tsc --noEmit
  3. Analyze Report: Check the "FINAL AUDIT REPORT" section.
  4. Fix & Repeat: Submitting code with "FINAL AUDIT" failures is NOT allowed.

Error Handling

  • If lint fails: Fix the style or syntax issues immediately.
  • If tsc fails: Correct type mismatches before proceeding.
  • If no tool is configured: Check the project root for .eslintrc, tsconfig.json, pyproject.toml and suggest creating one.

Strict Rule: No code should be committed or reported as "done" without passing these checks.


Scripts

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Code Review & Quality
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1gentleman-programming avatarangular-architecturegentleman-programming/gentleman-skillsAngular architecture: Scope Rule, project structure, file naming, style guide. Trigger: When structuring Angular projects or deciding where to place components.322skills.sh installs
2pproenca avatartailwind-refactorpproenca/dot-skillsTailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup. This skill should be used when refactoring Tailwind utility classes, migrating314skills.sh installs
3pproenca avatarios-ui-refactorpproenca/dot-skillsPrincipal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles. Use 291skills.sh installs
4pproenca avatarswift-refactorpproenca/dot-skillsSwift and SwiftUI refactoring patterns aligned with the iOS 26 / Swift 6.2 clinic modular MVVM-C architecture (Airbnb + OLX SPM layout). Enforces @Observable Vi281skills.sh installs
5pproenca avatarswift-ui-architectpproenca/dot-skillsOpinionated SwiftUI architecture enforcement for iOS 26 / Swift 6.2 clinic modular MVVM-C apps using local SPM package boundaries. Enforces App-target `Dependen273skills.sh installs
6wispbit-ai avatarrust-expert-best-practices-code-reviewwispbit-ai/skillsRust best practices and code quality guidelines for writing idiomatic, safe, and performant Rust code. This skill should be used when writing, reviewing, or ref257skills.sh installs