cursor-agent — скилл для Claude Code: запуск и установка
Скилл для Claude Code, Codex и Cursor управляет локальным CLI cursor-agent: запускает агента в выбранном режиме и проверяет результат. Подключается к задачам сессий, рабочих деревьев и настроек CLI.
MIT 347 установок ★ 6 обновлён 2026-11-10
npx skills add prathamdby/skills --skill cursor-agent -a claude-codeЧто делает cursor-agent
Скилл проверяет доступность cursor-agent и авторизацию, собирает команду для заданной рабочей папки, запускает процесс и затем изучает статус и изменения. Для кода с правками запускаются подходящие тесты.
Режим зависит от запроса: планирование и вопросы запускаются без записи, интерактивный режим оставляет диалог пользователю. Можно выбрать модель, формат JSON, продолжить сессию или создать worktree. Процесс ожидается до выхода или заданного срока; молчание CLI само по себе не считается зависанием.
Если CLI требует входа, запуск блокируется, пока пользователь не попросил авторизацию. Без изменений в дереве должны завершаться режимы плана и вопросов; при ошибке фиксируются stderr и состояние файлов.
Какие задачи решает
- запустить локальный
cursor-agentв указанной рабочей папке - продолжить CLI-сессию по идентификатору или возобновить последнюю
- выполнить планирование или вопросы без изменения файлов
- создать worktree для параллельной работы и записать его путь
- проверить diff и запустить подходящие тесты после работы CLI
Примеры запросов агенту
- Запусти
cursor-agentв этой рабочей папке и выполни задачу: исправь обработку ошибок. - Продолжи сессию
abc123и проверь изменения и тесты. - Создай worktree для задачи по авторизации и запиши путь, который вернёт CLI.
Как установить cursor-agent
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill cursor-agent -a claude-code2Вручную: положить файлы
~/.claude/skills/cursor-agent/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/cursor-agent/
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill cursor-agent -a codex2Вручную: положить файлы
.agents/skills/cursor-agent/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill cursor-agent -a cursor2Вручную: положить файлы
.cursor/skills/cursor-agent/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install prathamdby/skills skills/engineering/cursor-agent2Вручную: положить файлы
.github/skills/cursor-agent/SKILL.md1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill cursor-agent -a gemini-cli2Командой платформы
gemini skills install https://github.com/prathamdby/skills --path skills/engineering/cursor-agentВручную: положить файлы
.devin/skills/cursor-agent/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill cursor-agent -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о cursor-agent
Как установить cursor-agent в Claude Code?
Выполните npx skills add prathamdby/skills --skill cursor-agent -a claude-code. Файл скилла находится по пути ~/.claude/skills/cursor-agent/SKILL.md.
Что делает cursor-agent?
Он управляет запуском локального CLI cursor-agent: выбирает режим и параметры по запросу, ждёт завершения, проверяет статус и diff. Для изменённого исполняемого кода запускает подходящие тесты.
Можно ли запускать cursor-agent в режиме без записи?
Да. Запрос на планирование добавляет --plan, а вопросы запускают CLI с --mode ask; оба режима обходятся без --yolo. Скилл также проверяет, что дерево файлов не изменилось.
Исходный текст
SKILL.md · MIT
--- name: cursor-agent description: > When the user wants the local cursor-agent CLI run, its installation or login changed, its connected tools changed, or a Cursor worker started. --- # Cursor Agent ## Options and boundaries Default: `cursor-agent --print --trust --yolo --workspace <abs-dir> "<prompt>"`, mode/model omitted, text output, parent wait 15m. Calling this skill authorizes that run: pass `--trust` and `--yolo` without asking. Print alone can write. "Plan" / "read-only plan" adds `--plan` and omits `--yolo`. "Ask" / "Q&A" adds `--mode ask` and omits `--yolo`. Both stay read-only, still pass `--trust`, and wait until exit. "Use <model>" adds `--model`. "Interactive" / "TUI" omits print, `--trust`, and `--yolo`; the user owns that dialog. "Resume <id>" adds `--resume`; "continue" adds `--continue`; both wait until exit and keep the same trust/yolo choice as the selected mode. "Worktree [name]" adds `--worktree [name]`; record the printed path. "JSON" / "stream-json" selects that print format. Ambiguity is `BLOCKED`. Add sandbox disabled, approve-mcps, or a worker desktop/credential flag only when the user names that control. Auto-review is explicit opt-in. Do not stop to confirm trust or yolo, and do not add those extra flags after a failure. ## 1. Resolve Fix workspace, prompt, mode, session/worktree, output, and wait. Check binary and `cursor-agent status --format json` without exposing secrets. Missing binary → follow `references/install.md`; missing auth → `BLOCKED` unless login was requested. Record `cmd | workspace | mode | session | worktree | wait | evidence | terminal`. Done when target, binary, auth, and the trust/yolo choice are fixed. ## 2. Run Build argv and quote the prompt literally. Text/json may be quiet until exit; silence is not a hang. Wait until exit or the recorded deadline; kill only this run's PID at that deadline. Nonzero exit: capture stderr, inspect the tree, report `BLOCKED`. On `Workspace Trust Required` for a print run, rerun that argv with `--trust` if it was missing. Leave a TUI on its user-owned dialog. Do not ask the user and do not add sandbox, MCP, or worker flags. For JSON/stream output, follow `references/streaming.md`. For resume, continue, or persist, follow `references/sessions.md`. For worktrees/parallel runs, follow `references/worktrees.md`. For a TUI or other command syntax, follow `references/management.md`. For login, MCP, plugins, workers, or Bedrock, apply the matching branch in `references/integrations.md`. On rejected syntax, use scoped `--help`. Done when the process exits, an intended live session is recorded, or a failure is reported. ## 3. Verify and report Inspect status and diff; CLI text is unverified. Run the narrowest covering tests for edited executable code. Plan/ask must leave the tree unchanged. Check each worktree and any integrated tree. Clean up only sessions and clean worktrees this run created unless kept; preserve shell integration, MCP, plugins, and workers. Report command, mode, session/worktree, wait, and outcome evidence. Done when each outcome is observed or blocked with evidence. Terminals: `SUCCESS`, `NO_CHANGES`, `BLOCKED`.
© prathamdby · MIT · prathamdby/skills