Prompt engineering standards and context engineering principles for AI agents based on Anthropic best practices. Covers clarity, structure, progressive discovery, and optimization for signal-to-noise ratio.
npx playbooks add skill danielmiessler/paiplugin --skill prompting
Context engineering = Curating optimal set of tokens during LLM inference
Primary Goal: Find smallest possible set of high-signal tokens that maximize desired outcomes
Use clear semantic sections:
✅ Good: "Validate input before processing"
❌ Bad: "You should always make sure to validate..."
✅ Good: "Use calculate_tax tool with amount and jurisdiction"
❌ Bad: "You might want to consider using..."
✅ Good: Bulleted constraints
❌ Bad: Paragraph of requirements
Don't load full data dumps - use references and load when needed
Persist important info outside context window
Delegate subtasks to specialized agents with minimal context
❌ Verbose explanations
❌ Historical context dumping
❌ Overlapping tool definitions
❌ Premature information loading
❌ Vague instructions ("might", "could", "should")
For full standards: read ${PAI_DIR}/skills/prompting/CLAUDE.md
Anthropic's "Effective Context Engineering for AI Agents"
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.