Subagent testing

From athola/claude-night-market · View interactive version

Subagent testing is an AI agent skill from the GitHub repository athola/claude-night-market. Test skills via TDD in fresh subagents. Use when validating behavior or preventing bias.

How to use this skill

Skill file

Subagent Testing - TDD for Skills

Test skills with fresh subagent instances to prevent priming bias and validate effectiveness.

When NOT To Use

Overview

Fresh instances prevent priming: Each test uses a new Claude conversation so the

measurement reflects the skill and excludes conversation history effects.

Why Fresh Instances Matter

The Priming Problem

Running tests in the same conversation creates bias:

Fresh Instance Benefits

Testing Methodology

Three-phase TDD-style approach:

Phase 1: Baseline Testing (RED)

Test without skill to establish baseline behavior.

Phase 2: With-Skill Testing (GREEN)

Test with skill loaded to measure improvements.

Phase 3: Rationalization Testing (REFACTOR)

Test skill's anti-rationalization guardrails.

Quick Start

# 1. Create baseline tests (without skill)
# Use 5 diverse scenarios
# Document full responses

# 2. Create with-skill tests (fresh instances)
# Load skill explicitly
# Use identical prompts
# Compare to baseline

# 3. Create rationalization tests
# Test anti-rationalization patterns
# Verify guardrails work

Detailed Testing Guide

For complete testing patterns, examples, and templates:

Success Criteria

See Also

Exit Criteria

without the skill active, with full response text recorded.

of the baseline conversation) and shows >= 50% improvement on skill-related metrics.

attempts tested across at least 3 pressure scenarios.

outcomes, confirming the effect is not conversation-history priming.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.