switching-projects
Switch the current Cursor workspace to a different project directory using the cursor-app-control MCP. Use when the user asks to switch projects, open another repo, jump to a different codebase, or move to a worktree.
How do I install this agent skill?
npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill switching-projectsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides instructions for switching between project workspaces using built-in editor tools and is safe to use.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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
-
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.
-
Switch the workspace — call the
cursor-app-controlMCP 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.
-
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 statusto show the current branch and state. - List the top-level directory structure.
- Read the project's
Creating a New Project
If the user wants to start a new project and switch to it:
- Call
create_projectwith the desired path — this creates the directory and initializes a git repo. - Call
move_agent_to_rootto switch into it. - Begin scaffolding.
Notes
- This only works if the
cursor-app-controlMCP 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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/spencerpauly/awesome-cursor-skills/switching-projects">View switching-projects on skillZs</a>