code-transfer

Community

Move code with precision, effortlessly reorganize.

Authormhattingpete
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually moving or inserting code blocks can be error-prone, especially when dealing with specific line numbers or large files. This Skill automates precise code transfers, simplifying refactoring and reorganization.

Core Features & Use Cases

  • Line-based Insertion: Insert code at exact line numbers, even into new or empty files.
  • Code Extraction: Easily move functions, classes, or code blocks to new or existing files.
  • Reorganization: Split large files into multiple modules with automated updates to imports.
  • Use Case: You need to move a validate_user function from auth.py to a new validators.py file. This Skill can extract the function and insert it precisely, then help update imports.

Quick Start

Extract a function using line range

Read(file_path="auth.py", offset=45, limit=15)

Insert code at a specific line number

python3 skills/code-transfer/scripts/line_insert.py src/utils.py 50 "def helper(): pass"

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: code-transfer
Download link: https://github.com/mhattingpete/claude-skills-marketplace/archive/main.zip#code-transfer

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.