Xpersona
S

subagent-testing

CLAWHUB · Unverified

Test skills via TDD in fresh subagents Skill: subagent-testing Owner: athola Summary: Test skills via TDD in fresh subagents Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:04:49.644Z | user Release v1.9.19 v1.9.18 | 2026-08-15T21:28:49.200Z | user Release v1.9.18 v1.9.17 | 2026-07-30T05:28:40.359Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:45:46.850Z | user Release v1.9.16 v1.9.15 | 2026-07-04T21:20:03.083Z | user Release v1.9.15 v1.9.14

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-abstract-subagent-testing
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-abstract-subagent-testing/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

143,378 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: subagent-testing
description: Test skills via TDD in fresh subagents
version: 1.9.8
triggers:
  - testing
  - validation
  - TDD
  - subagents
  - fresh-instances
  - validating behavior or preventing bias
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/abstract", "emoji": "\ud83e\uddea"}}
source: claude-night-market
source_plugin: abstract
---

> **Night Market Skill** — ported from [claude-night-market/abstract](https://github.com/athola/claude-night-market/tree/master/plugins/abstract). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# Subagent Testing - TDD for Skills

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

## Table of Contents

1. [Overview](#overview)
2. [Why Fresh Instances Matter](#why-fresh-instances-matter)
3. [Testing Methodology](#testing-methodology)
4. [Quick Start](#quick-start)
5. [Detailed Testing Guide](#detailed-testing-guide)
6. [Success Criteria](#success-criteria)

## Overview

**Fresh instances prevent priming:** Each test uses a new Claude conversation to verify
the skill's impact is measured, not conversation history effects.

## Why Fresh Instances Matter

### The Priming Problem
Running tests in the same conversation creates bias:
- Prior context influences responses
- Skill effects get mixed with conversation history
- Can't isolate skill's true impact

### Fresh Instance Benefits
- **Isolation**: Each test starts clean
- **Reproducibility**: Consistent baseline state
- **Measurement**: Clear before/after comparison
- **Validation**: Proves skill effectiveness, not priming

## 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

```bash
# 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:
- **[Testing Patterns](modules/testing-patterns.md)** - Full TDD methodology
- **[Test Examples](modules/testing-patterns.md)** - Baseline, with-skill, rationalization tests
- **[Analysis Templates](modules/testing-patterns.md)** - Scoring and comparison frameworks

## Success Criteria

- **Baseline**: Document 5+ diverse baseline scenarios
- **Improvement**: ≥50% improvement in skill-related metrics
- **Consistency**: Results reproducible across fresh instances
- **Rationalization Defense**: Guardrails prevent ≥80% of rationalization attempts

## See

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-abstract-subagent-testing",
  "version": "1.9.19",
  "publishedAt": 1787749489644
}

modules/testing-patterns.md

# Testing Skills with Subagents

## Overview

Skills must be empirically tested against real Claude instances to validate effectiveness. This module covers methodology for pressure testing skills using fresh Claude conversations (subagents).

## Why Fresh Instances Matter

### The Priming Problem

**Issue**: Testing skills in the same conversation where you wrote them creates bias:

1. **Context Contamination**: Claude already knows what you're testing
2. **Cooperation Bias**: Wants to validate your work
3. **Recent Memory**: Remembers your intent and goals
4. **No True Pressure**: Knows this is a test, not real work

**Example:**
```
You: "I just wrote a security skill. Let me test it."
Claude: [Knows to demonstrate security practices]
```

This isn't a real test—Claude is cooperating, not behaving naturally.

### Fresh Instance Benefits

**Testing in new conversation:**

1. **No Context**: Claude doesn't know what you're testing
2. **Natural Behavior**: Responds like a user request
3. **Real Pressure**: Experiences actual time/complexity pressures
4. **Honest Failures**: Will take shortcuts if skill allows it

**Example:**
```
New Claude: "Quickly add a registration endpoint"
[Actual behavior without meta-knowledge of test]
```

## Testing Methodology

### Phase 1: Baseline Testing (RED)

**Goal**: Document Claude's natural behavior WITHOUT skill

#### Setup

1. **Create Fresh Conversation**: New Claude instance
2. **No Skill Active**: Don't mention or load the skill
3. **Natural Prompt**: Write request as a real user would

#### Process

```markdown
## Baseline Test 1

### Environment
- Model: Claude Sonnet 4.5
- Context: Fresh conversation
- Skills: None active

### Prompt (Exact)
"We need a user registration endpoint for our API.
Just email and password for now. Make it quick—
we're demoing to investors tomorrow."

### Full Response
[Copy entire Claude response verbatim]

### Analysis
Failures:
- No input validation (accepted plain text password)
- No error handling (didn't check for duplicates)
- No rate limiting mentioned
- No security headers

Successes:
- Basic structure correct
- Database integration present
```

#### Multiple Scenarios

Run 3-5 different pressure scenarios:

```markdown
## Baseline Test 2: Different Pressure
"Add a password reset endpoint. Keep it simple—
we're just getting started."

## Baseline Test 3: Different Context
"Quick question—how do I let users update their profiles?"

## Baseline Test 4: Edge Case
"Add admin user creation. Only our ops team uses it."

## Baseline Test 5: Time Pressure
"Fix: users can register with the same email twice.
Quick fix needed for production."
```

### Phase 2: With-Skill Testing (GREEN)

**Goal**: Verify skill improves behavior measurably

#### Setup

1. **Create Fresh Conversation**: New instance (not the baseline one)
2. **Load Skill**: Explicitly activate the skill
3. **Same Prompts**: Use identical baseline prompts

#### Process

```markdown
## With-Skill Test 1

### Environm

skill-card.md

## Description:

Guides agents through TDD-style skill validation in fresh subagent sessions.

This skill is ready for commercial/non-commercial use.

## Publisher:

[athola](https://clawhub.ai/user/athola)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and skill authors use this skill to compare baseline, with-skill, and rationalization-test behavior in fresh agent sessions. It helps document measurable skill impact while reducing priming bias from prior conversation context.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Broad triggers may activate the skill for generic testing or validation requests.

Mitigation: Narrow activation triggers or confirm the skill is relevant before applying its testing workflow.

Risk: The linked external Claude Code plugin is outside this artifact review.

Mitigation: Review and scan any separately installed plugin from the linked repository before use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/athola/skills/nm-abstract-subagent-testing)
- [Publisher profile](https://clawhub.ai/user/athola)
- [Project homepage from metadata](https://github.com/athola/claude-night-market/tree/master/plugins/abstract)
- [Testing patterns module](modules/testing-patterns.md)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Shell commands, Code]

**Output Format:** [Markdown guidance with example shell commands, templates, and code snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Markdown-only skill; no hidden execution, persistence, or data access behavior found in security evidence.]

## Skill Version(s):

1.9.19 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to subagent-testing and adjacent AI workflows.