/godmode:promptfrom godmode
Designs, tests, versions, and optimizes prompts for LLMs. Covers pattern selection, injection prevention, and evaluation.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/godmode:prompt, "design a prompt", "test prompt"Task: <what the prompt must accomplish>
Model: <target model>
Input/Output: <format and constraints>
Quality: accuracy target, safety, consistency
Budget: max tokens, latency, cost per call
| Pattern | Best for |
|---|---|
| Zero-shot | Simple tasks model handles well |
| Few-shot | Tasks needing format/style examples |
| Chain-of-thought | Reasoning, math, multi-step |
| ReAct | Tool-using agents, search+reason |
| Tree-of-thought | Exploring alternatives |
| Self-consistency | High-stakes, multiple paths |
| Structured output | JSON, XML, typed schema |
IF simple classification: zero-shot. IF format matters: few-shot with 2-5 examples.
Structure: 1) Role, 2) Task, 3) Input Format, 4) Output Format, 5) Constraints, 6) Examples, 7) Edge Cases.
Most important instructions at beginning and end (primacy/recency effect). Examples > instructions.
Cover: common case, edge case, output format. 2-5 examples typical. Track token overhead.
Options: JSON mode, function calling, prompt-based, constrained decoding. Validate against schema. Retry on failure (max 2-3 attempts).
<user_input> tagsIF user input enters prompt: injection defense required. IF output contains system prompt text: leak detected.
Categories: golden set, edge cases, format compliance, safety, injection resistance, consistency. Metrics: accuracy (target), format (100%), safety (>99%), injection resistance (>95%), latency, cost.
Track: version, accuracy, latency, cost, status. A/B test with traffic split, significance testing (alpha=0.05). Minimum 100 samples per variant.
prompts/<task>/: prompt-spec.yaml, system-prompt.md,
examples.yaml, tests.yaml, eval-results.md.
# Test prompt templates
curl -X POST http://localhost:8080/api/chat -d '{"prompt":"test"}'
pytest tests/test_prompts.py -v
WHILE iteration < 5 AND accuracy < target:
1. DIAGNOSE failures (format, wrong, hallucination)
2. GENERATE ONE change targeting top failure
3. EVALUATE on same golden set
4. COMPARE: accept if improved + no regression
Append .godmode/prompt-results.tsv:
timestamp version model accuracy_pct latency_ms injection_safe status
KEEP if: accuracy improved/maintained AND injection
tests pass AND output parseable.
DISCARD if: accuracy dropped OR injection bypass
OR format breaks.
STOP when ALL of:
- Accuracy meets target on test suite
- Injection hardening passes all cases
- Output format consistent and parseable
- Latency within budget
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| Inconsistent output | JSON mode, temperature=0, examples |
| Injection bypasses | Sanitize input, isolate system prompt |
| Model refuses valid | Rephrase, explicit context setting |
| Scores drop after edit | Compare diffs, A/B test old vs new |
What SKILL.md sets; muted values are Claude Code's defaults
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job