Repository navigation
Conversation
gorban
force-pushed
the
grok-build-skills-tool
branch
from
December 3, 2026 22:02
075212f to
582ea01
Compare
gorban
marked this pull request as draft
December 3, 2026 23:17
Move DetectTools' body into detectTools, which takes the home directory and a command lookup, so tests can control both. Behavior is unchanged. The new tests cover when Cursor is detected as Grok Build, --tool cursor and --tool grok, saved tool names under either name, and Grok Build's project skills directory. The Cursor-only cases pass; the Grok Build cases fail until it is supported. Refs render-oss#81
Cursor is now Grok Build. Its desktop app still keeps its files in ~/.cursor and installs a grok-build command. - With ~/.cursor and the grok-build command, render skills lists Grok Build in place of Cursor and keeps using ~/.cursor/skills. - With ~/.cursor and no grok-build command, Cursor is detected as before, even if ~/.grok exists: the Grok CLI reads ~/.cursor/skills by default, and other tools also use ~/.grok. - With ~/.grok and no ~/.cursor, Grok Build uses ~/.grok/skills. Project skills stay in .cursor/skills. Skills are never moved, so this change adds no second copy. --tool cursor and --tool grok both select Grok Build. Tool names saved as Cursor still match it, so update, remove and list keep finding existing installs, and a new install saves the new name in their place. Fixes render-oss#81
Move the skills install text into formatInstallResult. Behavior is unchanged. The new tests cover: - Project scope: Grok Build uses .cursor/skills where the project already has .cursor, and .grok/skills otherwise, unless Render skills are already in .grok/skills. - User scope: Render skills already in ~/.grok/skills keep Grok Build there after ~/.cursor appears, with or without the grok-build command. - Install text: with one tool, name its skills folder, relative to the current directory for project scope (also when that directory is reached through a symlink) and with ~ for user scope. They fail until that is supported. Refs render-oss#81
Grok Build reads skills from both .cursor and .grok, its CLI's own directory. Where a project or home directory already has .cursor, Grok Build keeps using .cursor/skills; otherwise it uses .grok/skills. Render skills already in .grok/skills keep it there, so on one machine installs are neither left behind nor copied a second time when .cursor appears later. skills install now reports each tool's skills folder at the chosen scope (ScopedTools, shared with the interactive install), so -o json names the project folder rather than the user one. With one tool, the text output names that folder, resolving symlinks in the current directory as git does for the repository root: Installed 22 skill(s) to .grok/skills Refs render-oss#81
…CLI check The new tests cover: - `--tool cursor` and `--tool grok` selecting the tool whether it's detected as Cursor or as Grok Build, which depends on the grok-build command being on PATH. - Saving Grok Build under the name Cursor in ~/.render/skills.yaml, including state rebuilt from disk and state already saved as Grok Build, so older versions of the CLI still find it. - Detecting the Grok CLI by ~/.grok/config.toml, so a ~/.grok that belongs to another tool isn't detected and gets no skills folder. They fail until that is supported. Refs render-oss#81
…Grok CLI - `--tool cursor` and `--tool grok` select the tool whether it's detected as Cursor or as Grok Build. Which one depends on the grok-build command being on PATH, so it can differ in cron, CI or an IDE terminal. - ~/.render/skills.yaml keeps the name Cursor for Grok Build, so older versions of the CLI still find it and the saved name doesn't change with PATH. A name saved as Grok Build is rewritten as Cursor. - The Grok CLI is detected by ~/.grok/config.toml rather than ~/.grok, since other tools also use ~/.grok. Render skills already in ~/.grok/skills still keep Grok Build there. Refs render-oss#81
gorban
force-pushed
the
grok-build-skills-tool
branch
from
December 4, 2026 18:17
d595126 to
b9742e1
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Cursor is now Grok Build. Its 3.32 desktop app keeps its files in
~/.cursorand installs agrok-buildcommand (/usr/bin/grok-buildfrom the Linux package,/usr/local/bin/grok-buildon macOS). The Grok CLI (grok) keeps its files in~/.grok, with its settings in~/.grok/config.toml.render skillsnow detects Grok Build in Cursor's place:~/.cursor, nogrok-buildcommand (even with the Grok CLI, unless Render skills are already in~/.grok/skills)~/.cursor/skills~/.cursorand thegrok-buildcommand~/.cursor/skills, or~/.grok/skillsif Render skills are already there~/.grok/config.toml, no~/.cursor~/.grok/skills~/.grokwithoutconfig.toml.cursoris already in use, Grok Build keeps using.cursor/skills(read natively by the desktop app and by default by the Grok CLI); otherwise it uses.grok/skills, the Grok CLI's own folder. Render skills already in.grok/skillskeep it there. So on one machine nothing is moved and this change adds no second copy..cursor/skillsif the project has.cursor, and.grok/skillsotherwise. Cursor stays.cursor/skills. Project skills are shared, so in a project without.cursora teammate still on Cursor before the rename won't read.grok/skills, and installing at project scope adds.cursor/skillsas well, so Grok Build users in that project then see both copies.~/.render/skills.yamlkeeps the tool nameCursorfor Grok Build, so older versions of the CLI still find it and the saved name doesn't change withPATH. Commands list the detected name. A name saved asGrok Build(only possible with this branch) is rewritten asCursor.--tool cursorand--tool grokboth select the tool, whether it's detected as Cursor or Grok Build. That depends ongrok-buildbeing onPATH, which can differ in cron, CI or an IDE terminal. Help text names Grok Build.skills installreports each tool's skills folder at the chosen scope (with--scope project,-o jsonused to name the user folder), and with one tool the text output names it:Installed 22 skill(s) to .grok/skills, relative to the current directory for project scope and with~for user scope.Known limitation: a Grok CLI user with
~/.cursorwho turns off[compat.cursor]won't see skills in~/.cursor/skills.~/.agents/skills(--tool codex, included in a default install) is read natively by both Grok Build apps.If Render skills are already in both
~/.cursor/skillsand~/.grok/skills(for example, the second copy placed by hand or by another installer), Grok Build uses~/.grok/skills, andskills updateandskills removeno longer touch the copies in~/.cursor/skills.The Grok CLI is recognized by
~/.grok/config.toml, which its installer writes, because other tools also use~/.grok(for example the community grok-cli). A~/.grokwithout it isn't detected, and no skills folder is created in it.Verified with a project install to
.grok/skills: the Grok CLI 2.0.9 lists all 22 skills as project skills, and the Grok Build 3.32.25 desktop app offers them as/render-…commands.Motivation
Fixes #81. Answers to its open questions:
grok-buildcommand, since the desktop app creates no new directory. The Grok CLI (~/.grok/config.toml) counts only without~/.cursor, or when Render skills are already in~/.grok/skills: other tools also use~/.grok, and the Grok CLI reads~/.cursor/skillsby default anyway.This narrows the issue's proposal to install to
~/.grok/skillswhenever~/.grokexists:.grok/skillsis used only where.cursorisn't already in use. Otherwise, with Render skills already in.cursor/skills, Grok Build would read two copies, and installs saved as Cursor would stop being updated or removed.I've marked this as a draft until the approach in #81 is agreed. If you'd rather keep it simpler, for example keeping
.cursor/skillsand only adding the name and--tool grok, I'm happy to cut it down.How to verify
The commits are three red/green pairs: each test commit makes only behavior-preserving moves (
detectTools(home, lookPath)so tests control the home directory and commands, thenformatInstallResult) and fails on assertions until the next commit. Later pairs revise earlier ones (the project folder, the saved name), so this description, not the first commits' messages, states the final behavior. Happy to squash.Checked with Go 1.27.4 (
go test ./pkg/... ./cmd/,gofmt,go vet, golangci-lint v2.14.0 with no findings on changed lines), and by hand with a built binary, a throwawayHOMEand a stubgrok-build, including removing a skill saved as Cursor aftergrok-buildappeared, and project installs with and without.cursor, from the repository root and a subdirectory (Would install 22 skill(s) to ../.grok/skills).Rebased on
mainafter 1e3db3e and 02c8745, which fixed #79 (so #80 is closed). The newNewListResultbehindskills list -o text|json|yamlnow usesLookupTooltoo, so a tool saved asCursoris listed as the detected Grok Build, covered byTestNewListResultFindsSavedCursorAsGrokBuild.Release notes