🇺🇦 Stand with Ukraine — how to help

resources / the complete llm prompt library

The Complete LLM Prompt Library: 30+ Tested Examples for Every Use Case

resource · 17·11·2025 · 20 prompts · fill in the [FIELDS], copy, use

A well-crafted prompt is the difference between generic output and breakthrough insight. Battle-tested LLM prompt examples for coding, writing, analysis, strategy, and more — each with an explanation of why it works and how to adapt it.

What makes prompts work

FH//LIB·00 — principles

Specificity beats vagueness.

Instead of "write about AI," try "write a 500-word technical explanation of transformer architecture for software engineers."

Context enables precision.

Include your role, the audience, constraints, and desired outcomes so the model understands your exact needs.

Structure guides output.

Specify format requirements — bullet points, numbered lists, code blocks, sections — and you get more usable results.

Examples demonstrate intent.

Showing the model what you want (few-shot prompting) often works better than just describing it.

These principles aren't theoretical — teams that internalize them report a 38% improvement in prompt success rates, exactly what participants discover in the LLM Adventure interactive training.

Coding & Development

FH//LIB·01 — 4 prompts
01

Code Review with Context

Review this [LANGUAGE] code for security vulnerabilities, performance issues,
and maintainability concerns. Focus on production-readiness:

[CODE BLOCK]

Provide:
1. Critical issues that must be fixed before deployment
2. Performance optimization opportunities
3. Security considerations
4. Recommended refactoring with examples

why it works ·Specifies the programming language, provides clear evaluation criteria, and requests structured output with actionable priorities.

variation

Add specific concerns like "Focus on SQL injection risks" or "Optimize for mobile environments with limited memory."

02

Architecture Design Assistant

I'm designing a [TYPE] application that needs to [PRIMARY FUNCTION].
Requirements:
- Expected scale: [USER COUNT/DATA VOLUME]
- Key constraints: [BUDGET/TIMELINE/TECH STACK]
- Must integrate with: [EXISTING SYSTEMS]

Suggest 3 architecture approaches with trade-offs for each.

why it works ·Defines scope, constraints, and decision criteria upfront, enabling comparative analysis rather than a single generic solution.

variation

Add "Focus on serverless solutions" or "Prioritize cost optimization over performance."

03

Debug Assistant with Stack Trace

I'm getting this error in [LANGUAGE/FRAMEWORK]:

[ERROR MESSAGE]

Stack trace:
[STACK TRACE]

Relevant code context:
[CODE BLOCK]

What's causing this error and how do I fix it? Include explanation of
why this error occurs and how to prevent it in the future.

why it works ·Provides complete context — error message, stack trace, and relevant code — enabling precise diagnosis rather than generic debugging advice.

variation

Add "I've already tried [ATTEMPTED SOLUTIONS]" to avoid redundant suggestions.

04

API Documentation Generator

Generate comprehensive API documentation for this [LANGUAGE] function:

[CODE BLOCK]

Include:
- Purpose and use cases
- Parameters with types and constraints
- Return values and possible error states
- Usage examples with realistic data
- Common pitfalls and best practices

why it works ·Transforms code into complete documentation by specifying exactly what aspects to document, ensuring consistency across your codebase.

variation

Specify documentation format: "Use JSDoc format" or "Generate OpenAPI 3.0 specification."

Writing & Content Creation

FH//LIB·02 — 4 prompts
05

Technical Explanation Translator

Explain [TECHNICAL CONCEPT] for [TARGET AUDIENCE] without losing accuracy.

Current technical description: [TECHNICAL VERSION]

The audience has [KNOWLEDGE LEVEL] and needs to understand this concept
to [SPECIFIC PURPOSE]. Use [ANALOGY TYPE] where helpful.

why it works ·Balances accuracy and accessibility by defining the audience, their knowledge level, and why they need to understand the concept.

variation

Specify constraints like "in under 200 words" or "suitable for a 60-second video script."

06

Content Structure Planner

I need to write a [CONTENT TYPE] about [TOPIC] for [AUDIENCE].

