ddd-testing-strategist

ddd-testing-strategist is a skill for Claude Code, Codex from full-stack-skills/ddd-skills. It costs 94 tokens per session (3,398 once invoked), scanned A, original, Apache-2.0.

A testing guide for domain-driven design, including tests for business rules, data access, application services, and external adapters.

In plain words
What is it for?
Use it to plan unit, integration, and end-to-end tests, test aggregates and repositories, and apply Test-Driven Domain Design, where tests help shape the domain model.
Why use it?
It helps teams decide what to test at each level and catch broken business behaviour without relying only on slow end-to-end tests.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the ddd-skills plugin — 20 skills shipped together

Good fit Use it to plan unit, integration, and end-to-end tests, test aggregates and repositories, and apply Test-Driven Domain Design, where tests help shape the domain model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/full-stack-skills/ddd-skills/ddd-testing-strategist
Install

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.

Any agent
npx skills add full-stack-skills/ddd-skills --skill ddd-testing-strategist
Clone the repo
git clone --depth 1 https://github.com/full-stack-skills/ddd-skills

Made for: Claude Code, Codex.

Or install ddd-skills, the plugin that ships this one along with the rest of its 20 skills.

Wrote 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.

agentmods badge for ddd-testing-strategist

README.md
[![agentmods](https://agentmods.dev/badge/skills/full-stack-skills/ddd-skills/ddd-testing-strategist/github.svg)](https://agentmods.dev/skills/full-stack-skills/ddd-skills/ddd-testing-strategist)
Your own site
<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.

agentmods 80×15 button for ddd-testing-strategist

Your own site · 80×15
<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>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 87b35e54962e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/ddd-testing-strategist/SKILL.md · 200 lines

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

✅ 擅长处理

  1. DDD 测试金字塔(60% Domain + 20% Integration + 10% E2E + 10% Architecture)
  2. 各层测试策略:Value Object / Aggregate Root / Domain Service / Repository / Application / Adapter
  3. 按架构类型差异化测试(Layered / Hexagonal / Clean / COLA / CQRS / Event Sourcing)
  4. 测试驱动领域设计(TDDD)方法论
  5. Mock 策略选择(Mock Ports / Capture Events / Real DB)
  6. CI/CD 三阶段流水线 + N+1 查询检测 + ArchUnit 架构测试
  7. 测试覆盖率目标设定 + 分支覆盖率检查

⚠️ 需要条件

  1. 已有 DDD 项目代码或正在设计领域模型
  2. 已有测试框架(JUnit / Mockito / Spring Test / Testcontainers)
  3. 理解 DDD 战术模式(Entity / VO / Aggregate / Repository / Domain Event)

❌ 超出范围(不适用场景)

  1. 非 DDD 项目测试 — 标准测试框架(JUnit / pytest / Jest)
  2. 纯前端测试 — Cypress / Playwright / Vitest
  3. 性能 / 负载 / 安全测试 — JMeter / k6 / OWASP ZAP
  4. 语言特定测试教程 — 概念和模式语言无关
  5. 非 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

  1. DDD test pyramid must prioritize Domain layer testing (60% of total tests).
  2. Domain layer tests must never mock Domain Services or Aggregate Roots — only mock external ports.
  3. Repository integration tests must use Testcontainers with real databases, never mocks.
  4. Event Sourcing projects must include event replay and projection tests.
  5. Architecture compliance tests (ArchUnit) must run in CI pipeline.

Read the full file on GitHub · 200 lines

Changes

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.

  1. 1mo ago Changed 87b35e54962e
  2. 1mo ago First seen · 200 lines · 94 tokens per session scan A 11bdc304f805

Subscribe to this mod's changes

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.

Related

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.

echoVic/boss-skill · 30 tokens

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…

AI-Unified-Process/marketplace · 90 tokens

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…

jyotiraditya-chauhan/test-kit · 116 tokens

Spring Test Pyramid

Unit, integration, slice, and E2E test patterns for Spring Boot applications.

niels-emmer/myace · 21 tokens

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/.

makigjuro/cloudstack-ai-plugins · 41 tokens

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…

F-U-S-E-E/FuseDevelopmentGroup · 122 tokens