What problem does it solve? LLM prompts often produce inconsistent, unparseable, or low-quality outputs in production. This Skill provides proven prompt engineering patterns and an optimization script to systematically improve accuracy, consistency, and token efficiency. ## Core Features & Use Cases - Reasoning Patterns: Implement zero-shot and few-shot chain-of-thought, self-consistency voting, tree-of-thought, and verification steps for complex reasoning tasks. - Structured Outputs & Templates: Enforce Pydantic schemas, JSON mode, and modular prompt templates with variable interpolation and conditional sections. - Prompt Optimization: Run A/B tests and iterative refinement with the included optimize-prompt.py script, tracking accuracy, latency, and token metrics. - Use Case: When building a sentiment analysis feature that returns malformed JSON, apply the structured output pattern with Pydantic validation and error-recovery fallback to get reliable, parseable responses. ## Quick Start Ask the AI to rewrite your existing prompt using the structured output pattern with Pydantic validation and a chain-of-thought verification step.