mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-12 23:52:20 +02:00
fix: avoid duplicate Codex skill discovery (#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 #235 Co-authored-by: shichangs <shichangs@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -61,10 +61,14 @@ Real files get committed to your repo (not a submodule), so `git clone` just wor
|
||||
gstack works on any agent that supports the [SKILL.md standard](https://github.com/anthropics/claude-code). Skills live in `.agents/skills/` and are discovered automatically.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/garrytan/gstack.git ~/.codex/skills/gstack
|
||||
cd ~/.codex/skills/gstack && ./setup --host codex
|
||||
git clone https://github.com/garrytan/gstack.git ~/gstack
|
||||
cd ~/gstack && ./setup --host codex
|
||||
```
|
||||
|
||||
`setup --host codex` creates the runtime root at `~/.codex/skills/gstack` and
|
||||
links the generated Codex skills at the top level. This avoids duplicate skill
|
||||
discovery from the source repo checkout.
|
||||
|
||||
Or let setup auto-detect which agents you have installed:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user