Goals:
- Primary: [MAIN OBJECTIVE]
- Secondary: [SUPPORTING GOALS]
- Constraints: [WORD COUNT/FORMAT/TONE]

Create a detailed outline with:
1. Hook that addresses [AUDIENCE PAIN POINT]
2. Main sections with key points
3. Supporting evidence needed for each section
4. Logical flow that leads to [DESIRED CONCLUSION]

why it works ·Separates planning from writing, ensuring structural soundness before investing time in full content creation.

variation

Add "Include SEO keyword placement strategy" or "Suggest compelling headlines for each section."

07

Email Response Optimizer

Transform this email response to be [TONE] while maintaining [KEY REQUIREMENTS]:

Original email I received:
[EMAIL CONTENT]

My draft response:
[DRAFT]

Maintain these key points: [MUST-INCLUDE ITEMS]
Change the tone to be: [DESIRED TONE]
Keep under: [WORD COUNT]

why it works ·Preserves your core message while optimizing tone and brevity — essential for professional communication.

variation

Specify tone precisely: "diplomatically decline without burning bridges" or "express urgency without appearing demanding."

08

Long-Form Content Expander

Expand this outline into a detailed [CONTENT TYPE] targeting [AUDIENCE]:

[OUTLINE]

For each section:
- Develop key points with supporting evidence
- Include relevant examples from [INDUSTRY/CONTEXT]
- Maintain [TONE] throughout
- Target [WORD COUNT] total
- Optimize for keywords: [KEYWORDS]

why it works ·Provides structural framework while ensuring consistency in tone, depth, and SEO optimization throughout longer pieces.

variation

Add "Include expert quotes (mark as [PLACEHOLDER])" or "Weave in storytelling elements."

Data Analysis & Research

FH//LIB·03 — 3 prompts
09

Dataset Interpreter

Analyze this dataset and identify:

[DATA OR DESCRIPTION OF DATA]

1. Key patterns and anomalies
2. Correlation insights worth investigating
3. Potential data quality issues
4. Recommended visualizations to highlight findings
5. Questions this data raises but cannot answer

Context: [BUSINESS CONTEXT/GOALS]

why it works ·Guides systematic analysis while acknowledging data limitations — critical for sound decision-making.

variation

Focus analysis: "Prioritize time-series trends" or "Focus on outlier detection."

10

Research Synthesis

I'm researching [TOPIC] to answer [SPECIFIC QUESTION].

Sources reviewed:
1. [SOURCE 1 + KEY POINTS]
2. [SOURCE 2 + KEY POINTS]
3. [SOURCE 3 + KEY POINTS]

Synthesize these sources to:
- Identify consensus viewpoints
- Highlight conflicting findings with context
- Reveal research gaps
- Provide an evidence-based answer to my question
- Suggest next research directions

why it works ·Transforms information gathering into actionable insights by requiring synthesis rather than summary.

variation

Add "Focus on peer-reviewed sources only" or "Prioritize recent findings from past 2 years."

11

Comparative Analysis Framework

Compare [OPTION A] vs [OPTION B] for [SPECIFIC USE CASE]:

Evaluation criteria (in priority order):
1. [CRITERION 1 + WEIGHT]
2. [CRITERION 2 + WEIGHT]
3. [CRITERION 3 + WEIGHT]

Context: [CONSTRAINTS/REQUIREMENTS]

Provide:
- Side-by-side comparison table
- Strengths and weaknesses for each
- Recommendation with reasoning
- Risk assessment for each option

why it works ·Establishes clear evaluation framework before analysis, ensuring objective comparison aligned with actual needs.

variation

Add "Include total cost of ownership analysis" or "Consider vendor lock-in risks."

Business & Strategy

FH//LIB·04 — 3 prompts
12

Market Analysis

Analyze the market opportunity for [PRODUCT/SERVICE] in [MARKET/GEOGRAPHY]:

Current market context:
- Target customer: [DESCRIPTION]
- Key competitors: [LIST]
- Market size: [DATA IF AVAILABLE]
- Regulatory environment: [RELEVANT FACTORS]

