# Writing For Llms

> Use when writing prompts, agent instructions, SKILL.md, commands, system prompts, Task tool prompts, prompt engineering, or LLM-to-LLM content

- Skill: `majiayu000/writing-for-llms` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/writing-for-llms`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/writing-for-llms/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/writing-for-llms

---


Apply the full prompt engineering standards from @rules/prompt-engineering.mdc

<key-principles>
- Show correct patterns only - never show anti-patterns, even labeled "wrong"
- State goals, not process - trust the executing model's capabilities
- Use XML tags for structure in complex prompts
- Clarity over brevity - every word that adds clarity is worth including
- Few-shot examples must follow identical structure
- Front-load critical information
- Consistent terminology throughout
</key-principles>

<quality-check>
Before finalizing:
- No anti-patterns shown anywhere
- All examples structurally consistent
- Goals clear, process not over-prescribed
- Terminology consistent
- Critical info front-loaded
</quality-check>

