kin-retrieval

kin-retrieval is a skill for Claude Code from firelock-ai/kin. It costs 63 tokens per session (937 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.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.svg" alt="Measured on agentmods" 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 937 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.00937
Opus 5 $0.00032 $0.00468
Sonnet 5 $0.00013 $0.00187
Haiku 4.5 $0.00006 $0.00094

Measured 8d ago against content hash ea67201f0996, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 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.

Reach for the graph first. Fall back to grep only for things the graph does not model: prose in comments, generated files, and text inside languages Kin does not parse.

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. Set granularity to entity for declarations or file for files. 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.

You need the path a value travels. Use trace_data_flow. It walks the call and data-flow chain from a focal entity and returns it as an ordered list of steps.

Read the full file on GitHub · 75 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. 8d 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 (47 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 937 once invoked, about $0.0003 per session on Opus 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

screenshot-studio

Regenerate the Pisper product screenshots under docs/shots/ against the current UI. Starts an isolated dev instance, seeds fictional demo data through the real runtime APIs, captures every referenced page at the exact 2558x1380 asset size, and replaces the files. Use only when the user asks to refresh product…

ling-kong-ran/pisper · 80 tokens

prompt-cache-optimizer

Audit and optimize Pisper system-prompt and tool-schema token overhead while preserving stable prompt-cache prefixes, permissions, and runtime behavior. Invoke only for explicit prompt or tool-context optimization work.

ling-kong-ran/pisper · 42 tokens

rust-project

Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.

majiayu000/spellbook · 43 tokens

wasm-edge-computing-expert

Expert guide for WebAssembly (WASM) and Edge Computing. Covers WASI preview 2, Spin/Fermyon, Cloudflare Workers WASM, and high-performance browser computing / Panduan ahli untuk WebAssembly (WASM) dan Edge Computing. Mencakup WASI preview 2, Spin/Fermyon, Cloudflare Workers WASM, dan komputasi performa tinggi di…

roedyrustam/vibes-plug · 91 tokens

axum

Axum Rust web framework by Tokio. Covers routing, handlers, extractors, middleware, and state. Use for ergonomic async Rust APIs. USE WHEN: user mentions "axum", "tokio web", "rust async api", "tower middleware", asks about "axum extractors", "axum state", "axum router", "rust websocket axum", "hyper server"…

claude-dev-suite/claude-dev-suite · 130 tokens

tauri-expert

Expert skill for Tauri (v2) development, Rust backend, IPC, and security / Panduan ahli untuk pengembangan Tauri v2, Rust backend, IPC, dan keamanan.

roedyrustam/vibes-plug · 43 tokens