Provide:
1. Market sizing and growth trajectory
2. Competitive landscape analysis
3. Barriers to entry
4. Go-to-market strategy recommendations
5. Key assumptions and risks

why it works ·Structures strategic thinking while requiring explicit documentation of assumptions — essential for sound business planning.

variation

Focus on specific aspects: "Prioritize competitive moat analysis" or "Focus on pricing strategy."

13

Meeting Prep Assistant

I have a meeting about [TOPIC] with [ATTENDEES + ROLES] on [DATE].

Meeting goal: [PRIMARY OBJECTIVE]

Background context:
- Previous discussions: [SUMMARY]
- Current status: [STATE]
- Challenges: [BLOCKERS/CONCERNS]

Prepare:
1. Agenda optimized for [TIME DURATION]
2. Key questions to drive toward goal
3. Potential objections and responses
4. Decision framework
5. Success criteria for this meeting

why it works ·Transforms meetings from time sinks into strategic sessions by forcing clarity on objectives and success criteria.

variation

Add "Include icebreaker for first-time attendees" or "Prepare for potential conflict on [ISSUE]."

14

Product Feature Prioritization

Help prioritize these feature requests for [PRODUCT]:

Features under consideration:
1. [FEATURE 1 + CUSTOMER REQUESTS]
2. [FEATURE 2 + CUSTOMER REQUESTS]
3. [FEATURE 3 + CUSTOMER REQUESTS]

Evaluation factors:
- Strategic alignment: [PRODUCT VISION]
- Available resources: [TEAM SIZE/TIMELINE]
- Technical debt considerations: [CONTEXT]

Create a prioritization matrix with:
- Impact vs. effort assessment
- Strategic fit scoring
- Recommended sequencing with rationale
- Quick wins to maintain momentum

why it works ·Balances customer requests, strategic goals, and practical constraints for evidence-based prioritization.

variation

Add "Consider competitive pressure from [COMPETITOR]" or "Factor in revenue impact."

Problem Solving & Critical Thinking

FH//LIB·05 — 2 prompts
15

Root Cause Analysis

Problem: [PROBLEM STATEMENT]

Observable symptoms:
- [SYMPTOM 1]
- [SYMPTOM 2]
- [SYMPTOM 3]

Context:
- When it started: [TIMELINE]
- What changed recently: [CHANGES]
- Scope/scale: [IMPACT]

Use the 5 Whys method to:
1. Identify potential root causes
2. Distinguish symptoms from causes
3. Suggest verification methods for each hypothesis
4. Recommend corrective actions
5. Propose preventive measures

why it works ·Applies systematic problem-solving methodology while requiring testable hypotheses — preventing jumping to solutions.

variation

Specify methodology: "Use fishbone diagram approach" or "Apply systems thinking framework."

16

Decision Matrix Creator

I need to make a decision about [DECISION].

Options:
1. [OPTION 1]
2. [OPTION 2]
3. [OPTION 3]

Decision criteria (weight if known):
- [CRITERION 1]
- [CRITERION 2]
- [CRITERION 3]

Constraints:
- Must decide by: [DEADLINE]
- Budget: [CONSTRAINT]
- Other: [FACTORS]

Create a weighted decision matrix and identify:
- Which option scores highest
- Sensitivity analysis (how robust is this choice?)
- What additional information would change the decision
- Recommendation with confidence level

why it works ·Forces explicit weighting of criteria and sensitivity analysis — revealing decision robustness and information gaps.

variation

Add "Include worst-case scenario analysis" or "Consider reversibility of each option."

Learning & Education

FH//LIB·06 — 2 prompts
17

Concept Breakdown Tutor

I'm trying to understand [COMPLEX CONCEPT].

My current understanding: [WHAT YOU KNOW]
What's confusing me: [SPECIFIC CONFUSION]
My background: [RELEVANT KNOWLEDGE]

