Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Git.Move

БесплатноБез исполняемых скриптовНе проверен

Move a file or directory in the Git repo and update all references to it

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • Given a source path <SRC> and destination path <DST>, move a file or directory in the Git repo and update all references to it

Plan Only (--only_plan)

  • With --only_plan, follow .claude/skills/skill.rules.md section "Create Only a Plan with --only_plan"
  • Write the plan to git.move.<INPUT_REF>.md, then stop without executing the skill

Workflow

Validate Inputs

  • Confirm <SRC> exists in the repository
  • Confirm <DST> does not exist, to prevent accidental overwrites
  • Ensure the parent directory of <DST> exists, creating it if needed

Move the File or Directory

  • Run git mv <SRC> <DST> to preserve Git history
  • If the file is in a subrepo (e.g., helpers_root), run git mv from inside it
    • E.g., cd helpers_root && git mv <SRC> <DST> adjusting the paths accordingly

Move the Corresponding Python Tests

  • If <SRC> is a Python file with a test file (e.g., <DIR>/<FILE>.py -> <DIR>/test/test_<FILE>.py), also move the test file to the matching destination (e.g., <DST>/test/test_<FILE>.py)

Update All References

  • Search the entire repository for <SRC>:
    > grep -r -i <SRC> .
    
  • Replace each occurrence of <SRC> with <DST>
  • This includes:
    • Source code imports in Python
    • Unit test code in Python
    • Configuration files in YAML and JSON
    • Documentation in markdown and text
    • Any other plaintext files
  • Skip binary files and the .git/ directory

Summarize Changes

  • Report each file with updated references, and its replacement count
  • Flag any ambiguous matches that may need manual review

Ask for Help If Unsure How to Do

  • If the task is not perfectly clear, you MUST not perform it, but ask for clarifications
    • For a complex task, create git.move.<INPUT_REF>.md in the current dir, with 5 bullet points explaining the plan
      • <INPUT_REF> comes from <SRC>, as in .claude/skills/skill.rules.md ### Name the Output File
    • Say in that file how it was generated, with this line as the first bullet:
      - Generated by `.claude/skills/git.move/SKILL.md`
      

Verification

  • --only_plan (check only this item): the plan is in git.move.<INPUT_REF>.md in the current dir, has the Generated by line, and nothing was executed
  • If created, the output file is git.move.<INPUT_REF>.md in the current dir
  • Confirm no reference to <SRC> is left
    > grep -r -i <SRC> .
    
  • The file git.move.<INPUT_REF>.md, if created, says that it was generated by .claude/skills/git.move/SKILL.md
Полный SKILL.md на GitHub

Установить Git.Move в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Git.Move?

Move a file or directory in the Git repo and update all references to it

Как установить скилл Git.Move?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Git.Move запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Git.Move с