writing-for-llms

编写SKILL.md、.claude/commands/*.md、任务工具提示、系统提示变量、提示模板、少样本示例、代理指令。内容以LLM为读者。

📖 中文导读:编写SKILL.md、.claude/commands/*.md、任务工具提示、系统提示变量、提示模板、少样本示例、代理指令。内容以LLM为读者。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: writing-for-llms

prettier-ignore

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

Apply the full prompt engineering standards from @.cursor/rules/prompt-engineering.mdc

- 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 Before finalizing: - No anti-patterns shown anywhere - All examples structurally consistent - Goals clear, process not over-prescribed - Terminology consistent - Critical info front-loaded