cli-cursor
БесплатноБез исполняемых скриптовНе проверенCursor CLI executor for cursor-agent coding, plan/ask read-only modes and worktree-isolated cloud worker dispatch.
от MichelKerkmeester★ 40 звёзд на GitHubОб этом скилле
Cursor CLI Orchestrator - Cross-AI Task Delegation
CRITICAL — SELF-INVOCATION PROHIBITED
This skill dispatches to the Cursor CLI binary (
cursor-agent). If the agent currently reading this skill is itself running insidecursor-agent(detection signals listed inROUTER.md), the skill MUST refuse to load and return the documented error message instead of generating anycursor-agentinvocation.A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only — never self-invocation.
Orchestrate Cursor's terminal coding agent (cursor-agent) for tasks that benefit from a second AI perspective, Cursor's native model (Composer), read-only plan/ask exploration, or its unique worktree/cloud-worker/plugin surfaces.
Core Principle: Use Cursor for what it does best. Delegate, validate, integrate. The calling AI stays the conductor.
1. WHEN TO USE
Activation Triggers
- Cross-AI Validation — code review second perspective, bug detection, an independent implementation attempt.
- Composer Dispatch — tasks that specifically want Cursor's own native model (
composer-2.5/composer-2.5-fast), or the Grok (4.5/4.6/4.7) / GLM 5.2 tiers already on the enforced allowlist (see §3 Model Selection). - Read-Only Exploration —
--mode plan(read-only planning) or--mode ask(read-only Q&A) when a task wants Cursor's analysis without any file writes. - Isolated Experimentation — Cursor's native git worktree isolation (
-w/--worktree) for a change the operator wants tried in a disposable checkout, documented inreferences/cursor-tools.mdas an opt-in escape hatch, not this packet's default dispatch shape. - Specialized Generation — explicit Cursor requests naming Grok (4.5, 4.6 or 4.7) or GLM 5.2 specifically (the only non-Composer models on the enforced allowlist).
When NOT to Use
- You ARE Cursor already. If your runtime is
cursor-agent(detection signal:CURSOR_AGENT=1set,CURSOR_CONVERSATION_IDset,cursor-agentin process ancestry, or an active-session probe under~/.cursor/), this skill refuses to load. Self-invocation creates a circular dispatch loop and burns tokens for no value. - Simple, quick tasks where CLI overhead is not worth it, or tasks needing an immediate response (auth/network round-trips may delay).
- Context already loaded and understood by the current agent.
- Interactive refinement requiring the full-screen TUI (use
cursor-agentdirectly instead). - Tasks where Cursor CLI is not installed, or the account is not authenticated (
cursor-agent aboutreports "Not logged in").
2. SMART ROUTING
The hub's cli-cursor mode signal routes a Cursor CLI dispatch here when a request names cursor-agent, Composer, a Cursor plan or ask exploration, or Cursor's worktree and cloud-worker surfaces.
references/cli-reference.md and assets/prompt-quality-card.md load on every invocation; the hub ROUTER.md names the mode's first leaves.
Read ROUTER.md before selecting skill-local resources; open only the matched files.
3. HOW IT WORKS
Prerequisites
- Install with
curl https://cursor.com/install -fsS | bash(Windows:irm 'https://cursor.com/install?win32=true' | iex). - Authenticate
cli-cursorthrough Cursor account OAuth. Runcursor-agent loginand complete the browser flow. NO_OPEN_BROWSERdisables browser opening for headless hosts.- Use
CURSOR_API_KEYor--api-keyfor headless/CI auth. - Full install, auth, flag, hook, and unique-surface tables are in the ALWAYS-loaded cli-reference.md. This section keeps only the routing decisions and dispatch-critical gotchas.
Execution Ownership
This packet owns:
- user-facing routing,
- the
command -v cursor-agentavailability probe, - prompt construction, and
- the self-invocation guard.
Research and review lineages delegate process construction and execution to the already-shipped deep-loop runtime at ../../system-deep-loop/runtime/scripts/fanout-run.cjs, using executor kind cli-cursor.
That runner accepts only the research and review loop types.
For a single build or doc dispatch, use the child dispatch envelope in providers-and-models.md §5.
The runtime is the single Cursor execution adapter. Do not add a packet-local wrapper, command builder, or spawn path. Direct cursor-agent -p snippets below are operator reference and manual-testing examples; research and review lineages use the shared runtime, and a one-shot dispatch uses the child envelope.
Provider Auth Pre-Flight
MANDATORY before any first dispatch in a session. cursor-agent -p without a valid session exits 0 even on an auth failure — the exit code is never a reliable availability signal. Run this check once per session, cache the result, and re-run it only if a dispatch's output text (not its exit code) show
Установить cli-cursor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGlobGrepВложенные файлы
FAQ
Что делает скилл cli-cursor?
Cursor CLI executor for cursor-agent coding, plan/ask read-only modes and worktree-isolated cloud worker dispatch.
Как установить скилл cli-cursor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cli-cursor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic