# Writing For Llms

> Writing SKILL.md, .claude/commands/*.md, Task tool prompts, systemPrompt variables, prompt templates, few-shot examples, agent instructions. Content where the reader is an LLM.

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

---


Apply the full prompt engineering standards from @.cursor/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>

