Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gitignore
Binary file not shown.
51 changes: 51 additions & 0 deletions hosts/grok-build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import type { HostConfig } from '../scripts/host-config';

const grokBuild: HostConfig = {
name: 'grok-build',
displayName: 'Grok Build',
cliCommand: 'grok',
cliAliases: ['grok-build'],

globalRoot: '.grok/skills/gstack',
localSkillRoot: '.grok/skills/gstack',
hostSubdir: '.grok',

usesEnvVars: true,

frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description', 'triggers'],
descriptionLimit: null,
},

generation: {
generateMetadata: false,
skipSkills: ['codex'],
},

pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '~/.grok/skills/gstack' },
{ from: '.claude/skills/gstack', to: '.grok/skills/gstack' },
{ from: '.claude/skills', to: '.grok/skills' },
{ from: '~/.claude/skills', to: '~/.grok/skills' },
],

toolRewrites: [
{ from: 'browser tool', to: 'subagent browser tool' },
{ from: 'Playwright', to: 'Grok subagent browser' },
],

runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'gstack-upgrade'],
globalFiles: {},
},

install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},

learningsMode: 'basic',
};

export default grokBuild;
5 changes: 3 additions & 2 deletions hosts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import slate from './slate';
import cursor from './cursor';
import openclaw from './openclaw';
import hermes from './hermes';
import grokBuild from './grok-build';
import gbrain from './gbrain';

/** All registered host configs. Add new hosts here. */
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain];
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, grokBuild];

/** Map from host name to config. */
export const HOST_CONFIG_MAP: Record<string, HostConfig> = Object.fromEntries(
Expand Down Expand Up @@ -65,4 +66,4 @@ export function getExternalHosts(): HostConfig[] {
}

// Re-export individual configs for direct import
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain };
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, grokBuild };
20 changes: 20 additions & 0 deletions test/fixtures/golden/grok-build-ship-SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
\---

name: grok-build-ship

description: Ship changes for grok-build host

triggers: \[]

\---



\# Ship for Grok Build



Golden fixture for the grok-build host.

This file confirms the host is properly registered.