feat(skills): surface source repository and tighten registry metadata#2064
Merged
feat(skills): surface source repository and tighten registry metadata#2064
Conversation
Link skill.repository.url with the same GitHub-icon pattern used for MCP servers — ghost icon on the card footer, a trailing column on the registry table, and an outline 'GitHub' button next to Install on the detail page. Rename the table's 'Author' column to 'Registry' to match the reverse-DNS namespace it actually holds, and strip the YAML frontmatter from the registry SKILL.md preview so it starts at the first real heading.
The right panel was flex-1 without min-w-0, so wide SKILL.md content (long code blocks, tables) pushed the column past its intended 7/12. Adding min-w-0 lets the flex child shrink to its allotment; overflow now scrolls inside the card instead of stretching the column across skills.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the skills registry UX to better match the MCP servers experience by exposing upstream repository metadata, reducing duplicated SKILL.md metadata rendering, and stabilizing the skill detail layout width.
Changes:
- Add upstream repository (GitHub) links to registry skill card, table, and detail views when
skill.repository.urlis present. - Rename the table column label from Author to Registry to reflect the namespace/packager value.
- Strip YAML frontmatter from SKILL.md previews and prevent the detail right panel from expanding layout width (
min-w-0).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| renderer/src/features/skills/components/table-registry-skills.tsx | Adds repository icon column/link and renames “Author” → “Registry”. |
| renderer/src/features/skills/components/skill-detail-page.tsx | Adds GitHub button/link and enables stripFrontmatter for SKILL.md rendering. |
| renderer/src/features/skills/components/skill-detail-layout.tsx | Adds min-w-0 to stabilize right panel sizing/overflow behavior. |
| renderer/src/features/skills/components/card-registry-skill.tsx | Adds GitHub icon link in the card footer next to Install. |
| renderer/src/features/skills/components/tests/table-registry-skills.test.tsx | Updates column header assertion and adds coverage for repository link behavior. |
| renderer/src/features/skills/components/tests/card-registry-skill.test.tsx | Adds coverage for repository link presence and click not triggering navigation. |
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.
Following #2045, this PR brings the skills registry closer to parity with MCP servers: the upstream repo is one click away from every view, the
SKILL.mdpreview drops the metadata we already render as badges, and the detail page stops resizing between skills.The registry response distinguishes between
namespace(packager, e.g.io.github.stacklok) andrepository.url(upstream source, e.g.github.com/trailofbits/skills). Today onlynamespaceis visible — it's not obvious the skill was authored elsewhere and packaged downstream. MCP servers already solve this viarepository_url; this PR lines the two up.Changes
skill.repository.urlwith the same GitHub-icon pattern used for MCP servers: ghost icon on the card footer, an icon-only trailing column on the registry table, and an outlineGitHubbutton next toInstallon the detail page. All three render nothing whenrepositoryis absent, and their click handlers stop propagation so card/row navigation isn't triggered.Author→Registry. The column holds the reverse-DNS namespace (the packager/registry), not the author.stripFrontmatteron the registry detail.SkillMarkdownalready supported it; only the build detail was passing it. Preview now starts at the first heading instead of the YAML block duplicatingname/description/license/version.flex-1withoutmin-w-0, so wide SKILL.md content (code blocks, tables) pushed the column past its 7/12 allotment and varied between skills. Addingmin-w-0lets the flex child shrink; overflow now scrolls inside the card. Applies to both registry and build detail pages (shared layout).How to validate
Registryheader (previouslyAuthor); GitHub icon sits betweenAboutandInstall.io.github.stacklok/agentic-actions-auditor) —GitHubbutton next toInstall; SKILL.md starts at the first heading; card width is identical across skills.