/grok-build-harness:grok-build-initfrom grok-build-harness
Bootstrap or refresh the karlorz grok-build harness (AGENTS.md splice, agents, plugins). On /grok-build-init, Ask User Question first; timeout selects Recommended.
Ships in grok-build-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One file owns the session contract: $GROK_HOME/AGENTS.md (default ~/.grok/AGENTS.md). This skill splices the harness marker block, copies agents + agentrules.md, and on a fresh host also renders config and installs companion plugins.
Do not write a long chat essay and wait. Call Ask User Question immediately:
--status and quote the full inventory in this chat (not a 4-row summary, not a collapsed tool card).Timeout selects Recommended. Treat that as the go-ahead.
grok plugin update grok-build-harness
INSTALL="$(find ~/.grok/installed-plugins -maxdepth 3 -type f -name install.sh -path '*grok-build-harness*' | head -1)"
From a checkout: skills/grok-build-harness/scripts/install.sh.
Need python3. Full init also needs git and a runnable grok --version. Remote SSH: run install.sh directly; never ssh -t grok whoami.
bash "$INSTALL" --docs-status
bash "$INSTALL" --docs-only -y
bash "$INSTALL" --docs-status
--docs-status prints one word: missing | match | drift | unmarked | absent. After --docs-only, status should be match. User content outside <!-- grok-build-harness:begin/end --> is preserved. Then Ask User Question once more if another scenario remains.
bash "$INSTALL" --status
No bash (Windows): python3 "$PLUGIN/scripts/status.py" --grok-home "$GROK_HOME" --plugin-root "$PLUGIN".
--docs-status stays one word for scripts. --status is the session inventory: contract word + meaning, plugin vs stamp, required files, [agent] name, plan_mode, Keep working line, each harness companion (enabled / not-enabled / extra, present / missing), english_rule: lines for Grok / Claude / Codex / Cursor (missing / match / drift vs assets/reply-in-english.md), and context: always-on token lines (instruction files, Grok skill-description catalog, enabled plugin count, MCP server counts). Quote that block in chat. Do not skip it and jump to "no problem" / the next scenario. Then Ask User Question if another scenario remains.
bash "$INSTALL" --hub-key "$HUB_KEY" --new-key "$NEW_KEY" --context7-key "$CTX7_KEY" --verify -y
Keys may also come from HARNESS_HUB_KEY / HARNESS_NEW_KEY / HARNESS_CONTEXT7_KEY. Missing keys → env-only config (warns). --require-keys hard-fails. Extra flags: install.sh --help.
Finish: start a new session so AGENTS.md loads. Skillwiki's ~/.grok/skillwiki.md marker is preserved; do not overwrite it.
| Path | Role |
|---|---|
AGENTS.md | The session contract. Harness block is spliced; everything else is yours. Re-run this skill when the group updates or the scenario changes. |
agentrules.md | Full routing rules (pointed at from the contract). |
agents/grok-build-byok.md, agents/scout.md | Parent agent + scout. |
Keep-working rule lives in the harness block: Ask User Question + timeout = Recommended. Do not add a second extras file.
English-thinking rule SSOT is assets/reply-in-english.md. --docs-only copies/splices each host-native load path under --user-home (default: parent of --grok-home): Grok rules/ + AGENTS.md bullet, Claude rules/ + CLAUDE.md, Codex AGENTS.md bullet, Cursor rules/reply-in-english.mdc. Status reports those six paths. Do not recreate vault .cursor/rules / .claude/rules / .grok/rules copies.
On first AGENTS.md create (no ## User preferences heading yet), --splice-agents seeds assets/user-preferences-ego-browser.md before the English bullet. An existing User preferences section is left alone.
match refresh.README.md and install.sh --help.GROK_HOME=/tmp/grok-home bash "$INSTALL" --docs-only --dry-runreferences/isolated-diagnostics.md. Never write a hand-built config over the live one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub karlorz/agent-skills --plugin grok-build-harness