Skip to content
curiositech avatar

Automatic Stateful Prompt Improver

Auto-intercepts complex prompts for optimization via a prompt-learning MCP server, learning from recorded outcomes.

CCM score
38 of 100
skills.sh installs
211
GitHub stars
278
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers automatic prompt interception before responses, with a post-response feedback loop that records success and quality scores
  • Includes iteration guidance by complexity, convergence rules such as stopping after 20 iterations, and anti-patterns like over-optimization
  • Enforces skipping simple questions, direct commands, and conversational replies so only substantive tasks get optimized
  • Designed for users who want stateful prompt refinement backed by embedding-indexed history and an MCP server

Install

$ npx -y skills add curiositech/some_claude_skills --skill automatic-stateful-prompt-improver -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

  1. Complex task (multi-step, requires reasoning)
  2. Technical output (code, analysis, structured data)
  3. Reusable content (system prompts, templates, instructions)
  4. Explicit request ("improve", "better", "optimize")
  5. Ambiguous requirements (underspecified, multiple interpretations)
  6. 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

Details

Repository
github.com/curiositech/some_claude_skills
Categories
Agent Workflow & Planning, Memory & Context
First seen
Jun 3, 2026

Questions

What does the automatic-stateful-prompt-improver skill do?

It intercepts complex or ambiguous requests and optimizes the prompt before Claude responds, using the prompt-learning MCP server. It draws on APE, OPRO and DSPy patterns and learns from past performance through embedding-indexed history.

What do I need before installing automatic-stateful-prompt-improver?

The skill requires the prompt-learning MCP server, which the README says needs Docker for Qdrant and Redis, Node.js 18 or newer, and an OpenAI API key. Add it to your settings or project .mcp.json before using the skill.

How do I install the automatic-stateful-prompt-improver skill?

Run npx -y skills add curiositech/some_claude_skills --skill automatic-stateful-prompt-improver -y in your project. Once installed, the skill can call the prompt-learning tools to optimize, retrieve and record feedback on prompts.

Which skills does automatic-stateful-prompt-improver pair with, and where does it sit in its category?

It sits in the Agent Workflow & Planning category, alongside grill-me, grill-with-docs, grilling and prototype. Its metadata pairs it with skill-coach for systematic skill prompt optimization and skill-logger for tracking prompt performance over time.

More from curiositech/some_claude_skills

All 70

Similar to Automatic Stateful Prompt Improver

More Agent Workflow & Planning