Use when implementing any feature or fix outside code-forge workflow — enforces Red-Green-Refactor cycle with mandatory test-first discipline. For ad-hoc development, quick fixes, or any code change that is not tracked by code-forge:impl.
Enforces test-driven development by requiring a failing test before any production code for ad-hoc changes.
npx claudepluginhub tercel/code-forgeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Standalone Test-Driven Development enforcement for any code change.
Note: code-forge:impl already enforces TDD internally. This skill is for work outside that workflow.
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
No exceptions. Not for "simple" changes. Not for "obvious" fixes. Not when under time pressure.
RED (write failing test) → VERIFY RED → GREEN (minimal code) → VERIFY GREEN → REFACTOR → REPEAT
Complete each phase fully before moving to the next.
Run the test. Confirm:
If the test passes: you're testing existing behavior. Rewrite the test. If the test errors: fix the error, re-run until it fails correctly.
Run the test. Confirm:
If the new test fails: fix the code, not the test. If other tests fail: fix them now, before proceeding.
Go back to Step 1 for the next behavior.
| Thought | Reality |
|---|---|
| "This is too simple to test" | Simple code has the sneakiest bugs. Test it. |
| "I'll write tests after" | Tests written after implementation pass immediately — they prove nothing. |
| "I already tested manually" | Manual testing is ad-hoc and not reproducible. Write the test. |
| "Just this one quick fix" | Quick fixes without tests become permanent regressions. |
| "TDD is too slow" | TDD is faster than debugging untested code later. |
| "Deleting my code and starting over is wasteful" | Sunk cost fallacy. If code isn't test-driven, rewrite. |
Before claiming work is complete:
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.