prompt-engineer
Skill0 starsChanged 8 months agoMITView on GitHub
Read the user's prompt and diagnose issues across these dimensions: 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. - Weak: "You are a helpful assistant" - Better: "You are a senior product manager" - Best: "You are a senior PM at a B2B SaaS company with 10 years of experience. You've shipped 20+ features and…
74 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- santiago-migoni/claude-skillstheir own version, first seen Nov 8, 2026
- wanghongN/SkillsRepotheir own version, first seen Nov 8, 2026
- AxlZero21/Skillstheir own version, first seen Nov 8, 2026
- joe-qai/qa-skillstheir own version, first seen Nov 8, 2026
- lsyamsiar/claude-skillstheir own version, first seen Nov 1, 2026
- jaskirat1616/grok-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use debugger, technical-writer and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JohnJBorenSkilldebugger
Systematic debugging workflows, root cause analysis, and troubleshooting patterns
Also in 3 projects that use this
VercelSkilltechnical-writer
Write, review, and edit developer documentation for SDKs, libraries, and frameworks, including sites such as ai-sdk.dev and chat-sdk.dev. Use for getting-started guides, tutorials, API references, conceptual explanations, integration guides, migration guides, troubleshooting, and code examples.
Also in 3 projects that use this
JetBrainsSkillwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Also in 4 projects that use this
JetBrainsSkilldoc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
Also in 3 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 3 projects that use this
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 4 projects that use this
Other versions74 projects use a version of this.
Word for word · 1
- yevhens-hue/claude-skills-starter-kit★ 4100% same
Edited · 1
- aakashg/pm-claude-skills★ 10622% same
Wrote their own version · 72
- Jeffallan/claude-skills★ 12ksame name
- elithrar/dotfiles★ 222same name
- chrispangg/deepagentsdk★ 128same name
- thedesignproject/agent-skills★ 88same name
- OpenCoven/coven★ 75same name
- monaccode/astromesh★ 39same name
- joe-qai/qa-skills★ 30same name
- jshsakura/awesome-opencode-skills★ 30same name
- Fandry96/k3-agentic-skills★ 27same name
- felvieira/claude-skills-fv★ 27same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- applySkill
- daySkill
- exploreSkill
- goalsSkill
- idea-validatorSkill
- linkedin-post-writerSkill
- meetingsSkill
- outreachSkill
- product-designerSkill
- projectsSkill
- status-update-writerSkill
- tasksSkill
- triageSkill
- weekSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Read the user's prompt and diagnose issues across these dimensions:
- Distinctive: line 39
Add: "Think through this step by step before giving your final answer."
- Distinctive: line 43
Add 1-3 input/output pairs showing what good looks like.
- Distinctive: line 57
Use clear delimiters to separate instructions from input data.
- Distinctive: line 58
Use triple backticks, XML tags, or clear headers: "INPUT DATA:" / "INSTRUCTIONS:"
- Distinctive: line 211
When the improved prompt still produces bad output, stop rewriting.
- Distinctive: line 227
After diagnosing and fixing, tell the user:
- Distinctive: line 234
If a single prompt is trying to do 3+ distinct things, it probably needs to be a chain:
- Distinctive: line 241
Never add complexity for its own sake.
- Distinctive: line 242
Never use "be thorough and comprehensive" — it produces verbose, unfocused output.
- Distinctive: line 243
Never assign a role that mismatches the task.
- Distinctive: line 244
Never add few-shot examples below the quality bar you expect back.
- Distinctive: line 245
Always test. Run the improved prompt to verify it actually produces better output.
- Distinctive: line 246
Never override the user's intent.
- Distinctive: line 249
Always show before and after.
- Distinctive: line 253
When in doubt, add one great example rather than more instructions.
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 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? |
Step 2: Apply Techniques
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.
- Weak: "You are a helpful assistant"
- Better: "You are a senior product manager"
- Best: "You are a senior PM at a B2B SaaS company with 10 years of experience. You've shipped 20+ features and written 100+ PRDs. You're known for concise, metrics-driven specs."
Structured Output Define the exact format. Specify fields, order, and length — never just "give me a summary."
- Weak: "Summarize this article"
- Best: "Summarize this article in exactly 3 bullet points. Each bullet: one sentence, under 20 words, focused on actionable takeaways for a PM audience."
Chain of Thought For complex reasoning, force the LLM to show its work. This dramatically improves accuracy on multi-step problems:
- Add: "Think through this step by step before giving your final answer."
- Or: "First, identify the key factors. Then, analyze each one. Finally, synthesize into a recommendation."
Few-Shot Examples Add 1-3 input/output pairs showing what good looks like. Include at least one edge case.
- Examples must demonstrate the quality bar, format, and tone expected.
- One great example outweighs 50 words of instruction.
Constraints (DO/DON'T) Explicit rules prevent the most common failure modes:
- "DO: Use specific metrics. Cite the data I provided. Flag assumptions."
- "DON'T: Use jargon without defining it. Make up statistics. Exceed 500 words."
Evaluation Criteria Direct the LLM to verify its own output before responding.
- "Before responding, verify: (1) every recommendation has a supporting reason, (2) all metrics are from the data provided, (3) the total length is under 300 words."
Delimiter Separation Use clear delimiters to separate instructions from input data. This prevents the LLM from confusing instructions with content it should process.
- Use triple backticks, XML tags, or clear headers: "INPUT DATA:" / "INSTRUCTIONS:"
Step 3: Show the Improvement
Present the improved prompt in a code block. Then add:
What changed and why:
- [Technique] → [what problem it fixes]
- [Technique] → [what problem it fixes]
Step 4: Offer to Iterate
"Want me to add examples, adjust the tone, tune it for a specific LLM, or make it shorter?"
Full Before/After Examples
Example 1: Vague Prompt → Specific Prompt
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:
- Role priming → LLM writes from a strategic perspective, not generic
- Structured output → Ensures consistent, complete analysis
- Constraints → Prevents vague filler and controls length
- Scope → "AI features specifically" prevents a surface-level overview of everything
Example 2: Weak Few-Shot → Strong Few-Shot
Before:
Rewrite these feature requests as user stories.
Feature requests:
- We need better search
- Users want dark mode
- Add CSV exportProblems: 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 exportWhat changed:
- Few-shot example → Shows the exact quality bar and format expected
- Product context → User stories will be specific to the actual product
- Edge case requirement → Forces the LLM to think beyond the happy path
- Structured output → Consistent format across all stories
Example 3: Over-Engineered → Right-Sized
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:
- Removed bloated role (unnecessary for this task)
- Cut 8 frameworks down to the one that matters (theme clustering + prioritization)
- Clear, scannable output format
- The prompt is shorter than the expected output, which is almost always the right ratio for analytical tasks
Prompt Debugging
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:
- "Here's what I changed and why"
- "Test it with [this specific input] to verify the fix"
- "If it still fails, the next thing to try is [fallback approach]"
Step 3: Know when to split
If a single prompt is trying to do 3+ distinct things, it probably needs to be a chain:
- Prompt 1 does analysis → feeds into Prompt 2 for synthesis → Prompt 3 formats the output
- Tell the user: "This prompt is overloaded. Here's how to split it into a 2-step chain that will produce better results."
Anti-Patterns
- Never add complexity for its own sake. A 10-line prompt that works beats a 50-line prompt that confuses.
- Never use "be thorough and comprehensive" — it produces verbose, unfocused output. Specify exactly what to cover.
- Never assign a role that mismatches the task. "You are a world-class neurosurgeon" adds nothing to a marketing brief.
- Never add few-shot examples below the quality bar you expect back. Bad examples teach bad patterns.
- Always test. Run the improved prompt to verify it actually produces better output.
- Never override the user's intent. Improve HOW they ask, not WHAT they are asking for.
Rules
- Always show before and after. The user must see what changed and why.
- Explain each change in terms of the problem it solves, not just the technique name.
- Preserve the user's intent. Improve the prompt, not the task.
- Right-size the improvement. Simple tasks need simple prompts. Never add chain-of-thought to "write a tweet."
- When in doubt, add one great example rather than more instructions. Examples teach faster than rules.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

