vanyangyang/cursor-bridge/cursor-delegate
Claude Code and agent skill by vanyangyang/cursor-bridge
- community
Checking that the SKILL.md file is still in the repository.
Delegate bounded light-to-medium implementation, investigation, documentation, configuration, testing, and tooling work to Cursor Bridge after the primary agent owns direction and risk boundaries. Also use when the user explicitly asks to create, keep, continue, inspect, or close the same Cursor execution session, including phrases such as '持续会话', '同一个 Cursor 会话', or 'continue the Cursor session'. Generic '继续' is not enough to reuse a session. Poll each turn compactly by task_id, then retrieve its normal terminal reply with detail=result and verify it in the primary agent. Do not use when the user opts out, cursor_do is unavailable or administrator-disabled, or for product direction, architecture decisions, exclusive GUI operations, formal verification verdicts, governance state decisions, or unbounded investigation.
Install
npx vskill@latest install vanyangyang/cursor-bridge/cursor-delegateSKILL.md
Cursor Delegate
Use Cursor as an execution partner. Keep direction, scope decisions, risk ownership, result review, and final verification with the primary agent.
Declare request_context for each call: an AI caller uses sender="model"; set source="user" for explicitly supplied user requirements, "model" for your own task/inference, or "mixed" when both appear. In mixed prompts, label user-confirmed requirements separately from your additions. Use "unknown" where provenance is unavailable; a user asking you to use Cursor does not make your authored message user-authored. These labels are declarations, not authentication or extra permission, and do not carry over to later session turns.
Bind a known workspace
For CCE or cursor_do, pass the intended absolute workspace_path when the installed tool schema supports it. Use the host-provided workspace root/current-task cwd unless the request explicitly targets another project. The field is a pre-send assertion: it never selects, switches, or registers a workspace. Do not infer the target from a repository basename or a saved default binding.
With an older schema, use cursor_status to verify the exact ready project path before sending. initialized=true only means a binding exists; it does not confirm the workspace for this request. cursor_init remains the only explicit initialization, registration, or switch operation.
On pre-send WORKSPACE_CONFIRMATION_REQUIRED, WORKSPACE_INITIALIZATION_REQUIRED, or WORKSPACE_MISMATCH with a known target, first call cursor_status. Only if it confirms idle, no queued or blocking work, and workspaceBusy=false when exposed, call cursor_init for the exact path. Require ready=true, workspaceConfirmationRequired=false, and the exact projectPath; in Agents Window also check workspaceBinding.ok, the local file-URI identity and workspace ID. Retry the original CCE query or cursor_do submission once. Do not run this recovery for needs_attention, uncertain send state, busy status, or ambiguous identity; report the condition and use the necessary local fallback. Do not cancel other work, change model settings, or retry in a loop.
Respect execution controls
- Do not call
cursor_dowhen the user explicitly says not to use Cursor or not to delegate. A direct user opt-out always wins. - If
cursor_dois unavailable, orcursor_statusreports delegation as disabled, do not bypass the setting, repeatedly retry, or ask Cursor to re-enable itself. Complete the work in the primary agent. - Treat
CURSOR_BRIDGE_DELEGATION=offas an administrator-level host switch. It disables delegated execution but does not by itself disablecursor_context_engine,cursor_init, orcursor_status. - Cursor Bridge exposes one fixed delegation contract. Do not invent participation levels, call-frequency controls, or slash commands.
cursor_modelowns persistent model and reasoning-effort defaults. Call itssetorresetaction only when the user explicitly asks to change those defaults; ordinary delegation must inherit the storedcursor_dochoice without silently changing it.
Follow the default workflow
Use this responsibility chain:
primary agent defines purpose, invariants, and risk boundaries -> form a bounded task envelope -> Cursor investigates locally and executes within the envelope -> poll compactly and retrieve the normal terminal reply with detail=result -> primary agent inspects the real changes and verifies them
- Decide what should be achieved, why it matters, what must not change, where Cursor may work, and what evidence makes the result acceptable. Do not delegate product direction, architecture boundaries, or state verdicts.
- Allow Cursor to locate relevant implementation, compare local approaches, and complete code, documentation, configuration, scripts, tests, and tooling inside those boundaries. Do not require the primary agent to pre-solve the task line by line.
- Once a task has been selected for delegation, normally call
cursor_doonce withbackground=true, receive its compact submission receipt, then continue non-conflicting primary-agent work. Bridge starts FIFO work in a clean chat automatically. - Prefer
execution=fifounless the parallel contract is clearly satisfied. - Do not inject a unique completion marker or impose a minimum response length. Rely on task state, stable
task_idoragent_id, and the actual result.
Decide whether this task should go to Cursor
Send a bounded part of the task to Cursor when one or more of these are true:
- The task can be bounded to a path set or subsystem and checked through a diff, test, count, or documentation assertion.
- The work includes repeated lookup, mechanical edits, test or documentation completion, adapter wiring, configuration cleanup, or an independent second pass.
- The primary agent has higher-value design, cross-system judgment, or non-conflicting work to continue.
- Delegation value is uncertain, but a small
read_only=trueimplementation-location probe or single-path task can measure it without transferring an unresolved product decision.
Keep the work in the primary agent when any of these are true:
- The user said not to use Cursor or not to delegate.
- It is a tiny direct edit whose dispatch and review would cost more than doing it locally.
- Cursor would have to decide product direction, architecture, creative intent, or governance state.
- The task requires exclusive GUI state or shared mutable runtime state.
- A safe scope, path boundary, checkable result, or way to preserve existing user changes cannot be established.
Before dispatch, make sure the purpose, invariants, allowed scope, and checkable outcome are reasonably clear. Cursor may resolve local implementation details inside that envelope; the primary agent does not need to prescribe every step.
For an exact known-file or known-symbol lookup, establish the cheapest deterministic local baseline first. For unknown ownership, behavior, call chains, data flow, registrations, or cross-module relationships, follow cce-routing and try cursor_context_engine before generic local discovery. Do not submit the same exact lookup through multiple systems.
Choose the execution mode
- Use
execution=fifofor one ordinary task, dependent tasks, overlapping write scopes, shared mutable state, or any case where independence is uncertain. Submit the next dependent task only after accepting the previous result. - Use
execution=parallel_agentonly for at least two independent, separately verifiable tasks whose write paths do not overlap. - Set
read_only=truefor analysis-only work. Do not run read-only tasks in parallel against the same mutable external state. - Set
read_only=falseonly with a non-empty set of workspace-relativeallowed_pathsthat contains no globs and cannot escape the workspace. Keep the set as small as practical. It is a scheduling declaration and prompt constraint, not a filesystem sandbox.
Do not choose parallel execution merely because there are many tasks. When dependency or path relationships are unclear, use fifo.
Choose isolated or continuous delivery
- Keep
session_mode=isolatedas the default. It preserves the existing clean-task behavior. - Use
session_mode=createonly when the user explicitly asks to keep later Cursor turns in the same conversation, for example “开启 Cursor 持续会话”, “后续都在同一个 Cursor 会话处理”, or “keep using the same Cursor Agent”. - Use
session_mode=continueonly with the exactsession_idpreviously returned by Bridge. “继续 Cursor 会话 <session_id>” is explicit. “继续”, “接着做”, “再改一下”, or “发给 Cursor” alone must not select a session. - “刚才的 Cursor 会话” may resolve without restating the ID only when the current host task has exactly one ready session for the current workspace. Otherwise report
SESSION_REQUIREDorSESSION_AMBIGUOUS; never guess from the selected, newest, or similarly named Agent. - “新开”, “独立”, “干净会话”, or “不要继承上下文” always means isolated/new work and overrides continuity.
- Start a new session when the workspace, product objective, model/effort, read-only/write boundary, or maximum
allowed_pathschanges. Independent review and final verification also use fresh context. - Persistent sessions require
parallel_agentand never fall back to FIFO. One session permits only one active turn; different sessions remain subject to the existing path-overlap rules. - Every continued turn gets a new
task_id, repeatsread_only=trueor anallowed_pathssubset, and may provide arequest_idso an immediate client retry returns the existing turn instead of sending twice. session_idis the stable public association.agent_idremains internal evidence and may be promoted from a provisional Cursor identity; never use it as the caller's session key.
Dispatch a task
- Record the relevant pre-dispatch workspace state so later review can distinguish existing user changes.
- Form one independent task envelope per task using delegation-contract.md. Write its narrative instructions in the language of the user's current substantive task unless the user explicitly requests another language. Do not persist an inferred language or replace a clear conversational signal with the host/OS locale.
- Call
cursor_dowithbackground=trueand save its compact submission receipt. Includeworkspace_pathwhen the exact target is known and the schema supports it. Usebackground=falseonly when an immediate synchronous full result is required. Use only the documentedsession_modeandsession_idfields when continuity is explicit; never infer continuity from the visible chat. - Save each returned
task_id; for persistent work also savesession_id. Treatagent_idas verification evidence, not the continuation handle. - If a parallel submission does not return a usable
agent_id, stop expanding the parallel batch and usefifoor report the ambiguous state.
The envelope may contain a small number of local implementation open_questions, but it must also provide fixed_decisions, allowed_paths, prohibitions, and acceptance checks. Cursor may solve local questions; it must stop and report any branch that would change product direction, architecture, or scope.
Collect and verify
- Always query
cursor_status(task_id)for the exact task. Its default compact view is for normal polling; usedetail="full"during progress only when detailed diagnostics are needed. Do not treat the currently visible Cursor chat as task identity. - Treat
submitting,running, andcollectingas normal in-progress states. More than two minutes is not itself a failure; wait for an explicit terminal state. - After a terminal state, call
cursor_status(task_id, detail="result"). It returns the raw complete retained reply without a JSON wrapper and records explicit receipt; checkisErrorbefore treating content as a reply. Repeat result reads remain allowed while the task is retained. Usedetail="full"when the diagnostic task detail is needed. - Compare Cursor's claimed work with the real diff,
allowed_paths, and acceptance contract. - When
cursor_statusreports a configured model default, confirmmodelSelection.applied=trueand preserve its configured/effective model and effort fields in any failure report. - Run risk-proportionate verification in the primary agent. Cursor's response alone cannot support a formal pass, verified state, or governance transition.
- Record each task as complete, partial, failed, timed out, or ambiguous before summarizing the batch.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cursor-delegate/SKILL.md
Popularity
- Repository stars
- 77
- Repository forks
- 9
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vanyangyang/cursor-bridge/cursor-delegate)