verify-after-each-step

A per-file checklist that runs the project's formatting, linting, type checks, and related tests after each milestone.

In plain words
What is it for?
Use it to verify changed JavaScript, TypeScript, CSS, JSON, Markdown, HTML, and configuration files throughout a task.
Why use it?
It catches mistakes while work is still small, instead of waiting for a pre-commit check at the end.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/stainless-code/codemap/verify-after-each-step
Any agent
npx skills add stainless-code/codemap --skill verify-after-each-step
Clone the repo
git clone --depth 1 https://github.com/stainless-code/codemap

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.00824
Opus 5 $0.00011 $0.00412
Sonnet 5 $0.00004 $0.00165
Haiku 4.5 $0.00002 $0.00082

Measured 2d ago against content hash b3152a1911cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

verify-after-each-step 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 2d ago.

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.

.agents/skills/verify-after-each-step/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Verify after each step (full checklist)

Always-on priming: .agents/rules/verify-after-each-step.md.

Run matching checks on every file touched before moving to the next milestone. Pre-commit is the safety net, not the first line of defense.

Discover project scripts

  1. Read package.json scripts at the start of a task.
  2. Read lint-staged.config.js — which checks apply to which patterns (staged-only tsgo, paired co-located tests).
  3. Never assume script names — verify they exist in package.json before running.

Per-file check table (this repo)

From lint-staged.config.js — mirror these between milestones, not only at commit:

File pattern Checks
*.{js,jsx,ts,tsx,mjs,mts,cjs,cts} bun run format:check, bun run lint
*.{css,json,md,mdc,html,yaml,yml} bun run format:check
*.{ts,tsx} bun run typecheck with a temporary tsconfig.lint-staged.json that includes only staged files under src/ (project-wide types still interconnect — use bun run typecheck if you need full-project certainty); bun test on co-located *.test.{ts,tsx} pairs when a staged src/ source file is present but its test file is not
*.test.ts bun test (on changed test files)
*.test.tsx bun test (on changed test files)
scripts/**/*.test.mjs bun test (on changed test files)

Read the full file on GitHub · 53 lines

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. 2d ago First seen · 53 lines · 22 tokens per session scan A b3152a1911cd

Subscribe to this mod's changes

verify-after-each-step is a skill published in the GitHub repository stainless-code/codemap (8 stars, last pushed 7d ago), licensed MIT. It adds 22 tokens to every session and 824 once invoked, about $0.0001 per session on Opus 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