Command Palette

Search for a command to run...

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

lov-rename-project

БесплатноЗапускает вложенные скриптыНе проверен

在保留兼容键与运行连续性的前提下重命名项目、路径和仓库。支持明确输入与结果回读。Use to rename a project and preserve compatibility.

lovstudioот lovstudio★ 72 звезды на GitHub

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

项目改名 · Project Renamer

Triggers

Activate when

  • “在保留兼容键与运行连续性的前提下重命名项目、路径和仓库。”
  • “Rename a project and preserve compatibility.”

Do not activate when

  • 只是查询本 Skill 的说明,或请求与上述结果无关的任务;不执行实际业务操作。
  • 用户仅要预览或审查时,不进入修改、提交或发布分支。

This is a non-interactive workflow: the explicit invocation supplies the target, and the command returns a reviewable plan before any write.

Use the bundled scripts/rename_project.py instead of a blind grep/sed replacement. The command produces a machine-readable plan, classifies compatibility-sensitive references, and stages only files changed by this run.

Arguments

<new-name> is the new product or repository name. Pass --old-name when the remote name is not the product name or when a legacy alias must be handled explicitly. The default scan covers common source, configuration, and documentation text files while skipping binary files, generated directories, and lockfiles.

Use repeated --skip-dir <directory-name> arguments for project-specific generated trees that are not in the built-in skip set. The defaults include common build/cache directories plus .runtime and .codex-upstream; generated private application clones should never flood the compatibility plan.

Rename layers

A complete rename may span several independent layers. Audit all of them, but do not collapse them into one repository-wide replacement:

  1. product text and package or bundle metadata;
  2. the filesystem project root;
  3. generated/private runtime clones built from that root;
  4. host registrations such as launchers, project catalogs, IDEs, and task UIs;
  5. historical task records whose original cwd may be immutable;
  6. Git remotes and GitHub repository state.

The scanner owns the first layer. Filesystem moves, live processes, host state, and historical task compatibility require explicit migration and readback.

Workflow

1. Establish scope and baseline

Run from the project root, or pass --root:

python3 scripts/rename_project.py Ataru \
  --old-name lovcode \
  --skip-dir private-runtime \
  --report /tmp/rename-project-plan.json

The default is a read-only plan. It detects the current name from origin → package.json → directory name, records the current worktree state, and reports each match as one of:

  • would_change: ordinary product-name reference;
  • compatibility_review: path or line looks like a legacy alias, storage namespace, migration, schema, data directory, or environment contract;
  • preserved: excluded by an explicit --preserve regular expression.

Review this list before applying. Do not infer that every occurrence of the old name should disappear: a CLI alias, on-disk namespace, migration key, or environment variable may be part of the public compatibility contract.

The scanner also marks path-like old-name references such as application-data directories, Application Support paths, search-index locations, and join("<old-name>") expressions as compatibility-sensitive. This keeps a product rename separate from a storage migration.

Before any path move, also record:

  • the canonical source path and exact absent destination path;
  • processes whose executable, arguments, or cwd are inside the source root;
  • launcher metadata, project-discovery mappings, and host project registrations;
  • the current task ID, title, pin/archive state, transcript location, project ID, and recorded cwd when the host exposes them.

Do not quit a desktop app or terminate agents merely to make a rename easier. When active work depends on the old path, preserve a compatibility entry and prove the same processes remain alive after migration.

2. Apply the product rename

python3 scripts/rename_project.py Ataru \
  --old-name lovcode \
  --apply \
  --report /tmp/rename-project-result.json

The scanner handles the exact, lower-case, upper-case, and title-case variants of the old name. It writes UTF-8 text only and records before/after SHA-256 digests in the report. Existing edits in a target file stop the run unless --allow-dirty is supplied after that file has been reviewed. Unrelated dirty files remain untouched.

3. Resolve compatibility references explicitly

Keep legacy references by default. If a reviewed compatibility path should also be renamed, opt in explicitly:

python3 scripts/rename_project.py Ataru \
  --old-name lovcode \
  --include-compat \
  --preserve '(^|/)(migrations|storage|legacy)/' \
  --apply

For a narrower migration, include only reviewed compatibility paths instead of opening every legacy contract:

python3 scripts/rename_project.py Ataru \
  --old-name lovcode \
  --include-compat-path '^src-tauri/src/app/core\\.rs$' \
  --include-compat-path '^src-tauri/src/app/session_(cache|listing)\\.rs$' \
  --apply

Use this pattern when a data namespace should move from lovcode to ataru while the old CLI alias, environment variables, storage fallback, or migration keys rema

Полный SKILL.md на GitHub

Установить lov-rename-project в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

CHANGELOG.mdLICENSEREADME.mdcases/cases.jsonpricing-card.yamlreferences/skill-composition.mdreferences/user-profile.mdscripts/profile_store.pyscripts/rename_project.pyscripts/validate_skill.pyskill-card.mdskill-card.yamlskill.yaml

FAQ

Что делает скилл lov-rename-project?

在保留兼容键与运行连续性的前提下重命名项目、路径和仓库。支持明确输入与结果回读。Use to rename a project and preserve compatibility.

Как установить скилл lov-rename-project?

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

Скилл lov-rename-project запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить lov-rename-project с