Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add full-stack-skills/ddd-skills --skill ddd-testing-strategistgit clone --depth 1 https://github.com/full-stack-skills/ddd-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/full-stack-skills/ddd-skills/ddd-testing-strategist)<a href="https://agentmods.dev/skills/full-stack-skills/ddd-skills/ddd-testing-strategist"><img src="https://agentmods.dev/badge/skills/full-stack-skills/ddd-skills/ddd-testing-strategist/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/full-stack-skills/ddd-skills/ddd-testing-strategist"><img src="https://agentmods.dev/badge/skills/full-stack-skills/ddd-skills/ddd-testing-strategist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.03398 |
| Opus 5.5 | $0.00038 | $0.01359 |
| Sonnet 5.5 | $0.00019 | $0.00680 |
| Haiku 4.5 | $0.00009 | $0.00340 |
Grade A, and why
ddd-testing-strategist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DDD Testing Strategist
DDD testing strategy — from value object unit tests to end-to-end validation across all DDD architectures. Covers the DDD test pyramid, layer-specific test patterns, mock strategies by architecture, Test-Driven Domain Design (TDDD), CI/CD pipeline integration, and N+1 query detection.
Workflow
用户输入 → 场景分类 → 输出测试策略 + 代码模板
Step 1: 按用户问题场景分类(金字塔/AR/Repository/Mock/CQRS/TDDD/CI-CD/覆盖率)
Step 2: 从 references 获取对应测试模板
Step 3: 按架构类型调整 Mock 策略
Step 4: 输出代码模板 + CI/CD 配置 + 覆盖率目标
什么时候用:用户询问 DDD 测试策略、聚合根测试、Repository 测试、Mock 策略、CQRS 测试、TDDD、CI/CD 测试集成时触发。
Boundary
✅ 擅长处理
- DDD 测试金字塔(60% Domain + 20% Integration + 10% E2E + 10% Architecture)
- 各层测试策略:Value Object / Aggregate Root / Domain Service / Repository / Application / Adapter
- 按架构类型差异化测试(Layered / Hexagonal / Clean / COLA / CQRS / Event Sourcing)
- 测试驱动领域设计(TDDD)方法论
- Mock 策略选择(Mock Ports / Capture Events / Real DB)
- CI/CD 三阶段流水线 + N+1 查询检测 + ArchUnit 架构测试
- 测试覆盖率目标设定 + 分支覆盖率检查
⚠️ 需要条件
- 已有 DDD 项目代码或正在设计领域模型
- 已有测试框架(JUnit / Mockito / Spring Test / Testcontainers)
- 理解 DDD 战术模式(Entity / VO / Aggregate / Repository / Domain Event)
❌ 超出范围(不适用场景)
- 非 DDD 项目测试 — 标准测试框架(JUnit / pytest / Jest)
- 纯前端测试 — Cypress / Playwright / Vitest
- 性能 / 负载 / 安全测试 — JMeter / k6 / OWASP ZAP
- 语言特定测试教程 — 概念和模式语言无关
- 非 DDD 项目的 CI/CD 配置
Audience
This skill is designed for: Backend developers (implementing DDD architectures), Software architects (evaluating and selecting patterns), Tech leads (reviewing team implementations), and DDD beginners (learning domain-driven design fundamentals).
Rules
- DDD test pyramid must prioritize Domain layer testing (60% of total tests).
- Domain layer tests must never mock Domain Services or Aggregate Roots — only mock external ports.
- Repository integration tests must use Testcontainers with real databases, never mocks.
- Event Sourcing projects must include event replay and projection tests.
- Architecture compliance tests (ArchUnit) must run in CI pipeline.
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 395 B
- examples/01-app-adapter-test-examples.md 8.8 KB
- examples/02-architecture-test-examples.md 1.8 KB
- examples/03-builder-mock-patterns.md 2.2 KB
- examples/04-cqrs-es-test-examples.md 9.0 KB
- examples/05-domain-test-examples.md 8.1 KB
- references/01-architecture-testing-comparison.md 4.0 KB
- references/02-ci-cd-test-stages.md 3.5 KB
- references/03-clean-ddd-hexagonal-testing.md 16 KB
- references/04-cqrs-event-sourcing-testing.md 6.0 KB
- references/05-integration-test-strategies.md 5.5 KB
- references/06-mock-integration-patterns.md 6.6 KB
- references/07-test-coverage-targets.md 2.4 KB
- references/08-test-driven-domain-design.md 7.6 KB
- references/09-testing.md 19 KB
- references/10-unit-testing-strategies.md 6.0 KB
- references/guides/.gitkeep 0 B
- references/patterns/.gitkeep 0 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 87b35e54962e
- 1mo ago First seen · 200 lines · 94 tokens per session scan A 11bdc304f805
ddd-testing-strategist is a skill published in the GitHub repository full-stack-skills/ddd-skills (17 stars, last pushed 25d ago), licensed Apache-2.0. It adds 94 tokens to every session and 3,398 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
backend/testing-guide
A guide for writing backend tests: small unit tests, tests that check connected parts such as an API and database, and end-to-end tests that follow a complete user flow.
nest-test
Creates NestJS backend tests with Vitest — unit specs with stubbed repositories, and Supertest end-to-end specs that boot the application against a real PostgreSQL database in Testcontainers. Use when the user asks to "write backend tests", "test the API", "write an e2e test", "test the endpoint", or mentions…
node-testing
Generates unit and HTTP-level integration tests for Node backend APIs (Express, Fastify, Koa, NestJS) using Supertest against the app instance directly, with Vitest, Jest, or node:test. Use when the user asks to test a route handler, controller, middleware, or Express/Fastify app, or mentions Supertest, app.listen…
Spring Test Pyramid
Unit, integration, slice, and E2E test patterns for Spring Boot applications.
dotnet-testing-conventions
Testing conventions for .NET — xUnit facts/theories, NSubstitute mocks, integration tests, test organization, and naming. Apply whenever writing or editing tests under tests/.
mcp-csharp-test
Test C# MCP servers at multiple levels: unit tests for individual tools and integration tests using the MCP client SDK. USE FOR: unit testing MCP tool methods, integration testing with in-memory MCP client/server, end-to-end testing via MCP protocol, testing HTTP MCP servers with WebApplicationFactory, mocking…