mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 00:21:14 +01:00
On Codex, gstack's routing hint now names each skill by the `name:` in its installed SKILL.md (`review`), the name Codex lists, so `$review` loads the suggested skill. Before, the hint said `gstack-review` (the folder name), which Codex doesn't list, so mentioning it loaded nothing. Nothing to do: the next `./setup --host codex` picks it up. Claude Code's hint is unchanged. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
12 lines
703 B
TypeScript
Executable File
12 lines
703 B
TypeScript
Executable File
#!/usr/bin/env -S bun --no-env-file --config=/dev/null
|
|
/**
|
|
* codex-skill-route-hook — the skill-routing hook on Codex (GST-3172). The same UserPromptSubmit hook as Claude
|
|
* Code's (hosts/claude/hooks/skill-route-hook.ts) with host codex: it scans ${CODEX_HOME:-~/.codex}/skills, names
|
|
* skills as Codex lists them (by their SKILL.md name, so gstack-review/ is review), words the hint for Codex, and
|
|
* never routes a prompt that starts with `$` (a Codex skill mention) or `/`. Same switch (skill_routing), same deadline, same trace log.
|
|
* Docs: docs/skill-routing-and-contracts.md#codex.
|
|
*/
|
|
import { runSkillRouteHook } from '../../claude/hooks/skill-route-hook.ts';
|
|
|
|
runSkillRouteHook('codex');
|