dr-context-pipeline-v1

Deterministic memory/context pipeline for agents: route a user message, retrieve relevant memory snippets, compress into a cited Context Pack (sources are snippet IDs), lint, and fall back safely. Prerequisite: a file-based memory layout with memory/always_on.md + topic files (works out-of-the-box with dr-memory-foundation). Use when building or standardizing agent memory, reducing prompt bloat, implementing retrieval+compression, creating a context pack, designing a memory pipeline, adding lint gates, or setting up golden regression tests for agent context.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dr-context-pipeline-v1" with this command: npx skills add daniel-refahi-ikara/dr-context-pipeline

DR Context Pipeline v1 (retrieval + compression + lint)

Use this skill to standardize how an agent loads memory into its prompt for correctness.

Prerequisites

  • A file-based memory layout that includes memory/always_on.md (policy header + topic catalog) and topic files under memory/topics/.
  • Recommended: install dr-memory-foundation (or implement an equivalent structure).

Operating procedure (default)

  1. Load the always-on policy + topic catalog (your memory/always_on.md).
  2. Route the message deterministically (task type + caps) using references/router.yml.
  3. Retrieve top relevant snippets from your memory store; emit a Retrieval Bundle JSON (see schema).
  4. Compress Retrieval Bundle → Context Pack JSON using references/compressor_prompt.txt.
    • IMPORTANT: Context Pack sources MUST be snippet IDs only (S1, S2, …).
  5. Lint the Context Pack. If lint fails, skip compression and fall back to raw retrieved snippets.
  6. Call the main reasoning model with: always-on policy header + Context Pack (+ raw snippets for high-stakes tasks) + user message.

What to read / use

  • Router + caps: references/router.yml
  • Compressor prompt: references/compressor_prompt.txt
  • Retrieval Bundle schema: references/schemas/retrieval_bundle.schema.json
  • Context Pack schema: references/schemas/context_pack.schema.json
  • Golden tests starter suite: references/tests/golden.json

Notes

  • Keep “always-on policy header” tiny (invariants only). Put everything else behind retrieval.
  • If you need deterministic snippet IDs, follow the stable ordering guidance in references/deterministic_ids.md.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

OpenViking Setup

Set up OpenViking context database for OpenClaw agents. OpenViking is an open-source context database designed specifically for AI agents with filesystem-bas...

Registry SourceRecently Updated
Automation

Clever Compact

Your OpenClaw agent forgets everything between sessions — after /new, after compaction, after overnight. Clever Compact fixes all three: injects your last st...

Registry SourceRecently Updated
3140Profile unavailable
Automation

Agent Memory Persistent Workspace Memory System

Stop your AI agent from forgetting everything between sessions. Three-tier memory architecture (long-term owner namespace / daily logs / session handoff), cr...

Registry SourceRecently Updated
960Profile unavailable
Automation

Claw Recall

Searchable conversation memory that survives context compaction. Indexes session transcripts into SQLite with full-text and semantic search so your agent can...

Registry SourceRecently Updated
1491Profile unavailable