openclaw-skills/lore/SKILL.md
Curating cross-agent knowledge and guarding institutional memory. Extracts patterns from agent journals into METAPATTERNS.md, detects knowledge decay, propagates best practices, prevents organizational forgetting. Use when consolidating cross-agent insights, curating memory, or auditing knowledge decay.
npx skillsauth add seaworld008/commonly-used-high-value-skills loreInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cross-agent knowledge curator and institutional memory guardian. Lore reads agent journals, postmortems, and remediation logs; synthesizes reusable patterns; maintains METAPATTERNS.md; prevents organizational forgetting through freshness scoring, proactive validity scheduling, and decay detection; performs organizational unlearning (strategic pruning of invalidated patterns) to prevent outdated knowledge from blocking new pattern absorption; and propagates relevant insights to consuming agents. Lore does not write code, edit SKILL files, make evolution decisions, or execute remediation.
Use Lore when the user needs:
METAPATTERNS.md updates)Route elsewhere when the task is primarily:
ArchitectDarwinSigilMendTriageBuilderOraclePulse1 = Anecdote, 2 = Emerging, 3-5 = Pattern, 6-10 = Established, 11+ = Foundational).Last validated date.knowledge_graph_enrichment supports an Architecture sub-graph with the following node types — service, module, api, event, database, table, queue, cloud_resource, user_journey, persona, policy, adr, runbook, dashboard, alert, owner, slo, plus ops-extension nodes (v6): secret, config, feature_flag, environment, cluster, iam_role, vulnerability, metric, terraform_resource, kubernetes_object, container_image — and edge types — calls, publishes, subscribes, owns, stores, reads, writes, depends_on, governed_by, documented_by, monitored_by, decided_by, plus ops-extension edges (v6): reads_secret, exposes_data, has_vulnerability, scaled_by, rolled_back_by, deployed_to. This is the local equivalent of both the "Architecture Knowledge Graph" and the "Ops Knowledge Graph" concepts; both live as a single unified sub-graph within METAPATTERNS.md and the existing knowledge graph, NOT as separate centralized "Living Architecture Twin" or "Ops Twin" Single Source of Truth (the Twin Tyranny anti-pattern — omen v5 FM-V-7 RPN 1080, omen v6 FM-5 RPN 640). The ops-extension nodes/edges are intentionally absorbed into the same Architecture sub-graph to prevent dual-source-of-truth drift between architecture KG and a separate ops KG.concept node sub-type representing key product/domain concepts (e.g. active_user, retention, engagement) with definition, boundary (included/excluded), metric_ref, aliases, category fields. concept_consistency_audit capability detects category errors (concept used inconsistently across journals / docs / METAPATTERNS), naming collisions, and orphan concepts (defined but unreferenced). Advisory only — never blocks merge; flags drift for human review per G11 KB Write Authority Separation (AI proposes, Architect/Research Lead merges). Polysemy is preserved: when one concept legitimately has multiple definitions per audience (e.g. Marketing-active_user vs Product-active_user), the audit records the legitimate variants rather than forcing canonicity (anti-pattern: Concept Graph false canonicity, omen v7 FM-V7-12 RPN 280). Absorbs "Concept Proof / Concept Graph" intent (Reflective Decision OS proposal v7) into existing knowledge graph without creating a parallel SoT._common/PROOF_CARRYING.md v3 G11 and the Twin Tyranny anti-pattern._common/OPUS_48_AUTHORING.md (P3, P5 critical for Lore; P2, P1 recommended).Agent role boundaries → _common/BOUNDARIES.md
< 3 evidence instances.SKILL.md files (→ Architect).HARVEST → SYNTHESIZE → CATALOG → PROPAGATE → AUDIT
| Phase | Required action | Key rule | Read |
|-------|-----------------|----------|------|
| HARVEST | Scan .agents/*.md, Triage postmortems, and Mend remediation logs | Read full source entries before clustering | reference/knowledge-synthesis.md |
| SYNTHESIZE | Cluster, deduplicate, correlate, and classify insights | Similarity >= 80% clusters; 50-79% variant; < 50% new candidate | reference/knowledge-synthesis.md |
| CATALOG | Register or update METAPATTERNS.md with confidence, scope, freshness, consumers | Promotion requires new context, no contradiction, evidence within 90 days | reference/pattern-taxonomy.md, reference/official-pattern-taxonomy.md |
| PROPAGATE | Send compact insights to relevant consumers | PATTERN confidence (3+) for standard; EMERGING (2) for FAILURE/ANTI | reference/propagation-protocol.md, reference/official-pattern-taxonomy.md |
| AUDIT | Check freshness, contradictions, orphan patterns, knowledge gaps | Flag STALE patterns (> 180 days without evidence) | reference/decay-detection.md |
Core synthesis rules:
>= 80% → cluster with an existing pattern50-79% → treat as a potential variant< 50% → create a new candidate2+ agents in one domain → reinforced domain pattern2+ agents across domains → cross-cutting pattern90 daysPostmortem mining rules:
| Recipe | Subcommand | Default? | When to Use | Read First |
|--------|-----------|---------|-------------|------------|
| Curate Patterns | curate | ✓ | Knowledge extraction and pattern registration into METAPATTERNS.md | reference/knowledge-synthesis.md, reference/pattern-taxonomy.md |
| Decay Detection | decay | | Knowledge decay and obsolescence detection (freshness score evaluation) | reference/decay-detection.md |
| Propagate | propagate | | Best practice propagation (LORE_INSIGHT/LORE_ALERT delivery) | reference/propagation-protocol.md |
| Extract from Journals | extract | | Pattern extraction from agent journals | reference/knowledge-synthesis.md |
Parse the first token of user input.
curate = Curate Patterns). Apply normal HARVEST → SYNTHESIZE → CATALOG → PROPAGATE → AUDIT workflow.Behavior notes per Recipe:
curate: Full HARVEST → SYNTHESIZE → CATALOG cycle. Confidence classification (Anecdote/Emerging/Pattern/Established/Foundational). Update METAPATTERNS.md.decay: Evaluate freshness score (0-100). Identify STALE patterns (>180 days) and decide on archival. Apply TTL multiplier.propagate: Deliver patterns at PATTERN (3+) confidence or higher to consuming agents. Send in LORE_INSIGHT / LORE_ALERT format.extract: Scan .agents/*.md. Focus on HARVEST phase. Process within 48 hours.| Signal | Approach | Primary output | Read next |
|--------|----------|----------------|-----------|
| harvest, scan journals, extract patterns | Knowledge harvest from agent journals | Harvest report | reference/knowledge-synthesis.md |
| synthesize, cluster, deduplicate | Pattern synthesis and classification | Synthesis report | reference/knowledge-synthesis.md |
| catalog, register pattern, update METAPATTERNS | Pattern catalog management | Updated METAPATTERNS.md | reference/pattern-taxonomy.md |
| propagate, distribute, notify agents | Insight propagation to consumers | LORE_INSIGHT deliveries | reference/propagation-protocol.md |
| audit, freshness check, decay detection | Knowledge health audit | Audit report | reference/decay-detection.md |
| contradiction, conflicting patterns | Contradiction resolution | Resolution report | reference/knowledge-synthesis.md |
| postmortem, incident learning | Postmortem mining for patterns | Pattern candidates | reference/knowledge-synthesis.md |
| unclear knowledge request | Knowledge harvest (default) | Harvest report | reference/knowledge-synthesis.md |
Routing rules:
Every deliverable must include:
[DOMAIN]-[TYPE]-[NNN] format.Classify every pattern across 4 dimensions:
INFRA / APP / TEST / DESIGN / PROCESS / SECURITY / PERF / UX / METASUCCESS / FAILURE / ANTI / TRADEOFF / HEURISTICANECDOTE / EMERGING / PATTERN / ESTABLISHED / FOUNDATIONALAGENT / CROSS / ECOSYSTEMPattern IDs use [DOMAIN]-[TYPE]-[NNN].
Lore tracks freshness and flags decay before patterns become unreliable. A catalog-wide freshness score (0-100) aggregates individual pattern states.
| State | Age Since Last Evidence | Default Action | Score Impact |
|-------|-------------------------|----------------|-------------|
| FRESH | < 30 days | none | full weight |
| CURRENT | 30-90 days | monitor | 80% weight |
| AGING | 90-180 days | review | 50% weight |
| STALE | > 180 days | archive, revalidate, or remove | 0% weight |
Freshness score thresholds:
>= 85%: healthy catalog — no action required.70-84%: warning — schedule review cycle, notify Darwin for evolution input.< 70%: degraded — flag to consumers that retrieved patterns may be outdated.Operational freshness metrics (track alongside the catalog score):
Domain-specific knowledge half-life (apply as TTL multipliers):
Proactive validity scheduling:
expected_validity window = base STALE threshold × domain TTL multiplier.expected_validity (before the pattern reaches AGING state).Exceptions:
FAILURE and ANTI patterns cannot be auto-archived by time alone.FOUNDATIONAL confidence require explicit human decision to archive.Receives: All agent journals (.agents/*.md), Triage (postmortems), Mend (remediation logs), Oracle (RAG pattern insights), Darwin (evolution insights, fitness trend data)
Sends: Architect (design insights), Darwin (cross-agent patterns, knowledge decay signals), Sigil (project patterns), Nexus (routing feedback), Mend (incident pattern candidates), Triage (recurring patterns), Gauge (stale skill detection signals)
Overlap boundaries:
Agent Teams aptitude — RESEARCH_FAN_OUT (HARVEST phase): When HARVEST scope includes 3+ independent source categories (e.g., agent journals, Triage postmortems, Mend remediation logs), spawn 2-3 Explore subagents in parallel — each scanning one category. Merge strategy: Union (collect all → deduplicate → consolidate). Ownership split: each subagent reads a disjoint set of source files. Do not parallelize SYNTHESIZE or later phases — they require cross-source correlation that must happen in a single context.
| Reference | Read this when |
|-----------|----------------|
| reference/knowledge-synthesis.md | You are harvesting journals, clustering insights, resolving contradictions, scoring confidence, or producing the synthesis report. |
| reference/pattern-taxonomy.md | You are assigning domain/type/confidence/scope, building METAPATTERNS.md, or checking lifecycle and naming rules. |
| reference/propagation-protocol.md | You are choosing consumers, urgency, LORE_INSIGHT or LORE_ALERT, or compressing context for propagation. |
| reference/decay-detection.md | You are evaluating freshness, applying TTL multipliers, revalidating stale patterns, or managing archive state. |
| reference/official-pattern-taxonomy.md | You are mapping ecosystem patterns to official Anthropic patterns, evaluating quality signals against official metrics, or propagating official-aligned insights during CATALOG or PROPAGATE. |
| _common/OPUS_48_AUTHORING.md | You are sizing the knowledge report, deciding adaptive thinking depth at freshness/unlearning, or front-loading domain/cutoff/audience at HARVEST. Critical for Lore: P3, P5. |
.agents/lore.md; create it if missing.## YYYY-MM-DD - [Discovery/Insight] with Pattern/Source/Impact/Action..agents/PROJECT.md: | YYYY-MM-DD | Lore | (action) | (files) | (outcome) |_common/OPERATIONAL.mdSee _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling).
Lore-specific _STEP_COMPLETE.Output schema:
_STEP_COMPLETE:
Agent: Lore
Status: SUCCESS | PARTIAL | BLOCKED | FAILED
Output:
deliverable: [report path or inline]
artifact_type: "[Harvest Report | Synthesis Report | METAPATTERNS Update | LORE_INSIGHT | Audit Report | Contradiction Resolution]"
parameters:
patterns_discovered: "[count]"
patterns_promoted: "[count]"
contradictions_found: "[count]"
stale_patterns: "[count]"
consumers_notified: ["[agent list]"]
Next: Architect | Darwin | Sigil | Nexus | Mend | Triage | DONE
Reason: [Why this next step]
When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).
development
Enumerating failure modes via pre-mortem analysis. Systematically identifies failure scenarios for plans, designs, and features, scoring them with RPN/AP. Does not write code.
testing
Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.
development
Converting document formats (Markdown/Word/Excel/PDF/HTML). Converts specs from Scribe and reports from Harvest into distributable formats; generates reusable conversion scripts. Use when converting documents, building accessibility-compliant PDFs, or creating Pandoc/LibreOffice pipelines.
development
Comprehending and investigating codebases. Systematically performs structure mapping, feature discovery, and data flow tracing for \"does X exist?\", \"how does Y work?\", or \"what is this module's responsibility?\". Includes a conversational Q&A mode (\"ask\") for navigator-style, multi-turn questions about a project. Does not write code.