Please:
1. Break down this concept into prerequisite components
2. Explain each component with examples
3. Show how they connect to form the complete concept
4. Provide an analogy that matches my [FIELD/INTEREST]
5. Give me a practice problem to test understanding

why it works ·Tailors explanation to existing knowledge and identifies specific confusion points rather than generic overviews.

variation

Add "Use Socratic method with questions" or "Provide visual/spatial explanations."

18

Study Guide Generator

Create a study guide for [TOPIC/EXAM]:

Material to cover:
[CONTENT OUTLINE OR RESOURCES]

Study constraints:
- Time available: [DURATION]
- Current knowledge level: [ASSESSMENT]
- Learning style: [PREFERENCES]
- Exam format: [TYPE]

Include:
1. Prioritized topic list (what matters most)
2. Study schedule breakdown
3. Active recall practice questions
4. Common misconception clarifications
5. Self-assessment checkpoints

why it works ·Creates personalized study plans based on actual constraints and learning science principles.

variation

Add "Focus on areas I scored lowest: [WEAK AREAS]" or "Optimize for time efficiency."

Advanced Prompting Techniques

FH//LIB·07 — 2 prompts
19

Chain-of-Thought Reasoning

Solve this problem by thinking through it step by step:

Problem: [COMPLEX PROBLEM]

Show your reasoning process:
1. What information is given?
2. What information is missing?
3. What assumptions must we make?
4. Break the problem into sub-problems
5. Solve each sub-problem
6. Combine solutions
7. Verify the answer makes sense

Then provide the final answer with confidence level.

why it works ·Activates step-by-step reasoning, dramatically improving performance on complex problems compared to direct answers.

variation

For math: "Show all calculations" or for logic: "Identify potential logical fallacies."

20

Role-Based Perspective

Evaluate [SITUATION/DECISION] from the perspective of a [EXPERT ROLE]
with [YEARS] experience in [FIELD].

Situation:
[CONTEXT]

As this expert, provide:
1. Initial assessment based on pattern recognition
2. What details you'd want to investigate
3. Likely risks this expertise reveals
4. Recommendations with reasoning
5. What less experienced people might miss

Use the thought patterns and terminology authentic to this role.

why it works ·Accesses domain-specific knowledge patterns and terminology by explicitly invoking expert perspectives.

variation

Compare multiple perspectives: "Now analyze from [DIFFERENT ROLE] perspective and identify conflicts."

Modifying Prompts for Your Needs

FH//LIB·08 — method

The most valuable skill in prompt engineering isn't memorizing examples — it's understanding how to adapt them.

Adjust specificity

Too broad and results lack actionable detail; too narrow and you miss creative solutions. Start specific, then relax constraints if needed.

Layer context progressively

Start with the core task, add constraints and requirements, include success criteria, finish with output format specifications.

Steer the temperature

Creative tasks: request "3 diverse approaches." Analytical tasks: "use data-driven reasoning, show calculations." Balanced: "systematic analysis, then creative solutions."

Chain prompts for complex work

Rather than one massive prompt, break work into stages: plan the outline, execute section by section, review the draft, then polish.

Practice makes perfect: LLM Adventure

Reading examples helps; practice creates mastery. Apply these principles across 10 progressively challenging levels with immediate feedback on your prompts and real-world scenarios from business, technical, and creative domains. Teams report 38% improvement in prompt success rates. Free, no signup, ~30 minutes.

▸ play llm adventure

LLM ADVENTURE
levels ······· 10
time ····· 30 min
cost ······· free
signup ····· none
▸ press play

Next steps

THIS WEEK

Pick the three prompts most relevant to your work, fill in your context above, and test them.

BUILD SKILLS

Complete LLM Adventure to practice these principles with immediate feedback.

LEVEL UP YOUR TEAM

For enterprise-scale capability — RAG pipelines, prompt governance, advanced techniques — Far Horizons runs team enablement on your repo, two to five days with your engineers.

The frontier of LLM capability isn't in the models — they're advancing faster than most organizations can adopt them. The real leverage comes from systematic approaches to prompt engineering that compound over time.