Takes the RED-GREEN-REFACTOR cycle from TDD and applies it to writing prompts for Claude. You spin up subagents to test scenarios without your prompt first, watch exactly how they fail, then write instructions that fix those specific failures. The approach covers everything from git commands to discipline-enforcing skills that need to resist rationalization under pressure. What's smart here is the insistence on documented baseline failures. If you didn't watch an agent mess up without the prompt, you're just guessing at what needs fixing. Ships with scenario templates for different prompt types and a clear mapping between test-driven development phases and prompt iteration.

skills.sh installs
1.3K
GitHub stars
1.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add neolabhq/context-engineering-kit --skill test-prompt --agent claude-code

Installs into .claude/skills of the current project.

Files

Testing Prompts With Subagents

Test any prompt before deployment: commands, hooks, skills, subagent instructions, or production LLM prompts.

Overview

Testing prompts is TDD applied to LLM instructions.

Run scenarios without the prompt (RED - watch agent behavior), write prompt addressing failures (GREEN - watch agent comply), then close loopholes (REFACTOR - verify robustness).

Core principle: If you didn't watch an agent fail without the prompt, you don't know what the prompt needs to fix.

REQUIRED BACKGROUND:

  • You MUST understand test-driven-development - defines RED-GREEN-REFACTOR cycle
  • You SHOULD understand prompt-engineering skill - provides prompt optimization techniques

Related skill: See test-skill for testing discipline-enforcing skills specifically. This command covers ALL prompts.

When to Use

Test prompts that:

  • Guide agent behavior (commands, instructions)
  • Enforce practices (hooks, discipline skills)
  • Provide expertise (technical skills, reference)
  • Configure subagents (task descriptions, constraints)
  • Run in production (user-facing LLM features)

Test before deployment when:

Sponsors

Details

Repository
github.com/neolabhq/context-engineering-kit
Categories
Frontend Development, Testing & QA, Code Review & Quality, AI & Agent Building
First seen
Jun 3, 2026

More from neolabhq/context-engineering-kit

All 63
1jezweb avatargoogle-chat-messagesjezweb/claude-skillsSend Google Chat messages via incoming webhooks — text, rich cards (cardsV2), threaded replies. TypeScript types, card builder utility, widget reference inline.1.3Kskills.sh installs
2capawesome-team avatarcapawesome-cloudcapawesome-team/skillsGuides the agent through setting up and using Capawesome Cloud for Capacitor and Cordova apps. Covers three core workflows: (1) Native Builds — cloud builds for1.3Kskills.sh installs
3phaserjs avatarsprites-and-imagesphaserjs/phaserUse this skill when creating Sprites or Images in Phaser 4. Covers factory methods, texture/frame selection, position, scale, rotation, tint, flip, alpha, origi1.2Kskills.sh installs
4bradautomates avatartiktok-researchbradautomates/head-of-contentResearch high-performing TikTok videos from tracked accounts using Apify's TikTok Scraper. Identifies outlier content, analyzes top 5 videos with AI, and genera1.2Kskills.sh installs
5vtex avatarvtex-io-app-settingsvtex/skillsApply when defining, validating, or consuming VTEX IO app settings. Covers settingsSchema, app-level configuration boundaries, and how backend or frontend code 1.2Kskills.sh installs
6customware-ai avatarcpq-buildercustomware-ai/skillsConfigure-Price-Quote (CPQ) vertical skill for the Customware SPA. Defines patterns, minimum standards, layout patterns, lifecycle indicators, product configura1.2Kskills.sh installs