auto-context

auto-context is a skill for Claude Code from SkardiLabs/skardi-skills. It costs 431 tokens per session (12,017 once invoked), scanned A, original, Apache-2.0.

A tool for turning folders, tables, wikis, cloud documents, or mailbox documents into searchable information that an agent can query over HTTP.

In plain words
What is it for?
Use it to ingest existing documents or tables and provide searchable context for an agent.
Why use it?
It gives an agent one governed search source instead of making it inspect documents and services separately.

Skill for Claude Code

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

Part of the skardi plugin — 4 skills shipped together

Good fit Use it to ingest existing documents or tables and provide searchable context for an agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skardilabs/skardi-skills/auto-context
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 SkardiLabs/skardi-skills --skill auto-context
Clone the repo
git clone --depth 1 https://github.com/SkardiLabs/skardi-skills

Made for: Claude Code.

Or install skardi, the plugin that ships this one along with the rest of its 4 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 auto-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/skardilabs/skardi-skills/auto-context"><img src="https://agentmods.dev/badge/skills/skardilabs/skardi-skills/auto-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 431 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,017 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00431 $0.12017
Opus 5 $0.00216 $0.06008
Sonnet 5 $0.00086 $0.02403
Haiku 4.5 $0.00043 $0.01202

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

Security

Grade A, and why

auto-context scanned grade A with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/_diagnose.py, scripts/_platform.py, scripts/_report.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST http://localhost:8080/search-hybrid/execute \
skills/auto-context/SKILL.md · 363 lines

How it starts

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

auto_context — build searchable context an agent can query

Your job: turn a corpus into a working retrieval surface, then answer questions from it. One flow; three ways raw material comes in, two places the index can live.

A server is not optional. Since the CLI was reframed as a thin HTTP client (skardi PR #170) it holds no query engine, no data-source registration, and no local execution mode. Every path in this skill starts a skardi-server. Do not look for a CLI-only shortcut — there isn't one, and earlier versions of this skill that promised "no server, no Docker" are obsolete.

What must be new enough is the server, not the CLI. Ingest and search each do their work inside one server-side SQL statement: chunking via chunk(), embedding via candle() / gguf() / remote_embed(), and writing — one INSERT for ingest, inline embedding for vector and hybrid search. All of those UDFs are registered by skardi-server, so the only thing that matters is which features it was built with. The image that bundles them is ghcr.io/skardilabs/skardi/skardi-server-rag:0.5.0 (--features rag); the older skardi-server-embedding image does not register chunk() and breaks the rendered pipelines.

Pin the tag. Use :0.5.0, the current released version — not :latest, which moves under you, and not a build from main, which carries unreleased changes you cannot name in a bug report. This skill does not check the skardi CLI at all: it is a thin HTTP client, it is never invoked by these scripts, and its version says nothing about the server's UDFs.

Where the raw material comes from — three entries, one flow

Raw material and index storage are independent choices, and they read confusingly alike because both can involve "a database". This section is about where the source text comes from; the next section is about where the index lives. In particular: the "bring your own datastore" storage path stores the index in a new table created for that purpose — it never reads rows you already have. Reading rows you already have is this section's second entry, and it is read-only.

Read the full file on GitHub · 363 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. 2d ago Changed · +2 lines f509c0c997b8
  2. 7d ago Changed · +12 lines 45e91c9b547a
  3. 11d ago First seen · 349 lines · 431 tokens per session scan A 27cfd213cf07

Subscribe to this mod's changes

auto-context is a skill published in the GitHub repository SkardiLabs/skardi-skills (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 431 tokens to every session and 12,017 once invoked, about $0.0022 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.