agent-comms
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against…
Test pyramid, coverage targets, and unit/integration/E2E patterns. TRIGGER when: planning tests, writing test code, or reviewing coverage. SKIP: quality-gate scoring of plans (use quality-validation); root-causing a failing test (use systematic-debugging); proving a fix works
Claude Code
$ npx -y skills add komluk/scaffolding --skill testing-strategy --agent claude-code
Codex
$ npx skills add komluk/scaffolding --skill testing-strategy -a codex -y
Cursor
$ npx skills add komluk/scaffolding --skill testing-strategy -a cursor -y
Gemini CLI
$ npx skills add komluk/scaffolding --skill testing-strategy -a gemini-cli -y
GitHub Copilot
$ npx skills add komluk/scaffolding --skill testing-strategy -a github-copilot -y
OpenCode
$ npx skills add komluk/scaffolding --skill testing-strategy -a opencode -y
Windsurf
$ npx skills add komluk/scaffolding --skill testing-strategy -a windsurf -y
name: testing-strategy description: "Test pyramid, coverage targets, and unit/integration/E2E patterns. TRIGGER when: planning tests, writing test code, or reviewing coverage. SKIP: quality-gate scoring of plans (use quality-validation); root-causing a failing test (use systematic-debugging); proving a fix works (use verification-before-completion)."
Comprehensive testing guidelines including test pyramid, coverage targets, and test patterns.
---
For new behavior and bug fixes, the failing test comes **first**. No production code without a test that demanded it.
| Step | Do | Gate | |------|----|------| | 1. Red | Write one small test for the next behavior; run it | It **fails for the expected reason** (not a typo/import error) | | 2. Green | Write the least code that passes | All tests pass; no extra behavior | | 3. Refactor | Clean names, duplication, structure | Tests stay green; no new behavior |
Rules:
Evidence of compliance in a report: the failing test output, then the passing output. Proving the final result is `verification-before-completion`'s job.
---
/\
/ \ E2E Tests (10%)
/----\ - Critical user flows
/ \ - Slow, expensive
/--------\ Integration Tests (20%)
/ \ - API tests, DB tests
/------------\ - Medium speed
/ \ Unit Tests (70%)
/----------------\ - Fast, isolated
- Business logic| Type | Percentage | Focus | |------|------------|-------| | Unit | 70% | Business logic, utilities | | Integration | 20% | API, database, services | | E2E | 10% | Critical user journeys |
---
| Metric | Minimum | Target | |--------|---------|--------| | Line coverage | 70% | 80% | | Branch coverage | 60% | 70% | | Critical paths | 90% | 100% |
---
Arrange - Set up test data and mocks Act - Execute the method under test Assert - Verify the expected outcome
{Method}_{Scenario}_{ExpectedResult}
CreateUser_ValidData_ReturnsUserId
CreateUser_DuplicateEmail_ThrowsConflict
CalculateTotal_EmptyCart_ReturnsZero| Category | Purpose | Example | |----------|---------|---------| | Happy path | Normal operation | Valid user creation | | Edge case | Boundary conditions | Empty input, max length | | Error case | Failure scenarios | Invalid data, not found |
---
---
---
| Strategy | Use Case | |----------|----------| | Fixtures | Static test data | | Factories | Dynamic test data | | Builders | Complex objects | | Seeders | Database state |
---
| Type | Purpose | |------|---------| | Stub | Return canned responses | | Mock | Verify interactions | | Spy | Record calls, pass through | | Fake | Simplified implementation |
---
tests/ ├── unit/ │ ├── services/ │ └── utils/ ├── integration/ │ ├── api/ │ └── db/ ├── e2e/ ├── fixtures/ └── conftest.py / setup.ts
---
1. **Unit tests** - Run on every commit 2. **Integration tests** - Run on PR/merge 3. **E2E tests** - Run on deploy to staging
| Gate | Requirement | |------|-------------| | Unit tests | 100% pass | | Coverage | > 70% | | Integration | 100% pass | | E2E (critical) | 100% pass |
---
| Type | Purpose | |------|---------| | Load | Expecte
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 39 skills, 21 commands, 20 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against…
Repo-local file memory under .scaffolding/ (shared/agent/conversation tiers). TRIGGER when: reading or writing .scaffolding/…
RESTful API design standards: resource naming, HTTP methods, status codes, pagination, versioning. TRIGGER when: designing new…
Optimize Claude Code context-window usage for accuracy and cost. TRIGGER when: hitting context limits, structuring prompts for an…
Schema design, index strategy, migration safety, and query analysis. TRIGGER when: designing tables or indexes, writing a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.