agent-comms
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against the agent whitelist, or a…
Test pyramid, coverage targets, and test patterns (unit/integration/E2E). TRIGGER when: planning tests, writing test code, or reviewing coverage. SKIP: quality-gate scoring of plans (use quality-validation); security testing (use security-review-checklists). (Examples use common
$ npx -y skills add komluk/scaffolding --skill testing-strategy --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/testing-strategyContext preview
The summary Claude sees to decide when to auto-load this skill.
Test pyramid, coverage targets, and test patterns (unit/integration/E2E). TRIGGER when: planning tests, writing test code, or reviewing coverage. SKIP: quality-gate scoring of plans (use quality-validation); security testing (use security-review-checklists). (Examples use common
name: testing-strategy description: "Test pyramid, coverage targets, and test patterns (unit/integration/E2E). TRIGGER when: planning tests, writing test code, or reviewing coverage. SKIP: quality-gate scoring of plans (use quality-validation); security testing (use security-review-checklists). (Examples use common runners such as pytest and vitest.)"
Comprehensive testing guidelines including test pyramid, coverage targets, and test patterns.
---
/\
/ \ 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 | Expected traffic | | Stress | Breaking point | | Soak | Memory leaks | | Spike | Sudden traffic |
---
---
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 36 skills, 19 commands, 15 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
Repo: komluk/scaffolding
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against the agent whitelist, or a…
3-tier markdown memory protocol (shared/agent/conversation) for cross-session knowledge. TRIGGER when: reading or writing agent memory files, choosing which…
RESTful API design standards: resource naming, HTTP methods, status codes, pagination, versioning. TRIGGER when: designing new API endpoints, defining error…
Optimize Claude Code context-window usage for accuracy and cost. TRIGGER when: hitting context limits, structuring prompts for an agent, or trimming what gets…
Schema design, index strategy, migration safety, and query analysis. TRIGGER when: designing tables or indexes, writing a migration, or diagnosing a slow…