acceptance-testlisted
Install: claude install-skill Edmonds-Commerce-Limited/claude-code-hooks-daemon
# /acceptance-test - Acceptance Testing Skill
## Description
Execute acceptance tests for hooks daemon handlers via **real Claude Code tool calls in the main thread**. Tests verify real-world handler behaviour by invoking actual tools (Bash, Write, Edit, Read) and observing hook responses in system-reminders.
## CRITICAL: Main Thread Only
**Acceptance tests MUST be executed in the main Claude Code session.** Sub-agent strategies (parallel Haiku batches) are unreliable and forbidden:
- Sub-agents run out of context on large test suites
- Sub-agents cannot use Write/Edit tools (PreToolUse:Write tests fail)
- Lifecycle events (SessionStart, SessionEnd) only fire in the main session
- Advisory messages in system-reminders are only visible to the main session
- The v2.9.0 incident proved async agents create race conditions with release gates
**The ONLY valid acceptance test is a real tool call in the main thread with the hook response observed directly.**
## Usage
```bash
# Test all handlers (default)
/acceptance-test
/acceptance-test all
# Test only blocking handlers
/acceptance-test blocking-only
# Test only advisory handlers
/acceptance-test advisory-only
# Test only context injection handlers
/acceptance-test context-only
# Test specific handler by name substring
/acceptance-test DestructiveGit
/acceptance-test npm
```
## Parameters
- **filter** (optional): Test filter
- `all` (default): Run all tests
- `blocking-only`: Only blocking handlers (test_type=block