Files
gstack/hosts/cursor.ts
Garry Tan 8b5256342b feat: add OpenCode, Slate, and Cursor host configs
Three new hosts added to the declarative config system. Each is a typed
HostConfig object with paths, frontmatter rules, and path rewrites.
All generate valid SKILL.md output with zero .claude/skills path leakage.

- hosts/opencode.ts: OpenCode (opencode.ai), skills at ~/.config/opencode/
- hosts/slate.ts: Slate (Random Labs), skills at ~/.slate/
- hosts/cursor.ts: Cursor, skills at ~/.cursor/
- .gitignore: add .kiro/, .opencode/, .slate/, .cursor/, .openclaw/

Zero code changes needed — just config files + re-export in index.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 16:33:54 -07:00

47 lines
1.0 KiB
TypeScript

import type { HostConfig } from '../scripts/host-config';
const cursor: HostConfig = {
name: 'cursor',
displayName: 'Cursor',
cliCommand: 'cursor',
cliAliases: [],
globalRoot: '.cursor/skills/gstack',
localSkillRoot: '.cursor/skills/gstack',
hostSubdir: '.cursor',
usesEnvVars: true,
frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description'],
descriptionLimit: null,
},
generation: {
generateMetadata: false,
skipSkills: ['codex'],
},
pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '~/.cursor/skills/gstack' },
{ from: '.claude/skills/gstack', to: '.cursor/skills/gstack' },
{ from: '.claude/skills', to: '.cursor/skills' },
],
runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'browse/bin', 'gstack-upgrade', 'ETHOS.md'],
globalFiles: {
'review': ['checklist.md', 'TODOS-format.md'],
},
},
install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},
learningsMode: 'basic',
};
export default cursor;