agentleFS
thedigitalorganizerthedigitalorganizer/soloship/skills/grok/SKILL.md

grok

Skill0 starsChanged 5 months agoMITView on GitHub

Set up or re-sync the current project to run in Grok Build (xAI's coding agent CLI). Checks Grok Build's LIVE docs first, then runs `grok inspect` to see what Grok actually discovered, bridges only the gaps, mirrors user-chosen MCP servers, and reports manual settings steps. Use when asked "/grok", "set up grok", "sync grok", "grok build", or "get this project working in Grok".

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never edit or trim them to fit the target.

    line 36
  2. Distinctive:

    Real copies, never symlinks: if any bridging is needed (symlinked rule dirs corrupt other tools' installers — verified failure, 2026-08-15).

    line 41
  3. Very specific:

    Run grok inspect in the project root and capture the full output.

    line 60
  4. Very specific:

    Prefer the highest-fidelity bridge available (Grok's instructions mechanism for rules content).

    line 102
  5. Very specific:

    If .mcp.json exists and grok inspect doesn't already show its servers loaded: list servers by name, ask the user which to make available in …

    line 115
  6. Very specific:

    Write the manifest (hashes + inspect digest) to .ai/sync-state/grok.json.

    line 127
  7. Very specific:

    Commit any generated project files per project conventions (worktree rules apply).

    line 129
  8. Distinctive:

    Protections absent in Grok Build: every hook/gate with no counterpart, named, with what it guarded.

    line 143

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/grok — Project Environment Sync for Grok Build

Make this project's governance fully available to Grok Build, from whatever state it's in now. Idempotent: first run sets everything up; later runs sync only what changed and report what's new.

This skill is verification-first. Secondary sources claim Grok Build auto-reads CLAUDE.md, .claude/ (rules, skills, hooks), .mcp.json, and the AGENTS.md family with zero config — but as of 2026-08-16 xAI's primary docs confirm only ~/.grok/config.toml and the grok inspect discovery command, not the Claude-compat claim. So: never assume the compat story; run grok inspect and treat its output as the ground truth for what actually loaded. If the compat claim holds, this skill mostly verifies and records; if it doesn't, it bridges.

Gates (binding in every posture — violating any is a failed run)

  1. Docs before build. The live docs check (Phase 3) runs BEFORE any bridging. Grok Build is young and moving fast; its discovery behavior can change with any CLI update. Building from remembered facts and checking docs afterward is the failure class this ordering prevents. The report records the docs-check date.
  2. Sources are read-only. CLAUDE.md, AGENTS.md, .claude/rules/, .claude/settings.json, .mcp.json are inputs. Never edit or trim them to fit the target.
  3. Discovery evidence over vendor claims. A capability counts as working only when grok inspect (or an equivalent observable check) shows it loaded. Marketing pages and third-party writeups are leads, not evidence.
  4. Real copies, never symlinks if any bridging is needed (symlinked rule dirs corrupt other tools' installers — verified failure, 2026-08-15).
  5. Syncing config does not certify the tool. Grok-class models have a documented false-completion failure in this workspace's history (2026-08-15: argued a plan was done against its own cited evidence). The final report must say config ≠ trust and point to the workspace's certification battery if one exists (default: docs/testing/model-certification/SOP.md).

Phase 1 — Discover the source surface + Grok's own view

  1. Inventory sources: CLAUDE.md, AGENTS.md, every .claude/rules/*.md, .claude/skills/ (names only), .claude/settings.json hooks, .mcp.json, ~/.grok/config.toml, and any prior .ai/sync-state/grok.json.
  2. Confirm the CLI exists (grok --version or which grok); if not installed, stop and give the user the install pointer from current docs — don't install a coding agent without being asked.
  3. Run grok inspect in the project root and capture the full output. This is the map of what Grok discovers natively: config sources, instructions, skills, plugins, hooks, MCP servers.

Phase 2 — What's new since last run

State lives at .ai/sync-state/grok.json: { "syncedAt": ISO-8601, "files": { "<source path>": "<sha256>" }, "inspectSummary": "<one-line digest of grok inspect>" }.

Hash every source (shasum -a 256), diff against the manifest: new / changed / removed / unchanged. Also diff the current grok inspect digest against the recorded one — Grok-side discovery changes (a CLI update starting or stopping to read something) are report-worthy even when no source file changed. No manifest = first run, say so.

Phase 3 — Live docs check (BEFORE any bridging)

Fetch Grok Build's current docs — start at https://docs.x.ai/build/overview and the user guide in the repo (github.com/xai-org/grok-build, user guide under crates/codegen/xai-grok-pager/docs/user-guide/: configuration, MCP servers, skills, plugins, hooks, headless mode, sandboxing). If URLs moved, search.

Confirm before acting: documented discovery behavior for the AGENTS.md family and .claude/ (cross-check against what grok inspect actually showed in Phase 1 — docs and behavior can disagree; behavior wins, and a disagreement is report-worthy), MCP config shape, hooks capabilities, sandboxing/approval settings. This phase outputs the verified mapping Phase 4 executes, plus a numbered manual-steps list written for a non-coder — exact command or menu path, exact value, one line on why. Headless/automation notes (e.g. --no-auto-update) go here too.

Phase 4 — Bridge the gaps only (per Phases 1+3)

Compare the source inventory against what grok inspect shows loaded:

  1. Discovered natively (e.g. AGENTS.md, or the whole .claude/ tree if the compat claim holds): nothing to generate — record it as verified-native in the report, with the inspect lines as evidence.
  2. Not discovered: bridge per the mechanics verified in Phase 3. Prefer the highest-fidelity bridge available (Grok's instructions mechanism for rules content); every generated file carries the header <!-- GENERATED from <source> by /soloship:grok. Edit the source, then re-run. -->.
  3. Hooks: Claude Code / Soloship PreToolUse gates are load-bearing protections. If Phase 3 found real lifecycle equivalents, map what maps cleanly; list everything that doesn't as protection absent in Grok Build — never silently dropped.
  4. Re-run grok inspect after bridging — the delta between the two inspect outputs is the proof the bridge worked.

Phase 5 — MCP servers

If .mcp.json exists and grok inspect doesn't already show its servers loaded: list servers by name, ask the user which to make available in Grok (multi-select), and configure them per the shape and location verified in Phase 3 (likely ~/.grok/config.toml or a project file). Secrets: placeholder plus a manual step unless the target file is confirmed outside the repo or gitignored. Verify with a final grok inspect that the chosen servers appear.

Phase 6 — Verify, record, commit

  • Final grok inspect shows: every source either natively discovered or bridged; chosen MCP servers present. Paste the relevant lines.
  • Write the manifest (hashes + inspect digest) to .ai/sync-state/grok.json.
  • Commit any generated project files per project conventions (worktree rules apply). ~/.grok/config.toml changes are machine-level — list them in the report instead of committing.

Phase 7 — Report (always, in this order)

  1. Docs-check date + anything that changed in Grok Build's mechanics since the last run (including docs-vs-behavior disagreements).
  2. Delta since last run — source changes AND Grok-side discovery changes (or "first run — full setup").
  3. Verified native vs bridged: two lists, each backed by grok inspect lines. This is the report's core — it converts the vendor's compat claim into observed fact for this project.
  4. Protections absent in Grok Build: every hook/gate with no counterpart, named, with what it guarded.
  5. Manual steps: the numbered list from Phase 3.
  6. MCP: loaded natively / configured / skipped / placeholders.
  7. Certification reminder: config synced ≠ tool trusted — and note Grok's specific history here (false-completion, 2026-08-15). Run the battery SOP before granting write access; until then, proposal-only.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.