repo-rename
"Preview or rename a GitHub repo, or move a local repo to another parent directory. Preserve Codex CLI and Claude Code continuity references."
от PaulRBerg★ 109 звёзд на GitHub
Установить repo-rename в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Repo Rename
If a slash or dollar invocation already added these instructions to the conversation, follow them directly. In that case, do not invoke this skill again through a skill tool.
Review the helper's complete GitHub, Git, filesystem, and agent-continuity mutation set before applying a repository rename. Keep user-facing previews and completion reports to affected surfaces and aggregate file and occurrence counts. Do not list replacement paths or per-file counts unless the user explicitly requests them.
Scope
- Rename the current GitHub repository, matching local folder, and
originURL. - With two path arguments, move the source repository to the destination without changing its name, GitHub identity, or
origin. Both paths must have the same folder name. Preview missing parent directories before creating them. - If the repository has no Git remotes, rename only local state: the folder, continuity references, and repository
content. The helper then skips the GitHub rename and the
originupdate. A repository with any remote still requires a valid GitHub context. - When the repository has an active Claude Code or Codex transcript, update literal old paths in
~/.claude/projects,~/claude/projectswhen present, and~/.codex/config.toml. - Treat Codex rollouts, archives, and SQLite state as read-only. Use active rollout metadata to find threads that can resume from the destination workspace.
- Update absolute repository paths, exact name fields, whole-line repository names or headings, and GitHub URLs for the repository. Preserve other old-name occurrences, including imports, prose, and command selectors. Exclude VCS, dependencies (including Python virtual environments), caches, and generated build directories.
- For a same-name move, replace only the old absolute repository path inside repository files.
- By default, use tracked repository files and skip
PROMPT.md,TODO.md, and symlinks before reading replacement candidates. Prune excluded directories during discovery. When the user explicitly authorizes updating notes, dependencies, caches, or generated files, pass--include-local-stateto both preview and apply. This includes those repository text files while preserving file permissions. Symlinks, binary files, and.gitremain excluded. - The helper honors
CLAUDE_CONFIG_DIRandCODEX_HOME, gates continuity updates on active transcripts, and replaces only the absolute repository path in continuity stores and Codex config. - Do not modify other transcript stores, archives, remotes, or repositories.
Workflow
Resolve the source repository from the first of two path arguments, or from the current directory for a rename. Use the helper's preview to check the continuity scope.
- For Claude Code, the helper checks for a nonempty project directory under
${CLAUDE_CONFIG_DIR:-~/.claude}/projects. - For Codex, the helper reads
session_metafrom.jsonland.jsonl.zstrollouts in${CODEX_HOME:-~/.codex}/sessions. The saved working directory must be the repository root or a subdirectory. The helper requires a valid thread ID. - If neither store has an active transcript for the repository, continue with the requested rename or move without continuity edits.
- For Claude Code, the helper checks for a nonempty project directory under
Resolve the skill directory and run the helper from the repository to produce a read-only preview. Use
uvto select Python 3.14 or later for standard library Zstandard support.uv run <skill-dir>/scripts/repo-rename.py <new-name> --dry-runFor a same-name move, run from any directory:
uv run <skill-dir>/scripts/repo-rename.py <source-path> <destination-path> --dry-runThe helper requires a clean worktree, matching GitHub repo/folder names, a free target path, and valid GitHub context. For a repository with no remotes, it requires only a clean worktree and a free target path. It reports
"local_only": trueand alocal:<old>-><new>confirmation token. It prints the old/new repo and paths, exact confirmation token, external commands, directory moves, every replacement file, occurrence counts, and rollback coverage. Same-name moves usemove:<absolute-source>-><absolute-destination>tokens. Linked worktrees and external Git directories are unsupported.If
--dry-runwas requested, summarize the preview as described below and stop. A successful dry run must not change the GitHub repo, remote, folder, config, transcripts, or repository files.Present a compact preview, then continue in the same turn unless
--dry-runwas requested. Treat the rename request as authorization for the planned mutations. Do not require a separate confirmation message. For a local-only preview, state that no GitHub ororiginchange occurs. Lead with### 🔎 Rename preview — no changes made. Summarize GitHub, source and destination folders, origin, aggregate replacement counts, and rollback cov
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
- scripts/repo-rename.py
FAQ
Что делает скилл repo-rename?
"Preview or rename a GitHub repo, or move a local repo to another parent directory. Preserve Codex CLI and Claude Code continuity references."
Как установить скилл repo-rename?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repo-rename запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…