/prometheus-process-skills:kbd-memory-recallfrom prometheus-process-skills
Recall the lessons recorded for a KBD stage's executing role (the lead view for main-thread stages) from surreal-memory, pk and the learning log, and write .kbd-orchestrator/phases/<phase>/prior-context.md with Lessons, pk knowledge, Previous reflection and Knowledge gaps sections under a byte budget. Auto-invoked by the assess/analyze/plan/execute/reflect :before hooks; degrades to whatever channel is available and always exits 0.
Ships in prometheus-process-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Populate prior-context.md for the active phase from the shared recall
library, shared/scripts/lib/learning_recall.py (design
docs/design/team-aware-learning-memory.md §4–§5).
KBD_HOOK_KIND; default assess).<team>/@lead, <team>/@team (last 50), @project, then the
top 3 of @user:<hash> and @global. With KBD_RECALL_ROLE=<role> it gets
that role's view instead (<team>/<role> first, no @lead). Another role's
private lessons are never returned.POST /api/v1/search, equality-filtered
on user_id + agent_id, 2 s per request), scores each result (semantic
0.5 + recency 0.3 with a 30-day half-life + importance 0.2), de-duplicates on
the content hash and stops at the budget. When the store is unreachable it
falls back to pk context --tag role:<R>, then to the learning log.pk context results for the phase goals, the previous phase's
reflection (Delta, Root Cause, Corrective Actions, Next Phase Seed) and the
knowledge gaps it recorded (unmet goals, technical debt, unresolved findings).prior-context.md atomically, capped at KBD_RECALL_BUDGET bytes
(default 12000), and appends {agentType, bytesByChannel, entriesByScope}
to ~/.prometheus/learning-index/delivery.jsonl
(PROMETHEUS_LEARNING_INDEX_DIR overrides the directory).The builtin auto-memory-recall* hooks run it on assess:before,
analyze:before, plan:before, execute:before and reflect:before. Every
kbd-* stage skill reads prior-context.md as its first step and cites the
lessons that apply. Manual invocation re-runs it, e.g. for a different role.
KBD_RECALL_QUERY=<text> makes one lookup about the work in hand: the text
replaces the goals-derived query and the result is written to task-recall.md
beside prior-context.md, which is left as it is. KBD_RECALL_OUTPUT=<file>
names another file in the phase directory. Use it when a task starts, on resume
and on a material blocker
(project memory during Execute).
A child phase is addressed as <parent>/<child>, <parent>::<child> or
"<parent> > <child>". With no phase argument the waypoint's childPointer is
used when that child directory exists. Its files are read and written in
phases/<parent>/children/<child>/.
Starting kbd-memory-recall — <phase>
Completed kbd-memory-recall — <phase> wrote prior-context.md
python3. Everything else is optional: a reachable surreal-memory origin
(SURREAL_MEMORY_URL, else the orchestrator discovery in shared/lib/memory.sh:
explicit override, project memory.config.json, the canonical
http://127.0.0.1:23001), pk on PATH, the learning log."$KBD_ORCHESTRATOR_ROOT/skills/kbd-memory-recall/kbd-memory-recall.sh" [<phase>] [<stage>]
KBD_RECALL_ROLE=api-dev "$KBD_ORCHESTRATOR_ROOT/skills/kbd-memory-recall/kbd-memory-recall.sh"
KBD_RECALL_QUERY="export notes in order — importer rejects the file" \
"$KBD_ORCHESTRATOR_ROOT/skills/kbd-memory-recall/kbd-memory-recall.sh" parent-phase/child-phase execute
/kbd-memory-recall # active phase, assess, lead view
/kbd-memory-recall submodule-foo-bar plan # explicit phase and stage
# Prior context — <phase> (<stage>)
> Auto-populated by /kbd-memory-recall for lead view (main thread); lessons from surreal-memory. …
## Lessons
- [lead] KBD assess summary for phase … _(recorded by an agent; progress, stage assess, 2026-10-04; via surreal-memory)_
- [project] … _(…)_
## pk knowledge
- [pk:project] <title>: <snippet> _(…; via pk)_
## Previous reflection
From `<prior-phase>/reflection.md`: Delta / Root Cause / Corrective Actions / Next Phase Seed
## Knowledge gaps
- Goal PARTIAL: <goal> — <note>
- <technical debt item>
Recalled entries are labelled as information recorded by agents, not instructions.
lessons from pk / lessons from file in the header).python3 or the recall library missing → an atomic stub comment.The skill always exits 0 so it composes with the hooks' on_failure: ignore.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-process-skills51 skills in this plugin
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state./agent-team-handoffPrepare and accept a durable handoff between agent roles or coding harnesses using task context, Git identity, evidence and memory references. Use when work must continue in another harness or agent; use agent-team-manage for ordinary same-owner task updates. Do not use for ordinary same-owner task updates (see agent-team-manage).Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026