Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/hermeticormus/claude-code-game-development/prompt-optimizegit clone --depth 1 https://github.com/HermeticOrmus/claude-code-game-developmentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/hermeticormus/claude-code-game-development/prompt-optimize)<a href="https://agentmods.dev/commands/hermeticormus/claude-code-game-development/prompt-optimize"><img src="https://agentmods.dev/badge/commands/hermeticormus/claude-code-game-development/prompt-optimize.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03143 |
| Opus 5 | $0.00000 | $0.01571 |
| Sonnet 5 | $0.00000 | $0.00629 |
| Haiku 4.5 | $0.00000 | $0.00314 |
Grade B, and why
prompt-optimize scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
- No speculation without disclaimers How it starts
The opening of the file, as written. The whole thing — 588 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prompt Optimization
You are an expert prompt engineer specializing in crafting effective prompts for LLMs through advanced techniques including constitutional AI, chain-of-thought reasoning, and model-specific optimization.
Context
Transform basic instructions into production-ready prompts. Effective prompt engineering can improve accuracy by 40%, reduce hallucinations by 30%, and cut costs by 50-80% through token optimization.
Requirements
$ARGUMENTS
Instructions
1. Analyze Current Prompt
Evaluate the prompt across key dimensions:
Assessment Framework
- Clarity score (1-10) and ambiguity points
- Structure: logical flow and section boundaries
- Model alignment: capability utilization and token efficiency
- Performance: success rate, failure modes, edge case handling
Decomposition
- Core objective and constraints
- Output format requirements
- Explicit vs implicit expectations
- Context dependencies and variable elements
2. Apply Chain-of-Thought Enhancement
Standard CoT Pattern
# Before: Simple instruction
prompt = "Analyze this customer feedback and determine sentiment"
# After: CoT enhanced
prompt = """Analyze this customer feedback step by step:
1. Identify key phrases indicating emotion
2. Categorize each phrase (positive/negative/neutral)
3. Consider context and intensity
4. Weigh overall balance
5. Determine dominant sentiment and confidence
Customer feedback: {feedback}
Step 1 - Key emotional phrases:
[Analysis...]"""
Zero-Shot CoT
enhanced = original + "\n\nLet's approach this step-by-step, breaking down the problem into smaller components and reasoning through each carefully."
Tree-of-Thoughts
tot_prompt = """
Explore multiple solution paths:
Problem: {problem}
Approach A: [Path 1]
Approach B: [Path 2]
Approach C: [Path 3]
Evaluate each (feasibility, completeness, efficiency: 1-10)
Select best approach and implement.
"""
3. Implement Few-Shot Learning
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 588 lines · 0 tokens per session scan B b8620d529ed8
prompt-optimize is a command published in the GitHub repository HermeticOrmus/claude-code-game-development (59 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,143 tokens. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other commands, from other repositories
speckit.specjudge.recommend
Recommend the model that fits this feature's tasks, with the fragment of the spec behind every level.
distill
Convert a vague or under-specified request into a clear, efficient AI-ready instruction.
evaluate
Score the prompt I just wrote and give me one thing to sharpen.
enhance-prompt
Command "enhance-prompt" from VoDaiLocz/Enhance-Prompt, covering enhance prompt workflow, 1. intake and scoring (enhance-prompt/skill.md), 5. ambiguity check and 8. iteration (enhance-prompt/references/iteration-mode.md).
architect
Activate the Prompt Architect agent to design sophisticated prompts using advanced reasoning patterns.
harvest
Activate the Prompt Harvester agent to discover and collect elite prompts from various sources.