project-directory-migration

project-directory-migration is a skill for Claude Code from terrylica/cc-skills. It costs 29 tokens per session (1,615 once invoked), scanned A, original, MIT.

A procedure for moving Claude Code project sessions and history after renaming or relocating a project directory.

In plain words
What is it for?
Use it when renaming or moving a project, recovering missing sessions, or aligning a local directory with a repository name.
Why use it?
It prevents saved conversations and project context from becoming disconnected when the folder path changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alice/projects/my-app.

Part of the devops-tools plugin — 25 skills shipped together , and of cc-skills

Good fit Use it when renaming or moving a project, recovering missing sessions, or aligning a local directory with a repository name.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add terrylica/cc-skills
Claude Code
/plugin install devops-tools

Made for: Claude Code.

Or install devops-tools, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-directory-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/project-directory-migration/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/project-directory-migration)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/project-directory-migration"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/project-directory-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-directory-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/project-directory-migration"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/project-directory-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01615
Opus 5.5 $0.00012 $0.00646
Sonnet 5.5 $0.00006 $0.00323
Haiku 4.5 $0.00003 $0.00161

Measured 2mo ago against content hash 87a9a0f0458b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-directory-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/claude-code-migrate.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/devops-tools/skills/project-directory-migration/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Directory Migration

Safely migrate Claude Code project context (sessions, memory, history) when renaming a project directory.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Renaming a project directory (e.g., my-old-name/ to my-new-name/)
  • Moving a project to a different path
  • User says "No conversations found" after a directory rename
  • Reorganizing workspace directories
  • Package rename requires matching directory name to GitHub repo name
  • Recovering sessions that became orphaned after a directory move

Interactive Workflow

Phase 1: Gather Facts

Use AskUserQuestion to collect source and target paths.

Question 1 (header: "Source"): "What is the current project directory path?"
  Options:
    - "Use current directory: $PWD" (Recommended)
    - "Specify a different path"

Question 2 (header: "Target"): "What should the new directory path be?"
  Options:
    - (User provides via "Other" free text)

Phase 2: Dry-Run Audit

Run the migration script in --dry-run mode to discover what needs migrating:

bash "<skill-scripts>/claude-code-migrate.sh" --dry-run "$OLD_PATH" "$NEW_PATH"

Present findings to user:

  • Number of session files found
  • Number of history.jsonl entries to rewrite
  • Whether auto-memory (MEMORY.md) exists
  • Environment tooling detected (uv, direnv, asdf; a leftover mise config is flagged as retired)

Phase 3: Scope and Confirm

Question 3 (header: "Scope", multiSelect: true):
  "What should be included in migration?"
  Options:
    - "Claude Code sessions + history (Recommended)"
    - "Auto-memory (MEMORY.md) (Recommended)"
    - "Backward-compatibility symlink (Recommended)"
    - "Auto-fix environment: venv recreate (Recommended)"

Question 4 (header: "Execute"):
  "Ready to migrate? The script creates a timestamped backup first."
  Options:
    - "Execute migration now (Recommended)"
    - "Export copy-paste commands for manual execution"
    - "Cancel"

Read the full file on GitHub · 183 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -1 lines 87a9a0f0458b
  2. 3mo ago First seen · 184 lines · 29 tokens per session scan A 6151485de591

Subscribe to this mod's changes

project-directory-migration is a skill published in the GitHub repository terrylica/cc-skills (5 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 1,615 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

project-directory-migration compared with skills from other repositories

project-directory-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-directory-migrationterrylica/cc-skillsSkill5todayMITA29Claude Code
agent-desktoptravisjneuman/.claudeSkill116todayMITA38Claude Code
host-sshElumenotion/GuideAntsSkill70yesterdayApache-2.0A115Claude Code, Codex
nextjs-expertfrankxai/claude-skills-librarySkill51yesterdayMITA53Claude Code
book-publishingfrankxai/claude-skills-librarySkill51yesterdayMITA44Claude Code
oci-services-expertfrankxai/claude-skills-librarySkill51yesterdayMITA43Claude Code
oracle-solution-designfrankxai/claude-skills-librarySkill51yesterdayMITA51Claude Code