vanyangyang/cursor-bridge/grok-build-supervisor
Claude Code and agent skill by vanyangyang/cursor-bridge
- community
Checking that the SKILL.md file is still in the repository.
Initialize the persistent local proxy, then immediately ensure a visible Grok Build TUI for the current workspace when /grok_execute on activates, and continuously supervise that coding-agent session through a user-level Supervisor daemon as the user sends work, waits for completion, reconnects from another host task, or coordinates bounded two-way host-Grok communication without keyboard simulation. Do not use for Grok Imagine/browser generation, ordinary session summarization, or attaching an unrelated non-Supervisor TUI.
Install
npx vskill@latest install vanyangyang/cursor-bridge/grok-build-supervisorSKILL.md
Grok Build Supervisor
Use the grok-build-supervisor MCP tools as a guarded transport. A user-level daemon owns a separate Leader, ACP connection, visible TUI records, and event journal for each workspace, independently of any one host task. Workspaces share the initialized proxy settings. Each task gets a thin authenticated MCP client. Keep transport diagnostics internal during normal work and report only ready, working, needs permission, needs input, completed, or failed.
User-facing messages
- Render user-facing explanations in this order: an explicit language request, otherwise the language of the user's latest substantive message/current task, otherwise a genuinely known host or OS locale, otherwise English. Never persist an inferred language. Keep JSON keys, states, enum values, tool names, permission/form option values, paths, commands, hashes, task/session/agent IDs, and error/status codes verbatim.
- Keep preflight silent. Tool availability, tool counts or names, Supervisor reachability, ACP/Leader state, the working directory, and presentation details are internal unless they block the request or the user explicitly asks for diagnostics.
- Do not ask the user to create, open, show, resume, or select a TUI as a separate step.
/grok_execute onowns workspace selection and session setup. If startup takes long enough to merit an update, give only a short localized statement that Grok is connecting. - For
/grok_execute on, return one concise standalone result after the visible TUI is ready: executor mode is on, the terminal is ready, and the user can provide the task. The one attention-state exception isneeds_workspace_trust: explain that Grok is waiting for the user's trust decision in the already-open terminal and that/grok_execute onmust not be run again. Render either message using the language rule above. Keep executor mode pending, then inspect the same session again after the user decides. For ordinary task dispatch, report the task state or outcome instead of narrating TUI lifecycle details. - Do not volunteer that no development prompt was sent. Mention that boundary only when the user explicitly asked to open a session without sending work or could otherwise reasonably mistake connection setup for submitting a task.
- For blocked or failed states, report only the actionable cause and next step; expose transport diagnostics only on request.
Workflow
Host entry normalization: use Grok Executor Policy for explicit native skill and namespaced command entry points. Every exact /grok_execute on or /grok_execute off below also means its normalized explicit invocation, including after host command expansion. This never authorizes activation from ordinary task text or implicit skill selection. For initialization, an explicit Codex $grok-build-supervisor init (optionally followed by one loopback HTTP URL) or Claude Code /grok-build-supervisor:grok_init with the same optional URL is equivalent to /grok_init; reject extra arguments. Bare skill selection is not initialization.
/grok_execute off disables new Grok opens, resumes, and prompts for this host task without cancelling existing work or closing the TUI. Read-only inspection remains allowed. After off, only an exact /grok_execute on reactivates execution; ordinary “continue”, “resume the task”, “继续”, or “直接开始刚才的任务吧” does not. Current or recovered task authorization does not substitute for this explicit activation switch.
- Call
grok_initonly for an exact/grok_initcommand or an explicit request to initialize or reinitialize the Grok Supervisor proxy. Empty initialization performs bounded local discovery; an exact loopbackhttp://URL verifies that selection. Initialization never opens a session or sends work. Do not initialize implicitly during ordinary preflight. If more than one verified endpoint is returned, show the bounded candidates and require an exact user choice. A listening port alone is not success: require the persistedreadyresult backed by HTTP CONNECT verification. Reinitialization is refused while the Supervisor owns active work. - Call
grok_session_inspectwith its defaultinteractionview and the current host task's absolute projectcwd. Keep that cwd on subsequent calls, together with the exact session/run IDs when known. The cwd selects that workspace's connection and journal; another project's terminal being open is not a reason to disconnect it or request/grok_execute off. Interaction intentionally omits process, socket, journal, and ownership diagnostics. When the user names a prior task naturally, use the explicitsummaryview with the absolute projectcwdand a shortsessionQuery; use a candidate only when it is unique. - Select the session mode internally without constructing shell text or asking the user to manage the TUI:
- During an exact
/grok_execute on, bind the current host task's absolute project directory. If no session is attached, usemode: newwith nosessionId; if one exact attached session already belongs to that directory, usemode: resumewith its UUID. - A missing, relative, or ambiguous host workspace leaves executor mode off. Never substitute the plugin process directory or a workspace remembered by another task.
- For later task dispatch, reuse the session already ensured by
onrather than waiting for the first development task to open it. - Ask the user to choose only when recovery produces multiple genuinely ambiguous candidates; ordinary startup and reuse require no separate user instruction.
- Call
grok_session_openduring/grok_execute onwith the bound absolute project directory and explicit confirmation. Always use the defaultpresentation: windows_terminal, which opens a dedicated Windows Terminal PowerShell tab, unless the user explicitly requested headless, invisible, or ACP-only operation before activation. Only that explicit request permitspresentation: nonewithOPEN_GROK_SESSION_HEADLESS; never select it as a convenience, fallback, or preflight optimization. Visible sessions useOPEN_GROK_SESSION. The daemon attempts to roll back only its owned processes on failure. An error response is not proof that rollback completed: preserve the exacterror,details.rollback, anddetails.rollbackComplete, then use explicit diagnostic views before reporting the outcome. It may recover an active TUI only when the exact session, cwd, PID, dedicated Leader, and Supervisor launch record all match; an unrelated TUI is never adopted. Do not mark executor mode active until this step succeeds.
- If opening reports
GROK_PROXY_NOT_INITIALIZED, tell the user to run/grok_init; do not copy a host environment port into the request or silently initialize it. - If routing reports
GROK_WORKSPACE_REQUIRED, supply the already-known current workspace cwd. ForGROK_WORKSPACE_SESSION_MISMATCH, re-inspect that exact cwd and verify the session rather than switching another project's connection. A daemon that predatesmultiWorkspaceSessionsmust become idle before upgrading; preserve its existing work and report that upgrade boundary. - If opening reports
needs_workspace_trust, this is Grok's native directory-trust gate, not an ordinary ACP tool permission. The structured request includes the exact session, cwd, canonical workspace, and detected local-config kinds. Keep the same TUI and ACP attachment, do not call open again, and do not usegrok_session_respond. Ask the user to choose in the visible Grok terminal. The Supervisor answers Grok's ACP trust round-trip only after that owned TUI registers the session, which proves the native screen was passed. awaiting_session_registrationis the bounded compatibility fallback when a visible owned TUI has not registered but no structured trust request was received. Say the terminal is still starting and ask the user to check it; do not claim that it is definitely a trust screen and do not open another TUI.
- Opening a TUI does not authorize a prompt. Call
grok_session_promptonly when the user has authorized the actual instruction.
- Host identity is supplied by the MCP frontend and authenticated daemon envelope, not by a model-visible tool argument. Do not add or invent a host label in the prompt: the Supervisor renders the Codex, Claude Code, Pi, or neutral host-agent supervision contract from the actual sender.
- Preserve the user's task language in the execution brief and ask Grok to use that language for narrative progress and the final result unless the user explicitly requests another language. Do not translate machine tokens or exact options.
- After
grok_session_promptreturns, keep the current host turn alive until it reaches an attention or terminal state:
- Call
grok_session_inspectwithview: interaction, the boundcwd, the exactsessionIdandrunId, the returnednextAfterSequence, andwaitMs: 25000. Cursors belong to that workspace's journal; never reuse one across workspaces. - Replace
afterSequencewith every returnedcursor.nextAfterSequencebefore the next call. Never poll again with a stale cursor: operational interaction polls intentionally coalesce all routine stream events up tolatestSequence. - While state is
workingorcancelling, use only the compact state and progress metadata.progress.phaseis the current bounded stage;responseCharscounts agent text observed without returning it;lastChunkAtadvances only when agent text arrives;heartbeatAtis the latest liveness evaluation; andnewActivitymeans journal activity exists beyond the cursor supplied by this caller. It does not by itself prove useful semantic progress. Streamed agent message bodies are suppressed until a terminal result, so do not try to reconstruct the answer from polling updates. A bounded wait timeout is not completion. - Quiet telemetry alone is neither failure nor a reason to ask the user to reauthorize waiting. If repeated waits leave a material liveness question, inspect the exact run's focused diagnostics and continue its authorized work while it remains active; report a confirmed failure, required user action, or unresolved recovery boundary. Never cancel automatically from quiet telemetry alone.
- For
needs_permission, explain the request using the user-facing language rule, present the exact returned options without translation, and wait for the user's choice. Usegrok_session_respondwith the bound cwd, exact session and permission IDs, andANSWER_GROK_PERMISSION, then resume the same wait loop. - For native
needs_input, inspect the returned ACP form question. The host agent may answer directly only from verified context already inside its authority; route it to the user when owner authority, a consequential choice, or missing facts are required. Never invent values. Usegrok_session_respondwithANSWER_GROK_INPUT, then resume the same wait loop. - If
needs_inputhassource: fallback, Grok ended the turn with a structured question because ACP elicitation was unavailable. Ask the user, then send the answer as a new authorized prompt in the same session. - For
completed, consumerun.finalTextonly whendelivery.finalTextIncludedis true. Whendelivery.resultArtifactIncludedis true, userun.resultArtifactinstead: it contains an absolute persistent path, byte size, SHA-256, media type, captured/source character counts, truncation flag, and bounded summary. Multiple ACPmessageIdvalues are preserved as one ordered result before this inline-versus-artifact decision, andrun.messageCountreports how many messages were captured. Retain the returned cursor and stop polling that completed run; a later call with the advanced cursor returns availability metadata without repeating either payload. Preserve an artifact's original la
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 repositoryCheckingplugins/grok-build-supervisor/skills/grok-build-supervisor/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 10
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/grok-build-supervisor)