Skip to content

feat(grok): add skills-only support for grok build - #1349

Open
0x6d6e647a wants to merge 3 commits into
Fission-AI:mainfrom
0x6d6e647a:grok-build
Open

feat(grok): add skills-only support for grok build#1349
0x6d6e647a wants to merge 3 commits into
Fission-AI:mainfrom
0x6d6e647a:grok-build

Conversation

@0x6d6e647a

@0x6d6e647a 0x6d6e647a commented Jul 11, 2026

Copy link
Copy Markdown

Status

LGTM. Ready for final review on commit 38b44b749: the branch is conflict-free, and hosted Linux, macOS, Windows, lint/type, release-tracking, Security, and CodeRabbit checks pass. No additional code changes were warranted by the architecture and safety re-audit.

Motivation

Grok Build discovers native project skills in .grok/skills, but OpenSpec did not register it as a tool. Users otherwise needed a compatibility path or manual skill setup.

What it does

  • Registers grok as a skills-only tool using .grok/skills/openspec-*/SKILL.md.
  • Uses the existing init/update, profile, and skill-reference logic. No new command adapter or delivery behavior is introduced.
  • Documents /openspec-propose and other skill invocations, the native path, and the requirement for skills or both delivery.
  • Adds a minor changeset and preserves the original contributor commits while merging current main.

The integration matches the official Grok skill contract.

Proof it works

  • All 4,238 tests in 145 files pass on Node 20.19.0 with localhost access and an isolated temporary user profile. No tests were skipped. Four host-dependent failures reproduced on main and disappeared after isolating host configuration and Oh My Zsh paths; no source changes were needed for them.
  • Build, TypeScript checking, lint, changed-spec strict validation, and changeset validation pass.
  • All 309 init, update, and tool-detection tests pass on Node 26.7.0.
  • Eight new positive Grok cases fail on unmodified main, then pass with this registration. Coverage includes both supported delivery modes, commands-only behavior, discovery, profile transitions, invocation contents, and preservation of custom skills and unrelated files.
  • A real CLI smoke test passes for mixed Grok/Claude setup, six core skills, repeat initialization, and refreshing stale skills without creating Grok command files or altering user configuration.
  • Independent review found no blocking issues and checked all 12 generated workflow skills against the upstream YAML and invocation contract.
  • Byte-for-byte CLI comparisons against main match for all 39 existing tools after both init and update, across core and full custom profiles with both, skills, and commands delivery.
  • Two additional independent reviews found no core design or architecture changes beyond registering the new tool. Sixteen external/dangling-symlink probes preserved external targets, and mixed Grok/Claude/Codex installs and profile transitions preserved each tool's rendering and unrelated user files.

Notes

Commands-only delivery intentionally follows existing adapterless-tool behavior: it installs no Grok workflows and removes managed Grok skill folders on update, including files inside those folders. Unrelated configuration, commands, and custom skills remain intact. No workflow definitions, defaults, capability model, or global configuration schema change.

The Grok application itself was not launched; verification covers OpenSpec's generated artifacts against the documented integration surface. Archived change artifacts retain their historical context.

@0x6d6e647a
0x6d6e647a requested a review from TabishB as a code owner July 11, 2026 08:58
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ed65c2e-5600-4d64-8bed-36836542ddc1

📥 Commits

Reviewing files that changed from the base of the PR and between f1079d8 and 38b44b7.

📒 Files selected for processing (11)
  • .changeset/grok-build-skills.md
  • docs/cli.md
  • docs/commands.md
  • docs/how-commands-work.md
  • docs/supported-tools.md
  • docs/troubleshooting.md
  • openspec/specs/cli-init/spec.md
  • src/core/config.ts
  • test/core/available-tools.test.ts
  • test/core/init.test.ts
  • test/core/update.test.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • docs/how-commands-work.md
  • docs/commands.md
  • docs/troubleshooting.md

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

Grok Build is added as a supported skills-only tool with skillsDir: '.grok'. Initialization and update flows manage Grok skills without command files. Documentation, specifications, release metadata, and regression tests cover the integration.

Changes

Grok Build skills-only support

