Move or rename the current project folder while preserving all associated Claude Code data (session logs, memory, subagent history).
Process
Ask for the new location. If the user didn't provide one as an argument, ask:
Where should I move this project? Provide a new folder path (relative or absolute) or just a new name (keeps the same parent directory).
Resolve paths. Determine:
OLD_PATH: the current working directory (absolute)
NEW_PATH: the target — if the user gave just a name, resolve it relative to the parent of OLD_PATH
Validate that NEW_PATH does not already exist
Compute Claude data directory names. Apply the path-mangling rule documented in ~/.claude/skills/skill/references/claude-project-memory-paths.md to both OLD_PATH and NEW_PATH to derive OLD_KEY and NEW_KEY. That file is the canonical reference for the mangling rule, the cross-platform CWD recipe, and common mistakes.
Preview and confirm. Show the user what will happen:
Project folder: OLD_PATH → NEW_PATH
Claude data: ~/.claude/projects/OLD_KEY → ~/.claude/projects/NEW_KEY
Ask: "Proceed? (y/n)"
Execute on confirmation. Run these commands (the user must run them outside this session since the working directory is about to move):
Important: Claude Code must NOT be running from the project directory when the move happens. Tell the user to:
Exit this Claude session
Run the printed commands from any other directory
Open a new Claude session from the new location
Important
This skill does NOT execute the move itself — it prints the commands. Moving the working directory out from under a running session would break it.
On Windows, print both bash (mv) and PowerShell (Move-Item) variants so the user can run from either shell. On macOS / Linux, print only the bash mv form.
If ~/.claude/projects/OLD_KEY doesn't exist, skip that step (project may not have Claude data yet).
1---2name: move-project3description: Move/Rename Project4---5# Move/Rename Project67Move or rename the current project folder while preserving all associated Claude Code data (session logs, memory, subagent history).89## Process10111. **Ask for the new location.** If the user didn't provide one as an argument, ask:12 > Where should I move this project? Provide a new folder path (relative or absolute) or just a new name (keeps the same parent directory).13142. **Resolve paths.** Determine:15 - `OLD_PATH`: the current working directory (absolute)16 - `NEW_PATH`: the target — if the user gave just a name, resolve it relative to the parent of `OLD_PATH`17 - Validate that `NEW_PATH` does not already exist18193. **Compute Claude data directory names.** Apply the path-mangling rule documented in `~/.claude/skills/skill/references/claude-project-memory-paths.md` to both `OLD_PATH` and `NEW_PATH` to derive `OLD_KEY` and `NEW_KEY`. That file is the canonical reference for the mangling rule, the cross-platform CWD recipe, and common mistakes.20214. **Preview and confirm.** Show the user what will happen:22 ```23 Project folder: OLD_PATH → NEW_PATH24 Claude data: ~/.claude/projects/OLD_KEY → ~/.claude/projects/NEW_KEY25 ```26 Ask: "Proceed? (y/n)"27285. **Execute on confirmation.** Run these commands (the user must run them outside this session since the working directory is about to move):2930 Print the commands for the user to copy and run:31 ```32 mv "OLD_PATH" "NEW_PATH"33 mv "$HOME/.claude/projects/OLD_KEY" "$HOME/.claude/projects/NEW_KEY"34 ```3536 **Important:** Claude Code must NOT be running from the project directory when the move happens. Tell the user to:37 1. Exit this Claude session38 2. Run the printed commands from any other directory39 3. Open a new Claude session from the new location4041## Important42- This skill does NOT execute the move itself — it prints the commands. Moving the working directory out from under a running session would break it.43- On Windows, print both bash (`mv`) and PowerShell (`Move-Item`) variants so the user can run from either shell. On macOS / Linux, print only the bash `mv` form.44- If `~/.claude/projects/OLD_KEY` doesn't exist, skip that step (project may not have Claude data yet).
Run npx skillmds@latest add anothersava/move-project in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Move/Rename Project It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
AnotherSava (@anothersava) published this skill. Their other Agent Skills are listed on their SkillMD profile.