lint-and-validate

davila7/claude-code-templates · updated Apr 8, 2026

$npx skills add https://github.com/davila7/claude-code-templates --skill lint-and-validate
0 commentsdiscussion
summary

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

skill.md

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

Script Purpose Command
scripts/lint_runner.py Unified lint check python scripts/lint_runner.py <project_path>
scripts/type_coverage.py Type coverage analysis python scripts/type_coverage.py <project_path>

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.827 reviews
  • Zaid Ghosh· Dec 24, 2024

    We added lint-and-validate from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Ganesh Mohane· Dec 16, 2024

    lint-and-validate reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Yuki Gonzalez· Dec 12, 2024

    lint-and-validate fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kiara Reddy· Nov 15, 2024

    Keeps context tight: lint-and-validate is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Rahul Santra· Nov 7, 2024

    I recommend lint-and-validate for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Ira Smith· Nov 3, 2024

    lint-and-validate is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Pratham Ware· Oct 26, 2024

    Useful defaults in lint-and-validate — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Ira Khan· Oct 22, 2024

    Keeps context tight: lint-and-validate is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Diego Reddy· Oct 6, 2024

    lint-and-validate is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Kaira Rahman· Sep 25, 2024

    lint-and-validate reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 27

1 / 3