skills/prompt-engineer/SKILL.md
# Prompt Engineer ## Trigger Activate when the user asks to "improve this prompt", "make this prompt better", "optimize this prompt", "prompt engineer this", or "rewrite this prompt". ## Behavior ### Step 1: Analyze the Current Prompt Read the user's prompt and diagnose issues across these dimensions: | Dimension | What to Check | |-----------|--------------| | **Role** | Is there a specific role/persona? Generic "you are an expert" doesn't count. | | **Context** | Does the LLM have enough
npx skillsauth add aakashg/pm-claude-skills skills/prompt-engineerInstall 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.
Activate when the user asks to "improve this prompt", "make this prompt better", "optimize this prompt", "prompt engineer this", or "rewrite this prompt".
Read the user's prompt and diagnose issues across these dimensions:
| Dimension | What to Check | |-----------|--------------| | Role | Is there a specific role/persona? Generic "you are an expert" doesn't count. | | Context | Does the LLM have enough background to do the task well? | | Instructions | Are steps explicit and ordered? Or vague and open to interpretation? | | Output format | Is the expected structure defined? (Headers, bullets, length, tone) | | Examples | Are there input/output pairs showing what "good" looks like? | | Constraints | Are there explicit DO/DON'T rules? Edge cases handled? | | Evaluation | Can the LLM self-check its output against clear criteria? |
Apply the relevant techniques below. Match the technique to the problem — not every prompt needs every technique.
Role Priming Give the LLM a specific identity with relevant experience. Specificity drives output quality.
Structured Output Define the exact format. Specify fields, order, and length — never just "give me a summary."
Chain of Thought For complex reasoning, force the LLM to show its work. This dramatically improves accuracy on multi-step problems:
Few-Shot Examples Add 1-3 input/output pairs showing what good looks like. Include at least one edge case.
Constraints (DO/DON'T) Explicit rules prevent the most common failure modes:
Evaluation Criteria Direct the LLM to verify its own output before responding.
Delimiter Separation Use clear delimiters to separate instructions from input data. This prevents the LLM from confusing instructions with content it should process.
Present the improved prompt in a code block. Then add:
What changed and why:
"Want me to add examples, adjust the tone, tune it for a specific LLM, or make it shorter?"
Before:
Write a competitive analysis of Notion.
Problems: No role, no structure, no audience, no scope, no output format. The LLM will produce a generic, rambling overview:
After:
You are a senior product strategist at a B2B knowledge management company competing with Notion.
Analyze Notion's AI features specifically. Structure your analysis as:
1. WHAT THEY BUILT
- Core AI features (list each with one-line description)
- Target user for each feature
- Pricing model for AI features
2. WHAT'S SMART (3 product decisions)
- For each: what they did, why it works, evidence
3. WHAT'S WEAK (3 gaps or friction points)
- For each: the issue, who it affects, opportunity for us
4. IMPLICATIONS
- 2 things we should copy and why
- 2 things we should avoid and why
- 1 opportunity they're missing that we could own
Rules:
- Be specific. "Good UX" is not analysis. Name the interaction and explain why it works.
- If you don't have data, say "[NEED: data on X]" instead of guessing.
- Keep total output under 800 words.
What changed:
Before:
Rewrite these feature requests as user stories.
Feature requests:
- We need better search
- Users want dark mode
- Add CSV export
Problems: No format specified, no quality bar shown, no context about the product.
After:
You are a PM turning raw feature requests into user stories for an engineering team.
For each request, produce:
- User story (As a [user type], I want [action] so that [outcome])
- Acceptance criteria (2-3 testable conditions)
- One edge case to consider
EXAMPLE:
Request: "Customers want to undo actions"
User story: As a document editor, I want to undo my last 10 actions so that I can experiment without fear of losing work.
Acceptance criteria:
- Cmd+Z undoes the most recent action within 200ms
- Undo stack preserves the last 10 actions per session
- Undo is disabled (greyed out) when no actions exist in the stack
Edge case: What happens if the user undoes a collaborative edit that another user has already built upon?
Now process these requests:
Product context: B2B project management tool for mid-market teams (50-200 people).
Feature requests:
- We need better search
- Users want dark mode
- Add CSV export
What changed:
Before (too complex):
You are an expert-level product management consultant with 20 years of
experience across consumer, enterprise, and marketplace products. You have
deep expertise in behavioral economics, jobs-to-be-done theory, the Kano
model, and design thinking. You have consulted for Fortune 500 companies
and high-growth startups alike. You approach every problem with a blend of
quantitative rigor and qualitative empathy. You always consider second-order
effects and systemic implications.
Please analyze the following customer feedback and provide a comprehensive
multi-dimensional assessment including but not limited to: sentiment analysis,
theme clustering, priority scoring using the RICE framework, impact mapping,
root cause analysis using the 5 Whys methodology, and strategic recommendations
aligned with OKR best practices.
[50 more lines of instructions...]
Problems: Prompt is longer than the output. Role is impossibly broad. Instructions request 8+ frameworks for a simple task. The LLM will produce mediocre output across all dimensions instead of strong output on what actually matters.
After (right-sized):
Analyze this customer feedback. Group by theme, rank by frequency, and flag the top 3 issues I should act on.
For each top issue:
- How many customers mentioned it
- Representative quote
- Suggested next step
Feedback:
[paste feedback here]
What changed:
When the improved prompt still produces bad output, stop rewriting. Diagnose the failure mode first, then apply the targeted fix.
Step 1: Identify the failure type
| Symptom | Likely Cause | Fix | |---------|-------------|-----| | Output is too generic / "could be anyone" | Missing role or weak context | Add a specific persona with domain details | | Output misses the point entirely | Prompt is ambiguous — LLM chose a valid but wrong interpretation | Add a "Your goal is..." preamble and one clarifying example | | Output is right but wrong format | No output spec, or output spec is buried | Move format instructions to the top, use a template | | Output is verbose and padded | No length constraints or "be thorough" is in the prompt | Add explicit word/sentence limits. Replace "thorough" with "cover X, Y, Z" | | Output hallucinates facts | No grounding instructions | Add "Only use information from the provided context. If data is missing, say [NEED: X]" | | Output starts strong, degrades at the end | Prompt is too long — LLM loses focus | Shorten the prompt. Move examples before instructions. Cut redundant sections. | | Output ignores some instructions | Too many competing instructions | Reduce to 3-5 core rules. Number them. Add "These rules are mandatory." |
Step 2: Test the fix
After diagnosing and fixing, tell the user:
Step 3: Know when to split
If a single prompt is trying to do 3+ distinct things, it probably needs to be a chain:
documentation
# Status Update Writer ## Trigger Activate when the user asks to "write a status update", "weekly update", "stakeholder update", "write a project update", or "status report". ## Behavior ### Step 1: Gather Context Ask: 1. What project or initiative is this for? 2. What happened this week? (Paste notes, Slack messages, whatever you have — the messier the better) 3. Who is the audience? (CEO, VP Eng, cross-functional team, skip-level, board) 4. Is there bad news? (If so, I'll help you frame it
development
# Product Design Reviewer ## Trigger Activate when the user asks to "review this design", "give design feedback", "critique this UI", "check this mockup", or "design review". ## Behavior ### Step 1: Understand the Context Ask: 1. What is the user trying to accomplish in this flow? 2. Who is the target user? (New user, power user, admin, etc.) 3. What's the platform? (Web, mobile, tablet) 4. What stage is this? (Early concept, ready for eng, post-launch iteration) If the user shares a screens
development
# LinkedIn Post Writer ## Trigger Activate when the user asks to "write a LinkedIn post", "draft a LinkedIn post", "LinkedIn post about [topic]", or "turn this into a LinkedIn post". ## Behavior ### Step 1: Get the Core Idea Ask: 1. What's the one insight or takeaway? 2. Who is the target audience? 3. Any specific hook or angle you want? 4. What format? (Listicle, story, hot take, lesson learned, framework — or let me pick) If the user provides raw notes, a thread, or an article link, extrac
development
# Idea Validator ## Trigger Activate when the user asks to "validate this idea", "is this idea good", "stress test this", "evaluate this product idea", or "should I build [X]". ## Behavior ### Step 1: Understand the Idea Ask: 1. What's the idea in one sentence? 2. Who specifically has this problem? (Job title, company size, situation) 3. How are they solving it today? 4. Why are you the right person/team to build this? If the user gives a vague answer to #2 (e.g., "everyone" or "businesses")