LLM Prompt Patterns

Provide LLM prompt patterns for query planning, response synthesis, and entity labeling.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/FrancisVarga/stupid-db --skill llm-prompt-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LLM Prompt Patterns
Source: https://github.com/FrancisVarga/stupid-db/tree/main/packages/stupid-claude-agent/.claude/skills/llm-prompt-patterns
Command: npx skills add https://github.com/FrancisVarga/stupid-db --skill llm-prompt-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach and reusable patterns for crafting effective prompts for Large Language Models (LLMs), ensuring consistency and reliability across different AI providers.

Core Features & Use Cases

  • Provider-Agnostic Design: Prompts are designed to work with OpenAI, Anthropic, and Ollama.
  • Query Planning: Convert natural language questions into structured QueryPlans for data retrieval.
  • Response Synthesis: Generate natural language summaries, visualization specifications, and follow-up questions from query results.
  • Labeling: Create concise labels for clusters, communities, and anomalies.
  • Use Case: When developing a new AI feature that requires user input, use these patterns to ensure the LLM understands the request and provides output in the desired format, regardless of the underlying LLM service.

Quick Start

Use the LLM Prompt Patterns skill to design a system prompt for classifying user feedback.

Frequently Asked Questions about LLM Prompt Patterns

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

FAQPage Schema
How do I write LLM prompts that work across OpenAI, Anthropic, and Ollama?

LLM prompt engineering patterns provide a provider-agnostic design for structuring interactions across OpenAI, Anthropic, and Ollama. They ensure consistent JSON schema adherence and reliable response synthesis regardless of the underlying AI service.

What is the best way to structure LLM responses using JSON schema?

Using structured LLM prompt patterns enforces JSON schema adherence by converting natural language queries into structured QueryPlans. This approach guarantees the language model generates output matching your exact desired format for reliable downstream parsing.

How do I convert natural language questions into structured query plans for data retrieval?

Query planning patterns transform natural language questions into structured QueryPlans designed for data retrieval operations. This allows your generative AI models to systematically understand user requests and execute targeted information gathering.

Can I use these prompt engineering patterns for labeling clusters and anomalies?

Yes, these prompt engineering patterns include specific designs for entity labeling, enabling you to create concise labels for clusters, communities, and anomalies. This ensures consistent categorization across your natural language processing tasks.

How do I maintain session context when designing prompts for generative AI?

LLM prompt patterns address session context management by providing structured approaches for crafting system prompts. This ensures the language model maintains conversational state and understands follow-up questions within ongoing interactions.

What are the limitations of using structured prompt patterns for natural language processing?

Structured prompt patterns require strict adherence to predefined schemas, which may limit the generative AI model's flexibility for open-ended responses. They are best suited for targeted tasks like query planning and response synthesis rather than creative generation.