
Grok Build CLI Operator
Lets the agent run and manage the Grok Build (grok) command-line tool, including headless runs, sessions, and permissions.
- Repository
- XiaomiMiMo/MiMo-Code
- Stars
- 13,743
- Licence
- MIT
- Files
- 3 files
What it does
This skill teaches an AI agent how to operate the Grok Build command-line tool, a separate coding agent from xAI. Once installed, the agent knows the right commands for interactive and non-interactive runs, logging in, managing sessions and git worktrees, choosing sandbox and permission settings, inspecting configuration, and reading output in formats suited to scripts. It only activates when you explicitly ask for Grok Build or this skill.
Great for
- Developers who already use the grok CLI and want an agent to drive it correctly
- Teams scripting or running headless Grok Build jobs in CI or bots
- People who want guidance on sandbox and permission settings before letting an agent act unattended
Skip it if
- Anyone without the grok binary installed: the skill stops and only gives install guidance, so it adds nothing on its own
- Unattended runs using --always-approve without a sandbox or deny rules, since this can let commands change files or systems without review
- Untrusted repositories run with loose permissions, because the sandbox is off by default unless configured
Try asking
- “Run grok headlessly on this repo to explain the failing test and output JSON”
- “Start a Grok Build worktree on main to fix the flaky test in an isolated copy”
- “Inspect which MCP servers and plugins are configured for this workspace”
- “Resume my last Grok Build session and fork it to try another approach”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 3 original files, the MIT licence and an attribution note.
grok-build.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip grok-build.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip grok-build.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Start with --sandbox read-only or workspace and add narrow --allow/--deny rules rather than using --always-approve
- Pass --no-auto-update and an explicit --cwd in scripts so runs are reproducible
- Ask the agent to confirm destructive steps like session, plugin, MCP or worktree removal before it runs them
What's inside
- references/cli-reference.md
- references/workflows.md
- SKILL.md
Redistributed unmodified from XiaomiMiMo/MiMo-Code under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.