$ skilldirectory
— zsh — registry.skilldirectory.dev
skill library blog

home / AI Agents & MCP / Prompt Engineering Patterns Skill by @wshobson

Prompt Engineering Patterns Skill by @wshobson

FREE
github stars★ 42,243updatedAug 2026repo@wshobson
$git clone https://github.com/wshobson/agents

The skill is the plugins/llm-application-dev/skills/prompt-engineering-patterns folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.

Read the opening of the original SKILL.md
# Prompt Engineering Patterns

Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.

## When to Use This Skill

- Designing complex prompts for production LLM applications
- Optimizing prompt performance and consistency
- Implementing structured reasoning patterns (chain-of-thought, tree-of-thought)
- Building few-shot learning systems with dynamic example selection
- Creating reusable prompt templates with variable interpolation
- Debugging and refining prompts that produce inconsistent outputs
- Implementing system prompts for specialized AI assistants
- Using structured outputs (JSON mode) for reliable parsing

## Core Capabilities

### 1. Few-Shot Learning

- Example selection strategies (semantic similarity, diversity sampling)
- Balancing example count with context window constraints
- Constructing effective demonstrations with input-output pairs
- Dynamic example retrieval from knowledge bases
…

Excerpt only, quoted from the author's repository. Open the repository for the complete file.