prompt-engineering

Optimize prompts to enforce output formats and reduce hallucinations.

16|3|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/breethomas/bette-think --skill prompt-engineering-breethomas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/breethomas/bette-think/tree/main/plugins/bette-think/skills/prompt-engineering
Command: npx skills add https://github.com/breethomas/bette-think --skill prompt-engineering-breethomas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams create, analyze, and optimize prompts to reduce hallucinations, enforce output formats, and improve reliability for production AI features.

Core Features & Use Cases

  • Prompt Analysis & Improvement: Diagnose weaknesses in existing prompts and provide concrete rewrites with predicted impact.
  • System Prompt Creation: Produce production-ready system prompts using a structured, six-step optimization framework with hard constraints and edge-case handling.
  • Evaluation & Cost Trade-offs: Build evaluation criteria, testing plans, and hill-climb strategies to prioritize quality first then compress for cost.
  • Use Case: Turn a brittle customer-support system prompt into a robust system prompt that obeys exact output format, acknowledges uncertainty, and reduces escalations.

Quick Start

Improve and optimize this system prompt to enforce strict output format, minimize hallucinations, and reduce token cost.

Frequently Asked Questions about prompt-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize system prompts to reduce hallucinations in production AI?

Optimize system prompts by applying a structured six-step framework with hard constraints and edge-case handling to reduce hallucinations. This enforces exact output formats and acknowledges uncertainty, improving reliability for conversational agents and data-processing pipelines.

What's the best way to enforce exact output formats in LLM responses?

The best way to enforce exact output formats is creating production-ready system prompts using structured templates with failure-mode handling. This ensures conversational agents and classification tasks obey strict formatting rules while minimizing unexpected outputs.

How do I reduce token costs without degrading prompt quality?

Reduce token costs by prioritizing quality first during prompt optimization, then applying compression guidance for token-cost trade-offs. This hill-climb strategy builds evaluation criteria to ensure cost reduction does not degrade output reliability.

Can I diagnose weaknesses in an existing customer-support system prompt?

You can diagnose weaknesses in an existing customer-support system prompt through prompt analysis and critique. This identifies brittle instructions and provides concrete rewrites with predicted impact to acknowledge uncertainty and reduce escalations.

How do I build an evaluation plan for prompt optimization?

Build an evaluation plan for prompt optimization by establishing testing criteria and hill-climb strategies. This evaluates conversational agents and classification tasks to measure reliability improvements before compressing for token-cost trade-offs.