project-directory-migration

project-directory-migration is a skill for Claude Code from terrylica/cc-skills. It costs 29 tokens per session (1,637 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 — 24 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 24 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,637 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.01637
Opus 5 $0.00015 $0.00818
Sonnet 5 $0.00006 $0.00327
Haiku 4.5 $0.00003 $0.00164

Measured 10d ago against content hash 6151485de591, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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 · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 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 (mise, uv, direnv, asdf)

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: mise trust, 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 · 184 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. 10d 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 (66 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 1,637 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

session-status

Analyzes current session state without any cleanup. Full mode (default): resolves the active plan file, reads plan checklist + TaskList, gathers unfinished work/issues from conversation history, and emits a /handoff-built next-session prompt. Mid-session mode (/session-status mid): a fast plain-language 'done vs…

dryvist/claude-code-plugins · 102 tokens

ship

Commit, push, create PR(s), and auto-finalize — full automation pipeline. Handles uncommitted changes and recently created PRs.

dryvist/claude-code-plugins · 30 tokens

calendar

Google Calendar integration — check schedule, create events, daily briefings, proactive reminders. Triggers on "what's on my calendar", "add to calendar", "schedule a meeting", "when am I free", "daily briefing", or any calendar-related request.

k1p1l0/claude-telegram-supercharged · 55 tokens

native-first

Stack-agnostic discovery playbook for finding the native, non-custom way to do something before writing any script or wrapper. Use when tempted to write a shell/python/glue script, add a dependency, or build a custom helper — and whenever a script-guards hook blocks a script write. Climbs a fixed ladder (tool's own…

dryvist/claude-code-plugins · 117 tokens

configure

Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.

k1p1l0/claude-telegram-supercharged · 56 tokens

github-release-management

GitHub release orchestration — automated versioning, testing, deployment, and rollback. Use when cutting a release, tagging a version, drafting release notes, or coordinating a deploy/rollback workflow.

frankxai/claude-skills-library · 43 tokens