Designing Hybrid Context Layers is a skill from Agensi that addresses a structural flaw common in RAG-based agent architectures: treating every query as a simple document lookup. Most retrieval failures are not model failures — they result from mismatched retrieval strategy and query type.
The skill defines a three-layer context model. Layer 1 is a Factual Store using Vector RAG, appropriate only for single-fact or single-document point queries. Layer 2 is a Relational Store backed by a knowledge graph, designed for entity relationships, dependency chains, and multi-hop queries that require traversal across linked nodes — for example, identifying which teams own services that depend on a deprecated API. Layer 3 is a Temporal/Episodic Store using a timeline index, which handles event sequences, causal decision chains, and questions like “What decisions led to this incident?” that require timestamped structure.
The skill also delivers a query router decision tree — a concrete classification step that determines which layer handles each incoming query before any retrieval begins. This prevents silent failures such as routing relational queries through vector search, which produces degraded answers as context volume grows.
A phased implementation roadmap is included for teams migrating from RAG-only systems. The skill targets teams building AI agents over enterprise knowledge bases, architecture decision records, or incident histories where relational or causal answers are required, not just fact lookups.