ワンクリックで
reality-verification
Detect fix vs add goals, diagnose failures before work, verify fixes after. Ensures "fix X" specs actually fix X.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Detect fix vs add goals, diagnose failures before work, verify fixes after. Ensures "fix X" specs actually fix X.
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.
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.
4-layer verification system for task completion. Use when verifying that a task has been fully completed before marking it done.
| name | reality-verification |
| description | Detect fix vs add goals, diagnose failures before work, verify fixes after. Ensures "fix X" specs actually fix X. |
For fix goals: reproduce the failure BEFORE work, verify resolution AFTER.
Classify user goals to determine if diagnosis is needed.
| Pattern | Type | Match |
|---|---|---|
| fix, repair, resolve, debug, patch | Fix | \b(fix|repair|resolve|debug|patch)\b |
| broken, failing, error, bug, issue | Fix | \b(broken|failing|error|bug|issue)\b |
| "not working", "doesn't work" | Fix | not\s+working|doesn't\s+work |
| add, create, build, implement, new | Add | \b(add|create|build|implement|new)\b |
Conflict resolution: If both Fix and Add patterns present, treat as Fix. Fixing enables the feature.
Map goal keywords to reproduction commands.
| Goal Keywords | Reproduction Command |
|---|---|
| CI, pipeline, actions | gh run view --log-failed |
| test, tests, spec | project test command (package.json scripts.test) |
| type, types, typescript | pnpm check-types or tsc --noEmit |
| lint, linting | pnpm lint or eslint . |
| build, compile | pnpm build or npm run build |
| deploy, deployment | gh api or MCP fetch to check status |
| E2E, UI, browser, visual | MCP playwright to screenshot or run E2E suite |
| endpoint, API, response | MCP fetch with expected status/response validation |
| site, page, live | MCP fetch/playwright to verify live behavior |
Fallback: If no keyword match, ask user or skip diagnosis.
For deployment and UI verification, use MCP tools:
When goal involves: UI broken, E2E failing, visual regression, page not loading
BEFORE: Use MCP playwright to:
- Capture screenshot of broken state
- Run failing E2E test
- Document visible error
AFTER: Same action should:
- Show fixed UI
- E2E test passes
- No visible error
When goal involves: API down, endpoint failing, deployment broken, 500 errors
BEFORE: Use MCP fetch to:
- Hit endpoint, capture status code
- Document error response body
- Note timestamp
AFTER: Same endpoint should:
- Return expected status (200, 201, etc)
- Response matches expected schema
- No error in body
Document in .progress.md under ## Reality Check (BEFORE):
## Reality Check (BEFORE)
**Goal type**: Fix
**Reproduction command**: `pnpm test`
**Failure observed**: Yes
**Output**:
FAIL src/auth.test.ts Expected: 200 Received: 401
**Timestamp**: 2026-01-16T10:30:00Z
Document in .progress.md under ## Reality Check (AFTER):
## Reality Check (AFTER)
**Command**: `pnpm test`
**Result**: PASS
**Output**:
PASS src/auth.test.ts All tests passed
**Comparison**: BEFORE failed with 401, AFTER passes
**Verified**: Issue resolved
Add as task 4.3 (after PR creation) for fix-type specs:
- [ ] 4.3 VF: Verify original issue resolved
- **Do**:
1. Read BEFORE state from .progress.md
2. Re-run reproduction command: `<command>`
3. Compare output with BEFORE state
4. Document AFTER state in .progress.md
- **Verify**: `grep -q "Verified: Issue resolved" ./specs/<name>/.progress.md`
- **Done when**: AFTER shows issue resolved, documented in .progress.md
- **Commit**: `chore(<name>): verify fix resolves original issue`
| Without | With |
|---|---|
| "Fix CI" spec completes but CI still red | CI verified green before merge |
| Tests "fixed" but original failure unknown | Before/after comparison proves fix |
| Silent regressions | Explicit failure reproduction |
| Manual verification required | Automated verification in workflow |