extract

extract is a skill for Claude Code from athola/claude-night-market. It costs 28 tokens per session (489 once invoked), scanned A, original, MIT.

A codebase knowledge builder that examines source files, explains their roles and logic, and stores the results in a searchable knowledge base. It can also preserve developer-written annotations.

In plain words
What is it for?
Use it to initialize or refresh the knowledge used for code-learning challenges and to report coverage gaps.
Why use it?
New contributors often need more context than the code alone provides. This creates structured explanations and links related parts of the codebase.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the gauntlet plugin — 7 skills, 6 commands, 1 agent shipped together

Good fit Use it to initialize or refresh the knowledge used for code-learning challenges and to report coverage gaps.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add athola/claude-night-market
Claude Code
/plugin install gauntlet

Made for: Claude Code.

Or install gauntlet, the plugin that ships this one along with the rest of its 7 skills, 6 commands, 1 agent.

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 extract

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/extract"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 489 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.00028 $0.00489
Opus 5 $0.00014 $0.00244
Sonnet 5 $0.00006 $0.00098
Haiku 4.5 $0.00003 $0.00049

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

Security

Grade A, and why

extract 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 7d 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/gauntlet/skills/extract/SKILL.md · 63 lines

What it actually says

Extract Codebase Knowledge

Build or rebuild the .gauntlet/knowledge.json knowledge base.

When NOT To Use

  • Tribal knowledge no parser can see (use gauntlet:curate)
  • Building the code graph (use gauntlet:graph-build)

Steps

  1. Identify target directory: use the current working directory or a user-specified path

  2. Run AST extraction: invoke the extractor script

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/extractor.py <target-dir>
    
  3. AI enrichment: for each extracted entry, enhance the detail field with natural language explanation of business logic, data flow, architectural role, and rationale

  4. Cross-reference: link related entries across modules by matching imports, shared types, and data flow paths

  5. Merge with annotations: preserve existing curated entries in .gauntlet/annotations/

  6. Save: write to .gauntlet/knowledge.json

  7. Report: show summary by category, coverage gaps, difficulty distribution

Exit Criteria

  • .gauntlet/knowledge.json exists and is valid JSON after the skill completes; entries from .gauntlet/annotations/ are merged and not overwritten
  • Report shows entry counts broken down by all 7 categories (business_logic, architecture, data_flow, api_contract, pattern, dependency, error_handling) with coverage gaps identified
  • Each extracted entry has a detail field containing a natural language explanation (not just the raw AST node name)
  • Cross-reference links between related entries are present for modules sharing imports, shared types, or data flow paths

Category Priority

  1. business_logic (weight 7)
  2. architecture (weight 6)
  3. data_flow (weight 5)
  4. api_contract (weight 4)
  5. pattern (weight 3)
  6. dependency (weight 2)
  7. error_handling (weight 1)
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. 7d ago First seen · 63 lines · 28 tokens per session scan A 825d76c7e087

Subscribe to this mod's changes

extract is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 489 once invoked, about $0.0001 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

self-improve-with-tinyfish

Enables Hermes to create new reusable skills for itself by researching live web sources with TinyFish Search and Fetch, analyzing source coverage, writing SKILL.md files, and installing them into Hermes memory. Use when the user asks Hermes to learn, teach itself, upgrade itself, or save a reusable capability.

tinyfish-io/tinyfish-cookbook · 68 tokens

mindos

MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…

GeminiLight/MindOS · 136 tokens

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

ask

Adaptive vault reader skill. Receives a natural language question, searches the vault first (Glob/Grep, entity reads, wikilink traversal), then self-assesses whether more context is needed. Escalates to /graphify for graph-level understanding or to /bedrock:teach for remote content ingestion only when the vault alone…

ccplugins/awesome-claude-code-plugins · 141 tokens

gdoc-to-markdown

Internal fetcher module for Google Docs and Sheets. Fetches content via MCP (preferred, when available), Google API with bearer token or public URL export (fallback), or browser DOM extraction via Claude in Chrome (last resort) and returns Markdown. Used by /bedrock:teach and /bedrock:sync — not intended for direct…

ccplugins/awesome-claude-code-plugins · 76 tokens

wisdom-accountability-coach

Longitudinal memory tracking, philosophy teaching, and personal accountability with compassion. Expert in pattern recognition, Stoicism/Buddhism, and growth guidance. Activate on 'accountability', 'philosophy', 'Stoicism', 'Buddhism', 'personal growth', 'commitment tracking', 'wisdom teaching'. NOT for therapy or…

curiositech/some_claude_skills · 94 tokens