move-files
БесплатноБез исполняемых скриптовНе проверенMove files using a two-phase approach that preserves Git history. Phase 1 uses mv commands only, then waits for staging. Phase 2 makes content changes…
от steveclarke★ 37 звёзд на GitHubОб этом скилле
Move Files Command
Overview
A two-phase approach for moving files that preserves git history and makes changes trackable in diffs.
The Problem
When moving files, if you copy content and write new files, git treats them as deletions + additions rather than moves. This makes it impossible to track what actually changed versus what just moved.
The Solution: Two-Phase Move
Phase 1: Move Files with mv Commands
CRITICAL RULE: Use terminal mv commands ONLY. Never copy content and write files.
mv source/path destination/path
After moving files, STOP.
Tell the user:
"Phase 1 complete. Files have been moved using
mvcommands. Please stage these moves in git, then let me know when ready for Phase 2."
Phase 2: Make Content Changes (Only After User Stages)
Only proceed after user explicitly confirms moves are staged.
Now make any necessary content changes to the moved files:
- Update path references
- Fix import statements
- Update documentation links
- Adjust configuration values
- Modify file content as needed
Why This Works
Git tracking: When you use mv and stage the move, git recognizes it as a rename/move operation. This preserves file history.
Clean diffs:
- Phase 1 diff shows: file moved from A to B (no content changes)
- Phase 2 diff shows: only the actual content modifications
Easy review: The user can verify moves are correct before any content changes happen. This makes it clear what moved versus what actually changed.
When to Use This
Use this pattern whenever:
- Moving files between directories
- Reorganizing documentation
- Refactoring code structure
- Consolidating scattered files
- Any scenario where files need to move AND have content updated
Example Usage
User says: "Move all the guides from backend/docs/ to project/guides/backend/"
Your response:
- Use
mv backend/docs/guides project/guides/backend - Verify the move succeeded
- Tell user to stage the moves
- WAIT for user confirmation
- Only then make content changes to the moved files
Key Principles
- Use
mvcommands only - Never copy and write - Stop after moves - Wait for staging
- Make content changes separately - Only after user confirms staging
- One phase at a time - Never combine moves with content changes
Установить move-files в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл move-files?
Move files using a two-phase approach that preserves Git history. Phase 1 uses mv commands only, then waits for staging. Phase 2 makes content changes separately. Use when reorganizing files and need clean, trackable diffs. Triggers on "move files", "reorganize structure", "preserve git history".
Как установить скилл move-files?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл move-files запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic