grok-build
यह क्या करती है
यह स्किल टर्मिनल से Grok Build CLI को कोडिंग एजेंट की तरह चलाती है। यह उन डेवलपर्स के लिए है जो Grok कोडिंग सेशन चलाना, स्क्रिप्ट में डालना या देखना चाहते हैं, साफ़ अनुमतियों के साथ।
कब इस्तेमाल करें
- ✓जब आप Grok Build कमांड-लाइन टूल से कोई कोडिंग काम चलाना चाहते हैं।
- ✓जब आपको किसी स्क्रिप्ट या CI जॉब के लिए बिना इंटरैक्शन वाला रन चाहिए।
- ✓जब आप किसी Grok कोडिंग सेशन की समीक्षा करना या उसे फिर से शुरू करना चाहते हैं।
Skill का लिंक
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं अपने प्रोजेक्ट पर Grok Build चलाना चाहता हूँ ताकि एक फ़ेल होता टेस्ट ठीक हो, बिना चैट विंडो खोले।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट जाँचता है कि grok टूल इंस्टॉल है, उसकी help आउटपुट पढ़ता है, और आपके चुने मोड में काम चलाता है। काम के दौरान अनुमतियाँ और सैंडबॉक्सिंग साफ़ रखता है।
तकनीकी सामग्री (मूल 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
effect
14kआपके एजेंट को Effect TypeScript फ़्रेमवर्क के सवालों के जवाब देने में मदद करती है, याददाश्त पर भरोसा करने के बजाय उसका सोर्स कोड और दस्तावेज़ जाँचकर।
arxiv
14kआपके एजेंट को arXiv पर शोधपत्र खोजने, पढ़ने, उद्धृत करने और उन पर नज़र रखने में मदद करती है, जिसमें सार, BibTeX उद्धरण, PDF डाउनलोड और उद्धरण लिंक शामिल हैं।
claude-code
14kआपके एजेंट को कोडिंग का काम Claude Code कमांड-लाइन टूल को सौंपने में मदद करती है, एक बार चलने वाले रन, इंटरैक्टिव सेशन या पृष्ठभूमि जॉब के रूप में।
codex
14kआपके एजेंट को बिना चैट विंडो के OpenAI Codex कमांड-लाइन टूल चलाने में मदद करती है, कोडिंग काम, स्क्रिप्ट और स्वचालित पाइपलाइन के लिए।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।