kin-retrieval

kin-retrieval is a skill for Claude Code from firelock-ai/kin. It costs 63 tokens per session (960 once invoked), scanned A, original, Apache-2.0.

A repository-reading workflow that uses Kin's semantic graph, a map of code entities and their relationships, when the repository contains a .kin directory. It finds declarations, their surrounding code, callers, and related files.

In plain words
What is it for?
Finding symbols, locating code by behavior, tracing callers, and understanding where a feature is implemented.
Why use it?
It can locate the implementation of a behavior without searching every matching word or reading whole files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kin plugin — 3 skills shipped together

Good fit Finding symbols, locating code by behavior, tracing callers, and understanding where a feature is implemented.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firelock-ai/kin/kin-retrieval
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 firelock-ai/kin --skill kin-retrieval
Clone the repo
git clone --depth 1 https://github.com/firelock-ai/kin

Made for: Claude Code.

Or install kin, the plugin that ships this one along with the rest of its 3 skills.

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 kin-retrieval

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/firelock-ai/kin/kin-retrieval"><img src="https://agentmods.dev/badge/skills/firelock-ai/kin/kin-retrieval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 960 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.00063 $0.00960
Opus 5.5 $0.00025 $0.00384
Sonnet 5.5 $0.00013 $0.00192
Haiku 4.5 $0.00006 $0.00096

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

Security

Grade A, and why

kin-retrieval 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 2mo 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.

plugins/kin-claude/skills/kin-retrieval/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reading a repository through the Kin graph

Kin parses a repository into entities, relationships, changes, and provenance, and answers questions from that graph. Where grep matches strings and a file read spends context on lines you did not need, these tools return the declaration, its neighborhood, and the graph state that produced the answer.

Answer semantic questions from the graph. If the graph does not model the relevant content, report the coverage gap and the supported conversion or enrichment step needed to address it. Do not substitute grep, raw filesystem search, whole-file reads, or artifact bodies for a missing semantic answer. Import, reconcile, and materialization are separate operations, not retrieval fallbacks.

Pick the tool by what you know

You know the name. Use semantic_search. It matches parsed declarations by name, kind, and language, so it returns functions, classes, structs, traits, enums, interfaces, types, and constants rather than every line that mentions the word. Each hit carries its file path, line range, signature, and a stable entity id. Despite the name it does not rank by vector similarity, so treat it as the fast exact-ish lookup.

You only know the behavior. Use semantic_locate. It ranks code against a natural-language query using the vector index, which is the retrieval that powers kin locate. Results are semantic entities; file granularity is unavailable. It needs the running daemon and an embedded graph, and it reports its coverage in the response.

You have an entity and need to understand it. Use get_context_pack. It bundles the target with its caller and import neighborhood into one prompt-sized payload, which replaces a chain of separate reads. get_entity_source returns just the implementation body when the pack is more than you need.

You need callers. Use find_references for everything that imports, calls, or references a symbol. Use graph_neighborhood when you want the dependency structure around an entity, with direction of out for what it depends on, in for what depends on it, and both for the merged view.

Read the full file on GitHub · 77 lines

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. 2mo ago Changed · +2 lines 5db18aac953d
  2. 3mo ago First seen · 75 lines · 63 tokens per session scan A ea67201f0996

Subscribe to this mod's changes

kin-retrieval is a skill published in the GitHub repository firelock-ai/kin (68 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 960 once invoked, about $0.0003 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

kin-retrieval compared with skills from other repositories

kin-retrieval next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kin-retrievalfirelock-ai/kinSkill682mo agoApache-2.0A63Claude Code
aether-iot-queryEvanL1/AetherEdgeSkill32d agoApache-2.0A0Claude Code, Codex
aether-iotEvanL1/AetherEdgeSkill32d agoApache-2.0A68Codex
test-gatecamjac251/tool-gatesSkill53d agononeA209Claude Code
mushroomMatthewSherlin/mushroomdbSkill519d agononeA0Claude Code, Codex
reviewcamjac251/tool-gatesSkill53d agononeB251Claude Code
repomixyamadashy/repomixSkill30kyesterdayMITA58Claude Code, Codex