Skip to content
Back to skills

Ltm

ASecurity

The LTM memory-tool contract — names, ritual, categories, phase map. USE WHEN recalling, learning, relating, or restoring memory.

  • 26 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 4, 2026
ai-agentsgoapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned October 4, 2026

npx -y skills add RohiRIK/OpenLtm --skill Ltm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ltm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ltm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rohirik-ltm/badge)](https://www.skillsdirectory.com/skills/rohirik-ltm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Ltm
description: "The LTM memory-tool contract — names, ritual, categories, phase map. USE WHEN recalling, learning, relating, or restoring memory."
---

# LTM — Memory Contract

Single source of truth for talking to long-term memory. Load it whenever you touch memory so tool names and the recall-before / learn-after ritual stay consistent.

## Tools

Plugin `ltm`, server key `memory`. In Claude Code each is called as `mcp__plugin_openltm_memory__<name>`.

| Tool | Call when |
|------|-----------|
| `recall` | Before any non-trivial task — surface prior decisions, gotchas, patterns. |
| `learn` | After a durable pattern, gotcha, or decision. |
| `context` | Session start / project switch — restore goals, decisions, gotchas. |
| `context_items` | List one type (`goal`, `decision`, `progress`, `gotcha`) for a project. |
| `graph` | Trace decision chains — pass seed IDs from `recall` to see the "why". |
| `relate` | Link two memories (`supports`, `contradicts`, `refines`, `depends_on`, `related_to`, `supersedes`). |
| `forget` | Remove a wrong or outdated memory. |
| `admin_audit` | Inspect a memory's provenance / audit trail. |

> `ltm_recall` / `ltm_learn` belong to the OpenCode and Pi adapters — not the Claude server. On Claude, use the short names above.

## Ritual

1. **Recall before** — `recall` with natural language (FTS5 + semantic fallback), not bare keywords. Project restore → `context`.
2. **Trace** — for decisions with history, `graph` from the top recall hits.
3. **Work** — grounded in what recall returned.
4. **Learn after** — `learn` durable insights; `relate` to connect them.

## Categories

`learn` takes one: **preference** (conventions/style) · **architecture** (design decisions) · **gotcha** (pitfalls) · **pattern** (reusable solutions) · **workflow** (process) · **constraint** (must-follow rules).

## Phase Map

| Phase | Before | During | After |
|-------|--------|--------|-------|
| Spec | `recall` · `context` | explore code | `learn` · `relate` |
| Plan | `recall` (main thread) | `graph` chains; optional reasoning API* | `relate` |

\* Planner has no MCP tools — main thread recalls and injects a `### Pre-Plan Context` block. Richer chains when the reasoning server runs: `GET http://localhost:7331/api/reasoning/search?q=<topic>&depth=2`.

## Examples

- Before coding → `recall "how we handle X"`, then `graph` the top hits.
- Hit a non-obvious gotcha → `learn` it (category `gotcha`, importance 4); switching project → `context <project>`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.