Skip to content

feat(integrations): add Grok Build skills-based integration#3535

Open
natechadwick wants to merge 1 commit into
github:mainfrom
natechadwick:feat/grok-build-integration
Open

feat(integrations): add Grok Build skills-based integration#3535
natechadwick wants to merge 1 commit into
github:mainfrom
natechadwick:feat/grok-build-integration

Conversation

@natechadwick

Copy link
Copy Markdown

Summary

Adds first-class xAI Grok Build support as a built-in Spec Kit integration.

  • New GrokIntegration (SkillsIntegration) installs skills to .grok/skills/speckit-<command>/SKILL.md
  • Registered in the integration registry and built-in catalog (integrations/catalog.json)
  • Init next-steps copy for Grok; slash-skills invocation via /speckit-<command>
  • Agent-context default maps grokAGENTS.md
  • Issue templates updated so agent dropdowns stay in sync with AGENT_CONFIG
  • Ignore .grok/ in repo root for local dogfooding (same pattern as other agent folders)

Usage:

specify init my-project --integration grok
# or
specify init --here --integration grok

Skills install under .grok/skills/ and are invoked as /speckit-specify, /speckit-plan, etc.

AI disclosure

This PR was developed with Grok Build assistance under human supervision (design review, test selection, and verification by @natechadwick). Code generation, tests, docs wiring, and PR packaging were agent-assisted; changes were reviewed and smoke-tested locally before submission.

Test plan

Automated

  • .venv/bin/python -m pytest tests/integrations/test_integration_grok.py tests/test_agent_config_consistency.py tests/integrations/test_integration_zed.py -q106 passed, 2 skipped
  • specify init /tmp/speckit-grok-smoke --integration grok --ignore-agent-tools --script sh → creates all core skills under .grok/skills/
  • Verified skill frontmatter and /speckit-plan invocation style + build_exec_args (grok -p … --model … --output-format json)

Manual test results

Agent: Grok Build | OS/Shell: Linux/bash

Command tested Notes
specify init … --integration grok Pass — skills under .grok/skills, next-steps list skills as /speckit-*
Skill scaffold inspection Pass — speckit-specify / speckit-plan SKILL.md present without __CONTEXT_FILE__

Test selection reasoning

Changed file Affects Test Why
src/specify_cli/integrations/grok/* init + skills install T1 New built-in integration
src/specify_cli/integrations/__init__.py registry T1 / unit Registration
src/specify_cli/_invocation_style.py slash skills format unit (zed suite) Conditional slash skills
src/specify_cli/commands/init.py post-init guidance T1 Grok skill-mode next steps
issue templates / agent-context defaults consistency config consistency tests Keep surfaces in sync

Required tests

  • T1: specify init --integration grok — scaffolding + skills layout
  • Unit: test_integration_grok.py + agent config consistency

Full interactive /speckit-specify → plan → tasks workflow in a greenfield project can be run by reviewers with Grok Build installed; CLI scaffolding and skill content generation are covered above.

Add first-class support for xAI Grok Build via SkillsIntegration, installing
speckit skills under .grok/skills and wiring init/invocation/catalog surfaces.

Assisted-by: Grok Build (model: grok-4, supervised)

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.

Pull request overview

Adds first-class Grok Build support as a skills-based integration.

Changes:

  • Registers Grok and scaffolds skills under .grok/skills.
  • Adds invocation guidance, context defaults, catalog metadata, and documentation.
  • Adds integration, configuration-consistency, and hook-invocation tests.
Show a summary per file
File Description
src/specify_cli/integrations/grok/__init__.py Defines the Grok integration.
src/specify_cli/integrations/__init__.py Registers Grok.
src/specify_cli/commands/init.py Adds Grok next-step guidance.
src/specify_cli/_invocation_style.py Enables hyphenated skill invocations.
integrations/catalog.json Adds catalog metadata.
extensions/agent-context/agent-context-defaults.json Maps Grok to AGENTS.md.
docs/reference/integrations.md Documents Grok support.
.gitignore Ignores local Grok scaffolding.
.github/ISSUE_TEMPLATE/agent_request.yml Updates supported agents.
.github/ISSUE_TEMPLATE/bug_report.yml Adds Grok to the dropdown.
.github/ISSUE_TEMPLATE/feature_request.yml Adds Grok to the dropdown.
tests/integrations/test_integration_grok.py Tests Grok setup and CLI arguments.
tests/integrations/test_integration_zed.py Tests Grok invocation formatting.
tests/test_agent_config_consistency.py Synchronizes expected agent keys.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 13/14 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment on lines +738 to +740
if grok_skill_mode:
steps_lines.append(
f"{step_num}. Start Grok Build in this project directory; spec-kit skills were installed to [cyan].grok/skills[/cyan]"
| `cursor-agent` | `.cursor/skills`, `.cursor/rules/specify-rules.mdc` |
| `firebender` | `.firebender/commands`, `.firebender/rules/specify-rules.mdc` |
| `gemini` | `.gemini/commands`, `GEMINI.md` |
| `grok` | `.grok/skills` |
@mnriem

mnriem commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Please address Copilot feedback

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.

3 participants