Surgical GitHub Extraction: A Claude Skill to Fetch One Function, Not the Whole Repo
A developer frustrated with Claude Code's tendency to clone entire repos when asked to "borrow an idea" has released an open-source Skill that solves the problem. The Skill, called surgical-github-extraction, instructs Claude to follow a precise workflow instead of fetching the whole repo or adding a dependency.
How It Works
The Skill is a single SKILL.md file that auto-triggers when a GitHub URL is dropped as inspiration. The rules are:
- Read the README first to understand the shape of the project.
- Pull 1–3 source files via raw URLs to see how the pattern is wired — prompts, schemas, orchestration files. Never the whole repo.
- Pin to a commit SHA, save to
/tmp(or%TEMP%on Windows). - Lift the smallest useful unit: a function, a prompt, or just the pattern.
- Rewrite in your style. Cite the source SHA.
Real Examples
- TradingAgents repo: Asked "can we use this pattern for a job-applier?" → README plus a few agent/prompt files, proposed an analogue (JobFitAnalyst + Critic arguing against). Nothing copied into the project.
- litl/backoff library: Asked to "steal the exp backoff" → fetched one file (
_wait_gen.py), extracted the 8-line generator, rewrote inline with a provenance comment. Nopip install.
Why a Skill, Not an MCP
The author chose to build this as a Claude Skill rather than an MCP server because Skills are pure discipline on tools Claude already has (WebFetch, curl, gh, Read). MCPs ship new tools; Skills ship instructions. The same shape as Anthropic's own mcp-builder — that is a Skill, not an MCP.
Installation
MIT-licensed, single file install:
mkdir -p ~/.claude/skills/surgical-github-extraction curl -fsSL https://raw.githubusercontent.com/jeet-dhandha/jd-skills/main/skills/surgical-github-extraction/SKILL.md \ -o ~/.claude/skills/surgical-github-extraction/SKILL.md
Both skills are in the jd-skills collection: github.com/jeet-dhandha/jd-skills.
A sibling skill called code-graft handles cases where a one-off snippet isn't enough but a runtime dependency is too much — it vendors only the slice of a library you use, trims the rest, and can re-sync selectively from upstream.
Who It's For
Developers using Claude Code who want precise control over how AI agents fetch and reference open-source code — without accidental git clone or dependency bloat.
📖 Read the full source: r/ClaudeAI
👀 See Also

ApexClaw: Open-Source Telegram AI Agent with 85+ Tools for Web Automation, Voice, and Email
ApexClaw is an open-source Telegram AI agent written in Go that provides 85+ built-in tools including web browsing with headless Chrome, voice note processing, Gmail integration, and shell script execution. It's self-hosted and uses the z.ai engine for reasoning.

OpenTabs: MCP Server with 100+ Plugins for Browser-Based AI Tool Access
OpenTabs is an MCP server and Chrome extension that exposes 100+ plugins with ~2,000 tools by hooking into web apps' internal APIs like Slack, Discord, and GitHub. It works with existing browser sessions, eliminating API keys and OAuth flows.

re_gent: Git for AI Coding Agents – Version Control for Agent Activity
re_gent is an open-source tool that provides version control for AI agent sessions, tracking every tool call, storing prompts and file diffs, and enabling commands like `rgt log`, `rgt blame`, and `rgt rewind` (coming soon).

Open-Source Framework Uses Claude Code CLI for Automated GitHub Repo Monitoring
A developer has open-sourced a framework that runs Claude Code CLI on a cron schedule to triage GitHub activity across multiple repositories. The tool includes state tracking, deduplication, Discord notifications, and a pre-check system that avoids API costs when nothing has changed.