garrytan/gstack · error · Error
Usage: $B domain-skill promote-to-global <host>
Error message
Usage: $B domain-skill promote-to-global <host>
What it means
Error "Usage: $B domain-skill promote-to-global <host>" thrown in garrytan/gstack.
Source
Thrown at browse/src/domain-skill-commands.ts:219
return `No changes for ${host}.`;
}
// Re-save (always per-project; promotion is explicit)
const page = (global as any).__bm?.getPage?.();
void page; // we're in the daemon — page available, but for edit we trust the existing host
const row = await writeSkill({
host: current.host,
body: newBody,
projectSlug: slug,
source: 'human',
classifierScore: 0,
});
return formatSavedOk(row, slug);
}
async function handlePromoteToGlobal(args: string[]): Promise<string> {
const host = args[0];
if (!host) {
throw new Error('Usage: $B domain-skill promote-to-global <host>');
}
const slug = getCurrentProjectSlug();
const row = await promoteToGlobal(host, slug);
return [
`Promoted ${row.host} to global scope (v${row.version}).`,
`Stored at: ~/.gstack/global-domain-skills.jsonl`,
'',
`This skill now fires for all projects unless they have a per-project skill for the same host.`,
].join('\n');
}
async function handleRollback(args: string[]): Promise<string> {
const host = args[0];
if (!host) {
throw new Error('Usage: $B domain-skill rollback <host>');
}
const scope: SkillScope = args.includes('--global') ? 'global' : 'project';
const slug = getCurrentProjectSlug();View on GitHub (pinned to 94993f7401)
When it happens
Trigger: Thrown at browse/src/domain-skill-commands.ts:219 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of garrytan/gstack@94993f7401 (2026-08-12).
Data as JSON: /api/errors/551a0bb705d9aa53.
Report an issue: GitHub.