Reference docMembers

prompt-engineering-patterns - detailed patterns and worked examples

prompt-engineering-patterns - detailed patterns and worked examples is a reference document for Claude Code, from the wshobson agents and plugins collection by wshobson. The full text is about 1,095 words in 13 sections, with 10 code blocks. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.

It is most useful for people working in Data and ML and Product and engineering who use Claude Code.

What it covers

  • Key Patterns
  • Pattern 1: Structured Output with Pydantic
  • Pattern 2: Chain-of-Thought with Self-Verification
  • Pattern 3: Few-Shot with Dynamic Example Selection
  • Pattern 4: Progressive Disclosure
  • Pattern 5: Error Recovery and Fallback
  • Pattern 6: Role-Based System Prompts
  • Integration Patterns
  • With RAG Systems
  • With Validation and Verification

The full text is in the members library

Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.

Source: https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/details.md

Author: wshobson, wshobson agents and plugins. License: MIT.

Related entries