graph-first-retrieval

graph-first-retrieval is a skill for Claude Code, Codex from mahdisanagostar/chef. It costs 0 tokens per session (49 once invoked), scanned A, original, MIT.

A retrieval rule that requires an agent to search a project's knowledge graph before reading original source files. A knowledge graph is an indexed map of information and connections between pieces of project content.

In plain words
What is it for?
Use it in projects that maintain the specified Graphify indexes, especially when locating background information before inspecting raw files.
Why use it?
Starting with the graph can provide the relevant project context faster and helps avoid unnecessary source-file searches. The rule also identifies the primary index and supporting report to consult.

Skill for Claude CodeCodex

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

Good fit Use it in projects that maintain the specified Graphify indexes, especially when locating background information before inspecting raw files.

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

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 graph-first-retrieval

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahdisanagostar/chef/graph-first-retrieval"><img src="https://agentmods.dev/badge/skills/mahdisanagostar/chef/graph-first-retrieval.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 49 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.
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.00049
Opus 5 $0.00000 $0.00024
Sonnet 5 $0.00000 $0.00010
Haiku 4.5 $0.00000 $0.00005

Measured 9d ago against content hash 4923510409fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

graph-first-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 9d 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.

adapters/codex/skills/graph-first-retrieval/SKILL.md · 12 lines

What it actually says

Graph First Retrieval

Always retrieve from graph before source.

Primary index:

knowledge-vault/Graphify/graphify-out/wiki/index.md

Secondary report:

knowledge-vault/Graphify/graphify-out/GRAPH_REPORT.md

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. 9d ago First seen · 12 lines · 0 tokens per session scan A 4923510409fc

Subscribe to this mod's changes

graph-first-retrieval is a skill published in the GitHub repository mahdisanagostar/chef (2 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 49 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-31.

Related

Other skills, from other repositories

graph-retrieval

Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

study8677/repobrain · 46 tokens

knowledge-layer

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Exposes refreshfilesystem and askfilesystem for building and querying the knowledge graph.

study8677/repobrain · 42 tokens

spring-ai-integration

Use when integrating LLMs, chat clients, embeddings, RAG pipelines, or AI agents into Spring Boot. Covers Spring AI ChatClient, prompt templates, embeddings, vector stores, and structured output. Use when user mentions Spring AI, LLM, ChatGPT, Claude, RAG, embeddings.

rrezartprebreza/spring-boot-skills · 66 tokens

neurolink-guide

Guide for using the NeuroLink SDK and CLI. Invoke when users ask how to use neurolink, integrate AI providers, add MCP tools, configure RAG, set up memory, deploy servers, or work with multimodal content. Covers SDK, CLI, providers, tools, and enterprise features.

juspay/neurolink · 65 tokens

vector-db-rag-expert

Expert guide for high-performance Vector Databases, RAG architectures, pgvector HNSW indexing, hybrid search (Dense + BM25), and semantic chunking / Panduan ahli Vector DB, arsitektur RAG, pgvector HNSW, dan hybrid search.

roedyrustam/vibes-plug · 62 tokens

qmd-mcp-skill

Use a local QMD knowledge base through UXC over MCP stdio, with daemon-backed session reuse and typed retrieval flows that avoid repeated model warmup and unnecessary query-expansion latency.

holon-run/uxc · 44 tokens