test
This slash command executes a test-driven development workflow through the agent-skills skill. Use it when building new features by writing failing tests first, then implementing code to pass them. For bug fixes, it employs the Prove-It pattern, requiring reproduction via a failing test before implementing and verifying the fix. Browser issues benefit from additional DevTools verification through the included integration.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/addyosmani/agent-skills/HEAD/.claude/commands/test.md -o ~/.claude/commands/test.mdtest.md
Invoke the agent-skills:test-driven-development skill. For new features: 1. Write tests that describe the expected behavior (they should FAIL) 2. Implement the code to make them pass 3. Refactor while keeping tests green For bug fixes (Prove-It pattern): 1. Write a test that reproduces the bug (must FAIL) 2. Confirm the test fails 3. Implement the fix 4. Confirm the test passes 5. Run the full test suite for regressions For browser-related issues, also invoke agent-skills:browser-testing-with-devtools to verify with Chrome DevTools MCP.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
Simplify code for clarity and maintainability — reduce complexity without changing behavior
Break work into small verifiable tasks with acceptance criteria and dependency ordering
Conduct a five-axis code review — correctness, readability, architecture, security, performance
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
Start spec-driven development — write a structured specification before writing code
Senior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge.
Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.