docs: generate Skills page GitHub links from real skill paths#2422
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix GitHub links generation for skills page
docs: generate Skills page GitHub links from real skill paths
May 31, 2026
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.
Description
Skills data is loaded from
.claude/skills, but the page hardcoded links toskills/{id}/SKILL.md, producing broken GitHub URLs for.claude-backed skills.This change makes link generation path-driven instead of convention-assumed.
Data model update (
docs/data/skills.data.js)skillPathas repository-relativeSKILL.mdpath derived from the discovered file location.Rendering update (
docs/skills.vue)skill.skillPathinstead ofskills/${skill.id}/SKILL.md.Screenshot
Break Changes
None.
How to Test
node --no-warnings -e "import('./docs/data/skills.data.js').then(async m => { const data = await m.default.load(); for (const s of data) console.log(JSON.stringify({ id: s.id, skillPath: s.skillPath, generatedHref: 'https://github.com/longbridge/gpui-component/tree/main/' + s.skillPath })); })"gpui-component-devresolves to:https://github.com/longbridge/gpui-component/tree/main/.claude/skills/gpui-component-dev/SKILL.mdChecklist
cargo runfor story tests related to the changes.