prompting
Skill904 starsChanged 4 months agoMITView on GitHub
Guide for writing effective system prompts for LLM agents. Use when creating or editing system prompts for applications, agent configurations, or development tools.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- CarbeneAI/Forgetheir own version, first seen Apr 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- CarbeneAI/Forge★ 9same name
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 repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .deepsec/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .opencode/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- address-reviewSkill
- cli-developmentSkill
- erroreSkill
- external-electron-appsSkill
- fix-merge-conflictsSkill
- generate-specSkill
- generate-spec-v2Skill
- get-pr-reviewsSkill
- glimpse-changesSkill
- implement-specSkill
- improve-codebase-architectureSkill
- libretto-readonlySkill
- librettoSkill
- push-everythingSkill
- pushSkill
- reviewSkill
- spec-reviewSkill
- summarizeSkill
- technical-writingSkill
- turborepoSkill
- update-docsSkill
- writing-testsSkill
- libretto-readonlySkill
- librettoSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 13
Start minimal. Observe failures.
- Distinctive: line 15
Do not explain existing capabilities, list obvious practices, add preventive instructions, or repeat information.
- Distinctive: line 19
Use markdown sections and paragraphs.
- Distinctive: line 38
Use brackets for tool actions instead of showing invocations:
- Distinctive: line 58
Start minimal. Test with real inputs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompting
Philosophy
LLMs are intelligent by default. System prompts set direction and impose constraints, not explain reasoning.
Start minimal. Observe failures. Add targeted fixes. Every instruction must justify its token cost by solving a real problem.
Do not explain existing capabilities, list obvious practices, add preventive instructions, or repeat information.
Structure
Use markdown sections and paragraphs. Each section describes one behavior or constraint.
State what to do or avoid. Explain why if non-obvious. Show correct behavior with examples.
Formatting
Headings up to level 3. Plain paragraphs. No bold, italics, or emojis. Code blocks for commands. Lists only for distinct enumerable items.
Examples
Wrap examples in <example> tags with user/assistant prefixes. One pair per tag.
<example>
user: What's the capital of France?
assistant: Paris
</example>Use brackets for tool actions instead of showing invocations:
<example>
user: Find all TODO comments
assistant: [searches codebase]
Found 3 TODOs: ...
</example>Include
Behaviors the model gets wrong by default. Domain constraints. Output format requirements. Safety boundaries. Tool integrations.
Omit
Reasoning instructions. Problem-solving approaches. Common sense behaviors. Ethical guidelines. Capability descriptions.
Iteration
Start minimal. Test with real inputs. Identify failures. Add targeted fixes. Remove unnecessary instructions.
Track which instructions prevent which failures. If you cannot identify the specific problem an instruction solves, remove it.
Model-Specific Guidance
Consult references/ for model-specific patterns:
- references/claude.md - XML structure, countering sycophancy, trigger words, parallel execution
- references/gpt.md - Contradiction sensitivity, role hierarchy, verbosity control, metaprompting
- references/gemini.md - Conciseness, tool explanations, library checks, context placement
- references/codex.md - OpenAI Codex models, tool implementations, autonomy patterns, compaction
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.

