Testing skills Claude Code with subagents (writing-skills)
Testing Skills With Subagents is a reference in the Superpowers writing-skills skill for people creating or editing skills before deployment. It applies test-driven development to process documentation: run scenarios without the skill and watch the agent fail, write the skill to fix those failures, then close loopholes.
What it does
It provides skill-specific test formats such as pressure scenarios and rationalization tables, and points to CLAUDE_MD_TESTING.md as a full worked campaign. It targets skills that enforce discipline, carry compliance costs or could be rationalized away.
How to use it
Load it whenever you write or change a skill, and keep testing until the agent complies under pressure.
Requirements and limits
It requires understanding the test-driven-development skill first, which defines the red, green, refactor cycle.
More in Reference docs and the Claude Code library.
What it covers
- Overview
- When to Use
- TDD Mapping for Skill Testing
- RED Phase: Baseline Testing Watch It Fail
- GREEN Phase: Write Minimal Skill Make It Pass
- VERIFY GREEN: Pressure Testing
- Writing Pressure Scenarios
- Pressure Types
- Key Elements of Good Scenarios
- Testing Setup
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Source and license
Author: obra, Superpowers skills. License: MIT.