Agent skill

Verification Loop

by affaan-m in affaan-m/ECC

“Claude Code 会话的全面验证系统。”

— description from SKILL.md by affaan-m
MITAuto-check passed

Install Verification Loop

skills CLI
$ npx skills add affaan-m/ECC --skill verification-loop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC verification-loop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/verification-loop .claude/skills/verification-loop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
verification-loop
GitHub stars
277k
Used in
3 other repos
Token cost
~417 tokens
SKILL.md length
48 words
Files
1
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers 何时使用, 验证阶段, 输出格式 and 持续模式, plus 1 more section
  • Calls npm, git and pnpm

About this skill

Verification Loop is a skill in affaan-m/ECC (277k stars). Its SKILL.md is about 417 tokens, and copies of it appear in 3 other owners' repositories. Licence: MIT.

What it can do on your machine

Read from SKILL.md and the folder at commit 2d515e4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • git
    • pnpm
    • npx
    • ruff

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, git, pnpm and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Verification Loop loads about 417 tokens when it runs. Until then it costs about 10 tokens; SKILL.md has 48 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~10
When it runs · the whole SKILL.md, loaded when a task matches
~417

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 2d515e4, republished under its MIT licence (© affaan-m). 48 words, ~417 tokens.

Download SKILL.mdSave it as .claude/skills/verification-loop/SKILL.md (or your agent's skills folder).
name
verification-loop
description
Claude Code 会话的全面验证系统。
origin
ECC

验证循环技能

一个全面的 Claude Code 会话验证系统。

何时使用

在以下情况下调用此技能:

  • 完成功能或重大代码变更后
  • 创建 PR 之前
  • 当您希望确保质量门通过时
  • 重构之后

验证阶段

阶段 1:构建验证
bash
# Check if project builds
npm run build 2>&1 | tail -20
# OR
pnpm build 2>&1 | tail -20

如果构建失败,请停止并在继续之前修复。

阶段 2:类型检查
bash
# TypeScript projects
npx tsc --noEmit 2>&1 | head -30

# Python projects
pyright . 2>&1 | head -30

报告所有类型错误。在继续之前修复关键错误。

阶段 3:代码规范检查
bash
# JavaScript/TypeScript
npm run lint 2>&1 | head -30

# Python
ruff check . 2>&1 | head -30
阶段 4:测试套件
bash
# Run tests with coverage
npm run test -- --coverage 2>&1 | tail -50

# Check coverage threshold
# Target: 80% minimum

报告:

  • 总测试数:X
  • 通过:X
  • 失败:X
  • 覆盖率:X%
阶段 5:安全扫描
bash
# Check for secrets
grep -rn "sk-" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.ts" --include="*.js" . 2>/dev/null | head -10

# Check for console.log
grep -rn "console.log" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | head -10
阶段 6:差异审查
bash
# Show what changed
git diff --stat
git diff HEAD~1 --name-only

审查每个更改的文件,检查:

  • 意外更改
  • 缺失的错误处理
  • 潜在的边界情况

输出格式

运行所有阶段后,生成验证报告:

验证报告
==================

构建:     [通过/失败]
类型:     [通过/失败] (X 处错误)
代码检查:  [通过/失败] (X 条警告)
测试:     [通过/失败] (X/Y 通过,覆盖率 Z%)
安全:     [通过/失败] (X 个问题)
差异:      [X 个文件被修改]

总体:     [就绪/未就绪] 提交 PR

待修复问题:
1. ...
2. ...

持续模式

对于长时间会话,每 15 分钟或在重大更改后运行验证:

markdown
设置一个心理检查点:
- 完成每个函数后
- 完成一个组件后
- 在移动到下一个任务之前

运行: /verify

与钩子的集成

此技能补充 PostToolUse 钩子,但提供更深入的验证。 钩子会立即捕获问题;此技能提供全面的审查。

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/verification-loop of affaan-m/ECC.

Open the folder on GitHubat commit 2d515e4

Used in 3 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.

More from affaan-m/ECC

All 682 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    277k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    277k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    277k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    277k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Set an ECC-specific frontend design direction for production UI work.

    277k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Questions about Verification Loop

How do I install Verification Loop in Claude Code?

Run `npx skills add affaan-m/ECC --skill verification-loop -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/verification-loop in affaan-m/ECC) into .claude/skills/verification-loop in your project. Claude Code loads it when a task matches its description.

How do I install Verification Loop in Codex?

Run `npx skills add affaan-m/ECC --skill verification-loop -a codex`. Or copy the skill folder (docs/zh-CN/skills/verification-loop in affaan-m/ECC) into .agents/skills/verification-loop in your project. Codex loads it when a task matches its description.

Can I use Verification Loop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill verification-loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/verification-loop, .gemini/skills/verification-loop, .github/skills/verification-loop and .opencode/skills/verification-loop in your project.

What does Verification Loop need to run?

Going by SKILL.md and its folder, Verification Loop needs the command-line tools its instructions call (npm, git, pnpm, npx and ruff).

Does Verification Loop access the network?

SKILL.md contains no URLs. Its commands use npm, git and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Verification Loop safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Verification Loop use?

Verification Loop is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Verification Loop use?

About 417 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

Who maintains Verification Loop?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,673 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 11, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.