Skip to content

/handoff-grok

Continue a task in xAI Grok Build using the shared Director handoff packet. Use when the user says to use Grok, requests a Grok review, or wants Grok Build to take over work started in Claude Code or Codex CLI.

shell
$ npx -y skills add claude-world/director-mode-lite --skill handoff-grok --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/handoff-grok
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Continue a task in xAI Grok Build using the shared Director handoff packet. Use when the user says to use Grok, requests a Grok review, or wants Grok Build to take over work started in Claude Code or Codex CLI.

SKILL.md

handoff-grok.SKILL.md
name: handoff-grok
description: Continue a task in xAI Grok Build using the shared Director handoff packet. Use when the user says to use Grok, requests a Grok review, or wants Grok Build to take over work started in Claude Code or Codex CLI.
user-invocable: true

Handoff to Grok Build

Use the `session-relay` workflow so Grok receives the goal, decisions, Git state, verification, and next steps without relying on another vendor's native session ID.

ROOT="${CLAUDE_PROJECT_DIR:-${GROK_WORKSPACE_ROOT:-}}"
[[ -n "$ROOT" ]] || ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
RELAY="$ROOT/.director-mode/bin/director-relay"
[[ -x "$RELAY" ]] || RELAY="$HOME/.claude/bin/director-relay"

"$RELAY" create \
  --from <claude|codex> --to grok \
  --goal "..." --summary "..." --next "..."

"$RELAY" continue --to grok

The second command prints an interactive Grok command. Add `--run` only when the user wants it launched immediately, or `--headless` for `grok -p`.

Grok also supports `grok import` for Claude Code sessions and automatically reads Claude-compatible project assets. Treat those as a Claude→Grok shortcut, not as a universal session format; keep the portable packet for three-way work.

Grok's approvals, permission rules, sandbox, network access, and hook trust stay under Grok's native configuration. This skill does not change them.

Read it on GitHub ↗
Ships withdirector-mode-lite

Use Claude Code like a Director, not a Programmer. MIT toolkit with Auto-Loop, guided setup, 27 commands, 14 agents, and 32 skills.

Get the whole plugin, auto-invoked
Stats
81
Stars
0
Views
11
Forks
Active
Maintenance
Shell
Language
MIT
License
7d ago
Last commit
6mo ago
Created

Repo: claude-world/director-mode-lite