
Test Prompt
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-codeInstalls 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-engineeringskill - 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- Analyse Problem1.3K
- Do In Steps1.3K
- Create Rule1.3K
- Do In Parallel1.3K
- Add Task1.3K
- Analyse1.3K
- Review Pr1.3K
- Launch Sub Agent1.3K
- Create Agent1.3K
- Test Skill1.2K
- Apply Anthropic Skill Best Practices1.2K
- Tree Of Thoughts1.2K
- Cause And Effect1.2K
- Create Ideas1.2K
- Fix Tests1.2K
- Create Skill1.2K
- Do Competitively1.2K
- Plan Do Check Act1.2K
- Commit1.2K
- Analyze Issue1.2K
- Create Command1.2K
- Create Hook1.2K
- Create Pr1.2K
- Setup Codemap Cli1.2K