context-recall

Retrieves and ranks relevant memory episodes and patterns by goal tags before planning.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/yiwei79/root-azoth --skill context-recall-yiwei79
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context-recall
Source: https://github.com/yiwei79/root-azoth/tree/main/.opencode/skills/context-recall
Command: npx skills add https://github.com/yiwei79/root-azoth --skill context-recall-yiwei79

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? The Azoth memory system reliably writes M3 episodes and M2 patterns but has no automatic read-back path, so every session starts cold regardless of accumulated prior context. This Skill closes the write-only memory sink by surfacing relevant past lessons before planning begins. ## Core Features & Use Cases - Tag-Based Scoring: Extracts 3-5 tags from the current goal and scores M3 episodes (tag overlap, recency, reinforcement count) and M2 patterns (trigger match, reinforcements) to rank candidates. - Conflict Handling: Detects contradictions, stale lessons, and superseded items, flagging them explicitly instead of collapsing them into false consensus. - Structured Recall Output: Surfaces the top 1-3 episodes or patterns in a consistent Markdown format with status labels (active, archive, superseded, contradiction). - Use Case: Before starting a pipeline Architect stage on a memory-related feature, invoke recall to surface what prior sessions learned about the domain, avoiding repeated mistakes and duplicated design work. ## Quick Start Ask the agent to recall prior context for your current goal before starting the SURVEY phase or architect planning stage.

Frequently Asked Questions about context-recall

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

FAQPage Schema
How do I recall prior session context before planning?▼

Invoke the recall skill at session start or before the Architect stage. It extracts 3-5 tags from your goal, scores stored episodes and patterns against those tags, and returns the top 1-3 most relevant items with their lessons.

How does the memory scoring algorithm rank episodes?▼

Episodes are scored as tag overlap count times 2, plus a recency term based on days since the timestamp, plus reinforcement count times 0.5. Patterns score trigger match times 3 plus reinforcement count times 0.5, with recency breaking ties.

What happens if the patterns.yaml memory file is missing?▼

The skill skips M2 pattern scoring gracefully and proceeds with M3 episode results only. Reading patterns is permitted since governance restricts writes to M2, not reads.

How are contradictory or stale memory entries handled?▼

Contradictory items are both surfaced with the conflict flagged rather than merged. Stale or superseded items are labeled as archive context and ranked below fresher lessons, while the append-only episode log is never rewritten.

What should I do when no prior context matches my goal?▼

The skill outputs a no-prior-context notice and never forces results. To improve future recall, write episodes with 3-5 durable, reusable tags rather than ad hoc synonyms.