What problem does it solve? LLM prompts often produce inconsistent, unparseable, or low-quality outputs in production applications. This Skill provides proven prompt engineering patterns, templates, and an automated optimization script to systematically improve prompt accuracy, consistency, and token efficiency. ## Core Features & Use Cases - Reasoning Patterns: Implement zero-shot and few-shot chain-of-thought, self-consistency voting, least-to-most decomposition, and tree-of-thought exploration for complex reasoning tasks. - Structured Outputs & Templates: Enforce Pydantic schemas for reliable JSON parsing, and build reusable prompt templates with variable interpolation, conditionals, and role-based system prompts. - Automated Optimization: Run A/B tests and iterative prompt refinement with the included Python optimizer that tracks accuracy, latency, and token metrics. - Use Case: You are building a customer support classifier that returns malformed JSON 20% of the time. Use this Skill to apply structured output patterns with Pydantic validation, add dynamically selected few-shot examples, and A/B test prompt variants until accuracy exceeds 95%. ## Quick Start Ask the AI to optimize your existing prompt for a classification task using few-shot examples and structured JSON output with Pydantic validation.