test-prompt
Use when creating or editing any prompt (commands, hooks, skills, subagent instructions) to verify it produces desired behavior - applies RED-GREEN-REFACTOR…
Skill by NeoLabHQ
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/neolabhq-test-prompt
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, writing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/test-prompt
What's inside
- Skill name
test-prompt- Description
- 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
- License
- GPL-3.0
- Instructions
- 711 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 711 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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). ## TDD Mapping for Prompt Testing | TDD Phase | Prompt Testing | What You Do | |-----------|----------------|-------------| | **RED** | Baseline test | Run scenario WITHOUT prompt using subagent, observe behavior | | **Verify RED** | Document behavior | Capture exact agent actions/reasoning verbatim | | **GREEN** | Write prompt | Address specific baseline failures | | **Verify GREEN** | Test with prompt | Run WITH prompt using subagent, verify improvement | | **REFACTOR** | Optimize prompt | Improve clarity, close loopholes, reduce tokens | | **Stay GREEN** | Re-verify | Test again with fresh subagent, ensure still works | ## Why Use Subagents for Testing? **Subagents provide:** 1. **Clean slate** - No conversation history affecting behavior 2. **Isolation** - Test only the prompt, not accumulated context 3. **Reproducibility** - Same starting conditions every run 4. **Parallelization** - Test multiple scenarios simultaneously 5. **Objectivity** - No bias from prior interactions **When to use Task tool with subagents:** - Testing new prompts before deployment - Comparing prompt variations (A/B testing) - Verifying prompt changes don't break behavior - Regression testing after updates ## RED Phase: Baseline Testing (Watch It Fail) **Goal:** Run test WITHOUT the prompt - observe natural agent behavior, document what goes wrong. This proves what the prompt needs to fix. ### Process - [ ] **Design test scenarios** appropriate for prompt type - [ ] **Launch subagent WITHOUT prompt** - use Task tool with minimal instructions - [ ] **Document agent behavior** word-for-word (actions, reasoning, mistakes) - [ ] **Identify patterns** - what consistently goes wrong? - [ ] **Note severity** - which failures are critical vs. minor? ### Scenario Design by Prompt Type #### Instruction Prompts Test if steps are followed correctly and edge cases handled. **Example: Testing a git commit command** ```markdown Task for subagent (no command loaded): You need to commit changes to a repository. Files modified: src/app.ts, tests/app.test.ts Some changes are experimental and shouldn't be committed yet. Make an appropriate commit. ``` **Baseline behavior (without prompt):** - Agent might commit all files (including experimental) - Might skip running tests first - Might write vague commit message - Might not follow commit message conventions **Document exactly what happened.** #### Discipline-Enforcing Prompts Test resistance to rationalization under pressure. Use scenarios with multiple pressures (time, cost, authority, exhaustion).
From NeoLabHQ/context-engineering-kit, GPL-3.0.
More from NeoLabHQ/context-engineering-kit
- 0.623score
write-tests
NeoLabHQ
Add missing test coverage for your local code changes by generating new test files (covers uncommitted and untracked changes, or the latest commit if…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
multi-agent-patterns
NeoLabHQ
Design multi-agent architectures for complex tasks.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
review-pr
NeoLabHQ
Review an existing GitHub pull request and post inline review comments on its diff.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
brainstorm
NeoLabHQ
Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
review-local-changes
NeoLabHQ
Review your local uncommitted working-tree changes (git diff plus untracked files) and return actionable improvement suggestions.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
load-pr-comments
NeoLabHQ
Use to load open/unresolved PR review comments then aggregate them as tasks in .specs/comments/*.md for parallel agents to fix.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
resolve-fixed-pr-comments
NeoLabHQ
Verify what PR review comments have been addressed (committed/pushed OR uncommitted local changes) and resolve the threads that are genuinely fixed or no…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
launch-sub-agent
NeoLabHQ
Launch an intelligent sub-agent with automatic model selection based on task complexity, specialized agent matching, Zero-shot CoT reasoning, and mandatory…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.620score
root-cause-tracing
NeoLabHQ
Use when errors occur deep in execution and you need to trace back to find the original trigger - systematically traces bugs backward through call stack…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.620score
git-notes
NeoLabHQ
Use when adding metadata to commits without changing history, tracking review status, test results, code quality annotations, or supplementing commit messages…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.618score
create-pr
NeoLabHQ
Create pull requests using GitHub CLI with proper templates and formatting
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.618score
actualize
NeoLabHQ
Reconcile the project's FPF state with recent repository changes
SkillBFreshness: B★ 1.8KClaude Code +9
Signals
- Stars
- 1,782
- Forks
- 163
- Open issues
- 7
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
- Last release
- Aug 26, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Website
- neolab.gitbook.io/cek
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.307score
test-prompt
NeoLabHQ
Use when creating or editing any prompt (commands, hooks, skills, subagent instructions) to verify it produces desired behavior - applies RED-GREEN-REFACTOR…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.307score
test-prompt
NeoLabHQ
Use when creating or editing any prompt (commands, hooks, skills, subagent instructions) to verify it produces desired behavior - applies RED-GREEN-REFACTOR…
SkillBFreshness: B★ 1.8KClaude Code +9
More from NeoLabHQ
- 0.623score
brainstorm
NeoLabHQ
Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
multi-agent-patterns
NeoLabHQ
Design multi-agent architectures for complex tasks.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
review-pr
NeoLabHQ
Review an existing GitHub pull request and post inline review comments on its diff.
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.623score
write-tests
NeoLabHQ
Add missing test coverage for your local code changes by generating new test files (covers uncommitted and untracked changes, or the latest commit if…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
launch-sub-agent
NeoLabHQ
Launch an intelligent sub-agent with automatic model selection based on task complexity, specialized agent matching, Zero-shot CoT reasoning, and mandatory…
SkillBFreshness: B★ 1.8KClaude Code +9 - 0.621score
load-pr-comments
NeoLabHQ
Use to load open/unresolved PR review comments then aggregate them as tasks in .specs/comments/*.md for parallel agents to fix.
SkillBFreshness: B★ 1.8KClaude Code +9
Cite this page
test-prompt skill. Agent Mart. https://agentmart.dev/skills/neolabhq-test-prompt (last updated 2026-10-24)