Layer / File(s) Summary
Skills-only behavior contracts
openspec/changes/archive/..., openspec/specs/...
The proposal, design, and specifications define .grok skill paths, adapterless command generation, delivery behavior, and validation requirements.
Tool registration and initialization coverage
src/core/config.ts, test/core/available-tools.test.ts, test/core/init.test.ts
The registry adds Grok Build. Tests verify .grok detection, skill generation, absent command files, and delivery correction.
Update and delivery behavior
test/core/update.test.ts
Tests verify skill refresh, preservation of user files, commands-only cleanup, warnings, and profile synchronization.
Documentation and release metadata
docs/*.md, .changeset/grok-build-skills.md
Documentation describes Grok Build and Zed Agent identifiers, skill-based invocations, delivery rules, supported paths, and troubleshooting. Release metadata announces Grok Build support.

CLI artifact language contract

Layer / File(s) Summary
Artifact language configuration
openspec/specs/cli-init/spec.md
The CLI specification adds scenarios for --language configuration, existing project protection, unsafe values, and configuration write failures.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 38b44

This change adds Grok Build through the existing fixed-directory skills integration without adding command execution or new privileges. No actionable merge-blocking risk remains after normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant InitCommand
  participant AI_TOOLS
  participant SkillGeneration
  participant CommandAdapterRegistry
  InitCommand->>AI_TOOLS: resolve grok with skillsDir .grok
  InitCommand->>SkillGeneration: generate skills under .grok/skills
  InitCommand->>CommandAdapterRegistry: look up Grok Build adapter
  CommandAdapterRegistry-->>InitCommand: no adapter registered
  InitCommand-->>InitCommand: skip command-file generation and log reason
Loading

Suggested reviewers: tabishb, clay-good

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: adding skills-only support for Grok Build.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4 files. (7 skipped: 7 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/how-commands-work.md (1)

83-87: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify Grok’s slash-based skill invocation.

The new row correctly uses /openspec-propose, but the surrounding guidance says skill-based tools use skills “instead of slash commands” while the page’s generic instructions still direct users to /opsx. Qualify those instructions or explicitly state that Grok uses /openspec-* slash-invoked skills.

Suggested wording
-| Grok Build | skill-style, e.g. `/openspec-propose` |
+| Grok Build | skill-style slash invocation, e.g. `/openspec-propose` |

-A few tools surface OpenSpec as named skills instead of slash commands; for those you invoke the skill by name.
+Some tools surface OpenSpec as named skills; use the tool-specific slash syntax shown above.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/how-commands-work.md` around lines 83 - 87, Clarify the guidance in
docs/how-commands-work.md to explicitly state that Grok invokes its skills
through /openspec-* slash commands, while other named-skill tools may use
non-slash invocation. Align the generic instructions with the Grok Build row and
existing /opsx guidance without changing the command mappings.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@docs/how-commands-work.md`:
- Around line 83-87: Clarify the guidance in docs/how-commands-work.md to
explicitly state that Grok invokes its skills through /openspec-* slash
commands, while other named-skill tools may use non-slash invocation. Align the
generic instructions with the Grok Build row and existing /opsx guidance without
changing the command mappings.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e0e690d2-4e58-4560-a084-18b5c0d97647

📥 Commits

Reviewing files that changed from the base of the PR and between 0a99f41 and 9e78d4c.

📒 Files selected for processing (15)
  • docs/cli.md
  • docs/commands.md
  • docs/how-commands-work.md
  • docs/supported-tools.md
  • docs/troubleshooting.md
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/.openspec.yaml
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/design.md
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/proposal.md
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/specs/ai-tool-paths/spec.md
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/specs/cli-init/spec.md
  • openspec/changes/archive/2026-07-11-add-grok-build-skills-only-support/tasks.md
  • openspec/specs/ai-tool-paths/spec.md
  • openspec/specs/cli-init/spec.md
  • src/core/config.ts
  • test/core/init.test.ts

@0x6d6e647a
0x6d6e647a requested a review from a team as a code owner August 10, 2026 15:38
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@clay-good clay-good changed the title feat: add Grok Build skills-only support feat(grok): add skills-only support for grok build Aug 27, 2026
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