skills/prompt-engineering-expert/SKILL.md
Apply prompt engineering best practices to write, refine, and optimize system prompts, user prompts, and agent instructions. Use this skill whenever the user wants to write a prompt, optimize an existing prompt for better results, fix a prompt that is hallucinating or underperforming, or structure prompts for Large Language Models (LLMs). Even if the user just says "help me write instructions for my agent", trigger this skill.
npx skillsauth add hrdtbs/agent-skills prompt-engineering-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A skill to help users craft, refine, and optimize prompts for LLMs using proven prompt engineering techniques.
Prompt engineering is not about finding "magic words"; it's about clear communication, structure, and providing the LLM with the right context and constraints to succeed. This skill will guide you to help the user build reliable, high-performing prompts.
When helping a user with a prompt, your goal is to understand why they need it and what the LLM needs to know to accomplish the task successfully.
references/best-practices.md.<instructions>, <context>, <input>).<thinking> block so the model can reason before answering, which reduces hallucinations.").When writing or reviewing prompts, verify they utilize the following techniques where appropriate:
<tags> to clearly demarcate different parts of the prompt. This prevents the LLM from confusing instructions with user input.<thinking> tags before providing the final <answer>.Here is the JSON: {).For a detailed breakdown of prompt engineering techniques, formatting guidelines, and troubleshooting tips (like how to fix hallucinations or dropped instructions), please read references/best-practices.md.
When providing the final prompt to the user, present it clearly in a code block so it can be easily copied:
Here is your optimized prompt:
\`\`\`text
[Your structured prompt here]
\`\`\`
Always encourage the user to test the prompt and bring back the results for further tuning if it doesn't behave exactly as expected.
testing
Evaluate Agent Skill design quality against official specifications and best practices. Use when reviewing, auditing, or improving SKILL.md files and skill packages. Provides multi-dimensional scoring and actionable improvement suggestions.
testing
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
development
Evaluate and score user-written LLM prompts on a 100-point scale across 5 axes (Clarity, Structure, Information Content, Specificity, Context), providing specific improvement suggestions and a revised prompt. Make sure to use this skill whenever the user asks to evaluate, review, score, or improve a prompt, or when they say things like 'このプロンプトどう?', 'プロンプトを評価して', 'rate my prompt', 'review this prompt', or 'is this prompt good enough?'. This skill focuses on scoring existing prompts, not writing new ones from scratch.
testing
Self-evaluate a plan on a 100-point scale after it is created or updated. Make sure to use this skill immediately whenever you create a plan or update a plan, even if the user does not explicitly ask for a review. This skill ensures that the plan is clear, comprehensive, feasible, and consistent before execution.