prompt-engineer
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Design, diagnose, or refine a prompt for Claude or another LLM using a standalone prompt-engineering framework - clarify the goal and audience, structure role, context, task, and format, apply techniques like few-shot examples and structured output, and diagnose why an existing prompt underperforms. Use whenever the user wants to write a system prompt, user prompt, tool description, or agent instructions from scratch, wants to fix a prompt that isn't working well, or asks for help crafting, refining, or optimizing a prompt for any LLM.
74 other projects use a version of this.
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 idea-validator, debugger and 8 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.
dipaulavsSkillidea-validator
Validates app ideas before building. Analyzes market saturation, competitors, real demand vs stated interest, solo builder feasibility (2-4 weeks timeline), and monetization potential. Use when user asks to validate an idea, evaluate a concept, check if idea is worth building, or before starting a new project.
Also in 3 projects that use this
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
Other versions74 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 74
- Jeffallan/claude-skills★ 12ksame name
- elithrar/dotfiles★ 222same name
- chrispangg/deepagentsdk★ 128same name
- aakashg/pm-claude-skills★ 106same 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
64 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 repository24 other files it gives its agents.
- audit-fixSkill
- auditSkill
- commitSkill
- deps-auditSkill
- digestSkill
- flowchartSkill
- git-undoSkill
- handoffSkill
- hone-skillSkill
- kickoffSkill
- math-researchSkill
- new-skillSkill
- next-stepsSkill
- prune-test-suiteSkill
- release-notesSkill
- repo-adoptSkill
- repo-issue-scoutSkill
- resolve-tester-bugsSkill
- scaffold-auditSkill
- session-reportSkill
- sidebarSkill
- sync-profile-readmeSkill
- rename-to-match-folderSkill
- worktree-cleanupSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 65 edited versions we read keep these.
8
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 54
Few-shot examples: - when the desired output has a specific shape or style that's hard to describe in words.
- Distinctive: line 55
Chain-of-thought / step-by-step instructions: - when the task requires reasoning through multiple steps rather than a single lookup.
- Distinctive: line 57
Negative examples: - when a plausible-looking wrong answer is common.
- Distinctive: line 62
Check an underperforming prompt against these failure modes, roughly in order of impact:
- Distinctive: line 68
No output format spec: - if the caller needs a specific structure, say so explicitly.
- Distinctive: line 76
After drafting or fixing a prompt:
- Distinctive: line 78
Ask the user for one real example input it needs to handle, if they have one.
- Distinctive: line 79
Prefer a small number of well-chosen examples and constraints over an exhaustive list - a prompt that tries to cover every edge case up …
“Common” is measured: kept by at least 6 in 10 of the 65 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
Help the user design a new prompt or fix a weak one, using structure and technique choices instead of guesswork.
The request (or an existing prompt to refine): $ARGUMENTS
1. Clarify before writing
A prompt can't be judged good or bad without knowing what it's for. If not already stated, ask:
- Goal - what should the model do or produce?
- Audience/caller - a human end user, another agent, an API caller? This changes tone and format.
- Model or product surface - Claude or another LLM, and which surface (system prompt, tool description, few-shot example)? Constraints differ - a tool description is read by the model deciding whether to call the tool, not by an end user.
- Success criteria - how would the user know the output is right? One concrete example of a good and a bad output is worth more than a paragraph of description.
Skip this step only if the user already supplied enough of the above, or explicitly wants a quick draft to iterate on rather than a full interview.
2. Gather context when the prompt targets something real
A prompt aimed at a specific codebase, API, tool, or product surface should be grounded in that target, not written from recall:
- Prompt for/about code in this project (agent instructions, CLAUDE.md content, a tool description) - read the relevant files first so names, conventions, and constraints in the prompt match reality.
- Prompt that depends on current external facts (a provider's API shapes, model-specific behaviors, a library's idioms) - verify with a web search or the docs rather than trusting recall; a confidently wrong detail baked into a prompt propagates to every run of it.
Skip this step when the prompt is self-contained - pure style, tone, or reasoning instructions with no external referent.
3. Pick the mode
- Drafting a new prompt - go to step 4.
- Fixing an existing prompt that underperforms - go to step 5 first, then step 4 for the rewrite.
4. Structure the prompt
A well-structured prompt separates these parts, even if the final text blends them:
- Role/context - who the model is acting as, and any background it needs.
- Task - the actual instruction, stated as an imperative, not a description.
- Constraints and format - length, tone, what to include or exclude, exact output structure.
- Examples - the highest-leverage lever. One good example clarifies more than several sentences of instruction.
Pick techniques based on the goal - state what to do rather than stacking all of them by default:
- Few-shot examples - when the desired output has a specific shape or style that's hard to describe in words.
- Chain-of-thought / step-by-step instructions - when the task requires reasoning through multiple steps rather than a single lookup.
- Structured output (XML tags, a schema, headers) - when the output will be parsed programmatically or must have a reliable shape.
- Negative examples - when a plausible-looking wrong answer is common; show it and say why it's wrong.
- Explain why, not just what - rules the model understands the reasoning behind generalize better than rigid MUSTs; reserve hard imperatives for genuinely non-negotiable constraints.
5. Diagnose a weak prompt
Check an underperforming prompt against these failure modes, roughly in order of impact:
- Vague verbs - "handle", "deal with", "process" instead of a concrete action.
- No success criteria - the model can't tell a good output from a bad one either.
- Missing examples - especially for a specific output shape or style.
- Ambiguous or conflicting constraints - two instructions that can't both be satisfied; the model will pick unpredictably.
- No output format spec - if the caller needs a specific structure, say so explicitly.
- Buried instruction - the actual task is lost in a wall of context; move it near the top or the end (both are read more reliably than the middle).
- Assumes shared context the model doesn't have - jargon, acronyms, or "the usual way" without defining it.
Point to the specific line or phrase causing each issue rather than giving generic feedback.
6. Iterate
After drafting or fixing a prompt:
- Ask the user for one real example input it needs to handle, if they have one. Trace through the prompt against that example and flag anything that would produce the wrong output.
- Prefer a small number of well-chosen examples and constraints over an exhaustive list - a prompt that tries to cover every edge case up front is harder to read and often self-contradicts.
7. Return
Give the user the prompt itself, clearly delimited in a fenced code block, followed by a short rationale only for the non-obvious choices - not a running commentary on every line.
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.

