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コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“チャット画面を開かずに、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がインストールされていない場合はどうしますか?
エージェントは止まり、インストールとサインインの手順を案内します。
セッションやワークツリーを管理できますか?
はい。セッション、ワークツリー、権限、サンドボックス、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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
effect
14kエージェントが、Effect TypeScriptフレームワークに関する質問に、記憶に頼らず、ソースコードとドキュメントを確認して答えられるよう支援します。
arxiv
14kエージェントが、arXivの学術論文を検索、閲覧、引用、追跡できるよう支援します。要約、BibTeXの引用、PDFのダウンロード、引用リンクを扱います。
claude-code
14kエージェントが、Claude Codeのコマンドラインツールにコーディング作業を任せられるよう支援します。一回だけの実行、対話セッション、バックグラウンドのジョブのいずれにも対応します。
codex
14kエージェントが、チャット画面なしでOpenAI Codexのコマンドラインツールを実行できるよう支援します。コーディングの作業、スクリプト、自動化されたパイプラインに使えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。