# Link Retrieve

> Use before answering work that may depend on user memory, project history, source-backed notes, or prior decisions; retrieve compact Link context through the CLI without loading the whole wiki or requiring MCP. Use when this capability is needed.

- Skill: `tomevault-io/link-retrieve` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/link-retrieve`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/link-retrieve/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/link-retrieve

---


# Link Retrieve

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:
   ```bash
   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:
   ```bash
   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:
   ```bash
   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:
   ```bash
   lnk brief "<current task>" [link-root]
   ```
5. For graph context, stay bounded:
   ```bash
   lnk graph-summary "<topic>" [link-root] --limit 40 --depth 1
   ```
6. For performance checks, use:
   ```bash
   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.

---
> Source: [gowtham0992/link](https://github.com/gowtham0992/link) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-07-04 -->

