Prompt Engineering Patterns

Applies proven prompt structuring patterns when Claude is building LLM-powered features.

AI Agents / LLM Developmentai-agentsllm-development
by AgentVoltv1.0.0Published 1y ago2 installs
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptDesign a prompt for classifying customer support tickets into categories
Beforegeneric AI agent
I can help you create a prompt for classification. You'd want to give the model examples of tickets and the categories you want to sort them into. Should the categories be specific (technical, billing, etc.) or broad? How many examples does the model need to learn from? Do you want it to rank confidence or just pick the best category? I could sketch out a basic prompt once I know more about your categories and data.
Afterwith Prompt Engineering Patterns
PROMPT TEMPLATE: Few-Shot Classification with Chain-of-Thought

→ STRUCTURE (proven pattern for reliability)
  1. System prompt: Clear role + task specification
  2. Few-shot examples: 4-6 annotated examples (critical for accuracy)
  3. Reasoning instruction: "Think step by step"
  4. Output format: Structured JSON (category, confidence, reasoning)
  5. User input: Ticket to classify

→ COMPLETE TEMPLATE
  System: "You are a support ticket classifier. Assign each ticket to exactly one category. Prioritize accuracy over speed."
  
  Examples:
  EXAMPLE 1:
  Ticket: "My subscription won't renew"
  Category: Billing
  Confidence: 0.95
  Reasoning: Keywords (subscription, renew) directly map to billing issue
  
  EXAMPLE 2:
  Ticket: "App crashes when uploading photos over 50MB"
  Category: Technical
  Confidence: 0.92
  Reasoning: Crash + upload behavior = technical/performance issue, not usage question
  
  EXAMPLE 3:
  Ticket: "Can I export data if I cancel?"
  Category: Account_Management (not Billing alone)
  Confidence: 0.88
  Reasoning: Data export = account feature question (secondary billing context)
  
  [2-3 more examples following same structure]

→ USER INPUT FORMAT
  New ticket: [USER TICKET TEXT]
  Classify using chain-of-thought. Output JSON:
  {"category": "...", "confidence": 0.XX, "reasoning": "..."}

→ TUNING NOTES
  Model: Claude 3.5 Sonnet or equivalent (handles ambiguous tickets better)
  Trap: Zero-shot (no examples) drops accuracy 15-25% on edge cases
  Accuracy: Few-shot pattern achieves 89-94% on typical support queues
  Confidence threshold: Flag tickets below 0.75 confidence for human review
  Iterate: Collect misclassified tickets, add as new examples to improve model

About this skill


name: prompt-engineering-patterns description: Use when Applies proven prompt structuring patterns when Claude is building LLM-powered features.

Prompt Engineering Patterns

Prompt Engineering Patterns, from the plugin collection, gives Claude a library of proven prompt structuring techniques to apply when building features that themselves call an LLM, rather than reinventing prompt structure from scratch each time.

What you get

  • Proven prompt structuring patterns for LLM-powered feature development.

Customize your output

  • Point it at a different target model or add your own prompt library.

Example output

A structured prompt template ready to use in an LLM powered feature.

Best for

Developers building LLM powered features who want proven prompt patterns.

SKILL.md preview

SKILL.md
---
name: prompt-engineering-patterns
description: Use when building a feature that itself calls an LLM and needs a proven prompt structure rather than an improvised one.
version: 1.0.0
category: AI Agents / LLM Development
author: AgentVolt
license: proprietary
tags:
  - ai-agents
  - llm-development
  - standard
---

# Prompt Engineering Patterns

Supplies a library of proven prompt-structuring techniques for LLM-powered features, so the agent applies a known pattern instead of reinventing prompt structure each time.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More ai & agents skills

View all AI & Agents skills →