一键导入
verification-rules
4-layer verification system for task completion. Use when verifying that a task has been fully completed before marking it done.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
4-layer verification system for task completion. Use when verifying that a task has been fully completed before marking it done.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
How to delegate implementation tasks to workers via Codex MCP or Task sub-agents. Use when executing tasks that require code implementation.
Output rules for all agents - concise, scannable, actionable. Based on Matt Pocock's planning principles.
Core principle that the main agent is a coordinator, not an implementer. All work must be delegated to subagents.
Detect fix vs add goals, diagnose failures before work, verify fixes after. Ensures "fix X" specs actually fix X.
Spec-driven development workflow for building features with research, requirements, design, and task phases
Criteria for reviewing Codex worker outputs across 5 dimensions. Use when reviewing code submitted by workers before approval.
| name | verification-rules |
| description | 4-layer verification system for task completion. Use when verifying that a task has been fully completed before marking it done. |
This skill defines the 4-layer verification system used by CEO Ralph.
Every task must pass ALL 4 layers before being marked complete.
┌─────────────────────────────────────────────┐
│ Layer 1: Contradiction │
│ Check for conflicting statements │
└─────────────────────────────────────────────┘
│
▼ PASS
┌─────────────────────────────────────────────┐
│ Layer 2: Uncommitted │
│ Verify all changes committed │
└─────────────────────────────────────────────┘
│
▼ PASS
┌─────────────────────────────────────────────┐
│ Layer 3: Checkmark │
│ Verify task marked [x] in tasks.md │
└─────────────────────────────────────────────┘
│
▼ PASS
┌─────────────────────────────────────────────┐
│ Layer 4: Signal │
│ Verify TASK_COMPLETE signal present │
└─────────────────────────────────────────────┘
│
▼ PASS
VERIFIED ✓
Purpose: Catch outputs that claim completion but are actually incomplete.
const contradictions = [
// Says complete but needs manual work
/requires manual.*TASK_COMPLETE/i,
/manual intervention.*TASK_COMPLETE/i,
/needs human.*TASK_COMPLETE/i,
// Says complete but has TODOs
/TODO.*TASK_COMPLETE/i,
/FIXME.*TASK_COMPLETE/i,
/XXX.*TASK_COMPLETE/i,
// Says complete but incomplete
/not implemented.*TASK_COMPLETE/i,
/placeholder.*TASK_COMPLETE/i,
/skeleton.*TASK_COMPLETE/i,
// Says complete but blocked
/blocked.*TASK_COMPLETE/i,
/cannot complete.*TASK_COMPLETE/i,
];
**Layer 1: Contradiction Detection**
Checking output for contradictory statements...
Patterns checked:
- [x] "requires manual" + completion
- [x] "TODO/FIXME" + completion
- [x] "not implemented" + completion
- [x] "blocked" + completion
Result: {PASS/FAIL}
{If FAIL: Found contradiction: "{matched text}"}
Purpose: Ensure all changes are committed to git.
# Check spec directory for uncommitted changes
git status ./specs/{specName}/ --porcelain
# Check modified files from task
git status {file1} {file2} --porcelain
**Layer 2: Uncommitted Files Check**
Checking for uncommitted changes...
Files checked:
- ./specs/{specName}/tasks.md
- ./specs/{specName}/.progress.md
- {modified files from task}
Result: {PASS/FAIL}
{If FAIL: Uncommitted files: {list}}
Purpose: Ensure task is marked complete in tasks.md.
# Check if task line shows [x]
grep -E "^\s*-\s*\[x\]\s*{taskId}" ./specs/{specName}/tasks.md
**Layer 3: Checkmark Verification**
Checking tasks.md for completion mark...
Looking for: `- [x] {taskId}`
Found: {matched line or "NOT FOUND"}
Result: {PASS/FAIL}
[x]Purpose: Ensure explicit completion signal is present.
const output = workerOutput;
const hasSignal = output.includes("TASK_COMPLETE");
**Layer 4: Signal Verification**
Checking for completion signal...
Looking for: `TASK_COMPLETE`
Found: {YES/NO}
Result: {PASS/FAIL}
## Verification Report: Task {id}
| Layer | Check | Status |
|-------|-------|--------|
| 1 | Contradiction Detection | {PASS/FAIL} |
| 2 | Uncommitted Files | {PASS/FAIL} |
| 3 | Checkmark in tasks.md | {PASS/FAIL} |
| 4 | Completion Signal | {PASS/FAIL} |
**Overall**: {VERIFIED/FAILED}
After the 4 layers pass, run quality gates:
# Discover and run quality commands
npm run lint # or discovered lint command
npm run test # or discovered test command
npm run build # or discovered build command
npm run check-types # if TypeScript
## Quality Gates: Task {id}
| Gate | Command | Status | Output |
|------|---------|--------|--------|
| Lint | npm run lint | {PASS/FAIL} | {summary} |
| Test | npm test | {PASS/FAIL} | {summary} |
| Build | npm run build | {PASS/FAIL} | {summary} |
| Types | npm run check-types | {PASS/FAIL} | {summary} |
**Overall**: {PASS/FAIL}
Escalate to user when: