extract-function

Community

Extract blocks into well typed testable functions

Authorberkcangumusisik
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers refactor repetitive or unclear code blocks by extracting them into named, typed functions, increasing readability and reusability.

Core Features & Use Cases

  • Analyzes a selected code block to identify inputs and outputs.
  • Generates a typed function with proper TypeScript definitions and JSDoc where applicable.
  • Replaces the original block with a call to the new function and returns updated code ready for testing.

Quick Start

Provide the target file path and the line range, and I will extract the block into a named, typed function with a test scaffold.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: extract-function
Download link: https://github.com/berkcangumusisik/claude-code-practices/archive/main.zip#extract-function

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.