mirror of
https://github.com/librekeys/gpui-component.git
synced 2026-07-28 08:00:57 -07:00
The Skills page linked to stale paths from before the skills consolidation in `89f7662`. The data loader only scanned `.claude/skills/`, missing the two skills moved to `skills/gpui` and `skills/gpui-component`. ## Description - Updated `docs/data/skills.data.js` to scan both `skills/` and `.claude/skills/` directories instead of only `.claude/skills/` - Used the full relative path (from repo root) as the skill `id` to prevent collisions if the same directory name appears in both locations ```diff - const skillsDir = join(__dirname, "../../.claude/skills"); + const skillsDirs = [ + join(repoRoot, "skills"), + join(repoRoot, ".claude/skills"), + ]; ``` Skills now resolved: | ID | Path | |----|------| | `skills/gpui` | `skills/gpui/SKILL.md` | | `skills/gpui-component` | `skills/gpui-component/SKILL.md` | | `.claude/skills/gpui-component-dev` | `.claude/skills/gpui-component-dev/SKILL.md` | ## Screenshot | Before | After | |--------|-------| | Links pointed to removed paths (e.g. `.claude/skills/gpui-action/SKILL.md`) | Links point to existing skill entry points | ## How to Test Load the Skills page (`/skills`) and verify all skill cards link to existing GitHub paths. ## Checklist - [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and followed the guidelines. - [ ] Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate. - [ ] Passed `cargo run` for story tests related to the changes. - [ ] Tested macOS, Windows and Linux platforms performance (if the change is platform-specific) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>