Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Lint And Validate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/reprograme-lint-and-validate)
---
name: lint-and-validate
description: Run linters, type checks and static analysis per ecosystem. Use after code changes, before calling work done.
---
# Lint and Validate
> Before reporting a task done, run the project's own lint and type-check for the code you
> changed and show the commands with their observed results.
## When Checks Run
One rule for tests and audits:
- **During implementation (light verification):** the project's own build, type-check, lint
and the tests you touched, with the commands from `.redevkit/memory/tech.md`. Not the audit
scripts.
- **Spec tests and whole suite:** `{{CMD:redevkit-test}}` step 3 (the whole suite in
`{{CMD:redevkit-verify}}` step 1) (Python found → `.redevkit/audits/test_runner.py`
per `.redevkit/audits/README.md`, exit `3` → the `tech.md` test command; no Python → the
`tech.md` command).
- **Audits** (`.redevkit/audits/*.py`): only inside `{{CMD:redevkit-verify}}` step 4, as one
orchestrator run (`checklist.py` or `verify_all.py`); the test command runs only
`test_runner.py`.
## Procedures by Ecosystem
Prefer the project's own scripts (`package.json`, `pyproject.toml`, `Makefile`) and the
commands recorded in `.redevkit/memory/tech.md`. The commands below are the usual defaults.
### 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`
2. **Security (Bandit):** `bandit -r "path" -ll`
3. **Types (MyPy):** `mypy "path"`
## The Quality Loop
1. **Write/Edit code**
2. **Run the checks:** for example `npm run lint && npx tsc --noEmit`
3. **Analyze the report:** errors first, then warnings
4. **Fix and repeat:** code with failing checks is not done
## 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`/`eslint.config.*`,
`tsconfig.json`, `pyproject.toml` and suggest adding one. Do not report "lint passed" when no
linter ran.
**Strict rule:** no code is reported as "done" without passing these checks, with evidence.
## Audits (verify command only)
| Audit | Purpose |
| --- | --- |
| `lint_runner.py` | Unified lint and type check (detects Node.js or Python and runs the matching tools) |
| `type_coverage.py` | Type-safety check: compiler output when available, otherwise escape hatches such as `any` and `@ts-ignore` |
Both orchestrators already run these two. To re-check one finding alone, run
`.redevkit/audits/lint_runner.py <project_path>` and
`.redevkit/audits/type_coverage.py <project_path>` with the Python interpreter detected per
`.redevkit/audits/README.md`. If no Python is available, both audits are
`SKIPPED (no Python)`: say so and fall back to the project's own commands listed above. Never
report a skipped audit as PASS.