grok-build
Qué hace
Esta habilidad ejecuta la CLI de Grok Build como agente de programación desde una terminal. Está pensada para desarrolladores que quieren ejecutar, automatizar o revisar sesiones de programación con Grok y con permisos claros.
Cuándo usarla
- ✓Cuando quieres ejecutar una tarea de programación con la herramienta de línea de comandos Grok Build.
- ✓Cuando necesitas una ejecución sin interacción para un script o un trabajo de CI.
- ✓Cuando quieres revisar o reanudar una sesión de programación de Grok.
Link de la skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero ejecutar Grok Build en mi proyecto para arreglar un test que falla, sin abrir una ventana de chat.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba que la herramienta grok está instalada, lee su ayuda y ejecuta la tarea en el modo que elijas. Mantiene explícitos los permisos y el aislamiento mientras trabaja.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Grok Build CLI
Operate Grok Build from a terminal while keeping execution mode, permissions, sandboxing, session state, and output handling explicit.
Start with Local Evidence
Confirm that the CLI is available:
command -v grok grok versionInspect the installed command before giving version-sensitive advice:
grok --help grok <subcommand> --helpInspect the configuration discovered for the target workspace when behavior depends on rules, skills, plugins, hooks, or MCP servers:
grok --cwd /path/to/repo inspect grok --cwd /path/to/repo inspect --jsonTreat current official documentation and installed help as authoritative when they differ from this bundled reference.
Choose an Execution Mode
- Run
grokwith no arguments for the interactive TUI. - Run
grok "<initial prompt>"to open the TUI with an initial task. - Run
grok -p "<prompt>"for one non-interactive turn that prints a result and exits. - Run
grok agent stdiofor an ACP client that communicates over stdin/stdout. - Run
grok dashboardto open the Agent Dashboard.
Prefer headless mode for scripts, CI, bots, and agent orchestration. Prefer ACP only when the caller implements the ACP JSON-RPC lifecycle and consumes session/update chunks.
Authenticate
Use an interactive login on a developer machine:
grok login
Use device-code authentication in headless or remote environments:
grok login --device-auth
Use a locally cached login or provide XAI_API_KEY only to the process that needs it. Never print, persist, or commit credentials. Use grok logout to clear cached credentials.
Run Headlessly
Use an explicit working directory and output format:
grok --no-auto-update \
--cwd /path/to/repo \
--sandbox workspace \
-p "Inspect the repository and explain the failing test." \
--output-format json
Choose output according to the consumer:
- Use
plainfor humans. - Use
jsonfor one final machine-readable object. - Use
streaming-jsonfor newline-delimited incremental events. - Add
--json-schema '<schema>'when the installed CLI supports constrained structured output.
Pass --no-auto-update in scripts and CI to suppress background update checks. Do not parse interactive TUI rendering in automation.
Control Permissions and Isolation
Treat permissions and sandboxing as separate controls:
- Use permission rules to decide whether a tool call may run.
- Use a sandbox profile to limit what an approved call may access.
- Prefer
--sandbox workspacefor normal repository changes. - Prefer
--sandbox read-onlyfor review and auditing. - Prefer
--sandbox strictfor an untrusted repository, then add narrow permission rules. - Use
--allow <RULE>and--deny <RULE>for per-run policy; remember that deny rules win. - Use
--always-approveonly when the environment and command scope justify unattended execution. Pair it with a suitable sandbox and explicit deny rules.
Do not describe --always-approve as equivalent to sandboxing. The sandbox is off by default unless configured or selected.
Manage Sessions and Worktrees
Continue or resume intentionally:
grok -c
grok --resume <session-id>
grok --resume
Use --session-id <UUID> for a new named session, not to resume an existing one. Add --fork-session when branching from a resumed session.
Use a worktree when concurrent work could collide:
grok --worktree --ref main "Fix the flaky test"
grok --worktree=feature-name "Implement the feature"
Preview removal with grok worktree rm --dry-run <id> before deleting a worktree. Do not assume deleting a session removes its worktree.
Diagnose Before Editing Configuration
Use built-in inspection and diagnostics first:
grok inspect --json
grok mcp list --json
grok mcp doctor
grok plugin list
grok models
Prefer grok mcp add, grok mcp remove, and plugin subcommands over manually editing configuration when the CLI supports the requested operation. Keep secrets in environment variables rather than command history or committed configuration.
Read the Bundled References
- Read references/cli-reference.md for the subcommand and common flag index.
- Read references/workflows.md for headless execution, sessions, worktrees, permissions, sandboxing, and MCP examples.
Verify destructive commands suc
Preguntas frecuentes
¿Se ejecuta sin mi autorización?
No. La habilidad solo se carga cuando pides expresamente Grok Build.
¿Qué pasa si grok no está instalado?
El agente se detiene y te da indicaciones para instalarlo e iniciar sesión.
¿Puede gestionar sesiones y worktrees?
Sí. La habilidad cubre sesiones, worktrees, permisos, aislamiento y servidores MCP.
Detalles
Descripción original del autor
Operate the Grok Build CLI (`grok`), including interactive and headless runs, authentication, sessions, worktrees, permissions, sandboxing, MCP servers, plugins, inspection, updates, and automation output. Load only when the user explicitly authorizes this skill or names Grok Build / grok-build. Before any command, confirm the `grok` binary is available; if missing, stop and give install or auth guidance.
repo: XiaomiMiMo/MiMo-Code
Popularidad
- Estrellas en GitHub
- 14 mil
- Posición en el ranking
- #11327
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
effect
14 milAyuda a tu agente a responder preguntas sobre el framework TypeScript Effect, consultando su código fuente y su documentación en lugar de confiar en la memoria.
arxiv
14 milAyuda a tu agente a buscar, leer, citar y seguir artículos académicos de arXiv, incluidos resúmenes, citas BibTeX, descargas de PDF y enlaces de citas.
claude-code
14 milAyuda a tu agente a delegar una tarea de programación en la herramienta de línea de comandos Claude Code, como una ejecución puntual, una sesión interactiva o un trabajo en segundo plano.
codex
14 milAyuda a tu agente a ejecutar la herramienta de línea de comandos OpenAI Codex sin ventana de chat, para tareas de programación, scripts y flujos automatizados.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.