prompting-pattern-library

Provide prompting patterns, failure modes, and model-specific guidance for LLM workflows.

Updated Oct 19, 2025
One-click install
npx skills add https://github.com/az9713/claude_skill_hn_mcp_server --skill prompting-pattern-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompting-pattern-library
Source: https://github.com/az9713/claude_skill_hn_mcp_server/tree/main/.claude/skills/Prompting Pattern Library Skill/prompting-pattern-library
Command: npx skills add https://github.com/az9713/claude_skill_hn_mcp_server --skill prompting-pattern-library

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates guesswork and trial-and-error in AI prompting by providing a comprehensive library of field-tested patterns and anti-patterns.

Core Features & Use Cases

  • 25+ Prompting Patterns: Comprehensive catalog from foundational to advanced techniques.
  • Failure Diagnosis: Quickly identify and fix common prompting issues across different AI models.
  • Use Case: Imagine you're building a customer support agent that needs to handle complex queries. Use this Skill to apply chain-of-thought reasoning, structured output patterns, and model-specific optimizations.

Quick Start

Use the prompting pattern library to analyze and improve this customer service response template for clarity and effectiveness.

Frequently Asked Questions about prompting-pattern-library

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

FAQPage Schema
How do I improve AI prompts to get better model responses?

Prompting patterns provide field-tested techniques like chain-of-thought reasoning and structured output formatting to systematically improve model performance. Apply these patterns to diagnose why a prompt fails and refine it across Claude, GPT-4, Gemini, and other LLMs.

What's the difference between chain-of-thought and other prompting approaches?

Chain-of-thought prompting breaks complex reasoning into explicit steps, improving accuracy for multi-step problems. This pattern library documents when to use it versus structured outputs, direct answers, or role-based prompting depending on your task complexity.

Can I use prompting patterns across different AI models?

Yes. This library provides model-specific guidance for Claude, GPT-4, Gemini, and related LLMs, showing which patterns work best on each and how to adapt techniques when switching models or building cross-model agent workflows.

How do I fix a prompt that's producing inconsistent or wrong outputs?

Failure-diagnosis patterns help identify root causes—unclear instructions, ambiguous structure, or model limitations. The library catalogs common failure modes and provides targeted fixes for each, accelerating debugging across different use cases.

Do I need prior experience to apply prompting patterns?

The library covers foundational to advanced patterns, so you can start with basics regardless of background. Patterns are organized by complexity and use case, making them accessible for learning and reference at any skill level.

What's the best way to design prompts for structured output?

Structured output patterns define schemas, enforce formatting rules, and validate model compliance. This library provides templates and model-specific techniques for generating JSON, XML, or other formats reliably across different LLMs.