switching-projects — скилл для Cursor: что делает и как установить
Переключает рабочий каталог агента в Cursor на другой репозиторий прямо во время диалога. Пригодится, когда нужно перейти в соседний проект без открытия нового окна.
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a claude-codeЧто делает switching-projects
Скилл управляет рабочей директорией агента через встроенный MCP-сервер cursor-app-control. Инструмент move_agent_to_root принимает параметр rootPath и меняет активный каталог прямо в текущем диалоге. Это сразу обновляет видимое дерево файлов и рабочий каталог для последующих команд без открытия нового окна.
Сначала агент ищет целевую папку в каталогах вроде ~/projects/ или ~/code/ через команду ls, а при неясности уточняет путь у пользователя. После перехода он изучает новый проект: читает package.json и проверяет git status. Для новых задач скилл умеет вызывать инструмент create_project, который создаёт каталог и сразу инициализирует репозиторий git.
Без включённого MCP-сервера cursor-app-control скилл бесполезен. Без него переключить рабочую область не выйдет. После перехода все пути инструментов начинают отсчитываться от нового корня.
Какие задачи решает
- сменить рабочий каталог агента без открытия отдельного окна
- найти директорию нужного проекта в папках разработки через
ls - сориентироваться в новом репозитории через
git statusиpackage.json - создать каталог и инициализировать git через
create_project
Примеры запросов агенту
- Переключись на проект my-app в папке ~/projects
- Открой репозиторий бэкенда в текущем окне
- Создай новый проект service-auth и перейди в него
Как установить switching-projects
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a claude-code2Вручную: положить файлы
~/.claude/skills/switching-projects/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/switching-projects/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a codex2Вручную: положить файлы
.agents/skills/switching-projects/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a cursor2Вручную: положить файлы
.cursor/skills/switching-projects/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills switching-projects2Вручную: положить файлы
.github/skills/switching-projects/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/switching-projectsВручную: положить файлы
.devin/skills/switching-projects/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора59
Похожие
Рядом в теме «Настройка агента: память, контекст, субагенты»
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Вопросы о switching-projects
Как установить switching-projects в Cursor?
Выполните команду npx skills add spencerpauly/awesome-cursor-skills --skill switching-projects -a cursor.
Что делает switching-projects?
Скилл вызывает инструмент move_agent_to_root из MCP-сервера cursor-app-control. В результате агент меняет рабочий корень прямо в текущем диалоге, не создавая новое окно.
Что требуется для работы скилла?
В Cursor должен быть включён встроенный MCP-сервер cursor-app-control. Без него инструменты смены каталога и создания проектов недоступны.
Исходный текст
SKILL.md · CC0-1.0
---
name: switching-projects
description: 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.
---
# 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:
```bash
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.
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills