lore

A project-memory skill that maintains five files in docs/lore/: current state, roadmap, decisions, lessons, and journal.

In plain words
What is it for?
It records what works and remains, planned steps, reasons for technical choices, known traps, abandoned paths, and dated work history.
Why use it?
It prevents each new coding session from rereading the whole codebase or repeating approaches that already failed.

Skill for Claude CodeCodex

Part of the lore plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sh008/claude-lore/lore
Any agent
npx skills add sh008/claude-lore --skill lore
Clone the repo
git clone --depth 1 https://github.com/sh008/claude-lore

Made for: Claude Code, Codex.

Or install lore, the plugin that ships this one along with the rest of its 1 skill.

Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,780 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00155 $0.01780
Opus 5 $0.00077 $0.00890
Sonnet 5 $0.00031 $0.00356
Haiku 4.5 $0.00015 $0.00178

Measured 3d ago against content hash 4a16c8ae55c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lore scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lore/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lore

A project's real knowledge is not in its code. Code shows what exists; it never shows what was tried and abandoned, why one approach beat another, or which trap costs an hour every time someone forgets it. Without that record, every new session re-derives it — usually by re-reading the whole repo, sometimes by repeating a mistake that was already paid for once.

This skill maintains that record as five files under docs/lore/, and defines when to read each and when to write to it.

The files

File Holds Read when
STATE.md Current status: what works, what's mid-flight, active blockers, next steps. The entry point. Every session start — always, fully
ROADMAP.md Phased progress path with checkboxes. Where the project is going. Session start; when picking the next task
DECISIONS.md Dated decisions: what was chosen, why, what was rejected. Before changing anything architectural; when asked "why is it like this?"
LEARNINGS.md Traps, failed approaches, dead ends. Each entry has a Trigger: line. Grep before touching an area — see below
JOURNAL.md Append-only dated work log. Raw history. Rarely — only to reconstruct a specific past session

Size discipline: STATE.md stays under ~150 lines. It is the only file read in full every session, so it must describe the present, not accumulate history. When something in it becomes past tense, move it: a finished task → JOURNAL.md, a resolved choice → DECISIONS.md, a paid-for mistake → LEARNINGS.md. STATE.md is a dashboard, not an archive.

Mode 1 — Session start (resume)

Trigger: a session begins on a project containing docs/lore/, or the user says continue / resume / "where were we".

  1. Read docs/lore/STATE.md and docs/lore/ROADMAP.md in full. That is the context load — do not fan out and read the codebase to rebuild context. The point of the lore is to make that unnecessary.
  2. Grep LEARNINGS.md for the area about to be touched:
    grep -i -A6 "<area keyword>" docs/lore/LEARNINGS.md
    
    Every entry carries a Trigger: line naming the files or subsystems it applies to, so grep against a filename, module, or tool name.
  3. Open only the specific files the task needs.
  4. Tell the user briefly, in their language, where things stand and what the next step is per STATE.md — then wait or proceed as they asked.

Read the full file on GitHub · 90 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 90 lines · 155 tokens per session scan A 4a16c8ae55c5

Subscribe to this mod's changes

lore is a skill published in the GitHub repository sh008/claude-lore (6 stars, last pushed 1mo ago), licensed MIT. It adds 155 tokens to every session and 1,780 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

kn-research

Use when you need to understand existing code, find patterns, search project knowledge, investigate current external facts, or explore a large codebase before implementation.

knowns-dev/knowns · 33 tokens

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

mnemo-cortex

Installs and wires Mnemo Cortex (local-first persistent memory) into OpenClaw and other MCP-capable agents. Use for cross-session recall, decision history, or multi-agent shared memory.

GuyMannDude/mnemo-cortex · 44 tokens

alive:save

The human wants to checkpoint. Or: the stash has grown heavy — 5+ items, 30+ minutes, a natural pause in the work. The squirrel doesn't decide when to save. It surfaces the need and lets the human pull the trigger. Runs the full save protocol: confirms stash, writes log, updates state, generates projections…

alivecontext/alive · 78 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens