prompt-engineering

Crafts, reviews, and refines prompts for LLM pipelines, including system and LLM-as-Judge prompts.

10|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/maragudk/evals-skills --skill prompt-engineering-maragudk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/maragudk/evals-skills/tree/main/skills/prompt-engineering
Command: npx skills add https://github.com/maragudk/evals-skills --skill prompt-engineering-maragudk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write, refine, and debug prompts for Large Language Models (LLMs), ensuring they understand your instructions precisely and produce the desired outputs.

Core Features & Use Cases

  • Prompt Crafting: Design effective prompts for various LLM tasks, including system prompts, task prompts, and LLM-as-Judge prompts.
  • Troubleshooting: Diagnose why an LLM might be generating inconsistent or incorrect responses by analyzing prompt clarity and instruction adherence.
  • Iterative Refinement: Improve existing prompts by identifying specification vs. generalization failures and applying structured prompt engineering techniques.
  • Use Case: You've written a prompt to extract information from customer emails, but the LLM sometimes misses key details or formats the output incorrectly. Use this Skill to analyze the prompt, identify ambiguities, and suggest improvements to ensure consistent, accurate extraction.

Quick Start

Use the prompt-engineering skill to help refine a prompt for summarizing customer feedback.

Frequently Asked Questions about prompt-engineering

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

FAQPage Schema
How do I fix inconsistent LLM outputs from my task prompts?

To fix inconsistent LLM outputs, you must troubleshoot your task prompts to reduce ambiguity and bridge intent gaps. Analyzing the prompt structure helps distinguish specification failures from generalization failures, allowing you to iterate and improve instruction adherence.

What is the best way to structure complex LLM prompts for information extraction?

The best way to structure complex LLM prompts for information extraction is to apply iterative prompt engineering techniques. You can refine system and task prompts by adding few-shot examples and structuring instructions precisely to ensure consistent, accurate formatting and detail capture.

Why does my LLM-as-Judge prompt produce incorrect evaluations?

An LLM-as-Judge prompt produces incorrect evaluations due to specification failures or generalization failures within the prompt design. Troubleshooting the prompt clarity and adding few-shot examples helps diagnose instruction adherence issues and bridge intent gaps for accurate evaluations.

How do I write a system prompt that reduces ambiguity for natural language processing tasks?

Writing a system prompt that reduces ambiguity for natural language processing tasks requires iterative refinement of instruction specifications. You must analyze observed failure modes, bridge intent gaps, and apply structured prompt engineering techniques to ensure the LLM understands instructions precisely.

When should I add few-shot examples to my prompt design?

You should add few-shot examples to your prompt design when troubleshooting inconsistent LLM outputs or bridging intent gaps. Incorporating few-shot examples is a targeted prompt engineering technique to improve output formatting and resolve generalization failures in complex prompts.