feat: add skill:// resource templates for Agent Skills discovery#2129
Draft
SamMorrowDrums wants to merge 1 commit intomainfrom
Draft
feat: add skill:// resource templates for Agent Skills discovery#2129SamMorrowDrums wants to merge 1 commit intomainfrom
SamMorrowDrums wants to merge 1 commit intomainfrom
Conversation
Add MCP resource templates that expose Agent Skills (per agentskills.io
spec) from GitHub repositories via the skill:// URI scheme.
Resource templates:
- skill://{owner}/{repo}/{skill_name}/SKILL.md — fetch skill content
- skill://{owner}/{repo}/{skill_name}/_manifest — JSON manifest with
repo:// URIs for each file, composing with existing repo:// resources
Discovery uses the Git Trees API to find SKILL.md files under known
paths (.github/skills/, skills/, .copilot/skills/).
Completions support for owner, repo (reusing existing resolvers), and
skill_name (discovers skills via tree search).
Registered under a new non-default 'skills' toolset. Enable with
--toolsets=skills or --toolsets=default,skills.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
6cc49c5 to
21ae94d
Compare
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
Spike PR adding MCP resource templates that expose Agent Skills from GitHub repositories via the
skill://URI scheme, following the skills-as-resources approach discussed in the MCP Skills Interest Group.Resource Templates
skill://{owner}/{repo}/{skill_name}/SKILL.mdskill://{owner}/{repo}/{skill_name}/_manifestrepo://URIsThe manifest composes with existing
repo://resource templates — each file entry includes a workingrepo://URI that clients can read directly using the already-registered repository content resources.Discovery Conventions
Skills are discovered using the Git Trees API (recursive), matching these directory conventions from the agentskills.io ecosystem:
skills/*/SKILL.mdskills/{namespace}/*/SKILL.mdplugins/*/skills/*/SKILL.md*/SKILL.mdHidden directories (
.github/, etc.) and convention prefixes (skills/,plugins/) are excluded from root-level matching.Completions
Full completions support wired into the
CompletionsHandler:owner/repo— reuses existing resolversskill_name— discovers available skills via tree searchToolset
Registered under a new non-default
skillstoolset. Enable with:Example manifest output
{ "skill": "my-skill", "files": [ {"path": "SKILL.md", "uri": "repo://owner/repo/contents/skills/my-skill/SKILL.md", "size": 256}, {"path": "references/REFERENCE.md", "uri": "repo://owner/repo/contents/skills/my-skill/references/REFERENCE.md", "size": 1024} ] }References