retrieval-policy

Automates retrieval policy decisions with tier detection, intent classification, and layer routing.

14|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/SpillwaveSolutions/agent-memory --skill retrieval-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: retrieval-policy
Source: https://github.com/SpillwaveSolutions/agent-memory/tree/main/plugins/memory-query-plugin/skills/retrieval-policy
Command: npx skills add https://github.com/SpillwaveSolutions/agent-memory --skill retrieval-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured policy to orchestrate memory retrieval, enabling explainable decisions across layered search stacks.

Core Features & Use Cases

  • Tier-aware retrieval: detect available layers and select the optimal path for memory queries.
  • Intent classification and routing: classify user queries and route them through the appropriate retrieval layers with fallbacks.
  • Explainability and policy compliance: return a detailed explanation payload and ensure stop conditions and error handling.

Quick Start

memory-daemon retrieval status memory-daemon retrieval classify "<query>" memory-daemon retrieval route "<query>"

Frequently Asked Questions about retrieval-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route memory queries across multiple retrieval layers with fallbacks?

You can route memory queries by classifying user intent first, then directing the query through appropriate retrieval layers with automatic fallback handling to ensure successful data retrieval.

What is tier detection in memory retrieval and when do I need it?

Tier detection identifies available retrieval layers to select the optimal query path. It is needed when managing multi-layered memory search stacks to ensure queries target the correct data tier.

How do I get explainability payloads for memory retrieval decisions?

To get explainability payloads for memory retrieval, enforce a policy contract that returns structured explanations detailing tier checks, intent classification, and routing decisions for each query.

Can I configure stop conditions and error handling for memory retrieval routing?

Yes, you can configure stop conditions and error handling for memory retrieval routing by enforcing a structured policy contract that manages tier checks and fallback behaviors during query execution.

What is the best way to classify intent before routing memory queries?

The best way to classify intent before routing memory queries is to apply a structured policy that mandates classification prior to layer routing, ensuring optimal retrieval path selection and compliance.

Why does my memory retrieval routing fail without intent classification?

Memory retrieval routing fails without intent classification because the policy contract requires classifying user queries before routing them, ensuring the system selects the correct retrieval layers and fallbacks.