-
Notifications
You must be signed in to change notification settings - Fork 10.8k
feat(integrations): add Grok Build skills-based integration #3535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dc6d6a1
feat(integrations): add Grok Build skills-based integration
natechadwick 4b53469
test+docs: address Copilot review on Grok multi-install and next steps
ff9983a
fix(integrations): Grok headless --always-approve and isolation paths
a8dc48c
docs(integrations): list only managed .grok/skills for Grok isolation
7687841
fix(integrations): always-slash Grok hooks and refresh catalog date
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,6 +76,7 @@ body: | |
| - Gemini CLI | ||
| - GitHub Copilot | ||
| - Goose | ||
| - Grok Build | ||
| - Hermes Agent | ||
| - IBM Bob | ||
| - Junie | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,7 @@ body: | |
| - Gemini CLI | ||
| - GitHub Copilot | ||
| - Goose | ||
| - Grok Build | ||
| - Hermes Agent | ||
| - IBM Bob | ||
| - Junie | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| """Grok Build integration — skills-based agent. | ||
| Grok Build discovers project skills from ``.grok/skills/speckit-<name>/SKILL.md`` | ||
| (and also scans ``.agents/skills/``). Spec Kit installs into the native | ||
| ``.grok/skills`` tree so skills take highest local priority. | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from ..base import SkillsIntegration | ||
|
|
||
|
|
||
| class GrokIntegration(SkillsIntegration): | ||
| """Integration for xAI Grok Build CLI.""" | ||
|
|
||
| key = "grok" | ||
| config = { | ||
| "name": "Grok Build", | ||
| "folder": ".grok/", | ||
| "commands_subdir": "skills", | ||
| "install_url": "https://docs.x.ai/build/overview", | ||
| "requires_cli": True, | ||
| } | ||
| registrar_config = { | ||
| "dir": ".grok/skills", | ||
| "format": "markdown", | ||
| "args": "$ARGUMENTS", | ||
| "extension": "/SKILL.md", | ||
| } | ||
| multi_install_safe = True | ||
|
|
||
| def build_exec_args( | ||
| self, | ||
| prompt: str, | ||
| *, | ||
| model: str | None = None, | ||
| output_json: bool = True, | ||
| ) -> list[str] | None: | ||
| """Build CLI arguments for non-interactive ``grok`` execution. | ||
| Mandatory headless flag: | ||
| * ``--always-approve`` — auto-approve tool executions so workflow | ||
| dispatch and ``dispatch_command()`` are not blocked at permission | ||
| gates (same role as Cursor's ``--force`` / Copilot's ``--yolo``). | ||
| """ | ||
| if not self.config or not self.config.get("requires_cli"): | ||
| return None | ||
| args = [ | ||
| self._resolve_executable(), | ||
| "-p", | ||
| prompt, | ||
| "--always-approve", | ||
| ] | ||
| self._apply_extra_args_env_var(args) | ||
| if model: | ||
| args.extend(["--model", model]) | ||
| if output_json: | ||
| args.extend(["--output-format", "json"]) | ||
| return args |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.