Skip to Content
MeowKit
Skills

mk:lint-and-validate

Runs lint, format and static analysis after an edit. A lint-only subset of mk:verify for quick post-edit checks.

Source.claude/skills/lint-and-validate/SKILL.md
Ownertesting
Runtimeclaude-code
Riskmedium
Phaseon-demand

What it does

Runs the project's lint, format and static-analysis tools after you edit code, so errors surface before you call a change done. It is the lint-only subset of the pipeline. Use it for quick post-edit checks.

When not to use

For the full pipeline (build, lint, type-check, tests, coverage) use mk:verify.

Usage

Ask in plain words: "lint the changes I just made", "run type-check after refactoring the auth module". Script paths in the skill are relative to the skill directory, so prefix them with .claude/skills/lint-and-validate/.

EcosystemStepCommand
Node.js, TypeScriptLintnpm run lint
Lint with fixesnpx eslint "path" --fix
Typesnpx tsc --noEmit
Dependency auditnpm audit --audit-level=high
PythonLintruff check "path" --fix
Securitybandit -r "path" -ll
Typesmypy "path"

The skill also ships two scripts, scripts/validate.py (general validation) and scripts/security-scan.py (security patterns). Run them through node .claude/hooks/lib/skill-python.cjs <script>; if the Python environment is missing, mewkit skill env lint-and-validate creates it.

Steps

  1. Edit the code.
  2. Run the audit, for example npm run lint && npx tsc --noEmit.
  3. Read the report and fix what failed. The skill's rule is that a change with failing checks is not reported as done.
  4. Repeat until clean. If no tool is configured, the skill looks for .eslintrc, tsconfig.json or pyproject.toml and suggests creating one.

Gotchas

TrapDetail
Flat config and .eslintrcESLint 9 uses eslint.config.mjs and silently ignores .eslintrc.* in the same folder, so legacy rules are never loaded.
eslint --fix on unstaged filesIt writes to disk and overwrites uncommitted edits. Stage with git add -p first or use --fix-dry-run.
Parser versionAfter a TypeScript upgrade, bump @typescript-eslint/parser, or new syntax fails to parse while tsc accepts it.
extends orderLater entries win. Put prettier last.
Prettier and ESLintFormat rules in both fight each other. Disable ESLint formatting with eslint-config-prettier.

On this page