skills/test/SKILL.md
Advanced test implementation command with unit/E2E support, auto-execution, and smart fixing capabilities
npx skillsauth add sc30gsw/claude-code-customes testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implement comprehensive tests with optional test execution and intelligent failure fixing.
/test <target> [options]
| Target Type | Examples | Description |
|-------------|----------|-------------|
| Component Name | LoginForm, UserProfile | React/Vue/Angular components |
| File Path | utils/validation, hooks/useAuth | Module and utility files |
| Function Name | calculateTotal, formatDate | Specific functions |
| Feature Name | authentication, payment | Entire feature areas |
| Option | Description | Default |
|--------|-------------|---------|
| -u | Unit test mode | ✅ |
| -e | E2E test mode + accessibility injection | - |
| -r | Auto-run tests with smart fixing | - |
| -v | Verbose output mode | - |
| -c | Coverage-focused mode (target 90%+) | - |
| -p | Performance test mode | - |
| -w | Watch mode | - |
| -f | Fast mode (parallel + caching) | - |
| --files=PATTERN | Specify files by glob | - |
| --exclude=PATTERN | Exclude files by glob | - |
| --include-deps | Include dependency files | - |
| --dry-run | Test design only | - |
ALWAYS prioritize mcp__serena__ tools over default Claude Code tools:
mcp__serena__find_file → Read (fallback)mcp__serena__search_for_pattern → Grep (fallback)mcp__serena__find_symbol → Glob (fallback)mcp__serena__get_symbols_overviewmcp__serena__find_referencing_symbolsmcp__serena__replace_symbol_body → Edit (fallback)# Basic Usage
/test LoginComponent -e -r # E2E tests, run & fix
/test utils/auth -u -r -c # High-coverage unit tests
/test PaymentForm -e -v # E2E with verbose output
# File Pattern Specification
/test components --files="Button*" -u -r
/test src --files="**/*.hook.ts" -u -c
/test api --files="**/*Controller.ts" --include-deps -u -r
# Performance-Focused
/test heavyComponent -u -p -f --parallel=8
/test api/bulk -u -p --timeout=60
📁 Created/Updated Files:
- src/components/LoginForm.test.tsx
- cypress/e2e/user-authentication.cy.ts
🧪 Implemented Test Cases:
[Unit Tests]
✓ LoginForm happy path tests (3 cases)
✓ LoginForm error handling tests (2 cases)
🚀 Test Execution Results:
[1st Run] ❌ 2 failures
[Auto-Fix Applied] ✅
[2nd Run] ✅ All passed (9 tests)
Coverage: 95.2%
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
testing
# sdd-workflow — Workflow Status Dashboard ## Slash Command ``` /sdd-workflow [slug] ``` ## Purpose Read-only meta skill. Displays the current state of the SDD workflow — which phases are complete, which is next, and any blockers. Does NOT modify any files. --- ## This Skill is Read-Only `sdd-workflow` never writes to or modifies any file. It only reads spec files and git history to report status. There is no approval gate for this skill. --- ## Usage: Specific Feature ``` /sdd-workflo
content-media
# sdd-tasks **Slash command**: `/sdd-tasks <slug>` **Purpose**: Generate `tasks.md` (TASK-001..N) and `progress.md` from `requirements.md` and `design.md`. --- ## Prerequisites - `.claude/specs/<slug>/requirements.md` must exist - `.claude/specs/<slug>/design.md` must exist (run `/sdd-design` first) --- ## Steps ### 1. Read spec inputs ``` .claude/specs/<slug>/requirements.md .claude/specs/<slug>/design.md ``` Extract: - Every REQ-XXX ID with its acceptance criteria - Every design sect
development
# sdd-review — Post-Implementation Code Review ## Slash Command ``` /sdd-review <slug> ``` ## Purpose Run code review and security review on all changes introduced by the feature branch. Append structured findings to `review.md`. Does NOT auto-apply fixes — only proposes them. --- ## Prerequisites - `sdd-impl` has completed: all tasks in `progress.md` are `done` (or at least one is `done`; partial reviews are allowed). - The feature branch must have at least one commit ahead of `main`. -