
Automatic Stateful Prompt Improver
This intercepts your prompts before Claude responds and automatically optimizes them using the prompt-learning MCP server, which maintains an embedding-indexed history to learn what works over time. It triggers on complex tasks, technical outputs, or anything precision-critical, running 3-20 iterations of refinement using APE, OPRO, and DSPy patterns. The feedback loop records success rates to improve future optimizations. It's overkill for simple questions but genuinely useful when you're building reusable prompts or need structured output. The anti-patterns section is honest about where this goes wrong: over-optimization makes prompts brittle, and you can waste tokens chasing perfection. Requires the prompt-learning MCP server to function.
- skills.sh installs
- 117
- GitHub stars
- 113
- last updated
- Jun 3, 2026
Install
$ npx -y skills add erichowens/some_claude_skills --skill automatic-stateful-prompt-improver --agent claude-codeInstalls into .claude/skills of the current project.
Files
Automatic Stateful Prompt Improver
MANDATORY AUTOMATIC BEHAVIOR
When this skill is active, I MUST follow these rules:
Auto-Optimization Triggers
I AUTOMATICALLY call mcp__prompt-learning__optimize_prompt BEFORE responding when:
- Complex task (multi-step, requires reasoning)
- Technical output (code, analysis, structured data)
- Reusable content (system prompts, templates, instructions)
- Explicit request ("improve", "better", "optimize")
- Ambiguous requirements (underspecified, multiple interpretations)
- Precision-critical (code, legal, medical, financial)
Auto-Optimization Process
1. INTERCEPT the user's request
2. CALL: mcp__prompt-learning__optimize_prompt
- prompt: [user's original request]
- domain: [inferred domain]
- max_iterations: [3-20 based on complexity]
3. RECEIVE: optimized prompt + improvement details
4. INFORM user briefly: "I've refined your request for [reason]"
5. PROCEED with the OPTIMIZED version
Do NOT Optimize
Sponsors
Details
- Repository
- github.com/erichowens/some_claude_skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026
More from erichowens/some_claude_skills
All 73- Hipaa Compliance116
- Skill Architect116
- Modern Auth 2026115
- Dag Parallel Executor
- Fancy Yard Landscaper
- Product Appeal Analyzer
- Video Processing Editing
- Video Processing Editing929
- Interior Design Expert539
- Personal Finance Coach537
- Photo Composition Critic454
- Cv Creator303
- Metal Shader Expert280
- Mobile Ux Optimizer273
- Pwa Expert262
- Indie Monetization Strategist256
- Ai Video Production Master254
- Color Theory Palette Harmony Expert254
- Vitest Testing Patterns252
- Photo Content Recognition Curation Expert227
- Web Design Expert226
- Adhd Daily Planner215
- Voice Audio Engineer210
- Typography Expert202