Prompts
by @clawkk
Deep prompt engineering workflow—task spec, constraints, examples, evaluation sets, iteration protocol, regression testing, and safety alignment. Use when im...
clawhub install prompts📖 About This Skill
name: prompts description: Deep prompt engineering workflow—task spec, constraints, examples, evaluation sets, iteration protocol, regression testing, and safety alignment. Use when improving LLM outputs, shipping prompt changes, or building reusable prompt templates.
Prompt Engineering (Deep Workflow)
Prompts behave like natural-language programs: they need specs, tests, and version control—especially in production.
When to Offer This Workflow
Trigger conditions:
Initial offer:
Use six stages: (1) define task & success, (2) constraints & format, (3) few-shot & style, (4) build eval set, (5) iterate with discipline, (6) ship, monitor, regress). Confirm model family and latency budget.
Stage 1: Define Task & Success
Goal: Clear user-visible outcome and failure modes (hallucination, omission, tone).
Exit condition: Success rubric in plain language; out-of-scope cases listed.
Stage 2: Constraints & Format
Goal: Must/must-not rules; output schema (JSON Schema, bullet structure); length limits.
Practices
Stage 3: Few-Shot & Style
Goal: Use examples only when they reduce ambiguity—avoid huge prompt bloat.
Practices
Stage 4: Build Eval Set
Goal: Frozen inputs with expected properties (not always exact text match).
Practices
Stage 5: Iterate With Discipline
Goal: Change one major variable at a time when debugging quality.
Practices
Stage 6: Ship, Monitor, Regress
Goal: Canary prompt changes; watch implicit signals (thumbs, edits, task completion).