Analyze Report: Check the "FINAL AUDIT REPORT" section.
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>
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
Use this skill only when the task clearly matches the scope described above.
Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: lint-and-validate3description: Lint and Validate Skill4---567# 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** for the project's ecosystem:26 - **Node.js / TypeScript:** `npm run lint && npx tsc --noEmit`27 - **Python:** `ruff check . --fix && mypy . && bandit -r . -ll`283. **Analyze Report:** Check the "FINAL AUDIT REPORT" section.294. **Fix & Repeat:** Submitting code with "FINAL AUDIT" failures is NOT allowed.3031## Error Handling32- If `lint` fails: Fix the style or syntax issues immediately.33- If `tsc` fails: Correct type mismatches before proceeding.34- If no tool is configured: Check the project root for `.eslintrc`, `tsconfig.json`, `pyproject.toml` and suggest creating one.3536---37**Strict Rule:** No code should be committed or reported as "done" without passing these checks.3839---4041## Scripts4243| Script | Purpose | Command |44|--------|---------|---------|45| `scripts/lint_runner.py` | Unified lint check | `python scripts/lint_runner.py <project_path>` |46| `scripts/type_coverage.py` | Type coverage analysis | `python scripts/type_coverage.py <project_path>` |4748## When to Use49This skill is applicable to execute the workflow or actions described in the overview.5051## Limitations52- Use this skill only when the task clearly matches the scope described above.53- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.54- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Run npx skillmds@latest add ranbot-ai/lint-and-validate in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Lint and Validate Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ranbot-ai (@ranbot-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.