testing-skills-with-subagents

Applies the TDD RED-GREEN-REFACTOR cycle to validate AI agent skills.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/maplin-co/ai-course --skill testing-skills-with-subagents-maplin-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-skills-with-subagents
Source: https://github.com/maplin-co/ai-course/tree/main/.opencode/skill/testing-skills-with-subagents
Command: npx skills add https://github.com/maplin-co/ai-course --skill testing-skills-with-subagents-maplin-co

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that your AI agent skills are robust, resistant to manipulation, and consistently enforced, even under pressure, by applying the principles of Test-Driven Development (TDD) to skill documentation.

Core Features & Use Cases

  • TDD for Skills: Implements the RED-GREEN-REFACTOR cycle for skill development.
  • Pressure Testing: Designs realistic scenarios with multiple pressures (time, sunk cost, authority) to test skill compliance.
  • Rationalization Capture: Documents and addresses agent excuses for violating rules.
  • Use Case: Before deploying a new skill that enforces coding standards, use this Skill to simulate scenarios where an agent might be tempted to cut corners (e.g., tight deadlines). This process ensures the skill prevents such violations and the agent adheres to the standards.

Quick Start

Use the testing-skills-with-subagents skill to test the TDD skill by running baseline scenarios without the skill first to observe failures.

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 apply TDD to AI agent skill development?

You apply TDD to AI agent skills by running baseline scenarios without the skill to identify failures, writing the skill to make tests pass, and refactoring documentation to close loopholes. This RED-GREEN-REFACTOR cycle ensures robust agent behavior and compliance.

What is pressure testing for AI agent compliance?

Pressure testing for AI agent compliance involves designing realistic scenarios with multiple combined pressures like tight deadlines, sunk costs, and authority figures. This process forces agent decision-making and captures rationalizations to iteratively refine skill documentation.

Why does my AI agent ignore skill documentation under pressure?

AI agents ignore skill documentation under pressure when loopholes exist in the rules. By capturing and addressing agent rationalizations for violating rules through simulated scenarios, you can iteratively refine the skill to ensure consistent enforcement.

How do I test if my skill enforces coding standards against corner-cutting?

To test if a skill enforces coding standards against corner-cutting, simulate scenarios where an agent might be tempted to violate rules, such as facing tight deadlines. Run baseline tests without the skill first to observe failures, then apply the skill to verify compliance.

Do I need dependencies to run subagent skill testing?

No dependencies are required to run subagent skill testing. The process relies on using subagents to simulate scenarios with explicit options, real constraints, and direct calls to action, forcing agent decision-making to validate skill compliance.

When should I not use TDD for skill validation?

You should avoid using TDD for skill validation when the skill does not enforce strict rules or require resistance to manipulation. If the skill performs simple data transformation without compliance risks, the overhead of pressure testing and rationalization capture is unnecessary.