Sign in
Explore
Skills · SkillData & AIPrompt engineeringReviewed

prompt-engineering-patterns

Patterns for optimizing prompts and building reusable prompt templates.

Kind
Skill
Works with
Claude Code, Codex
Source
wshobson/agents @ 0874a27b17a2
Path
plugins/llm-application-dev/skills/prompt-engineering-patterns/SKILL.md
Jobs
Implementation
Topics
Prompt engineering

Credit

Made by
wshobson
Original
github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd72576…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it from a plugin marketplace.
/plugin install llm-application-dev@claude-code-workflows
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/prompt-engineering-patterns/ (the skill folder)
  • 1 file(s) the skill refers to
  • 9 other files in the folder: assets/few-shot-examples.json, assets/prompt-template-library.md, references/chain-of-thought.md, references/details.md and 5 more
Runs scripts
Yes
  • scripts/optimize-prompt.py
  • script file in the folder (scripts/optimize-prompt.py)
Uses the network
None found
Needs secrets
None found
Reads outside the project
  • /usr/bin/env (scripts/optimize-prompt.py)
Calls other skills
  • /each
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • scripts/optimize-prompt.py: Prompt Optimization Script
Source revision
0874a27b17a2
Licence
MIT
Last activity
24 Nov 2026
Source changed after the scan
Yes
  • Last push 24 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# 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
- Handling edge cases through strategic example selection

### 2. Chain-of-Thought Prompting

- Step-by-step reasoning elicitation
- Zero-shot CoT with "Let's think step by step"
- Few-shot CoT with reasoning traces
…