Codex skill suggestions name each skill the way Codex lists it (GST-3195) (#4523)

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>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-19 11:59:36 +00:00
1 parent f82b6f76f3
commit be83949eb6
6 files changed
+79 -13

No files matched your search

+5 -4
View File
@@ -203,9 +203,10 @@ export function scanInstalledSkills(dir: string): { skills: InstalledSkill[]; pr
}
/**
* Codex's skills, as scanInstalledSkills reads them, with each gstack skill (a gstack-<name> directory) named by
* its directory, the name Codex mentions it by ($gstack-review). Codex renders keep only name and description, so
* a gstack skill without triggers takes them from the same skill's Claude render in this checkout.
* Codex's skills, as scanInstalledSkills reads them. Each gstack skill (a gstack-<name> directory) keeps the name its
* installed SKILL.md gives, the one Codex lists and mentions it by (gstack-review/ holds name: review, so $review), or
* its directory when that name is missing or unusable. Codex renders keep only name and description, so a gstack
* skill without triggers takes them from the same skill's Claude render in this checkout.
*/
export function scanCodexSkills(dir: string): { skills: InstalledSkill[]; problems: string[] } {
const { skills, problems } = scanInstalledSkills(dir);
@@ -221,7 +222,7 @@ export function scanCodexSkills(dir: string): { skills: InstalledSkill[]; proble
if (fm && /^triggers:/m.test(fm)) triggers = frontmatterList(`---\n${fm}\n---`, 'triggers');
} catch { /* no Claude render beside this file: the skill routes on nothing */ }
}
return { ...s, name: entry, triggers, gstack: true };
return { ...s, name: SKILL_NAME.test(s.name) ? s.name : entry, triggers, gstack: true };
}),
};
}