What problem does it solve? Prompt iteration without measurement is guesswork: teams tweak prompts based on vibes, ship regressions, and misdiagnose retrieval failures as prompt problems. This Skill enforces eval-driven prompt engineering by capturing baselines, comparing revisions against them, and gating changes on measurable metrics before anything ships. ## Core Features & Use Cases - Prompt Static Analysis: Score prompts for clarity and structure (0-100), detect ambiguous verbs and redundant phrasing, estimate tokens, and extract few-shot examples via scripts/prompt_optimizer.py. - RAG Quality Measurement: Compute context relevance, precision@k, coverage, faithfulness, and groundedness from retrieval and question JSON files with scripts/rag_evaluator.py, so you fix retrieval before rewriting generation prompts. - Agent Config Validation: Validate YAML/JSON agent definitions for tool wiring, missing config, loop risk, and token budgets, with ASCII or Mermaid workflow visualization via scripts/agent_orchestrator.py. - Use Case: Before shipping a revised system prompt, run the optimizer to save a baseline JSON, apply one change at a time, then compare the revision against the baseline and require clarity to hold while tokens stay within 10% — blocking regressions automatically. ## Quick Start Analyze my prompt file current_prompt.txt, save a baseline report, and tell me which issues to fix first before I revise it.