link-retrieve

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

A small command-line procedure for retrieving relevant project history, source-backed notes, and earlier decisions from Link. It returns bounded context instead of loading the entire stored wiki.

In plain words
What is it for?
Checking Link health, seeding project documentation, searching for relevant context, creating a brief before longer work, and viewing bounded graph summaries or performance results.
Why use it?
It helps the agent use past project knowledge while limiting unrelated information and avoiding unnecessary exposure of sensitive values.

Skill for Claude CodeCodex

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

Good fit Checking Link health, seeding project documentation, searching for relevant context, creating a brief before longer work, and viewing bounded graph summaries or performance results.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/gowtham0992/link/link-retrieve/github.svg)](https://agentmods.dev/skills/gowtham0992/link/link-retrieve)
Your own site
<a href="https://agentmods.dev/skills/gowtham0992/link/link-retrieve"><img src="https://agentmods.dev/badge/skills/gowtham0992/link/link-retrieve/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-retrieve

Your own site · 80×15
<a href="https://agentmods.dev/skills/gowtham0992/link/link-retrieve"><img src="https://agentmods.dev/badge/skills/gowtham0992/link/link-retrieve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 484 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.00042 $0.00484
Opus 5.5 $0.00017 $0.00194
Sonnet 5.5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00048

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

Security

Grade A, and why

link-retrieve 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-retrieve/SKILL.md · 40 lines

What it actually says

Use bounded CLI commands so the agent does not dump the whole wiki into context. Load this skill proactively at the first substantive turn of a session, before project/release/debug/design work, or whenever the answer may depend on prior Link memory. In a source checkout, replace lnk with python3 link.py.

  1. If readiness is unclear, start with:
    lnk health [link-root]
    
  2. If the user is inside a project repo and Link has no project context yet, seed allowlisted source-backed context before broad searching:
    lnk seed . [link-root]
    
    This reads project docs/rule files, blocks secret-looking values, and does not create durable memories.
  3. For most questions, use a compact query packet:
    lnk query "<question or task>" [link-root] --budget micro
    
    Read recall_capsule first. Increase to --budget small, --budget medium, or --budget large only when the packet says more context is needed.
  4. Before longer work, prime from memory:
    lnk brief "<current task>" [link-root]
    
  5. For graph context, stay bounded:
    lnk graph-summary "<topic>" [link-root] --limit 40 --depth 1
    
  6. For performance checks, use:
    lnk benchmark "<topic>" [link-root] --budget small
    

Do not enumerate every page, grep raw files, or request the full graph unless the user explicitly asks for an export or exhaustive audit, or the compact packet is insufficient and tells you which follow-up to use.

Recalled memories carry confidence labels and, when the optional local semantic tier is installed, a match field: lexical, hybrid, or semantic. Treat semantic matches (paraphrase similarity, capped confidence) and weak matches as hints to verify with the user, not facts to act on.

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 · 40 lines · 42 tokens per session scan A 890211415998

Subscribe to this mod's changes

link-retrieve is a skill published in the GitHub repository gowtham0992/link (216 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 484 once invoked, about $0.0002 per session on Opus 5.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-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