dr-context-pipeline
БесплатноЗапускает вложенные скриптыНе проверенDeterministic memory/context pipeline with semantic retrieval checks, compression/lint, safe fallback, and memory watchdog.
от daniel-refahi-ikara1 935 установок в других каталогахОб этом скилле
DR Context Pipeline
Use this skill to standardize how an agent loads memory into its prompt for correctness.
Prerequisites
- A file-based memory layout with
memory/always_on.mdand topic files undermemory/topics/. - Recommended: install
dr-memory-foundationor an equivalent memory layout. - For semantic retrieval assurance, OpenClaw memory search should be configured and visible through
openclaw memory status --deep --json.
Quick Install
Inspect the existing skill and local changes before installing or refreshing it; do not force an overwrite without reviewing those changes. These commands work from anywhere because they set WORKSPACE:
export WORKSPACE=${WORKSPACE:-~/.openclaw/workspace}
cd "$WORKSPACE"
clawhub install dr-context-pipeline --dir skills
python3 ./skills/dr-context-pipeline/scripts/install_pipeline.py --target "$WORKSPACE/context_pipeline"
ls -1 "$WORKSPACE/context_pipeline"
git -C "$WORKSPACE" diff -U20 AGENTS.md | cat
python3 ./skills/dr-context-pipeline/scripts/validate_pipeline.py --context-root "$WORKSPACE/context_pipeline"
python3 ./skills/dr-context-pipeline/scripts/memory_watchdog.py --freshness-minutes 240 --min-bytes 200 --require-semantic --probe-query "context pipeline embeddings semantic retrieval" --min-search-results 1
git -C "$WORKSPACE" status -sb context_pipeline AGENTS.md
echo "CONTEXT PIPELINE APPLY COMPLETE"
Paste every command's output. If any step fails or the watchdog reports GAP, stop and reply NOT EXECUTED: <reason>.
Apply To This Workspace
When the user asks to apply this skill, follow this order:
- Lay down the files:
python3 ./skills/dr-context-pipeline/scripts/install_pipeline.py --target context_pipeline - Show the tree:
ls -1 context_pipeline - Patch
AGENTS.mdwith the Context Pipeline instructions, preserving unrelated content. - Validate:
python3 ./skills/dr-context-pipeline/scripts/validate_pipeline.py --context-root context_pipeline - Run the semantic memory watchdog:
python3 ./skills/dr-context-pipeline/scripts/memory_watchdog.py --freshness-minutes 240 --min-bytes 200 --require-semantic --probe-query "context pipeline embeddings semantic retrieval" --min-search-results 1 - Show final state:
git status -sb context_pipeline AGENTS.md - Print the success banner:
echo "CONTEXT PIPELINE APPLY COMPLETE"
This flow must be idempotent. If validation or the watchdog fails, stop with NOT EXECUTED and quote the issue.
Memory Commit / Continue Workflow
- When Daniel says "memorize this" or similar, run
references/MEMORY_COMMIT.md. - When he says "let's continue" after a reset, reload
memory/now.md,memory/open-loops.md, and the relevant topic files before acting.
Trigger Gate
Every task loads the small always-on policy. The full context pipeline is required only when one or more of these are true:
- persistent memory or a prior decision is materially relevant;
- the work is complex, risky, production-facing, or otherwise depends on historical context for correctness;
- the user explicitly asks for debug, audit, tracing, receipts, or an evidence dump.
For a routine, self-contained task where persistent memory is not needed:
- record retrieval mode as
not_needed; - answer or act directly;
- do not require a Retrieval Bundle, Context Pack, lint, artifact persistence, or a pipeline-specific footer;
- do not block the task because memory tooling is unavailable.
If the agent is unsure whether history materially affects the result, retrieve the smallest relevant context. If needed history is unavailable, use fresh read-only evidence or ask one targeted question. Stop the affected action only when its correctness genuinely depends on that missing historical state.
Runtime Modes
Apply references/RUNTIME_CHECKLIST.md when the full pipeline is triggered.
Modes:
normal- compact day-to-day operationdebug- detailed sanitized Retrieval Bundle and Context Pack artifactsaudit- debug artifacts plus Receipt Ledger
Default to normal unless the user explicitly asks for debug, audit, tracing, receipts, or a full evidence dump.
Semantic Memory Contract
When persistent memory is relevant, semantic or hybrid memory search is the preferred retrieval source.
The agent must record retrieval mode internally as one of:
semantichybridfile_fallbacknot_needed
If semantic memory is unavailable, not attempted, or degraded to file/keyword retrieval:
- use file/keyword fallback when it is sufficient;
- in normal mode, mention the limitation only when it materially affects the result;
- in debug/audit mode, include the reason;
- stop only an operational check whose correctness specifically depends on
semantic recall, with
NOT EXECUTED: memory/embedding gap.
Normal footer shape:
Context: task type <type>; snippets <ids>; retrieval <semantic|hybrid|file_fallback|not_needed>; compression <succeeded|fallback>.
Notificatio
Установить dr-context-pipeline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dr-context-pipeline?
Deterministic memory/context pipeline with semantic retrieval checks, compression/lint, safe fallback, and memory watchdog.
Как установить скилл dr-context-pipeline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dr-context-pipeline запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub