Skip to content

Offer Grok Build as a skill install target - #213

Open
jeremy wants to merge 1 commit into
masterfrom
grok-skill
Open

Offer Grok Build as a skill install target#213
jeremy wants to merge 1 commit into
masterfrom
grok-skill

Conversation

@jeremy

@jeremy jeremy commented Sep 10, 2026

Copy link
Copy Markdown
Member

Origin: basecamp/hey-cli#344 by @shawnyeager — this carries that design (Shawn's) to fizzy-cli at the depth fizzy gives Codex.

What it does

fizzy skill (the interactive install wizard) gains a Grok (Global) location beside Codex (Global), resolving to $GROK_HOME/skills/fizzy/SKILL.md when GROK_HOME is set (trimmed), otherwise ~/.grok/skills/fizzy/SKILL.md. README's list of agents gains Grok.

The Codex path helper differed from the Grok one only in env var and home directory, so it becomes agentGlobalSkillPath(homeEnv, homeDir) called twice; codexGlobalSkillPath() keeps its name and behavior.

Why only a skill-path row

In fizzy-cli, Codex is a skill-copy destination and nothing more: no detection, no harness registration (internal/harness knows only Claude), no setup codex, no doctor check. Grok is added at exactly that depth — a peer of Codex everywhere Codex appears, and nowhere Codex does not. hey-cli has a full agent framework that this repo lacks; only the facts and the "peer of Codex" bar are borrowed from #344, not the harness.

Grok facts

  • Product: xAI Grok Build, binary grok.
  • Home: ~/.grok, overridden by GROK_HOMEdocs.x.ai/build/settings; xai-dirs crate in xai-org/grok-build.
  • Skills: user skills are read from ~/.grok/skills/ and also from the cross-agent ~/.agents/skills/docs.x.ai/build/features/skills-plugins-marketplaces, "Agents.md compatibility". So the shared Agents (Shared) baseline already reaches Grok; Grok (Global) is the user-chosen agent-local copy, exactly as Codex (Global) is.

Tests

  • New TestAgentGlobalSkillPath, table-driven over both agents: default, *_HOME override, and whitespace-only override falling back to the default.
  • make check (fmt-check, vet, lint, tidy-check, race-test) and make surface-check green. SURFACE.txt is unchanged — the wizard's location list is not part of the command structure it snapshots.

Summary by cubic

Adds Grok Build as a skill install target in the fizzy skill wizard, giving users the same agent-local copy option they already have for Codex.

  • New "Grok (Global)" location resolves to $GROK_HOME/skills/fizzy/SKILL.md when set, otherwise ~/.grok/skills/fizzy/SKILL.md.
  • Generalizes the Codex path helper into a shared agentGlobalSkillPath; Codex behavior stays the same.
  • Grok also reads the cross-agent ~/.agents/skills/ baseline, so this adds the agent-local copy without changing that shared path.
  • Updates the README agent list and adds table-driven tests covering default, env override, and blank override for both agents.

Written for commit 841f744. Summary will update on new commits.

Review in cubic

Add "Grok (Global)" to the skill install wizard's location list beside
"Codex (Global)". Grok Build keeps its home at ~/.grok, overridable by
GROK_HOME, and reads user skills from ~/.grok/skills/ -- the same shape
Codex has with ~/.codex and CODEX_HOME. The Codex helper is generalized
into agentGlobalSkillPath(homeEnv, homeDir) and called for both agents
rather than copied.

Grok also reads the cross-agent ~/.agents/skills/, so the shared
baseline already reaches it; this row is the agent-local copy a user
can choose, exactly as the Codex row is. Nothing more is added -- no
detection, harness entry or setup handler -- because Codex has none of
those in fizzy-cli either.

README's list of agents gains Grok. A table-driven test covers both
helpers' env override, blank override and default.
Copilot AI balanced review requested due to automatic review settings September 10, 2026 19:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-10T19:46:04.387333Z 841f744 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

The implementation matches the stated Codex-peer scope and includes appropriate path-resolution coverage.

Pull request overview

Adds Grok Build as a global skill installation target alongside Codex.

Changes:

  • Adds Grok to the interactive skill wizard and README.
  • Generalizes agent-global skill path resolution.
  • Tests defaults, environment overrides, and blank overrides.

[!TIP]
If you aren't ready for review, convert to a draft PR. Click "Convert to draft" or run gh pr ready --undo. Click "Ready for review" or run gh pr ready to reengage.

File summaries
File Description
README.md Lists Grok as a supported agent.
internal/commands/skill.go Adds and resolves the Grok global target.
internal/commands/skill_test.go Covers Codex and Grok path resolution.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants