agentleFS
lossless-claudelossless-claude/lcm/.agents/skills/lcm-memory/SKILL.md

lcm-memory

Skill43 starsChanged 2 months agoMITView on GitHub

Search and store lcm memory with the lcm CLI. Use before a code task in this project, before asking the user about something a past session may have settled, and when a durable insight (decision, preference, root-cause, pattern, gotcha, solution, workflow) surfaces.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search memory before a code task in this project, and before asking the user about anything a past session may have settled.

    line 10
  2. Distinctive:

    When you act on a surfaced memory (use it to inform a decision, avoid a known pitfall, or reference it in your work), emit:

    line 35
  3. Distinctive:

    When you check a surfaced memory against current evidence, vote on it (reason is required both ways):

    line 38
  4. Distinctive:

    search returns nothing: memory may be empty.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

lcm memory

Core Rules

  • Search memory before a code task in this project, and before asking the user about anything a past session may have settled.
  • Store durable insights explicitly with lcm store, tagged with type:: one concise insight and its why per store.
  • Skip both for general programming concepts, meta tasks (run tests, build, commit, open a PR), and clarifications about a previous response.

Recall

  • lcm search: broad recall across sessions ("how was X implemented", "the decision about Y")
  • lcm grep: when you hold an exact keyword, error message or function name
  • lcm describe: check a node's metadata before expanding it
  • lcm expand: recover the detail a summary compressed away

When to Store

TagStore when
type:decisionan architectural or design choice, with the trade-off that settled it
type:preferencehow the user wants things done
type:root-causea bug cause that took effort to uncover
type:patterna codebase convention documented nowhere else
type:gotchaa non-obvious pitfall
type:solutiona non-trivial fix worth remembering
type:workflowa multi-step process that works

Tag each store with type: plus one of project: or scope:; add source: when the origin matters for trust, and priority: rarely.

When you act on a surfaced memory (use it to inform a decision, avoid a known pitfall, or reference it in your work), emit:

  • lcm store "Acted on memory <id> — <one-line how>" --tag signal:memory_used --tag memory_id:<id>

When you check a surfaced memory against current evidence, vote on it (reason is required both ways):

  • lcm store "<what confirmed it, e.g. a file, test, or command output>" --tag signal:memory_vote --tag vote:+1 --tag memory_id:<id>
  • lcm store "<what contradicts it>" --tag signal:memory_vote --tag vote:-1 --tag memory_id:<id>

"Not relevant here" is not a -1 — only a real contradiction is.

Examples

  • lcm search "How is authentication implemented?"
  • lcm grep "createDaemon|startMcpServer" --mode regex
  • lcm describe sum_abc123def456
  • lcm expand sum_abc123def456 --depth 2
  • lcm store "Auth uses JWT with 24h expiry instead of server sessions: the API stays stateless across instances. See src/middleware/auth.ts" --tag type:decision --tag scope:security

When a command fails

  • lcm not found: npm install -g @lossless-claude/lcm
  • daemon down: lcm daemon start --detach
  • search returns nothing: memory may be empty; proceed normally
  • anything else: lcm doctor

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.