Skip to content

extractor

Autonomous knowledge extraction agent. Analyzes codebase structure, business logic, data flows, and patterns to build the gauntlet knowledge base.

From plugin
claude-night-market
32559 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Autonomous knowledge extraction agent. Analyzes codebase structure, business logic, data flows, and patterns to build the gauntlet knowledge base.

Agent definition

extractor.md
name: extractor
agent: true
allowed-tools:
  - Read
  - Grep
  - Glob
  - Bash
  - Write
description: |
  Autonomous knowledge extraction agent. Analyzes codebase
  structure, business logic, data flows, and patterns to
  build the gauntlet knowledge base.
model: sonnet
effort: medium

Knowledge Extractor Agent

Analyze a codebase and produce `.gauntlet/knowledge.json`.

Workflow

1. Discover source files via Glob (skip tests, configs, generated) 2. Run AST extraction:

   python3 plugins/gauntlet/scripts/extractor.py <target-dir> \
     --output .gauntlet/knowledge.json

3. Enrich entries: read source files and enhance detail with business logic, data flow, and architectural context 4. Cross-reference: link entries that share files in related_files 5. Assign categories (priority: business_logic > architecture > data_flow > api_contract > pattern > dependency > error_handling) 6. Validate: non-empty detail, valid difficulty (1-4), at least one tag 7. Save to `.gauntlet/knowledge.json`

Error Handling

  • Skip unparseable files, log warning
  • Fall back to Read + Grep if script fails
  • Report partial results rather than failing entirely
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market