/sdlc-workflow:sdlc-test [--layer unit|integration|e2e|all] [--run] [--coverage-gap]from sdlc-workflow
Runs comprehensive testing and security auditing across unit, integration, and E2E layers. Spawns five specialized agents for manual QA, automation, appsec, penetration testing, and performance profiling.
Ships in sdlc-workflow. Installing the plugin adds it to Claude Code.
Comprehensive testing and security auditing: unit tests, integration tests, E2E tests, SAST scanning, penetration testing, and performance profiling.
Execution order:
03-implementation.log — what was built01-requirements.md — user stories + acceptance criteriaAgent 1: qa-manual-tester (FIRST)
Spawn: Agent({
subagent_type: "fork",
description: "QA Manual Tester (Phase 4) — Manual test cases + exploratory testing",
prompt: "[03-implementation.log + 01-requirements.md + frontend/backend code]
Skills: skill-testing, skill-code-quality, skill-playwright
Using requirements + implementation:
1. Create manual test cases:
- One test case per user story
- Happy path (normal flow)
- Error paths (invalid input, network errors)
- Edge cases (boundary values, max inputs)
- Cross-browser scenarios (Chrome, Safari, Firefox)
2. Create ./projects/<feature-name>/docs/04-test-cases.md with:
- Test case matrix (story, test case, steps, expected result)
- Critical user paths (must test manually):
- Login
- Create account
- Purchase flow
- etc.
- Known issues + limitations
3. Execute exploratory testing:
- Find edge cases not in requirements
- Test on real devices (mobile testing)
Output: ./projects/<feature-name>/docs/04-test-cases.md"
})
Wait for qa-manual-tester to complete (BLOCKS automation-qa-engineer).
NOW SPAWN IN PARALLEL (Group 1: Automation + Security):
Agent 2: automation-qa-engineer (PARALLEL — needs test cases)
Spawn: Agent({
subagent_type: "fork",
description: "Automation QA Engineer (Phase 4) — Unit + integration + E2E tests",
prompt: "[04-test-cases.md + implementation code + 01-requirements.md]
Skills: skill-testing, skill-tdd, skill-code-quality, skill-playwright
Using manual test cases + implementation:
1. Implement Testing Pyramid (70% unit, 20% integration, 10% E2E):
2. Unit tests (70%):
- Jest for backend (controllers, services, models)
- React Testing Library for frontend components
- >80% code coverage (branches + lines)
- Fast (<1s per test)
- Independent (no test order dependency)
3. Integration tests (20%):
- Backend: API + database integration
- Test endpoints with real DB
- Test business logic workflows
- Frontend: Components + API client
- Mock API, test user interactions
4. E2E tests (10%):
- Playwright/Cypress for critical paths:
- Login flow
- Create resource flow
- Delete resource flow
- Test on real deployed app (if staging exists)
5. Test reports:
- Coverage report (>80%)
- Flaky tests detected
- Performance benchmarks
Output: Tests in ./projects/<feature-name>/frontend/src and backend/services/"
})
Agent 3: appsec-engineer (PARALLEL with automation-qa)
Spawn: Agent({
subagent_type: "fork",
description: "AppSec Engineer (Phase 4) — SAST security scanning + OWASP audit",
prompt: "[implementation code + 01-architecture.md + 01-threat-model.md]
Skills: skill-security-audit, skill-code-quality, skill-threat-modeling
Using code + threat model:
1. SAST (Static Analysis Security Testing):
- Run Snyk / SonarQube on backend code
- npm audit for dependencies
- Check for hardcoded secrets (truffleHog)
2. OWASP Top 10 audit:
- A01:2021 – Broken Access Control (auth checks)
- A02:2021 – Cryptographic Failures (encryption)
- A03:2021 – Injection (SQL injection, command injection)
- A04:2021 – Insecure Design (threat model gaps)
- A05:2021 – Security Misconfiguration (env setup)
- A06:2021 – Vulnerable Components (dependency versions)
- A07:2021 – Authentication Failures (login security)
- A08:2021 – Software + Data Integrity (build pipeline)
- A09:2021 – Logging & Monitoring (security events)
- A10:2021 – SSRF (external API calls)
3. Create ./projects/<feature-name>/docs/04-security.md with:
- Vulnerabilities found (severity: Critical, High, Medium, Low)
- Root cause analysis
- Remediation steps
- Risk ranking (which to fix first)
Output: ./projects/<feature-name>/docs/04-security.md"
})
Wait for automation-qa-engineer AND appsec-engineer to complete.
Agent 4: penetration-tester (WAITS for automation + appsec)
Spawn: Agent({
subagent_type: "fork",
description: "Penetration Tester (Phase 4) — Attack simulation + exploit scenarios",
prompt: "[04-security.md + implementation code + 01-threat-model.md + test suite results]
Skills: skill-security-audit, skill-threat-modeling, skill-diagnose
Using SAST findings + threat model:
1. Attack simulation:
- Authentication bypass (weak password, session fixation)
- Authorization bypass (IDOR, privilege escalation)
- Injection attacks (SQL, command, NoSQL)
- XSS (stored, reflected, DOM)
- CSRF (cross-site request forgery)
- Deserialization attacks
- Rate limiting bypass
2. Create exploit scenarios:
- Step-by-step instructions to reproduce each vulnerability
- Proof of concept code
- Business impact (what attacker can do)
3. Append to ./projects/<feature-name>/docs/04-security.md:
- Penetration test findings
- Exploits demonstrated
- Fix validation (test that fixes work)
Output: Updates 04-security.md with pen test findings"
})
Agent 5: performance-engineer (PARALLEL with automation + appsec + penetration)
Spawn: Agent({
subagent_type: "fork",
description: "Performance Engineer (Phase 4) — Profiling + optimization",
prompt: "[implementation code + 01-architecture.md + grill-summary.md]
Skills: skill-performance-optimization, skill-code-quality, skill-observability
Using code + scale requirements:
1. Profiling:
- CPU profiling (bottleneck functions)
- Memory profiling (memory leaks)
- Startup time (bundle size, cold start)
- Database query analysis (N+1 queries)
2. Benchmarking:
- Frontend: Core Web Vitals (LCP, FID, CLS)
- Backend: Response time (p50, p95, p99 latency)
- Database: Query execution times
- Load testing (concurrent users per grill-summary scale)
3. Optimization recommendations:
- Code-level optimizations (algorithmic)
- Infrastructure optimizations (caching, CDN)
- Database optimizations (indexes, query rewrites)
4. Create performance-report.md:
- Current metrics
- Targets (from grill-summary requirements)
- Bottlenecks identified
- Optimization roadmap
Output: ./projects/<feature-name>/docs/performance-report.md"
})
Wait for penetration-tester and performance-engineer to complete.
✅ Phase 4 Complete! (5 agents invoked)
📁 Testing & Security artifacts:
./projects/<feature-name>/docs/
├── 04-test-cases.md (qa-manual-tester)
├── 04-security.md (appsec + penetration-tester)
└── performance-report.md (performance-engineer)
📊 Test Results:
✅ Unit tests: >80% coverage
✅ Integration tests: All passing
✅ E2E tests: Critical paths verified
✅ SAST scan: [n vulnerabilities found]
✅ Pen testing: [n exploits found + fixed]
✅ Performance: [metrics vs targets]
✅ Agents completed:
1. qa-manual-tester → manual test cases
2. automation-qa-engineer → unit + integration + E2E tests
3. appsec-engineer → SAST + OWASP audit
4. penetration-tester → Exploit scenarios + fixes validated
5. performance-engineer → Profiling + optimization plan
Quality Gates:
✅ No critical/high security findings unresolved
✅ >80% unit test coverage
✅ Performance within targets
✅ All user stories covered by tests
Next: Run /sdlc-deploy for Phase 5 (Infrastructure & Deployment)
✅ qa-manual-tester MUST create test cases first (test spec) ✅ automation-qa-engineer MUST achieve >80% coverage ✅ appsec-engineer MUST audit all OWASP Top 10 ✅ penetration-tester MUST demonstrate exploits (not just theoretical) ✅ All findings MUST be fixed before Phase 5 ✅ No critical/high security findings allowed to pass
What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid input, skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
15 commands in this plugin
/sdlcMaster SDLC OrchestratorMaster orchestrator for the complete 6-phase SDLC pipeline. Runs all phases sequentially with approval gates between each phase. Organizes artifacts into docs/, frontend/, backend/services/, and deployment/ directories./sdlc-deploy/sdlc-deploy — Phase 5: Infrastructure & DeploymentPhase 5 — Infrastructure & Deployment. Spawns devops-engineer and cloud-engineer to design CI/CD, containerization, and cloud infrastructure./sdlc-design/sdlc-design — Phase 2: Design & Prototyping