Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis.
Add this skill
npx mdskills install sickn33/lint-and-validateClear linting workflow with ecosystem-specific commands and mandatory quality enforcement
1---2name: lint-and-validate3description: "Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis."4allowed-tools: Read, Glob, Grep, Bash5---67# Lint and Validate Skill89> **MANDATORY:** Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.1011### Procedures by Ecosystem1213#### Node.js / TypeScript141. **Lint/Fix:** `npm run lint` or `npx eslint "path" --fix`152. **Types:** `npx tsc --noEmit`163. **Security:** `npm audit --audit-level=high`1718#### Python191. **Linter (Ruff):** `ruff check "path" --fix` (Fast & Modern)202. **Security (Bandit):** `bandit -r "path" -ll`213. **Types (MyPy):** `mypy "path"`2223## The Quality Loop241. **Write/Edit Code**252. **Run Audit:** `npm run lint && npx tsc --noEmit`263. **Analyze Report:** Check the "FINAL AUDIT REPORT" section.274. **Fix & Repeat:** Submitting code with "FINAL AUDIT" failures is NOT allowed.2829## Error Handling30- If `lint` fails: Fix the style or syntax issues immediately.31- If `tsc` fails: Correct type mismatches before proceeding.32- If no tool is configured: Check the project root for `.eslintrc`, `tsconfig.json`, `pyproject.toml` and suggest creating one.3334---35**Strict Rule:** No code should be committed or reported as "done" without passing these checks.3637---3839## Scripts4041| Script | Purpose | Command |42|--------|---------|---------|43| `scripts/lint_runner.py` | Unified lint check | `python scripts/lint_runner.py <project_path>` |44| `scripts/type_coverage.py` | Type coverage analysis | `python scripts/type_coverage.py <project_path>` |4546
Full transparency — inspect the skill content before installing.