mverab

Snippet Extractor — Development agent for Claude Code

Development community

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

Terminal
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 Repository