grok-build
Что он делает
Этот скилл запускает Grok Build CLI как агента для написания кода из терминала. Он нужен разработчикам, которые хотят запускать, автоматизировать или проверять сессии Grok с понятными разрешениями.
Когда использовать
- ✓Когда нужно выполнить задачу по коду с помощью командной утилиты Grok Build.
- ✓Когда нужен запуск без диалога для скрипта или задачи CI.
- ✓Когда нужно проверить или продолжить сессию Grok с кодом.
Ссылка на скилл
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Запусти Grok Build на моём проекте, чтобы исправить упавший тест, без открытия окна чата.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент проверяет, что утилита grok установлена, читает её справку и запускает задачу в выбранном вами режиме. Разрешения и песочница остаются явными на всё время работы.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Работает ли он без моего разрешения?
Нет. Скилл загружается только тогда, когда вы прямо просите Grok Build.
Что делать, если grok не установлен?
Агент останавливается и подсказывает, как установить утилиту и войти в аккаунт.
Можно ли управлять сессиями и worktree?
Да. Скилл охватывает сессии, worktree, разрешения, песочницу и серверы MCP.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 14k
- Место в рейтинге
- #11327
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
effect
14kПомогает агенту отвечать на вопросы о фреймворке Effect для TypeScript, проверяя его исходный код и документацию, а не полагаясь на память.
arxiv
14kПомогает агенту искать, читать, цитировать и отслеживать научные статьи на arXiv: аннотации, цитаты BibTeX, загрузку PDF и связи цитирования.
claude-code
14kПомогает агенту передать задачу по кодингу инструменту командной строки Claude Code: как разовый запуск, интерактивную сессию или фоновую задачу.
codex
14kПомогает агенту запускать инструмент командной строки OpenAI Codex без окна чата для задач по кодингу, скриптов и автоматических конвейеров.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.