code-transfer

Transfer code segments between files with line-based precision using Python scripts.

1|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill code-transfer-powerfulmoves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-transfer
Source: https://github.com/POWERFULMOVES/PMOVES-BoTZ/tree/main/.claude/skills/code-transfer
Command: npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill code-transfer-powerfulmoves

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the precise movement and copying of code blocks between files, streamlining code refactoring and organization.

Core Features & Use Cases

  • Line-based code transfer: Move or copy specific lines or ranges of code.
  • Function/Class extraction: Easily extract entire functions or classes into new or existing files.
  • Automated insertion: Insert code at exact line numbers or relative to existing content.
  • Use Case: Refactor a large Python file by moving related functions into separate utility modules, ensuring all imports and dependencies are correctly updated.

Quick Start

Use the code-transfer skill to copy lines 10 through 20 from '/path/to/source.py' to line 50 in '/path/to/target.py'.

Frequently Asked Questions about code-transfer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I move specific lines of code from one file to another?

Python file manipulation enables moving exact line ranges from source files to target files, executing line-based insertion and content-relative edits for precise code block relocation.

What is the best way to extract functions during Python refactoring?

Function extraction during Python refactoring involves isolating entire code blocks and migrating them into new or existing utility modules, ensuring precise line-based code organization.

Does code migration support inserting content relative to existing code?

Yes, code migration supports both direct line insertion at exact line numbers and content-relative edits, enabling flexible code block relocation and file manipulation.

Do I need Python to automate code block relocation?

Yes, Python3 is required to execute the scripts that perform line-based code transfer, function extraction, and native file manipulation for code migration.

Can I copy a class into an existing file without overwriting content?

Yes, class migration uses direct line insertion to append extracted class code blocks at specific line numbers in existing files, preventing accidental content overwrites.

When should I not use line-based code transfer for refactoring?

Avoid line-based code transfer when refactoring requires semantic understanding of non-contiguous code blocks, as this approach relies on exact line ranges rather than logical context.