$npx skillfedfor your agent

code-transfer

Code Transfer handles moving code blocks between files with exact line-number control. Choose between basic mode for small operations or execution mode for batch transfers across many files. Perfect for reorganizing functions, extracting classes, or inserting code at specific locations.

Code Transfer moves code blocks between files with precise line-number control for reorganizing functions, classes, and code sections.

AI-generated summary based on this skill's SKILL.md

657 91 Apache-2.0updated by mhattingpete

Decision gist · record as of 2026-07-25

Code Transfer moves code blocks between files with precise line-number control for reorganizing functions, classes, and code sections. Code Transfer handles moving code blocks between files with exact line-number control. Choose between basic mode for small operations or execution mode for batch transfers across many files. Perfect for reorganizing functions, extracting classes, or inserting code at specific locations.

manual: git clone https://github.com/mhattingpete/claude-skills-marketplace → cp -r claude-skills-marketplace/code-operations-plugin/skills/code-transfer ~/.claude/skills/code-transfer
code-operations-plugin/skills/code-transfer/SKILL.md · version c8216811

Use it when

  • Yes, Code Transfer specializes in moving functions to different files.
  • Code Transfer offers two operational modes.

Verify before relying

Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

mhattingpete/claude-skills-marketplace/code-transfer · repository language: HTML

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does Code Transfer copy code from one file to another?

Code Transfer enables precise code copying between files using line-number control. You specify the source file, target file, and exact line ranges to copy. The skill handles the transfer while preserving formatting and structure, making it ideal for moving functions, classes, or code blocks with exact positional accuracy.

Can Code Transfer move a function to a different file?

Yes, Code Transfer specializes in moving functions to different files. You define the source location and target file, and the skill transfers the function with line precision. This is one of Code Transfer's primary use cases for modularizing code and reorganizing large codebases across multiple files efficiently.

What's the difference between basic and execution mode?

Code Transfer offers two operational modes. Basic mode handles small, individual code transfer operations between one or two files. Execution mode is designed for batch transfers across many files—ideal when you need to reorganize 10+ files or automate multiple code movements simultaneously.

How do I insert code at a specific line number?

Code Transfer lets you insert code at exact line numbers in target files. Specify the target file, the line number where insertion should occur, and the code content. The skill handles positioning precisely, whether you're inserting at line 50 or any other location in your codebase.

Can Code Transfer extract a class definition to a new file?

Absolutely. Code Transfer extracts classes to separate files for modularization. Identify the class location using line numbers, specify the new file destination, and Code Transfer handles the extraction and reorganization. This supports breaking large files into focused, maintainable modules.

Is Code Transfer suitable for batch code operations?

Yes. Code Transfer supports batch code transfer operations, making it efficient for reorganizing large codebases. When you need to move multiple code sections, functions, or classes across many files, execution mode automates these transfers at scale while maintaining line-based precision.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Code Transfer

Transfer code between files with precise line-based control. Dual-mode operation: native tools (1-10 files) or execution mode (10+ files, 90% token savings).

Operation Modes

Basic Mode (Default)

Use Read, Edit, Bash scripts for 1-10 file operations. Works immediately, no setup required.

Execution Mode (10+ files)
from api.filesystem import batch_copy
from api.code_analysis import find_functions

functions = find_functions('app.py', pattern='handle_.*')
operations = [{
    'source_file': 'app.py',
    'start_line': f['start_line'],
    'end_line': f['end_line'],
    'target_file': 'handlers.py',
    'target_line': -1
} for f in functions]
batch_copy(operations)

When to Use

  • "copy this code to [file]"
  • "move [function/class] to [file]"
  • "extract this to a new file"
  • "insert at line [number]"
  • "reorganize into separate files"

Core Operations

1.

(truncated - see the full file via the links below)

File tree — 2 files
code-operations-plugin/skills/code-transfer/SKILL.md
code-operations-plugin/skills/code-transfer/scripts/line_insert.py

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Copy or move code blocks between files with exact line control”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

code-refactor
by mhattingpete · mhattingpete/claude-skills-marketplace

Code Refactor handles systematic refactoring operations like renaming identifiers, replacing deprecated patterns, and updating method calls across your codebase. It intelligently switches to execution mode for larger jobs (10+ files), delivering significant token savings while maintaining accuracy through a safe find-analyze-execute-verify workflow.

Apache-2.0updated Jul 2026
★ 657repo stars
feature-planning
by mhattingpete · mhattingpete/claude-skills-marketplace

Feature Planning transforms vague feature requests into structured implementation roadmaps. It systematically clarifies requirements, explores your codebase for patterns, designs components, and generates discrete, sequenced tasks with file paths and dependencies. Integrates with plan-implementer to execute each task.

Apache-2.0updated Jul 2026
★ 657repo stars
test-fixing
by mhattingpete · mhattingpete/claude-skills-marketplace

test-fixing identifies all failing tests, groups them by error type and root cause, then fixes them in priority order. It handles infrastructure issues first (imports, dependencies), then API changes, then logic bugs. After each fix group passes, it moves to the next until the full suite succeeds.

Apache-2.0updated Jul 2026
★ 657repo stars
file-operations
by mhattingpete · mhattingpete/claude-skills-marketplace

File Operations retrieves detailed file metadata and statistics—including size, line counts, modification times, and content analysis—using read-only operations. Ideal for understanding file structure and gathering code metrics across projects.

Apache-2.0updated Jul 2026
★ 657repo stars
code-auditor
by mhattingpete · mhattingpete/claude-skills-marketplace

Code Auditor performs a systematic examination of your entire codebase, evaluating architecture decisions, code quality patterns, security posture, performance characteristics, test coverage, and maintainability factors. It delivers prioritized findings with specific file references and actionable recommendations, supporting focused audits on security, performance, or testing alone.

Apache-2.0updated Jul 2026
★ 657repo stars
conversation-analyzer
by mhattingpete · mhattingpete/claude-skills-marketplace

This skill scans your conversation history to surface usage trends, identify repetitive tasks ripe for automation, and pinpoint workflow inefficiencies. It categorizes requests by type, tracks project activity, detects time-of-day patterns, and flags vague or complex requests that slow you down. Analysis runs locally on your machine for privacy, delivering prioritized recommendations you can act on immediately.

Apache-2.0updated Jul 2026
★ 657repo stars

More skills timeline-creator (Apache-2.0) · dashboard-creator (Apache-2.0) · flowchart-creator (Apache-2.0) · technical-doc-creator (Apache-2.0) · architecture-diagram-creator (Apache-2.0)

Tags
file-reorganizationcode-relocationline-precisionbatch-operationscode-extractionmodular-refactoringimport-managementstructural-migration