What problem does it solve?
This Skill addresses the challenge of accurately moving or copying code snippets between files, especially when precise line numbers or specific code blocks are involved, which can be cumbersome with standard text editors or basic copy-paste operations.
Core Features & Use Cases
- Precise Code Movement: Transfer functions, classes, or arbitrary code blocks between files using exact line numbers or content-based identification.
- Automated Extraction: Extract specific code sections into new files or consolidate code from multiple locations.
- Use Case: When refactoring a large application, you can use this Skill to move a specific utility function from
utils.py to a new helpers.py file, ensuring all imports and dependencies are considered.
Quick Start
Use the code-transfer skill to insert the code 'print("Hello, World!")' at line 50 in the file '/app/main.py' and create a backup.