Automatic Stateful Prompt Improver

•
2
•

Automatically intercepts, optimizes, and learns from complex user prompts using DSPy patterns and embedding-indexed history via MCP.

The Automatic Stateful Prompt Improver skill intercepts complex or ambiguous instructions to systematically refine them before execution using advanced prompt engineering patterns like APE, OPRO, and DSPy. By connecting to a prompt-learning MCP server, it retains an embedding-indexed history of prompt iterations and scores outcomes through post-execution feedback loops, continuously enhancing accuracy over time. It intelligently engages only for non-trivial tasks—such as intricate reasoning, system prompt creation, and high-stakes coding—ensuring zero latency overhead for basic conversational commands.

Key Features

01Occam's razor anti-pattern guards to avoid model confusion, over-scaffolding, and token bloat
02Automatic prompt interception and optimization for complex, ambiguous, or technical queries
03Continuous learning loop with embedding-indexed history and post-response feedback tracking
04Adaptive iteration decision engine that scales refinement passes based on task complexity
05Integration with advanced prompt engineering strategies including APE, OPRO, and DSPy patterns
062 GitHub stars

Use Cases

01Establishing iterative prompt quality benchmarks and learning databases for complex domain logic
02Refining ambiguous, multi-step engineering prompts into clear, highly deterministic technical instructions
03Optimizing reusable system prompts, task templates, and pipeline definitions for AI agents