switching-projects

switching-projects is a skill for Claude Code, Codex from spencerpauly/awesome-cursor-skills. It costs 49 tokens per session (499 once invoked), scanned A, original, CC0-1.0.

A workspace-switching helper for Cursor, the code editor, that moves the agent to another project folder or worktree.

In plain words
What is it for?
Use it to open another repository, switch projects, or move the current conversation to a different worktree.
Why use it?
It avoids manually opening a new editor window or changing folders when you need to continue work in a different codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to open another repository, switch projects, or move the current conversation to a different worktree.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spencerpauly/awesome-cursor-skills/switching-projects
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects
Clone the repo
git clone --depth 1 https://github.com/spencerpauly/awesome-cursor-skills

Made for: Claude Code, Codex.

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 switching-projects

README.md
[![agentmods](https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/switching-projects/github.svg)](https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/switching-projects)
Your own site
<a href="https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/switching-projects"><img src="https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/switching-projects/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 switching-projects

Your own site · 80×15
<a href="https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/switching-projects"><img src="https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/switching-projects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00049 $0.00499
Opus 5 $0.00024 $0.00249
Sonnet 5 $0.00010 $0.00100
Haiku 4.5 $0.00005 $0.00050

Measured 11d ago against content hash fce32f53dc82, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

switching-projects 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 11d ago.

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.

resources/switching-projects/SKILL.md · 58 lines

What it actually says

Switch Project

Use this skill when the user wants to switch to a different project, open another codebase, or move the current conversation to a different workspace root.

How It Works

Cursor has a built-in MCP server called cursor-app-control with a tool called move_agent_to_root that changes the agent's active workspace directory. This lets you switch projects mid-conversation without opening a new window.

Steps

  1. Ask or infer the target project — if the user says "switch to my-app", search for it. Common project locations:

    • ~/Documents/development/
    • ~/projects/
    • ~/code/
    • ~/repos/

    List directories in the likely parent folder to find the project:

    ls ~/Documents/development/
    

    If ambiguous, ask the user which project they mean.

  2. Switch the workspace — call the cursor-app-control MCP tool:

    Tool: move_agent_to_root
    Arguments: { "rootPath": "/Users/<username>/Documents/development/<project-name>" }
    

    This updates the visible workspace, file tree, and default working directory for all subsequent commands.

  3. Orient in the new project — after switching, briefly describe what you see:

    • Read the project's package.json, README.md, or equivalent to understand the stack.
    • Run git status to show the current branch and state.
    • List the top-level directory structure.

Creating a New Project

If the user wants to start a new project and switch to it:

  1. Call create_project with the desired path — this creates the directory and initializes a git repo.
  2. Call move_agent_to_root to switch into it.
  3. Begin scaffolding.

Notes

  • This only works if the cursor-app-control MCP server is enabled.
  • The switch happens in the current conversation — no new window is opened.
  • All file paths in subsequent tool calls will resolve relative to the new root.
  • You can switch back to the original project the same way.
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. 11d ago First seen · 58 lines · 49 tokens per session scan A fce32f53dc82

Subscribe to this mod's changes

switching-projects is a skill published in the GitHub repository spencerpauly/awesome-cursor-skills (768 stars, last pushed 1mo ago), licensed CC0-1.0. It adds 49 tokens to every session and 499 once invoked, about $0.0002 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.