From prism-devtools
Start PRISM TDD workflow loop using Ralph Wiggum pattern. Auto-progresses through Planning, TDD RED (failing tests), TDD GREEN (implementation), and Review phases. Use when user wants to run the core development cycle.
npx claudepluginhub resolve-io/.prismThis skill uses the workspace's default tool permissions.
TDD-driven workflow orchestration using the Ralph Wiggum self-referential loop pattern.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Provides patterns for autonomous Claude Code loops: sequential pipelines, agentic REPLs, PR cycles, de-sloppify cleanups, and RFC-driven multi-agent DAGs. For continuous dev workflows without intervention.
Applies NestJS patterns for modules, controllers, providers, DTO validation, guards, interceptors, config, and production TypeScript backends with project structure and bootstrap examples.
TDD-driven workflow orchestration using the Ralph Wiggum self-referential loop pattern.
*prism-loop [your context/prompt]/prism-approve/prism-approve (or /prism-reject at red_gate)| # | Phase | Step | Agent | Type | Validation |
|---|---|---|---|---|---|
| 1 | Planning | review_previous_notes | SM | agent | - |
| 2 | Planning | draft_story | SM | agent | story_complete |
| 3 | Planning | verify_plan | SM | agent | plan_coverage |
| 4 | TDD RED | write_failing_tests | QA | agent | red_with_trace |
| 5 | TDD RED | red_gate | - | gate | - |
| 6 | TDD GREEN | implement_tasks | DEV | agent | green |
| 7 | TDD GREEN | verify_green_state | QA | agent | green_full |
| 8 | TDD GREEN | green_gate | - | gate | - |
Start the PRISM workflow loop.
python "${CLAUDE_PLUGIN_ROOT}/skills/prism-loop/scripts/setup_prism_loop.py" --session-id "${CLAUDE_SESSION_ID}" "$ARGUMENTS"
The prompt provides context to the SM agent for planning.
Example:
*prism-loop implement user authentication feature
Approve the current gate and advance to next phase.
python "${CLAUDE_PLUGIN_ROOT}/skills/prism-loop/scripts/prism_approve.py"
red_gate: Proceeds to GREEN phase (implementation)green_gate: Completes workflowReject at red_gate and loop back to planning (step 1).
python "${CLAUDE_PLUGIN_ROOT}/skills/prism-loop/scripts/prism_reject.py"
Only valid at red_gate. Use when tests need redesign.
Check current workflow state.
python "${CLAUDE_PLUGIN_ROOT}/skills/prism-loop/scripts/prism_status.py"
Shows progress through all 8 steps.
Cancel the active workflow.
python "${CLAUDE_PLUGIN_ROOT}/skills/prism-loop/scripts/cancel_prism_loop.py"
Removes state file and stops the loop.
The workflow enforces a traceability chain to prevent silent requirement drops:
User Request → Requirements → Acceptance Criteria → Tests
(REQ-1, REQ-2) (AC-1 → REQ-1) (test_ac1 → AC-1)
| Step | Validation | What's Checked |
|---|---|---|
| review_previous_notes | - | Captures requirements in "## Original Requirements" section |
| draft_story | story_complete | Story file exists with ## Acceptance Criteria and AC items |
| verify_plan | plan_coverage | ## Plan Coverage section has zero MISSING requirements |
| write_failing_tests | red_with_trace | Tests fail with assertions + every AC has a mapped test |
| red_gate | - | Human reviews and approves RED state |
For the trace audit to find test coverage:
| Method | Example |
|---|---|
| Test name | test_ac1_user_login() |
| Comment | # AC-1: Validates login |
| Docstring | """Tests AC-1 login flow""" |
If an AC has no mapped test, the workflow blocks with "SILENT DROP DETECTED".
The red_gate displays a trace matrix for human verification:
## Trace Matrix
| REQ | AC | Test | Status |
|-----|-----|------|--------|
| REQ-1 | AC-1 | test_ac1_login | COVERED |
| REQ-2 | AC-2 | test_ac2_logout | COVERED |
This ensures no requirement silently disappears during implementation.
The stop hook validates before advancing:
Claude cannot "think" it's done - the hook runs tests to verify. The trace audit ensures every acceptance criterion has test coverage before proceeding to implementation.
Located at .claude/prism-loop.local.md
Tracks:
current_step: Active stepcurrent_step_index: Position (0-7)story_file: Path to story file (set after draft_story)paused_for_manual: True at gatesThe stop hook is registered in hooks/hooks.json:
{
"Stop": [{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/hooks/prism_stop_hook.py"
}]
}]
}
# Start workflow
*prism-loop implement login feature
# SM agent runs planning phases automatically
# QA writes failing tests
# Stop hook blocks until tests fail correctly
# At red_gate - approve to continue
*prism-approve
# DEV implements until tests pass
# QA verifies
# At green_gate - complete
*prism-approve
# Done!
This skill activates when you mention:
Version: 3.5.0 Last Updated: 2026-02-11