Testing Strategy

Testing Strategy is a skill for Claude Code, Codex from Xiaowen-Jiang/agent-enterprise. It costs 18 tokens per session (373 once invoked), scanned A, original, MIT.

A guide for planning and writing software tests. It covers unit tests for isolated code, integration tests for connected components, and end-to-end tests for complete user flows.

In plain words
What is it for?
Use it to inspect code, choose suitable test boundaries, create a test matrix, prioritize critical paths, and write independent tests that check behavior rather than implementation details.
Why use it?
It helps uncover normal, edge-case, error, and boundary problems before they reach users, while keeping the test work organized by priority.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/xiaowen-jiang/agent-enterprise/testing_strategy
Any agent
npx skills add Xiaowen-Jiang/agent-enterprise --skill testing_strategy
Clone the repo
git clone --depth 1 https://github.com/Xiaowen-Jiang/agent-enterprise

Made for: Claude Code, Codex.

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 Testing Strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaowen-jiang/agent-enterprise/testing_strategy.svg)](https://agentmods.dev/skills/xiaowen-jiang/agent-enterprise/testing_strategy)
Your own site
<a href="https://agentmods.dev/skills/xiaowen-jiang/agent-enterprise/testing_strategy"><img src="https://agentmods.dev/badge/skills/xiaowen-jiang/agent-enterprise/testing_strategy.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00373
Opus 5 $0.00009 $0.00187
Sonnet 5 $0.00004 $0.00075
Haiku 4.5 $0.00002 $0.00037

Measured 5d ago against content hash b0ec4af6f52d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Testing Strategy 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 5d 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.

agent_enterprise/skills_data/testing_strategy/SKILL.md · 42 lines

What it actually says

Process

  1. Read the code under test — Understand inputs, outputs, and side effects
  2. Identify test boundaries — What is a unit? What needs integration testing?
  3. Map test cases — Happy path, edge cases, error cases, boundary values
  4. Write unit tests — Isolated, fast, mock external dependencies
  5. Write integration tests — Test component interactions with real dependencies
  6. Consider E2E scenarios — Full user flows that validate the system end-to-end
  7. Prioritize — Critical paths first, then edge cases

Output Format

Provide a test matrix:

Test Name Type Input Expected Output Priority
test_create_user_success unit valid user data user object returned P0
test_create_user_duplicate_email unit existing email 409 error P0
test_user_flow_signup_to_order e2e full flow order created P1

Then provide the actual test code.

Guidelines

  • Test behavior, not implementation details
  • One assertion per test (or closely related assertions)
  • Use descriptive test names that explain the scenario
  • Arrange-Act-Assert pattern
  • No test interdependencies — each test should be independent
  • Mock at boundaries (database, external APIs), not internal functions
  • Cover both success and failure paths
  • Include edge cases: empty inputs, max values, unicode, concurrent access
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. 5d ago First seen · 42 lines · 18 tokens per session scan A b0ec4af6f52d

Subscribe to this mod's changes

Testing Strategy is a skill published in the GitHub repository Xiaowen-Jiang/agent-enterprise (52 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 373 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other skills, from other repositories

qa-engineer-agent

QA 工程师 Agent — 测试策略、测试用例设计、自动化测试、性能测试、安全测试.

peterfei/ai-agent-team · 29 tokens

ios-test

XCTest patterns for unit tests, UI tests, and SwiftData testing with in-memory containers under Swift 6 strict concurrency, plus test performance budgets. Use when writing or fixing tests, setting up test targets, testing SwiftData models, or planning CI test suites. Trigger on "write a test", "unit test", "XCTest"…

markdavidgan/apple-dev-skills · 100 tokens

tsq-testing

테스트 전략·도구·패턴 가이드라인. 테스트 피라미드, Given-When-Then 패턴, 커버리지 기준. 방법론(Red-Green-Refactor 사이클)은 tsq-tdd 스킬 참조. Use when: 테스트 작성, 단위 테스트, 통합 테스트, E2E, 커버리지, 테스트 구조 설계 시.

sonature-lab/timsquad · 85 tokens

test-generation

Generate a test strategy and starter test stubs for given modules across unit, integration, and e2e layers (pytest/jest/playwright). Trigger on: generate tests, test plan, test strategy, coverage plan, test scaffolding.

sarveshtalele/mcp-skills-registry · 51 tokens

Test Engineer

Creates or completes a medium-coverage test suite: unit, component, and critical e2e flows.

Tariux/AI-Skills-Not-Awesome · 24 tokens

Quality Assurance

Comprehensive quality assurance combining testing strategy, code quality enforcement, and validation gates. Consolidated from testing-strategist, code-quality-enforcer, and validation-gate-checker.

daffy0208/ai-dev-standards · 39 tokens