Agent skill · neolabhq
test-prompt
Use when creating or editing any prompt (commands, hooks, skills, subagent instructions) to verify it produces desired behavior - applies RED-GREEN-REFACTOR cycle to prompt engineering using subagents for isolated testing
What it needs
About 11k tokens when loaded.
What this skill does
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: Prompt clarity matters Consistency is required Cost of failures is high Prompt will be reused Prompt Types & Testing Strategies Prompt Type Test Focus Example ------------- ------------ --------- Instruction Does agent follow steps correctly? Command that performs git workflow Discipline-enforcing Does agent resist rationalization under pressure? Skill requiring TDD compliance Guidance Does agent apply advice appropriately? Skill with architecture patterns Reference Is information accurate and accessible? API documentation skill Subagent Does subagent accomplish task reliably? Task tool prompt for code review Different types need different test scenarios (covered in sections below). …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills neolabhq/test-prompt--8ddc4f