Skip to content
Back to skills

Verification

ASecurity

验证回路,质量保障核心

  • 188 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
testingjavascriptjava

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add WenJunDuan/Rlues --skill verification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-verification-baa099de/badge)](https://www.skillsdirectory.com/skills/wenjunduan-verification-baa099de)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verification
description: 验证回路,质量保障核心
---

# Verification Skill

> **这是质量提升2-3倍的核心原则** — Boris Cherny
> **如果AI不能验证自己的工作,质量就不稳定。**

## 验证流程

```
┌─────────────────────────────────────────┐
│           Verification Loop             │
├─────────────────────────────────────────┤
│                                         │
│  Execute ──→ Verify ──→ Pass? ──→ Done  │
│                 │                       │
│                 ↓ No                    │
│            Analyze                      │
│                 ↓                       │
│              Fix                        │
│                 ↓                       │
│         Retry (max 3)                   │
│                 ↓ Fail                  │
│         [VERIFICATION_FAILED]           │
│                                         │
└─────────────────────────────────────────┘
```

## 验证类型

### 1. 功能验证
- [ ] 代码修改是否生效?
- [ ] 功能是否按预期工作?
- [ ] 边界情况是否处理?

### 2. 测试验证
- [ ] 单元测试通过?
- [ ] 集成测试通过?
- [ ] 无回归?

### 3. 构建验证
- [ ] 编译成功?
- [ ] 无类型错误?
- [ ] 无Lint警告?

## 自我修复循环

```javascript
async function executeWithVerification(task) {
  for (let attempt = 1; attempt <= 3; attempt++) {
    const result = await execute(task);
    
    if (await verify(result)) {
      return result; // 成功
    }
    
    if (attempt === 3) {
      // 请求人工介入
      await 寸止.escalate({
        hook: "VERIFICATION_FAILED",
        attempts: 3
      });
    }
    
    task = await fix(task, analyze(result));
  }
}
```

## 验证日志

记录到 `project_document/.ai_state/active_context.md`:

```markdown
## 📝 验证日志

### [日期] T-001
- **状态**: ✅ 通过
- **测试**: 5/5 通过
- **证据**: [截图/日志]
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…