Test strategy and execution. Create test plans, run test suites, or fix failing tests. Supports vitest, playwright, jest, and cypress.
Creates test plans, runs test suites, or fixes failing tests for vitest, playwright, jest, and cypress.
/plugin marketplace add howells/arc/plugin install arc@howells-arcThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Create or review test strategy. Optionally run test suite. Supports vitest and playwright primarily.
# Check for test frameworks
ls vitest.config.* 2>/dev/null && echo "vitest"
ls playwright.config.* 2>/dev/null && echo "playwright"
ls jest.config.* 2>/dev/null && echo "jest"
ls cypress.config.* 2>/dev/null && echo "cypress"
"What would you like to do?"
Analyze:
# Count test files
find . -name "*.test.*" -o -name "*.spec.*" | wc -l
# Check coverage config
grep -r "coverage" vitest.config.* playwright.config.* 2>/dev/null
Report:
For the given feature:
Unit tests (vitest)
Integration tests (vitest)
E2E tests (playwright)
Output test plan:
## Test Strategy: [Feature]
### Unit Tests
- [ ] [Test case]: [What it verifies]
### Integration Tests
- [ ] [Test case]: [What it verifies]
### E2E Tests
- [ ] [Test case]: [What it verifies]
Determine test type from context or ask:
Unit/Integration (vitest/jest) — Run inline:
# Vitest
pnpm vitest run
# With coverage
pnpm vitest run --coverage
E2E tests (playwright/cypress) — Run as background agent:
Task Bash run_in_background: true: "Run playwright e2e tests and report results.
Commands:
pnpm playwright test
If tests fail, capture:
- Which tests failed
- Error messages
- Screenshot paths (if any)
Report summary when complete."
Why background agent for E2E:
Report results. If failures, offer to debug.
Follow ${CLAUDE_PLUGIN_ROOT}/disciplines/systematic-debugging.md:
From ${CLAUDE_PLUGIN_ROOT}/references/testing-patterns.md:
Good tests:
Bad tests:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.