prompt-engineer

Design and improve prompts for large language model applications.

2|1|Updated Jul 25, 2026
One-click install
npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill prompt-engineer-code-saurabh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineer
Source: https://github.com/CODE-SAURABH/OpenSkills/tree/main/prompt-engineer
Command: npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill prompt-engineer-code-saurabh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill transforms vague or unreliable AI instructions into precise, testable prompts that produce consistent, safe, and useful results.

Core Features & Use Cases

  • Prompt Design: Create system prompts, few-shot examples, structured-output instructions, and agentic tool-use prompts.
  • Reliability & Safety: Reduce hallucinations, defend against prompt injection, validate model outputs, and define refusal behavior.
  • Evaluation & Versioning: Build golden test sets, measure quality and latency, select models, and manage prompts as versioned production artifacts.
  • Use Case: Design a structured extraction prompt that converts defect reports into validated JSON while handling missing fields, adversarial inputs, and off-topic requests.

Quick Start

Use the prompt-engineer skill to improve the attached customer-support prompt, add a strict JSON schema, define edge-case behavior, and create an evaluation checklist.

Frequently Asked Questions about prompt-engineer

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

FAQPage Schema
How do I design system prompts for reliable structured output?

Designing system prompts for reliable structured output requires explicit task framing, strict JSON schemas, and few-shot examples to enforce output validation. This approach converts vague instructions into precise prompts that handle edge cases and off-topic requests consistently.

What is the best way to defend against prompt injection in LLM applications?

Defending against prompt injection involves defining explicit refusal behavior and applying adversarial testing to validate model outputs. Engineering reliable prompts requires structured instructions that isolate user inputs from system commands to reduce vulnerabilities.

How do I evaluate LLM prompts for hallucination rate and latency?

Evaluating LLM prompts for hallucination rate and latency requires building golden test sets and treating prompts as versioned production artifacts. Monitoring accuracy and token usage systematically measures prompt quality and performance over time.

Can I use few-shot prompting to improve extraction from defect reports?

Few-shot prompting improves extraction from defect reports by providing explicit examples that guide the model to generate validated JSON. Structured prompts handle missing fields and adversarial inputs while maintaining strict output schemas.

When do I need prompt version control for large language model applications?

Prompt version control is needed when managing production large language model applications that require monitoring of accuracy, hallucination rate, and token usage. Versioning prompts as artifacts ensures consistent evaluation and reliable agentic tool use.

Why does my LLM prompt produce inconsistent JSON outputs?

LLM prompts produce inconsistent JSON outputs when lacking strict output schemas, explicit task framing, and validation rules. Structured prompts with few-shot examples and defined edge-case behavior are required to enforce reliable, testable results.