Loading...
Loading...
Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot learning, creating system prompts with personas and guardrails, building JSON/function-calling schemas, or developing prompt evaluation frameworks to measure and improve model performance.
npx skill4agent add farmage/opencode-skills prompt-engineer| Topic | Reference | Load When |
|---|---|---|
| Prompt Patterns | | Zero-shot, few-shot, chain-of-thought, ReAct |
| Optimization | | Iterative refinement, A/B testing, token reduction |
| Evaluation | | Metrics, test suites, automated evaluation |
| Structured Outputs | | JSON mode, function calling, schema design |
| System Prompts | | Persona design, guardrails, context management |
Classify the sentiment of the following review as Positive, Negative, or Neutral.
Review: {{review}}
Sentiment:Classify the sentiment of the following review as Positive, Negative, or Neutral.
Review: "The battery life is incredible, lasts all day."
Sentiment: Positive
Review: "Stopped working after two weeks. Very disappointed."
Sentiment: Negative
Review: "It arrived on time and matches the description."
Sentiment: Neutral
Review: {{review}}
Sentiment:Summarize this document.
{{document}}Summarize the document below in exactly 3 bullet points. Each bullet must be one sentence and start with an action verb. Do not include opinions or information not present in the document.
Document:
{{document}}
Summary: