prompt-engineering
Skill0 starsChanged 8 months agoMITView on GitHub
Principles for designing reliable prompts for LLM-backed features — structured output, few-shot, reasoning, and eval-driven iteration. Use when building, debugging, or hardening any feature that calls an LLM.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- niki914/zafirotheir own version, first seen Oct 3, 2026
- dimitritholen/1337-claudetheir own version, first seen Sep 23, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- emtcmca/guildprooftheir own version, first seen Sep 20, 2026
- sabahattink/antigravity-fullstack-hqtheir own version, first seen Sep 20, 2026
Used with
Projects with it also use security-checklist, nextjs-app-router and 5 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
desilokesh1Skillnextjs-app-router
Next.js App Router best practices, Server Components, Server Actions, routing patterns, and data fetching strategies. Use when building Next.js applications with the App Router.
Also in 3 projects that use this
qodex-aiSkillmulti-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 3 projects that use this
mrgoonieSkillcontext-engineering
Master context engineering for AI agent systems. Use when designing agent architectures, debugging context failures, optimizing token usage, implementing memory systems, building multi-agent coordination, evaluating agent performance, or developing LLM-powered pipelines. Covers context fundamentals, degradation patterns, optimization techniques (compaction, masking, caching), compression strategies, memory architectures, multi-agent patterns, LLM-as-Judge evaluation, tool design, and project development.
Also in 7 projects that use this
dylantarreSkillperformance-optimization
Use when animation runs slow, janky, or causes frame drops
Also in 4 projects that use this
ArogyaReddySkillchangelog-generator
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Also in 3 projects that use this
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- rohitg00/awesome-claude-code-toolkit★ 2.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- niki914/zafiro★ 221same name
- CodeAlive-AI/ai-driven-development★ 153same name
- nahid-sparktales/agent-dispatcher★ 59same name
- martinholovsky/claude-skills-generator★ 47same name
- Bbar0n234/learnflow-ai★ 35same name
- geekatron/jerry★ 35same name
- sabahattink/antigravity-fullstack-hq★ 30same name
- liqiongyu/my-agents★ 29same name
53 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 repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-patternsSkill
- architectureSkill
- brainstormingSkill
- clean-codeSkill
- code-review-checklistSkill
- database-designSkill
- data-engineeringSkill
- frontend-designSkill
- llm-evaluationSkill
- mcp-builderSkill
- memory-managementSkill
- react-best-practicesSkill
- nodejs-best-practicesSkill
- observabilitySkill
- parallel-agentsSkill
- powershell-windowsSkill
- python-patternsSkill
- rag-patternsSkill
- seo-fundamentalsSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- vulnerability-scannerSkill
- webapp-testingSkill
- web-design-guidelinesSkill
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 56 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 40
Prefer the provider's native tool-calling / JSON mode over "respond in JSON" in plain text.
- Distinctive: line 41
Keep one responsibility per call — chain calls instead of one mega-prompt.
- Distinctive: line 45
Prompt injection: treat retrieved/user content as untrusted data, never as instructions.
“Common” is measured: kept by at least 6 in 10 of the 56 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
Designing prompts as a deliberate, testable interface — not trial and error.
Overview
A prompt is the contract between your app and the model. Treat it like code: make it explicit, version it, and validate it against examples. Most "model problems" are under-specified prompts.
Core Principles
| Principle | What it means |
| Be specific | State the task, format, audience, and constraints. Ambiguity is filled by the model's priors, not yours. |
| Show, don't only tell | A few worked examples (few-shot) beat long descriptions for format/tone. |
| Separate roles | System prompt = durable behavior and constraints. User turn = the specific request. |
| Constrain the output | Demand a schema (JSON / tool call) when the result is consumed by code. |
| Give an out | Tell the model what to do when it can't answer ("reply UNKNOWN") to suppress hallucination. |
Choosing a Technique
| Situation | Technique |
| Output parsed by code | Structured output — JSON schema or tool/function calling, validated on receipt |
| Format/tone is hard to describe | Few-shot — 2–5 representative examples |
| Multi-step reasoning / math | Reasoning — ask the model to think step by step (or use a reasoning model) |
| Long, varied inputs | Context discipline — put instructions first, data last; label sections with delimiters |
| Classification / extraction | Enumerate the allowed labels/fields explicitly |
Structured Output
- Define the exact schema; reject and retry on validation failure rather than parsing prose.
- Prefer the provider's native tool-calling / JSON mode over "respond in JSON" in plain text.
- Keep one responsibility per call — chain calls instead of one mega-prompt.
Reliability & Safety
- Prompt injection: treat retrieved/user content as untrusted data, never as instructions. Keep system instructions separate and don't let tool output silently override them.
- Determinism: set temperature low (0) for extraction/classification; higher only for ideation.
- Don't bury the lede: the most important instruction goes first and, for long contexts, is repeated at the end.
Eval-Driven Iteration
- Collect 10–50 real input/output examples (a golden set).
- Change the prompt.
- Re-run the set and compare — never judge a prompt change from one example.
(See the llm-evaluation skill for the full loop.)
Anti-Patterns
| ❌ | ✅ |
| Tweaking against a single example | Iterate against a golden set |
| "Respond in JSON" in free text | Native structured output + validation |
| One giant prompt doing five things | Decompose into chained, single-purpose calls |
| Trusting retrieved text as instructions | Quarantine untrusted content as data |
| Vague role ("be helpful") | Concrete behavior, constraints, and failure mode |
A good prompt is specific, constrained, and measured against examples.
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.

