Pular para o conteúdo
Skillpedia
Agentes14 mil · #11327

grok-build

O que ela faz

Esta skill roda a CLI do Grok Build como um agente de programação pelo terminal. Ela é para desenvolvedores que querem executar, automatizar ou inspecionar sessões do Grok com permissões bem definidas.

Quando usar

  • ✓Quando você quiser executar uma tarefa de programação com a ferramenta de linha de comando Grok Build.
  • ✓Quando precisar de uma execução não interativa para um script ou um job de CI.
  • ✓Quando quiser revisar ou retomar uma sessão de programação do Grok.

Link da skill

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero rodar o Grok Build no meu projeto para corrigir um teste que está falhando, sem abrir uma janela de chat.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica se a ferramenta grok está instalada, lê a saída de ajuda dela e executa a tarefa no modo que você escolher. Ele mantém as permissões e o sandbox explícitos durante o trabalho.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

  1. Confirm that the CLI is available:

    command -v grok
    grok version
    
  2. Inspect the installed command before giving version-sensitive advice:

    grok --help
    grok <subcommand> --help
    
  3. Inspect 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 --json
    
  4. Treat current official documentation and installed help as authoritative when they differ from this bundled reference.

Choose an Execution Mode

  • Run grok with 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 stdio for an ACP client that communicates over stdin/stdout.
  • Run grok dashboard to 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 plain for humans.
  • Use json for one final machine-readable object.
  • Use streaming-json for 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 workspace for normal repository changes.
  • Prefer --sandbox read-only for review and auditing.
  • Prefer --sandbox strict for 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-approve only 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

Verify destructive commands suc

Perguntas frequentes

Ele roda sem a minha autorização?

Não. A skill só é carregada quando você pede explicitamente o Grok Build.

E se o grok não estiver instalado?

O agente para e oferece orientação de instalação e de login.

Ela consegue gerenciar sessões e worktrees?

Sim. A skill cobre sessões, worktrees, permissões, sandbox e servidores MCP.

Detalhes

Descrição original do 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

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11327
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas