Skip to content
Back to skills

Execute Via Grok

ASecurity

Hand a fleet plan under docs/plans/** to Grok Build's `grok` CLI for implementation, then Claude reviews the result against the plan (diff + Verification) with a short FIX resume loop. Alternative to in-process /execute-plan. Claude does not implement; Grok does. Args: [plan-file] [step-scope] [safe|no-force] [model=<slug>]. Use when the user asks for /delegate:execute-via-grok (or /execute-via-grok) or wants Grok Build CLI to implement a fleet plan while Claude gates and reviews.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsrustshellbashgitbackend

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add nigelng/nng-kit --skill execute-via-grok --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Execute Via Grok?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Execute Via Grok
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nigelng-execute-via-grok/badge)](https://www.skillsdirectory.com/skills/nigelng-execute-via-grok)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: execute-via-grok
description: >-
  Hand a fleet plan under docs/plans/** to Grok Build's `grok` CLI for
  implementation, then Claude reviews the result against the plan (diff +
  Verification) with a short FIX resume loop. Alternative to in-process
  /execute-plan. Claude does not implement; Grok does. Args: [plan-file]
  [step-scope] [safe|no-force] [model=<slug>]. Use when the user asks for
  /delegate:execute-via-grok (or /execute-via-grok) or wants Grok Build CLI to
  implement a fleet plan while Claude gates and reviews.
argument-hint: "[plan-file] [step-scope] [safe|no-force] [model=<slug>]"
allowed-tools: Read, Write, Edit, Glob, Grep, Task, Bash(bash:*), Bash(git:*), Bash(agent:*), Bash(which:*), Bash(mkdir:*), Bash(rm:*), Bash(cd:*), Bash(date:*)
disable-model-invocation: true
---

# execute-via-grok

`/delegate:execute-via-grok`: **Grok (`grok`) implements**; Claude gates,
briefs, and reviews. Never commit without a separate `/commit`.

Read [execute-via-core.md](../../references/execute-via-core.md) first (arg
parse, Steps 1–8, Model default, Status audit, exit codes, shared constraints),
plus [brief-template.md](../../references/brief-template.md),
[execution-status.md](../../references/execution-status.md), and
[model-tiers.md](../../references/model-tiers.md). Follow core. Do not
hand-build `grok` argv. `<skill-dir>` is this file's absolute directory; paste
that literal path into every `bash` call (shell variables do not persist).

## Parameter binding

| Placeholder | Value for `execute-via-grok` |
| --- | --- |
| `<backend>` | `grok` |
| `<last_skill>` | `execute-via-grok` |
| `<brief>` | `.claude/tmp/exec-grok-brief.md` |
| `<rows-json>` | `.claude/tmp/exec-grok-rows.json` |
| `<fix-n>` | `.claude/tmp/exec-grok-fix-<n>.md` |
| `<questions>` | `.claude/tmp/exec-grok-questions.md` |
| `<run-n>` | `.claude/tmp/exec-run-grok-<n>.{ndjson,err,exit}` |

## Step 1.1 — Grok preflight

Run before core Step 1.2. Stop on failure.

1. **`which grok`.** Missing → stop: install Grok Build, then `grok login`.
2. **`grok models`.** Failure (not signed in) → stop and say `grok login`.
   Keep the printed slugs. Choose the slug only after `<rows-json>` exists.

## Model default (Grok)

After Step 4 writes `<rows-json>`, before Step 5, follow
[execute-via-core.md § Model default](../../references/execute-via-core.md).
The pin is the Grok chain for `launch_tier` (strongest selected tier), not
always `execute`. `bash <skill-dir>/../../scripts/tiers.sh resolve grok
<launch_tier>` prints the first unexpired pin; the chains live only in the
**grok** block of [model-tiers.md](../../references/model-tiers.md). Pass the
dotted slug exactly as printed. Pin base (drop `-high`) not in `grok models`
→ `--model auto`, `fallback: pin missing`.

**Grok model rule:** `execute`/`low`: Grok or Auto; `mid` adds Sonnet before Auto. Others only on review/`top-*` rows or
`model=`. Never GPT.

**`router: true`** and no `model=`: pass `--model auto`. Record
`model_requested: auto`, `model_resolved: auto(router)`, `effort: unknown`,
`fallback: null`. Do not copy the CLI display label.

`model=<slug>` overrides the pin; its base must be in `grok models` (`auto`
is allowed); otherwise stop and show that list. `model=auto` is
`fallback: model=auto`. A listed pin that then fails usage or quota is core
Step 6: relaunch on the chain's next pin, only for `execute`, `mid`, `low`
(`mid`: Sonnet, then `auto`). Never relaunch a run that already used `auto`.

## Script calls

`<model>` and `<requested-slug>` are the slug from Model default. `batch` and
`terminal` use this `<last_skill>` and `<rows-json>`; their flags are core
Status audit. Exit codes and the FIX loop are core Steps 5–8.

```bash
bash <skill-dir>/../../scripts/plan-status.sh lock <plan>
bash <skill-dir>/../../scripts/plan-status.sh rows <plan> grok [ID...] > .claude/tmp/exec-grok-rows.json
bash <skill-dir>/../../scripts/plan-status.sh start <plan> execute-via-grok .claude/tmp/exec-grok-rows.json --now <TS>
bash <skill-dir>/../../scripts/delegate-launch.sh [--interactive] grok /absolute/repo/root <n> <model> brief
bash <skill-dir>/../../scripts/delegate-launch.sh [--interactive] grok /absolute/repo/root <n> <model> fix:<n> [session_id]
bash <skill-dir>/../../scripts/delegate-verdict.sh grok /absolute/repo/root <n> <requested-slug>
```

Step 5 default: background `brief` (`run_in_background: true`; do not `sleep`).
`safe` / `no-force`: `--interactive` only, then skip Steps 3 and 6. Step 6 is
`delegate-verdict.sh` only; do not parse `.ndjson` here. Step 8: `fix:<n>`,
passing `session_id` when Step 6 returned one. Step 7 verification is core's
verify script (`delegate-verify.sh`).

## Flags

| Arg | Effect |
| --- | --- |
| `safe`, `no-force` | Interactive. Claude never invokes `grok`. Print `--interactive` and wait. |
| `model=<slug>` | Overrides the `launch_tier` pin. Validate with `grok models`. |
| (no `model=`) | Pin for `launch_tier`, or `--model auto` when `router: true` (`auto(router)`). |

`--sandbox enabled` (default; `--always-approve` under
`DELEGATE_SANDBOX=off`), `--trust`, `stream-json`,
`--include-partial-messages`, `--cwd`, and `--resume` are inside
`delegate-launch.sh`, not skill args. Do not pass `--yolo`.

## Constraints

In addition to core Shared constraints:

- Never commit, push, or open a PR. Propose a Conventional Commit and offer
  `/commit`.
- Never hand-build `grok` argv, and never invoke `grok` on `safe` /
  `no-force`. Launch only through `delegate-launch.sh`; classify only through
  `delegate-verdict.sh`.
- Never treat `--trust` alone, `--always-approve` alone or `--sandbox` alone
  as headless-ready, and never prefer `--yolo`. The script pairs `--sandbox
  enabled` (or `--always-approve` under `DELEGATE_SANDBOX=off`) with `--trust`
  and sets `--cwd` to the recorded absolute repo root.
- Sandboxed runs cannot write outside the workspace or run
  network-classified commands like `curl`. A row that needs either → set
  `DELEGATE_SANDBOX=off` on the `delegate-launch.sh` call.
- `model_resolved` is a display label (for example `Grok 4.7 256K High`), not
  the slug. That difference is not a mismatch. Router runs record
  `auto(router)` and ignore the label.
- Grok subagent writes surface only as a top-level `taskToolCall`. `git diff`
  and untracked files (Step 7) are the source of truth.
- **`grok` must never** edit the plan (YAML frontmatter or `## Execution log`)
  or act as the reviewer.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.