lint-and-validate

lint-and-validate is a skill for Claude Code, Codex from phuonghx/aim-cli. It costs 84 tokens per session (524 once invoked), scanned A, original, MIT.

A routine for checking changed code with style checkers, formatters, type checkers, and security tools. It covers common Node.js, TypeScript, and Python commands.

In plain words
What is it for?
Use it after editing code, when preparing a change for review, or before marking work complete. It explains how to fix reported problems and run the checks again.
Why use it?
It catches syntax mistakes, type problems, inconsistent formatting, and some security issues before code is treated as finished.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after editing code, when preparing a change for review, or before marking work complete. It explains how to fix reported problems and run the checks again.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phuonghx/aim-cli/lint-and-validate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phuonghx/aim-cli --skill lint-and-validate
Clone the repo
git clone --depth 1 https://github.com/phuonghx/aim-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lint-and-validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/phuonghx/aim-cli/lint-and-validate/github.svg)](https://agentmods.dev/skills/phuonghx/aim-cli/lint-and-validate)
Your own site
<a href="https://agentmods.dev/skills/phuonghx/aim-cli/lint-and-validate"><img src="https://agentmods.dev/badge/skills/phuonghx/aim-cli/lint-and-validate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lint-and-validate

Your own site · 80×15
<a href="https://agentmods.dev/skills/phuonghx/aim-cli/lint-and-validate"><img src="https://agentmods.dev/badge/skills/phuonghx/aim-cli/lint-and-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.00524
Opus 5.5 $0.00034 $0.00210
Sonnet 5.5 $0.00017 $0.00105
Haiku 4.5 $0.00008 $0.00052

Measured 1mo ago against content hash 264f5de48df6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lint-and-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/lint_runner.py, scripts/type_coverage.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aim/templates/aim-agents/skills/lint-and-validate/SKILL.md · 46 lines

What it actually says

Lint and Validate

Treat validation as part of writing the code, not a separate chore. Code is not "done" while a checker still complains.

Toolchain by ecosystem

Node.js / TypeScript

  1. Style + autofix -- npm run lint, or npx eslint "<path>" --fix when there is no script
  2. Type safety -- npx tsc --noEmit
  3. Dependency audit -- npm audit --audit-level=high

Python

  1. Lint + autofix -- ruff check "<path>" --fix (fast, covers most rules)
  2. Static security -- bandit -r "<path>" -ll
  3. Type safety -- mypy "<path>"

The validation loop

  1. Make the edit.
  2. Run the relevant checks, e.g. npm run lint && npx tsc --noEmit.
  3. Read the output carefully -- look at the final summary, not just the exit code.
  4. Fix what it reports and re-run. Repeat until clean. Reporting code as finished while the summary shows failures is not acceptable.

When a step fails

  • Linter complains -- resolve the style or syntax problem right away; many issues autofix.
  • Type check complains -- reconcile the type mismatch before moving on.
  • No tooling configured -- look for .eslintrc, tsconfig.json, or pyproject.toml in the project root and propose adding the missing config rather than skipping the check.

Non-negotiable: nothing gets committed or called complete until these checks pass.


Scripts

Script What it does How to run
scripts/lint_runner.py Detects the stack and runs its linters/type checks python scripts/lint_runner.py <project_path>
scripts/type_coverage.py Estimates type-annotation coverage python scripts/type_coverage.py <project_path>
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 46 lines · 84 tokens per session scan A 264f5de48df6

Subscribe to this mod's changes

lint-and-validate is a skill published in the GitHub repository phuonghx/aim-cli (1 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 524 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

evidence-audit

Evidence-led audit/fix rounds for any codebase in any language. Finds only defects that a runnable proof reproduces on current code, applies the narrowest in-scope patch, verifies with a second proof, promotes high-risk proofs to permanent regression tests, and reports exact validation results. Use whenever the user…

WrongStack/WrongStack · 152 tokens

bug-hunter

Use this skill when scanning source code for bugs, anti-patterns, code smells, or quality issues in a codebase, or when running a proof-driven bug hunt that must find, prove, fix, and verify one real defect. Trigger on the explicit vocabulary — "bug", "bug hunt", "/bughunt", "scan for issues", "find problems"…

WrongStack/WrongStack · 186 tokens

debugging

Use this skill when something is broken and the cause is unknown — a failing test, a crash, an error message, wrong output, a regression, a hang, or behaviour that differs between environments — and it has to be found and fixed at the root. Also use it to build the failing proof for a suspected defect before fixing…

WrongStack/WrongStack · 148 tokens

observability

Use this skill when adding or reviewing logging, metrics, or tracing in an application, or when a production problem can't be diagnosed from the signals that exist today. Triggers: user says "logging", "logs", "trace", "tracing", "metrics", "observability", "instrument", "OpenTelemetry", "structured logging", "log…

WrongStack/WrongStack · 86 tokens

container-debugging

Diagnose reported container build, startup, network, permission and resource failures. Use when an image or Compose service fails; reproduce against the final image/config and avoid data-destroying cleanup as a workaround.

WrongStack/WrongStack · 45 tokens

incident-response

Diagnose and recover an owned service incident with bounded changes, timeline evidence and verified health. Use during outages, bad deployments or data/service degradation; preserve evidence and separate mitigation from root-cause repair.

WrongStack/WrongStack · 43 tokens