setup-testing-strategy

setup-testing-strategy is a command for coding agents from bengous/claude-code-plugins. It costs 7 tokens per session (2,245 once invoked), scanned B, original, MIT.

A command that creates a project file describing how the codebase should be tested. It records the architecture, coverage targets, test boundaries, patterns, and important testing rules.

In plain words
What is it for?
Use it to set up a testing strategy interactively or from a hexagonal, clean, or layered architecture template.
Why use it?
It gives testing work a shared plan instead of making the agent guess which layers and files matter.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the claude-orchestration plugin — 1 skill, 6 commands, 3 agents shipped together

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 commands/bengous/claude-code-plugins/setup-testing-strategy
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins

Or install claude-orchestration, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 3 agents.

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 setup-testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/commands/bengous/claude-code-plugins/setup-testing-strategy.svg)](https://agentmods.dev/commands/bengous/claude-code-plugins/setup-testing-strategy)
Your own site
<a href="https://agentmods.dev/commands/bengous/claude-code-plugins/setup-testing-strategy"><img src="https://agentmods.dev/badge/commands/bengous/claude-code-plugins/setup-testing-strategy.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,245 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00007 $0.02245
Opus 5 $0.00003 $0.01123
Sonnet 5 $0.00001 $0.00449
Haiku 4.5 $0.00001 $0.00225

Measured yesterday against content hash 04d3023b9268, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup-testing-strategy scanned grade B with 1 finding 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 yesterday.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat > .claude/testing-strategy.md << 'EOF'
orchestration/commands/setup-testing-strategy.md · 430 lines

How it starts

The opening of the file, as written. The whole thing — 430 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup Testing Strategy

Initialize .claude/testing-strategy.md for your project interactively.


Usage

Interactive mode (recommended for first time):

/setup-testing-strategy

Template mode (if you know your architecture):

/setup-testing-strategy hexagonal
/setup-testing-strategy clean
/setup-testing-strategy layered

What This Command Does

This command helps you create a .claude/testing-strategy.md file that defines:

  • Your architecture type and layer organization
  • Coverage targets per layer
  • What to test vs skip for each layer
  • Testing patterns and frameworks
  • Critical testing rules

The layer-testing skill reads this file to understand how to test your project.


Workflow

Step 1: Check for Existing Strategy

Check if .claude/testing-strategy.md already exists:

if [ -f .claude/testing-strategy.md ]; then
  echo "Strategy file exists"
fi

If it exists:

⚠️  Testing strategy already exists: .claude/testing-strategy.md

Options:
1. View current strategy
2. Overwrite with new strategy
3. Cancel (keep existing)

What would you like to do?

Use AskUserQuestion tool to get choice.

If user chooses "View": Read and display the file, then exit. If user chooses "Cancel": Exit without changes. If user chooses "Overwrite": Continue to Step 2.

Step 2: Detect or Select Architecture

If argument provided (e.g., hexagonal):

  • Use that architecture template
  • Skip to Step 4

If no argument (interactive mode):

Use AskUserQuestion to ask:

Question: What architecture pattern does your project use?
Header: Architecture
Options:
  1. Hexagonal (Ports & Adapters)
     Description: Core/domain, application (ports), infrastructure (adapters), boundary

  2. Clean Architecture
     Description: Entities, use cases, interface adapters, frameworks & drivers

  3. Layered (3-tier)
     Description: Presentation, business logic, data access

  4. Custom
     Description: I'll provide my own layer definitions

Read the full file on GitHub · 430 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. yesterday First seen · 430 lines · 7 tokens per session scan B 04d3023b9268

Subscribe to this mod's changes

setup-testing-strategy is a command published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed 3d ago), licensed MIT. It adds 7 tokens to every session and 2,245 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.