← Back to skills

Context

Retrieval grounding pattern

Ground coding decisions in repository and documentation sources before generating implementation advice.

Last reviewed Feb 25, 2026

Pattern

  1. Retrieve relevant code and docs
  2. Summarize constraints and assumptions
  3. Generate proposal with explicit citations
  4. Validate output against referenced sources

Why it matters

  • reduces hallucinated API usage
  • improves auditability of decisions
  • keeps answers aligned with real project context