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 agentmods add commands/bengous/claude-code-plugins/setup-testing-strategygit clone --depth 1 https://github.com/bengous/claude-code-pluginsWrote 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/commands/bengous/claude-code-plugins/setup-testing-strategy)<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>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 | $0.00007 | $0.02245 |
| Opus 5 | $0.00003 | $0.01123 |
| Sonnet 5 | $0.00001 | $0.00449 |
| Haiku 4.5 | $0.00001 | $0.00225 |
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' 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
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.
- yesterday First seen · 430 lines · 7 tokens per session scan B 04d3023b9268
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.
Other commands, from other repositories
pr-address
Address PR review comments on current branch.
enforce_standards
CRITICAL: Before running the code standards enforcer, we must prepare the stack properly and abort if there are merge conflicts.
OPSX: Sync
Sync delta specs from a change to main specs.
OPSX: Verify
Verify implementation matches change artifacts before archiving.
OPSX: Continue
Continue working on a change - create the next artifact (Experimental).
context
项目上下文管理:初始化 .context 目录、记录决策日志、压缩归档、查看历史.