prompt-engineering
Skill4 starsChanged 29 days agoMITView on GitHub
[METHODOLOGY] Guide for writing effective prompts for LLMs based on Anthropic + OpenAI 2025-2026 guidelines. Pure reference — invoked via slash command or explicit Skill tool call, not auto-triggered by keywords.
85 other projects use a version of this.
Adopted by
Most recently taken up by
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- kazemcodes/skill-treetheir own version, first seen Nov 8, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- Hoerire/Azurtheir own version, first seen Nov 8, 2026
- Bruno-Cunha-Souza/ValarMindSkillstheir own version, first seen Nov 8, 2026
- LuisSambrano/antigravity-configtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use security-checklist, multi-agent-orchestration and 10 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.
atuljha23Skillsecurity-checklist
OWASP-style quick reference — authn/authz, injection, secrets, sessions, crypto, dependencies. Use during code review and before committing security-sensitive changes.
Also in 3 projects that use this
javalenciacaiSkillmulti-agent-orchestration
Design and coordinate multi-agent systems where specialized agents work together to solve complex problems. Covers agent communication, task delegation, workflow orchestration, and result aggregation. Use when building coordinated agent teams, complex workflows, or systems requiring specialized expertise across domains.
Also in 4 projects that use this
xfstudioSkillllm-evaluation
Implement comprehensive evaluation strategies for LLM applications using automated metrics, human feedback, and benchmarking. Use when testing LLM performance, measuring AI application quality, or establishing evaluation frameworks.
Also in 3 projects that use this
GoogleSkillcoding-principles
Enforces engineering, architecture, public API, and code quality standards distilled from human reviewer feedback across A2UI pull requests. Use when authoring new code, refactoring, addressing review feedback, or reviewing PR diffs. Don't use for release publishing or spec blueprint generation without code or PR changes.
Also in 3 projects that use this
pproencaSkillrefactoring
Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.
Also in 6 projects that use this
mjunaidcaSkilltool-design
Design tools that agents can use effectively. Use when creating new tools for agents, debugging tool-related failures, or optimizing existing tool sets.
Also in 3 projects that use this
Other versions85 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 85
- trycompai/comp★ 2.1ksame name
- niki914/zafiro★ 346same name
- CodeAlive-AI/ai-driven-development★ 169same name
- grandamenium/cortextos★ 106same name
- nahid-sparktales/agent-dispatcher★ 59same name
- geekatron/jerry★ 37same name
- Bbar0n234/learnflow-ai★ 35same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- sabahattink/antigravity-fullstack-hq★ 30same name
- VoDaiLocz/kilo-kit-mcp★ 28same name
75 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 repository48 other files it gives its agents.
- skills/dev-methodology/references/agents.mdAGENTS.md
- skills/skill-authoring/references/agents.mdAGENTS.md
- acceptance-protocolSkill
- agency-intakeSkill
- ai-visibility-methodologySkill
- banner-design-guideSkill
- benchmark-researchSkill
- brand-methodologySkill
- code-reviewingSkill
- code-writingSkill
- codex-bridgeSkill
- deploy-pipelineSkill
- design-assets-guideSkill
- design-system-methodologySkill
- design-task-decompositionSkill
- dev-methodologySkill
- docs-pipelineSkill
- documentation-writingSkill
- engagement-contractSkill
- engagement-protocolSkill
- feature-researchSkill
- human-voiceSkill
- infrastructure-setupSkill
- marketing-task-decompositionSkill
- post-deploy-qaSkill
- pre-deploy-qaSkill
- presentation-designSkill
- project-planningSkill
- security-auditingSkill
- semantic-drift-methodologySkill
- seo-auditingSkill
- skill-authoringSkill
- skill-test-designSkill
- skill-testingSkill
- system-optimization-protocolSkill
- task-decompositionSkill
- tech-spec-planningSkill
- testing-methodologySkill
- ui-styling-guideSkill
- ui-ux-methodologySkill
- user-spec-planningSkill
- validation-pipelineSkill
- yandex-analytics-methodologySkill
- yandex-direct-guideSkill
- yandex-metrika-guideSkill
- yandex-search-guideSkill
- yandex-webmaster-guideSkill
- yandex-wordstat-guideSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 75 edited versions we read keep these.
3
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 18
Add only what the model lacks: domain context, constraints, success criteria.
- Distinctive: line 60
Remove filler ("could you please", "I would like you to", "make sure to").
- Distinctive: line 112
Instead of describing the desired output format in paragraphs, show 1-3 examples.
“Common” is measured: kept by at least 6 in 10 of the 75 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 Engineering for Reasoning Models
Based on Anthropic and OpenAI guidelines (2025-2026). Every principle here has a motivation — when you understand WHY something works, you follow it more reliably.
Core Principles
The model is already smart
Add only what the model lacks: domain context, constraints, success criteria. Every sentence should justify its token cost. The context window is a shared resource — prompts compete for attention with conversation history, tool outputs, and the model's own reasoning.
Clarity over cleverness
Most prompt failures stem from ambiguity, not model limitations. Test: show the prompt to a colleague with no context. If they're confused about what to do, the model will be too.
Motivation over emphasis
Explain WHY a rule matters. One motivated sentence outperforms ten capitalized words.
When every instruction screams for attention (ALL CAPS, "CRITICAL", "NEVER", "ALWAYS", "MUST"), nothing stands out. Emphasis words signal a poorly written instruction — rewrite it instead of raising the volume. Over-thorough language ("Be THOROUGH", "Make sure you have the FULL picture") also hurts — it inflates token cost without adding signal.
Before:
CRITICAL: You MUST ALWAYS validate input. NEVER skip validation.
IMPORTANT: ALWAYS check for edge cases. This is MANDATORY.
After:
Validate all input before processing.
Reason: unvalidated input causes pipeline crashes in production.Positive framing
State what you want, not what to avoid. Models follow positive instructions more reliably. Long prohibition lists get ignored — they add tokens without adding clarity.
Before:
Don't use bullet points. Never include code examples.
Avoid long explanations. Don't use jargon.
After:
Write in prose paragraphs, 2-3 sentences each.
Use plain language accessible to non-technical readers.Examples over rules
1-3 canonical examples transfer knowledge more efficiently than paragraphs of description. Show the desired output — let the model generalize from the pattern.
Compress
Remove filler ("could you please", "I would like you to", "make sure to"). Shorter prompts often perform equally well or better — less noise means stronger signal per token.
Degrees of freedom
Match specificity to the task's fragility. Over-specifying creative tasks stifles the model's reasoning. Under-specifying fragile tasks leads to format errors and broken parsing.
Fragile tasks (parsing specific formats, following exact protocols): prescribe steps. Creative tasks (writing, analysis, design): give constraints and let the model find its path.
High-level guidance
Provide constraints and success criteria rather than step-by-step micro-instructions. The model's own reasoning often exceeds prescriptive procedures. Describe WHAT success looks like — the model figures out HOW.
Techniques That Work
Context over decoration
Provide concrete context (audience, use case, constraints) instead of decorative phrasing. The model gains nothing from flattery.
Before:
You are an incredibly brilliant and talented expert programmer
who writes the most amazing code in the world. Please write
a function that validates emails.
After:
Write an email validation function.
Context: TypeScript, used in a signup form, must handle
international domains. Return {valid: boolean, reason: string}.Structure with XML tags
Separate instructions, data, and examples with XML tags. This prevents the model from confusing context with instructions. Consistent tag names make handoffs between chained prompts clean.
Before:
Here's some customer feedback. Also, the format should be
JSON. And please analyze sentiment. The feedback is:
"Great product but shipping was slow."
After:
<instructions>
Analyze sentiment. Output JSON: {text, sentiment, confidence}.
</instructions>
<data>
Great product but shipping was slow.
</data>Examples over explanations
Instead of describing the desired output format in paragraphs, show 1-3 examples. The model generalizes from patterns faster than from rules.
Before:
When summarizing articles, create a summary that includes
the main topic as a short phrase, then 2-3 key points as
bullet items, then a one-sentence practical takeaway.
After:
Summarize articles in this format:
<example>
Topic: Remote work productivity
- Async communication reduces meetings by 40%
- Written documentation improves onboarding speed
Takeaway: Teams that default to async work ship faster.
</example>Prompt chaining over mega-prompts
Break complex tasks into focused steps. Each step gets the model's full attention. A chain of 3 focused prompts outperforms one overloaded prompt — empirically shown to reduce error rates.
Before (single mega-prompt):
Analyze this contract for risks, then draft an email
to the vendor with concerns, then review for tone.
After (3-step chain):
Step 1: Analyze <contract> for risks. Output in <risks> tags.
Step 2: Using <risks>, draft vendor email with proposed changes.
Step 3: Review <email> for tone. Grade A-F with suggestions.Define success criteria
Tell the model what good output looks like — not just what to do. Include format, length, audience, and evaluation criteria.
Before:
Write a good product description.
After:
Write a product description for noise-canceling headphones.
Audience: Tech-savvy millennials on a comparison shopping site.
Format: 80-120 words, no superlatives, focus on specs and
use cases. End with one differentiating fact vs. competitors.Refinement
How to improve a prompt that isn't working well:
- Draft a first version focused on context and success criteria
- Test against 3-5 representative inputs (include edge cases)
- Observe the output — collect specific problems, not vague impressions
- Diagnose each problem: is it ambiguity? missing context? conflicting instructions? wrong format?
- Plan changes: map each problem to a specific edit (what failed → why → what to change)
- Refine with targeted edits — change one thing at a time, test each separately
- Metaprompt: show the model a problematic output and ask "What in this prompt causes this behavior? Suggest a revision."
When to add instructions vs. examples
| Problem | Fix |
| Model misunderstands the task | Add context (audience, use case, constraints) |
| Output missing required sections | Add an example showing all sections |
| Wrong format or style | Add 1-2 output examples |
| Model uses wrong context | Restructure with XML tags to separate data from instructions |
| Contradictory behavior | Audit prompt for conflicting rules and resolve them |
Quick Reference
| Instead of | Do this | Why |
| Emphasis words (CAPS, "NEVER", "ALWAYS") | One sentence explaining motivation | When everything screams, nothing stands out |
| Lists of prohibitions | State desired behavior | Positive framing is followed more reliably |
| "Act as a world-class expert..." | Provide context + success criteria | Flattery adds tokens without adding signal |
| One mega-prompt with many tasks | Chain of 3-4 focused prompts | Each step gets full model attention |
| Filler ("please", "make sure", "I want you to") | Direct instruction | Fewer tokens = less noise |
| Paragraphs describing format | 1-3 examples of desired output | Models generalize from examples faster than from rules |
| Step-by-step micro-instructions | Constraints + success criteria | Model's own reasoning exceeds prescriptive procedures |
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.

