Standalone skill bundles for using the local Grok CLI in clean, headless, repo-aware workflows.
This repository packages reusable skill variants for both OpenClaw and Codex that help an agent:
- run
grok -pheadless prompts - target a specific repository with
--dir - strip ANSI/session/progress noise from text output
- reuse prompt templates for repo summaries, code review, bug triage, and refactor planning
OpenClaw and Codex already have strong built-in tools, but sometimes you specifically want the local Grok CLI behavior on your own machine:
- use the installed
grokbinary directly - run repo-aware prompts against a local working tree
- keep behavior aligned with Grok CLI sessions and models
- wrap Grok CLI in a cleaner headless workflow for agent use
This repo isolates that workflow into small skills that can be installed, shared, and versioned separately.
These skills are built for the local Grok CLI and document how to use it from OpenClaw or Codex.
Upstream Grok CLI project:
This repository is not the Grok CLI itself. It is a companion skill bundle for using that CLI more effectively.
grok-cli/— OpenClaw skillcodex/grok-cli/— Codex skillgrok-cli/SKILL.md— OpenClaw trigger description and operating instructionscodex/grok-cli/SKILL.md— Codex trigger description and operating instructionsgrok-cli/scripts/grok-headless-clean.sh— OpenClaw wrapper that removes ANSI/session/progress noisecodex/grok-cli/scripts/grok-headless-clean.sh— Codex wrapper that removes ANSI/session/progress noisegrok-cli/references/usage.md— OpenClaw prompt templates, examples, and model-selection notescodex/grok-cli/references/usage.md— Codex prompt templates, examples, and model-selection notesdist/grok-cli.skill— packaged skill artifact for distribution
Download the latest release asset:
grok-cli.skill
Then install it with your preferred OpenClaw skill workflow.
For OpenClaw:
Copy the grok-cli/ directory into your skills location and reload/refresh skills in your OpenClaw environment.
For Codex:
Copy codex/grok-cli/ into your Codex skills location, typically ~/.codex/skills/grok-cli/.
- OpenClaw or Codex
- A local
grokCLI installation on PATH - Valid Grok/xAI credentials configured for the CLI
This skill was verified on a machine where:
grok -Vreturned1.0.0-rc5grok modelsworked- headless prompt execution worked via
grok -p ...
OpenClaw wrapper script:
./grok-cli/scripts/grok-headless-clean.sh \
--prompt "Summarize this repo in 5 bullets" \
--dir /path/to/repoCodex wrapper script:
./codex/grok-cli/scripts/grok-headless-clean.sh \
--prompt "Summarize this repo in 5 bullets" \
--dir /path/to/repoRaw Grok CLI:
grok -p "Review this codebase and list top risks" -d /path/to/repo --format textEach release may include:
- packaged
.skillfile for import/distribution - source files for manual inspection or installation
MIT