prompt-engineering-patterns

Apply few-shot learning, chain-of-thought, and structured outputs to optimize LLM prompts.

32|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/t0dorakis/murmur --skill prompt-engineering-patterns-t0dorakis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering-patterns
Source: https://github.com/t0dorakis/murmur/tree/main/.agents/skills/prompt-engineering-patterns
Command: npx skills add https://github.com/t0dorakis/murmur --skill prompt-engineering-patterns-t0dorakis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps users optimize prompts for Large Language Models (LLMs) to improve performance, reliability, and controllability in production applications.

Core Features & Use Cases

  • Advanced Prompt Techniques: Learn and apply methods like few-shot learning, chain-of-thought, and structured outputs.
  • Production Optimization: Improve LLM output quality, reduce token usage, and handle errors gracefully.
  • Use Case: You're building a chatbot that needs to extract specific information from user queries reliably. Use this Skill to design prompts that ensure consistent, structured JSON output, making parsing easy.

Quick Start

Use the prompt-engineering-patterns skill to generate a SQL query from a natural language request.

Frequently Asked Questions about prompt-engineering-patterns

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

FAQPage Schema
How do I get structured JSON output from an LLM reliably?

To get structured JSON output from an LLM, apply prompt engineering patterns like few-shot learning and structured output techniques to constrain the model's response format. This ensures consistent, parseable results for production applications.

What is the best way to optimize LLM prompts for production?

Optimizing LLM prompts for production involves using advanced techniques like chain-of-thought reasoning and template systems to improve output quality, reduce token usage, and handle errors gracefully under load.

How does chain-of-thought prompting improve AI development?

Chain-of-thought prompting improves AI development by guiding Large Language Models through intermediate reasoning steps before generating a final answer. This structured approach significantly enhances performance and reliability on complex tasks.

When should I use few-shot learning in my LLM prompts?

Use few-shot learning in your LLM prompts when you need to establish a specific output pattern or format for tasks like information extraction. Providing examples within the prompt ensures the model follows the desired structure consistently.

Can I reduce token usage using prompt engineering patterns?

Yes, you can reduce token usage by applying prompt optimization and system prompt design patterns. These techniques streamline instructions and eliminate redundant context, lowering costs while maintaining LLM output quality.