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.

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.

agentmods
npx agentmods add skills/ackeskin/contexture/discover
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00026 $0.02179
Sonnet 5 $0.00010 $0.00872
Haiku 4.5 $0.00005 $0.00436

Measured 2d ago against content hash 850d72514d53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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. 2d 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 1mo ago), licensed MIT. It adds 51 tokens to every session and 4,358 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-09-03.

Related

Other skills, from other repositories

log-session

Append a structured entry to the project's session log (docs/LOGS.md): what was done this session, files touched, decisions taken, and the next step — so the next session (or another person) can pick up the thread without re-reading git history. Run it before /clear, before closing Claude Code, or at any natural…

gtrabanco/agentic-workflow · 183 tokens

context-scaffold

Analyzes an existing project and generates context files (AGENTS.md, context directory, cascading structure) pre-populated with discovered information. Run once to bootstrap, then customize.

fending/context-engineering · 39 tokens

ReasoningBank with AgentDB

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

spencermarx/open-code-review · 56 tokens

AgentDB Memory Patterns

Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants.

spencermarx/open-code-review · 45 tokens

V3 Memory Unification

Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).

spencermarx/open-code-review · 51 tokens

context-upgrade

Guides transition from your current context level to the next one -- minimal to full, full to cascading, or adding skills and hooks layers. Preserves existing content.

fending/context-engineering · 37 tokens