⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
grok-cli
Use the locally installed Grok CLI (`grok`) for headless one-shot prompts, repo-aware coding/review prompts, model listing, and lightweight automation on this machine. Trigger when the user explicitly asks to use Grok CLI / grok-cli / `grok`, wants a local Grok run instead of OpenClaw's built-in xAI tools, wants a prompt executed inside Grok against a working directory, or wants Grok CLI-specific behavior like `grok -p`, `grok models`, or resuming a Grok session.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
grok-cli-skills
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
Why this exists
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.
Source / upstream
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.
Contents
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
Install
Option A — use the packaged .skill artifact
Download the latest release asset:
grok-cli.skill
Then install it with your preferred OpenClaw skill workflow.
Option B — copy the skill folder manually
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/.
Requirements
- 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 ...
Example usage
OpenClaw wrapper script:
./grok-cli/scripts/grok-headless-clean.sh \
--prompt "Summarize this repo in 5 bullets" \
--dir /path/to/repo
Codex wrapper script:
./codex/grok-cli/scripts/grok-headless-clean.sh \
--prompt "Summarize this repo in 5 bullets" \
--dir /path/to/repo
Raw Grok CLI:
grok -p "Review this codebase and list top risks" -d /path/to/repo --format text
Release artifacts
Each release may include:
- packaged
.skillfile for import/distribution - source files for manual inspection or installation
License
MIT
// HOW IT'S BUILT
KEY FILES