link-memory

link-memory is a skill for Claude Code, Codex from gowtham0992/link. It costs 0 tokens per session (601 once invoked), scanned A, original, MIT.

A local-memory tool for proposing, saving, finding, reviewing, changing, archiving, restoring, or deleting durable project context through a command-line interface.

In plain words
What is it for?
Use it to recall project conventions, record user-approved decisions, review stored memories, and manage their lifecycle. It proposes memories first unless the user explicitly asks to save one.
Why use it?
Important decisions and preferences can otherwise be lost between work sessions. It keeps approved context available without requiring an MCP connection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to recall project conventions, record user-approved decisions, review stored memories, and manage their lifecycle. It proposes memories first unless the user explicitly asks to save one.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gowtham0992/link/link-memory
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.

Any agent
npx skills add gowtham0992/link --skill link-memory
Clone the repo
git clone --depth 1 https://github.com/gowtham0992/link

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for link-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/gowtham0992/link/link-memory/github.svg)](https://agentmods.dev/skills/gowtham0992/link/link-memory)
Your own site
<a href="https://agentmods.dev/skills/gowtham0992/link/link-memory"><img src="https://agentmods.dev/badge/skills/gowtham0992/link/link-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for link-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/gowtham0992/link/link-memory"><img src="https://agentmods.dev/badge/skills/gowtham0992/link/link-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00000 $0.00601
Opus 5.5 $0.00000 $0.00240
Sonnet 5.5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 1mo ago against content hash 3aa8ee93bd60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

link-memory 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 1mo 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/link-memory/SKILL.md · 51 lines

What it actually says

Use this skill after important user-approved decisions, preference changes, project conventions, or long work sessions that may deserve durable context. In a source checkout, replace lnk with python3 link.py. Do not silently save durable memory; propose first unless the user directly asks to remember, approves a proposal, or explicitly confirms an important decision should become durable memory.

If Link session hooks are installed for this agent, the memory brief is injected automatically at session start — skip step 1 and go straight to task-specific recall.

  1. Prime before work:

    lnk brief "<current task>" [link-root]
    
  2. Recall specific memory:

    lnk recall "<topic>" [link-root]
    
  3. End a session with proposal-only memory candidates:

    lnk session-end <session-notes-or-transcript> [link-root] --limit 3
    

    Use - as the input when piping a transcript on stdin. Show the proposals to the user; do not save durable memory until the user approves one.

  4. Save an explicit memory:

    lnk remember "<user-approved memory>" [link-root] --type note --scope user
    

    Use --project <slug> for project-scoped memory, --visibility private|project|team for sharing intent, --review-after YYYY-MM-DD for stale-risk memories, and --expires-at YYYY-MM-DD for temporary context. When a brief or recall reports a memory backlog (pending captures or reviews above threshold), offer the user a short consolidation pass:

    lnk consolidate [link-root]
    

    The plan is read-only: it groups duplicates and recurring themes and prints accept/discard/review commands. Apply an action only after the user approves it.

  5. Review and explain before trusting uncertain memory:

    lnk memory-inbox [link-root]
    lnk explain-memory <name-or-title> [link-root]
    lnk review-memory <name-or-title> [link-root]
    
  6. Change lifecycle safely:

    lnk update-memory <name-or-title> "<new text>" [link-root]
    lnk archive-memory <name-or-title> [link-root] --reason "<why>"
    lnk restore-memory <name-or-title> [link-root]
    lnk forget-memory <name-or-title> [link-root] --confirm
    

When duplicate or conflict warnings appear, prefer updating, reviewing, or archiving existing memory over creating another page.

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. 1mo ago First seen · 51 lines · 0 tokens per session scan A 3aa8ee93bd60

Subscribe to this mod's changes

link-memory is a skill published in the GitHub repository gowtham0992/link (216 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 601 tokens. 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-30.

Related

Other skills, from other repositories

second-brain

Set up a new Obsidian knowledge base with the LLM Wiki pattern. Use when the user wants to create a second brain, initialize a vault, set up a personal knowledge base, or says "onboard". Guides through an interactive wizard to configure vault name, location, domain, agent support, and tooling.

NicholasSpisak/second-brain · 68 tokens

second-brain-query

Answer questions against the knowledge base wiki. Use when the user asks a question about their collected knowledge, wants to explore connections between topics, says "what do I know about X", or wants to search their wiki.

NicholasSpisak/second-brain · 48 tokens

llmwiki

Build and use a persistent, citation-traceable knowledge wiki from documents, research papers, notes, or project documentation. Use for llmwiki projects, retrieving reusable evidence for an agent task, or compiling a corpus for repeated questions. A one-off file read or live web search does not need a wiki.

atomicstrata/llm-wiki-compiler · 66 tokens

llm-wiki

Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).

zosmaai/pi-llm-wiki · 52 tokens

kb-init

Use when setting up a new knowledge base, bootstrapping an Obsidian vault, or when user says 'init kb', 'new knowledge base', 'create kb', or 'setup vault'. Triggers on any request to initialize or scaffold a knowledge base project.

rvk7895/llm-knowledge-bases · 57 tokens

obsidian-setup-consultant

Use this skill whenever the user wants to install, configure, migrate, design, or connect Obsidian as a second brain, knowledge base, cloud-synced vault, or AI/Hermes-readable memory. It is especially important when the user asks for an Obsidian setup prompt, vault architecture, folder structure, plugin…

SikJa/hermes-obsidian-setup-consultant · 124 tokens