code-verification

code-verification is a skill for Claude Code, Codex from coco-research/coco. It costs 56 tokens per session (3,200 once invoked), scanned A, original, Apache-2.0.

A post-change code checking system that looks for several common bugs in application code. Its checks include imports, references, unused code, React state and effects, test mocks, and CSS.

In plain words
What is it for?
Use it to check for import mismatches, temporary-variable errors, broken references, dead code, React problems, mock leakage, and CSS issues.
Why use it?
It helps catch mistakes introduced during coding before work is considered finished. It can be run after code changes or tests are written.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to check for import mismatches, temporary-variable errors, broken references, dead code, React problems, mock leakage, and CSS issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/code-verification
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 coco-research/coco --skill code-verification
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

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 code-verification

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/code-verification/github.svg)](https://agentmods.dev/skills/coco-research/coco/code-verification)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/code-verification"><img src="https://agentmods.dev/badge/skills/coco-research/coco/code-verification/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 code-verification

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/code-verification"><img src="https://agentmods.dev/badge/skills/coco-research/coco/code-verification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,200 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.00056 $0.03200
Opus 5.5 $0.00022 $0.01280
Sonnet 5.5 $0.00011 $0.00640
Haiku 4.5 $0.00006 $0.00320

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

Security

Grade A, and why

code-verification 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 2mo 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.

skills/code-verification/SKILL.md · 327 lines

How it starts

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

Code Verification Skill

A systematic post-implementation verification workflow that catches the bugs AI coding assistants most commonly introduce. This is NOT a code review for style or architecture — it is a mechanical correctness checklist that catches structural errors (TDZ, imports, dead code, mock leakage, CSS orphans, React anti-patterns) that humans and AI both miss during implementation.

When to Use

  • After every code change (1-2 files changed -> run immediately)
  • After a multi-file feature (run on all changed files in one pass)
  • After writing/modifying tests (switch to Test Verification mode)
  • Before marking any task complete (final gate)
  • When a subagent completes work (verify their output)
  • When user says: "verify", "check quality", "audit code", "run verification", "quality gate", "pre-commit check"

Quick Start

1. Identify changed files (git diff --name-only or manual list)
2. Run the 7-category checklist below on each file
3. Run automated checks (build, lint, tests)
4. Report findings as PASS / FAIL / WARNING
5. Fix all FAIL items before proceeding

The 7-Category Verification Checklist

Category 1: Variable Declaration Order (TDZ Prevention)

What to check: Variables, constants, and hooks used BEFORE their declaration in the same scope.

How it breaks: JavaScript const and let have a "temporal dead zone" — referencing them before their declaration line throws ReferenceError at runtime, but no build error.

React-specific: useMemo, useCallback, useEffect that reference state or derived values declared later in the component. This is the #1 AI-introduced bug.

Scan pattern:

  • For every useMemo, useCallback, useEffect: check that ALL variables in the dependency array AND the callback body are declared ABOVE that hook.
  • For every function that references a const/let: check the declaration is above the function definition.
  • For every destructured import used in a module-level const: check for circular dependencies.

Read the full file on GitHub · 327 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. 2mo ago Changed · -38 tokens per session 97248759f3d1
  2. 3mo ago First seen · 327 lines · 94 tokens per session scan A 11dee493bc59

Subscribe to this mod's changes

code-verification is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 56 tokens to every session and 3,200 once invoked, about $0.0002 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-30.

Related

code-verification compared with skills from other repositories

code-verification next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-verificationcoco-research/cocoSkill323yesterdayApache-2.0A56Claude Code, Codex
browser-tracemxyhi/ok-skillsSkill51810d agoApache-2.0A88Claude Code
orca-replaymxyhi/ok-skillsSkill51810d agoApache-2.0A67Claude Code
refactoring-guruciembor/agent-rules-booksSkill3.4k2mo agoMITA29Claude Code, Codex
refactoringciembor/agent-rules-booksSkill3.4k2mo agoMITA20Claude Code, Codex
working-effectively-with-legacy-codeciembor/agent-rules-booksSkill3.4k2mo agoMITA37Claude Code, Codex
infrastructure-doctordocxology/templateSkill25todayApache-2.0A79Claude Code, Codex