Skip to content

Effective prompting is the foundation of AI productivity. Context engineering extends this into persistent, reusable knowledge.

  1. Be VERY clear on objectives — AI can only help with well-defined goals
  2. Start with an imperative verb: “Analyze…”, “Summarize…”, “Generate…”
  3. Strip filler (“please”, “thank you”) unless contextually important
  4. End important prompts with: “If you need additional information or clarification, ask.”
  5. Iterate on results — first draft is rarely final
  6. Review first draft of prompt and improve before sending
  • Context: background information and constraints
  • Length: desired output format and length
  • Examples: sample inputs/outputs
  • Audience: who will consume the output
  • Role: persona for the AI to adopt

Role -> Context -> Goal -> Output Rules

Five principles:

  1. Go beyond your own perspective
  2. AI is better at “perspectiving” than humans
  3. Power of multiple perspectives (expertise, stakeholder, temporal, outsider, failure-mode)
  4. Importance of different perspective types
  5. Synthesize tensions between perspectives — don’t average them
  • Send same prompt to 3 models (Claude, ChatGPT, Gemini)
  • Synthesize the AI responses to extract best insights
  • Cancels out individual model weaknesses
  • “Give the agent a way to verify its work”
  • Let the agent run tests, NOT edit tests (prevents gaming)
  • “Now critique this plan. What might go wrong?”
  • “Double-check everything. What might this have broken?”
Write a step-by-step plan to implement XXX. Then tell me what edge cases I should be aware of.
Now critique this plan. What might go wrong?
Break this into subtasks and spin up sub-agents to handle them in parallel.
  • Not documentation itself — a roadmap to documentation
  • Use @path/to/file to import context dynamically
  • Keep under 100 lines; reference external docs
  • See 01_Claude Code for memory system details
  • Research how to share context between Claude and Cursor
  • CLAUDE.md + .cursorrules in same project
  • Projects feature in Claude web: cache content, doesn’t count against limits
  • Keep sessions short and focused (~40 messages or one feature)
  • Use /compact every 30-40 messages to preserve context window
  • Name sessions for easy resume
  • Clear context between unrelated tasks
  • Store reusable prompts in .prompts/ folder or KB
  • Organize by task type: coding, research, strategy, writing
  • See Prompt Library subfolder for specific templates