imtiazrayhan

Extract Function — Development skill for Claude Code

Development community

Extract a code region into a well-named function and update the call site.

How to install Extract Function

Installs to ~/.claude/skills/imtiazrayhan-agentscamp-library-extract-function/SKILL.md

Terminal
mkdir -p ~/.claude/skills/imtiazrayhan-agentscamp-library-extract-function && curl -fsSL https://raw.githubusercontent.com/imtiazrayhan/agentscamp-library/HEAD/commands/extract-function.md -o ~/.claude/skills/imtiazrayhan-agentscamp-library-extract-function/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Extract Function does


description: "Extract a code region into a well-named function and update the call site." argument-hint: "" allowed-tools: "Read, Grep, Glob, Edit"

Extract a region of code into a single, well-named function and replace the original code with a call to it. The result must behave exactly as before — this is a mechanical refactor, not a redesign.

Scope

Interpret `$ARGUMENTS` as the region to extract:

  • path/to/file.ts:40-72 — extract those line numbe

Alternatives in Development

  • Desloppify — Agent harness to make your slop code well-engineered and beautiful 3k ★
  • Dive — Dive is an open-source MCP Host Desktop Application that seamlessly integrates with any LLMs supporting functi 1.8k ★
  • OpenSquirrel — For people who get distracted by agents 1.3k ★

Full documentation available on GitHub

View Source Repository