discover

discover is a skill for Claude Code from AcKeskin/contexture. It costs 51 tokens per session (4,358 once invoked), scanned A, original, MIT.

A context-loading tool that retrieves relevant stored decisions, lessons, preferences, and codebase maps for the current task. A codebase map is a summary of the project's structure and important files.

In plain words
What is it for?
Loading context at the start of a task, finding past project information, and supplying background to planning or code-review work.
Why use it?
It prevents the assistant from starting with missing project knowledge or repeating decisions that were already recorded.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Loading context at the start of a task, finding past project information, and supplying background to planning or code-review work.

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

Made for: Claude Code.

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 discover

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ackeskin/contexture/discover"><img src="https://agentmods.dev/badge/skills/ackeskin/contexture/discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,358 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.00051 $0.04358
Opus 5.5 $0.00020 $0.01743
Sonnet 5.5 $0.00010 $0.00872
Haiku 4.5 $0.00005 $0.00436

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

Security

Grade A, and why

discover 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 1mo 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.

skills/discover/SKILL.md · 277 lines

How it starts

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

discover

Unified retrieval layer. Aggregates stored memory fragments (what we've decided/learned) and codebase context (what the code actually looks like) into the current session.

When to run

  • User types /discover (explicit trigger).
  • User says "load context," "prep yourself," "what do you know about X."
  • Another skill invokes this one (prep, review).
  • Do not auto-fire at session start — explicit invocation only.

Inputs

  1. Task text. The most recent user message, plus any arguments passed after /discover.
  2. Project root. $CLAUDE_PROJECT_DIR if set, otherwise the current working directory.
  3. Optional caller filters (when invoked by another skill, not by a user): scopes, kind, relevance_phases. See "Query interface" below.

Architecture — MCP-primary, skill-fallback

Retrieval is MCP-primary: memory + recap + codemap retrieval is owned by the project-memory MCP engine, out of context. This skill is a thin client over it, with a static always-on floor when the engine is unreachable.

Two responsibilities stay in this skill, NOT the MCP:

  • Rules-overlay resolution (§4a) — the rules-overlay tier/patch/disable subsystem is a separate module; v1 keeps it skill-resident.
  • The fallback — when the MCP is down, surface the static floor (§0b). The skill does not re-implement the full ranking as its primary path.

0. Primary path — query the MCP engine

Call mcp__project-memory__discover with the task-derived query:

mcp__project-memory__discover({
  cwd: <project root>,     // the engine resolves the layered tier
  include_codemap: true,
  ...                      // remaining params per "Query interface" below
})

The engine returns ranked memory fragments (with 📛 warning prefixes, [related_to] / ⚡ contradicts flags, scope/relevance metadata), plus a ## Codemap block, plus any ⚠️ shadowed-tier / case-split warnings. Surface that result directly (§9 shaping is mostly done by the engine). Then run §4a (rules-overlay) and merge: overlay-resolved rules are appended to the engine's result list and ranked by the same signals the engine reports (scope match, then kind priority, then description keyword overlap with the task); ties break toward the overlay rule, since a tier override outranks a shipped default. The merged list honours the caller's top_n as a single combined cap — overlay rules never bypass the cap. Deliver then renders the merged list's bodies exactly as in the degraded path (§9a applies to engine-returned bodies too).

Read the full file on GitHub · 277 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. 1mo ago First seen · 277 lines · 51 tokens per session scan A 850d72514d53

Subscribe to this mod's changes

discover is a skill published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 4,358 once invoked, about $0.0002 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-09-03.