testing-skills-with-subagents

Test skills with subagents using RED-GREEN-REFACTOR cycles and scenario templates.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/franroa/chezmoi --skill testing-skills-with-subagents-franroa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-skills-with-subagents
Source: https://github.com/franroa/chezmoi/tree/main/dot_opencode/superpowers/skills/testing-skills-with-subagents
Command: npx skills add https://github.com/franroa/chezmoi --skill testing-skills-with-subagents-franroa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your custom AI skills are robust, effective, and resist rationalization by applying Test-Driven Development (TDD) to process documentation. It prevents skills from being deployed with loopholes or unclear instructions that agents might bypass under pressure.

Core Features & Use Cases

  • TDD for Documentation: Guides you through the Red-Green-Refactor cycle: run scenarios without the skill (Red), write the skill to address failures (Green), then close loopholes (Refactor).
  • Pressure Scenario Testing: Emphasizes creating realistic scenarios with multiple pressures (time, sunk cost, authority) to test agent compliance under stress.
  • Rationalization Prevention: Teaches you to capture and explicitly counter agent rationalizations, making skills bulletproof against excuses.
  • Use Case: When creating or editing any skill, use this Skill to verify its effectiveness. For example, if you write a TDD skill, this Skill will guide you to test it with subagents under pressure to ensure they actually follow TDD, rather than rationalizing their way out.

Quick Start

Announce skill usage

I'm using the testing-skills-with-subagents skill to verify my new 'code-review' skill.

The skill will then guide you through creating pressure scenarios and iterating on your skill.

Frequently Asked Questions about testing-skills-with-subagents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test AI skills to ensure agents actually follow them under pressure?

Test-Driven Development for skills involves running pressure scenarios without the skill (Red), writing the skill to address failures (Green), then closing loopholes agents might exploit (Refactor). This cycle validates agent compliance and prevents rationalization before deployment.

What is rationalization prevention in AI skill testing?

Rationalization prevention captures the exact excuses agents use to bypass skill instructions under stress—time pressure, sunk cost, authority conflicts—then explicitly counters them in the skill design. This makes skills bulletproof against agent workarounds.

How do I create pressure scenarios to test subagent behavior?

Design realistic scenarios combining multiple pressures: time constraints, sunk-cost fallacy, authority conflict, or competing instructions. Run these against a subagent harness using scenario templates, observe baseline failures, and record agent rationalizations verbatim to refine skill instructions.

When should I use Test-Driven Development for skill documentation?

Use TDD when creating or editing any custom AI skill before deployment. It ensures your skill documentation is clear enough that agents cannot rationalize their way around it, and catches loopholes early through iterative subagent testing.

Can I test existing skills with subagents to find compliance gaps?

Yes. Apply pressure scenarios to existing skills using a subagent harness to identify where agents rationalize or deviate from instructions. Record these failures and rationalizations as baseline data, then refactor the skill to close each gap explicitly.

What's the difference between baseline failure observation and refactoring in skill testing?

Baseline failure observation documents what agents do wrong and why they justify it without the skill (Red phase). Refactoring then strengthens the skill to block those specific rationalizations, ensuring agents cannot repeat the same excuse during Green phase validation.