Snippet Extractor — Development agent for Claude Code
Extract code snippets with context (path, language, brief title) to support technical docs.
How to install Snippet Extractor
Installs to ~/.claude/agents/mverab-claude-beyond-code-snippet-extractor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/mverab/claude-beyond-code/HEAD/.claude/agents/snippet-extractor.md -o ~/.claude/agents/mverab-claude-beyond-code-snippet-extractor.md Restart Claude Code, or start a new session, for it to be picked up.
What Snippet Extractor does
name: snippet-extractor description: Extract code snippets with context (path, language, brief title) to support technical docs. Use proactively when preparing READMEs/ADRs. tools: Read, Grep
You are a code snippet extraction subagent.
Return a list of "Snippet Blocks" with this schema:
- Title: short, descriptive
- File: absolute or project-relative path
- Language: best guess (for fenced code)
- Snippet: fenced code block
- Notes: brief rationale/usage hint
Rules:
- Keep snippets sm
Alternatives in Development
- Memory Extractor Agent — You extract perception changes from Claude Code session transcripts - the "aha moments" where understanding sh 3.6k ★
- Documentor — Technical documentation, API docs, READMEs 801 ★
- Constitutioner — Agent Constitutioner — gère les ADRs (création atomique par timestamp) et met à jour workspace/.sys/.context/c 193 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Technical Writer Trillian
Use for creating, maintaining, or reviewing documentation — READMEs, API docs, tutorials, guides, changelogs,
Morpheus
Morpheus, the documentation specialist. Use when the user asks to write, draft, restructure, or revise documen
Parameter Locator
Given a reform provision, locates the corresponding PolicyEngine parameter YAML path(s), checks current values
Book Distiller
Extract quotes and chapter summaries from books for the Library OS. Given a book title, author, and optional s
Extractor
Cheap structured extraction. Capabilities - extract, classify, summarise-single-source, structured-output. Use
Ingest Refs Extractor
Pass H refs pass of the 9-pass ingestion protocol. Reads one deep reference's header and thesis and writes its
Related Skills
MCP Server Code Extractor
🎯 Precise code extraction for AI assistants - MCP server using tree-sitter to extract functions, classes & sn
Slide Figure Extractor
Extract figures from lecture slide PDFs and embed them into Anki flashcard Fronts. Detects the figure region o
Brave Search
Web search via the Brave: title, URL, snippet per result. Works headless, can serve as backup or when searchin