Repository navigation
fix: Codex compatibility — 1024-char cap, duplicate skills, repo-local installs, kiro support (v0.11.2.0) - #346
Merged
Merged
Conversation
Compresses SKILL.md.tmpl root description to <1024 chars (Codex token limit). Adds description-length validation test. Includes /autoplan in compressed skill list (added since PR was branched). Co-authored-by: cweill <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds guard to skip .agents/skills/gstack in link_codex_skill_dirs() — it's a runtime asset sidecar, not a standalone skill. Prevents duplicate skill discovery and symlink overwriting. Fixes #261 Co-authored-by: mvanhorn <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…licates (#308) Removes 14K+ lines of committed generated Codex skill files from git. .agents/ is now gitignored and generated at setup time via `bun run gen:skill-docs --host codex`. Updates CI workflow to validate generation instead of checking committed file freshness. Co-authored-by: cskwork <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds migrate_direct_codex_install() to move old direct installs from ~/.codex/skills/gstack to ~/.gstack/repos/gstack. Adds create_codex_runtime_root() to expose only runtime assets (bin/, browse/, review files) via symlinks instead of symlinking the entire repo. Fixes #235 Co-authored-by: shichangs <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Changes gen-skill-docs.ts to use dynamic $GSTACK_ROOT/$GSTACK_BIN/$GSTACK_BROWSE variables in generated Codex preambles instead of hardcoded ~/.codex/ paths. Renames GSTACK_DIR → SOURCE_GSTACK_DIR/INSTALL_GSTACK_DIR throughout setup for clarity. Supports both global (~/.codex/skills/) and repo-local (.agents/skills/) Codex installs. Co-authored-by: pengwk <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds Kiro CLI as a supported agent platform. Setup detects kiro-cli, copies+sed-rewrites SKILL.md paths from Codex/Claude to Kiro format, and symlinks runtime assets (bin/, browse/). Co-authored-by: AnshulDesai <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds 3 tests identified during CEO/Eng review: - T1: link_codex_skill_dirs() contains sidecar skip guard - T2: generated Codex preambles use dynamic $GSTACK_ROOT paths - T3: setup supports --host kiro with INSTALL_KIRO and sed rewrites Also fixes existing test to expect kiro in --host case statement. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…-wave2 # Conflicts: # .agents/skills/gstack-autoplan/SKILL.md # .agents/skills/gstack-benchmark/SKILL.md # .agents/skills/gstack-browse/SKILL.md # .agents/skills/gstack-canary/SKILL.md # .agents/skills/gstack-design-consultation/SKILL.md # .agents/skills/gstack-design-review/SKILL.md # .agents/skills/gstack-document-release/SKILL.md # .agents/skills/gstack-investigate/SKILL.md # .agents/skills/gstack-land-and-deploy/SKILL.md # .agents/skills/gstack-office-hours/SKILL.md # .agents/skills/gstack-plan-ceo-review/SKILL.md # .agents/skills/gstack-plan-design-review/SKILL.md # .agents/skills/gstack-plan-eng-review/SKILL.md # .agents/skills/gstack-qa-only/SKILL.md # .agents/skills/gstack-qa/SKILL.md # .agents/skills/gstack-retro/SKILL.md # .agents/skills/gstack-review/SKILL.md # .agents/skills/gstack-setup-browser-cookies/SKILL.md # .agents/skills/gstack-setup-deploy/SKILL.md # .agents/skills/gstack-ship/SKILL.md # .agents/skills/gstack/SKILL.md # .github/workflows/skill-docs.yml # README.md
…sets, upgrade paths Paranoid 4-pass review found 7 issues, all fixed: - Add ETHOS.md to create_codex_runtime_root - Clean old real dirs (not just symlinks) on upgrade - Skip runtime root for repo-local installs (prevent self-referential symlinks) - Add review/, ETHOS.md, gstack-upgrade/ to Kiro install - Update gstack-upgrade to detect ~/.gstack/repos/ and .agents/skills/ - Guard --host without value from silent exit - Fix Kiro sed patterns + timeout instruction in gen-skill-docs.ts Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…-wave2 # Conflicts: # .agents/skills/gstack-autoplan/SKILL.md # .agents/skills/gstack-benchmark/SKILL.md # .agents/skills/gstack-browse/SKILL.md # .agents/skills/gstack-canary/SKILL.md # .agents/skills/gstack-design-consultation/SKILL.md # .agents/skills/gstack-design-review/SKILL.md # .agents/skills/gstack-document-release/SKILL.md # .agents/skills/gstack-investigate/SKILL.md # .agents/skills/gstack-land-and-deploy/SKILL.md # .agents/skills/gstack-office-hours/SKILL.md # .agents/skills/gstack-plan-ceo-review/SKILL.md # .agents/skills/gstack-plan-design-review/SKILL.md # .agents/skills/gstack-plan-eng-review/SKILL.md # .agents/skills/gstack-qa-only/SKILL.md # .agents/skills/gstack-qa/SKILL.md # .agents/skills/gstack-retro/SKILL.md # .agents/skills/gstack-review/SKILL.md # .agents/skills/gstack-setup-browser-cookies/SKILL.md # .agents/skills/gstack-setup-deploy/SKILL.md # .agents/skills/gstack-ship/SKILL.md # .agents/skills/gstack/SKILL.md
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This was referenced Mar 23, 2026
Closed
Closed
Closed
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
rapidstartup
pushed a commit
to rapidstartup/gstack
that referenced
this pull request
Mar 29, 2026
…l installs, kiro support (v0.11.2.0) (garrytan#346) * fix: cap gstack skill descriptions for codex (garrytan#251) Compresses SKILL.md.tmpl root description to <1024 chars (Codex token limit). Adds description-length validation test. Includes /autoplan in compressed skill list (added since PR was branched). Co-authored-by: cweill <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix: skip sidecar dir in Codex skill linking (garrytan#269) Adds guard to skip .agents/skills/gstack in link_codex_skill_dirs() — it's a runtime asset sidecar, not a standalone skill. Prevents duplicate skill discovery and symlink overwriting. Fixes garrytan#261 Co-authored-by: mvanhorn <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix: generate .agents directory at setup time instead of shipping duplicates (garrytan#308) Removes 14K+ lines of committed generated Codex skill files from git. .agents/ is now gitignored and generated at setup time via `bun run gen:skill-docs --host codex`. Updates CI workflow to validate generation instead of checking committed file freshness. Co-authored-by: cskwork <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix: avoid duplicate Codex skill discovery (garrytan#236) Adds migrate_direct_codex_install() to move old direct installs from ~/.codex/skills/gstack to ~/.gstack/repos/gstack. Adds create_codex_runtime_root() to expose only runtime assets (bin/, browse/, review files) via symlinks instead of symlinking the entire repo. Fixes garrytan#235 Co-authored-by: shichangs <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * feat: support repo-local Codex installs (garrytan#317) Changes gen-skill-docs.ts to use dynamic $GSTACK_ROOT/$GSTACK_BIN/$GSTACK_BROWSE variables in generated Codex preambles instead of hardcoded ~/.codex/ paths. Renames GSTACK_DIR → SOURCE_GSTACK_DIR/INSTALL_GSTACK_DIR throughout setup for clarity. Supports both global (~/.codex/skills/) and repo-local (.agents/skills/) Codex installs. Co-authored-by: pengwk <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * feat: add --host kiro support to setup script (garrytan#309) Adds Kiro CLI as a supported agent platform. Setup detects kiro-cli, copies+sed-rewrites SKILL.md paths from Codex/Claude to Kiro format, and symlinks runtime assets (bin/, browse/). Co-authored-by: AnshulDesai <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * test: add sidecar skip, GSTACK_ROOT, and kiro coverage (T1-T3) Adds 3 tests identified during CEO/Eng review: - T1: link_codex_skill_dirs() contains sidecar skip guard - T2: generated Codex preambles use dynamic $GSTACK_ROOT paths - T3: setup supports --host kiro with INSTALL_KIRO and sed rewrites Also fixes existing test to expect kiro in --host case statement. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix: review fixes — ETHOS.md, runtime root, repo-local guard, kiro assets, upgrade paths Paranoid 4-pass review found 7 issues, all fixed: - Add ETHOS.md to create_codex_runtime_root - Clean old real dirs (not just symlinks) on upgrade - Skip runtime root for repo-local installs (prevent self-referential symlinks) - Add review/, ETHOS.md, gstack-upgrade/ to Kiro install - Update gstack-upgrade to detect ~/.gstack/repos/ and .agents/skills/ - Guard --host without value from silent exit - Fix Kiro sed patterns + timeout instruction in gen-skill-docs.ts Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * chore: bump version and changelog (v0.11.2.0) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * chore: remove last tracked .agents/ file from git index Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: cweill <[email protected]> Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> Co-authored-by: mvanhorn <[email protected]> Co-authored-by: cskwork <[email protected]> Co-authored-by: shichangs <[email protected]> Co-authored-by: pengwk <[email protected]> Co-authored-by: AnshulDesai <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.codex/skills/gstackexposes only assets Codex needs~/.codex/skills/gstackcheckouts moved to~/.gstack/repos/gstack.agents/skills/gstackno longer linked as a standalone skill.agents/gitignored — 14K+ lines of generated output removed from repo, generated at setup time.agents/skills/gstack, run./setup --host codex./setup --host kirowith auto-detectionMerges community PRs: #251, #269, #308, #236, #317, #309
Closes #230, #263, #281, #235, #261
Test Coverage
520 tests pass, 0 failures. 3 new tests added (T1-T3):
link_codex_skill_dirs()$GSTACK_ROOTdynamic paths in generated Codex preambles--host kirosupport validationPre-Landing Review
Paranoid 4-pass review (Claude structured + Claude adversarial + Codex structured + Codex adversarial).
Eval Results
No prompt-related files changed — evals skipped.
TODOS
No TODO items completed or created in this PR.
Test plan
bash -n setupsyntax check passesbun run gen:skill-docs --host codexgenerates all skillsbun run buildsucceeds🤖 Generated with Claude Code
Co-authored-by: cweill [email protected]
Co-authored-by: mvanhorn [email protected]
Co-authored-by: cskwork [email protected]
Co-authored-by: shichangs [email protected]
Co-authored-by: pengwk [email protected]
Co-authored-by: AnshulDesai [email protected]