setup-testing-strategy

setup-testing-strategy is a command for Claude Code from bengous/claude-code-plugins. It costs 7 tokens per session (1,750 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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to set up a testing strategy interactively or from a hexagonal, clean, or layered architecture template.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bengous/claude-code-plugins
Claude Code
/plugin install claude-orchestration

Made for: Claude Code.

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/github.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/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 setup-testing-strategy

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 1,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00007 $0.01750
Opus 5.5 $0.00003 $0.00700
Sonnet 5.5 $0.00001 $0.00350
Haiku 4.5 $0.00001 $0.00175

Measured 1mo ago against content hash 1a8448ea8995, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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
orchestration/commands/setup-testing-strategy.md · 317 lines

How it starts

The opening of the file, as written. The whole thing — 317 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 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

Store selected architecture.

Step 3: Gather Project Information

Ask follow-up questions based on architecture:

Read the full file on GitHub · 317 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 1a8448ea8995
  2. 2mo ago Changed · -101 lines d403190bf80e
  3. 2mo ago Changed · -12 lines 4da584310a78
  4. 3mo ago 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 (6 stars, last pushed today), licensed MIT. It adds 7 tokens to every session and 1,750 once invoked, about $0.0000 per session on Opus 5.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.

Related

setup-testing-strategy compared with commands from other repositories

setup-testing-strategy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-testing-strategybengous/claude-code-pluginsCommand6todayMITB7Claude Code
spec-researchfengshao1227/ccg-workflowCommand6.0k15d agoMITA16Claude Code
triagen8n-io/n8nCommand213ktodaynoneA7Claude Code
landgmickel/flow-nextCommand7373d agoMITA13Claude Code
syncgmickel/flow-nextCommand7373d agoMITA15Claude Code
slack-gif-creatorhamr0/agentic-toolkitCommand238d agoApache-2.0A57Claude Code
webapp-testinghamr0/agentic-toolkitCommand238d agoApache-2.0A35Claude Code