Code Transfer
Line-number code insertion via a Python helper; batch mode needs uninstalled runtime
Test report
- Verdict
- Works with setup
- Score
- Tested
- Jul 21, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · dc7fba8
Fetched SKILL.md and scripts/line_insert.py (HTTP 200). Ran the script in a temp HOME/workdir: inserting a line at line 4 of a small Python file produced correct output identical to a baseline `sed` line-insert, and --backup wrote a timestamped copy. Found a real bug in the beyond-EOF path: inserting at line 20 of a 4-line file pads with the literal 2-char string \n (verified via cat -v and Python repr: '\\n\\n\\n...x = 1' on one line) instead of blank lines, so the advertised "insert at beginning/end / into new files" case is broken. Execution mode imports api.filesystem/api.code_analysis which exist under execution-runtime/ in the repo but are not installed with the skill, so the "90% token savings" claim was unverifiable.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 5/10
- Docs & honesty 3/5
What Code Transfer does
Guides Claude to move or copy code between files with line-based precision, using Read/Grep/Edit plus a line_insert.py helper that inserts code at an exact 1-based line number (something native Edit, which needs exact string matches, cannot do). Triggers on requests like "copy this function to X", "insert at line 50", or "extract this class into a new file". A separate execution mode for 10+ files imports an api.filesystem package that is not installed alongside the skill.
How to install Code Transfer
git clone --depth 1 https://github.com/mhattingpete/claude-skills-marketplace.git /tmp/code-transfer-src
mkdir -p ~/.claude/skills
cp -R /tmp/code-transfer-src/code-operations-plugin/skills/code-transfer ~/.claude/skills/code-transfer
# Basic mode works immediately: python3 ~/.claude/skills/code-transfer/scripts/line_insert.py <file> <line> "<code>" [--backup]
# NOTE: SKILL.md documents the script path as "skills/code-transfer/scripts/line_insert.py" (repo-relative), not the installed path above.
# Execution mode (the "90% token savings" / 10+ files path) imports `from api.filesystem import batch_copy`, which lives in
# /tmp/code-transfer-src/execution-runtime/api/ and is NOT copied by this install — you must wire up that runtime separately.
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Code Transfer
-
/code-transferLine-number code insertion via a Python helper; batch mode needs uninstalled runtime
It also activates on plain-language prompts like these:
-
Move this function from utils.py to helpers.py -
Extract this class into its own file -
Insert this code block at line 42 of main.js
Frequently asked questions
- Is the Code Transfer skill free?
- Yes. The skill itself is free from mhattingpete/claude-skills-marketplace. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Code Transfer work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 21, 2026. Verdict: Works with setup. Fetched SKILL.md and scripts/line_insert.py (HTTP 200). Ran the script in a temp HOME/workdir: inserting a line at line 4 of a small Python file produced correct output identical to a baseline `sed` line-insert, and --backup wrote a timestamped copy. Found a real bug in the beyond-EOF path: inserting at line 20 of a 4-line file pads with the literal 2-char string \n (verified via cat -v and Python repr: '\\n\\n\\n...x = 1' on one line) instead of blank lines, so the advertised "insert at beginning/end / into new files" case is broken. Execution mode imports api.filesystem/api.code_analysis which exist under execution-runtime/ in the repo but are not installed with the skill, so the "90% token savings" claim was unverifiable.
- What is the Code Transfer SkillProof Score?
- 7.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 5/10, docs & honesty 3/5.
- How do I install Code Transfer?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Code Transfer with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.