Skip to content

Commit d202ea6

Browse files
olaservoclaude
andcommitted
feat(skills): adopt skill://github/<name>/SKILL.md URI prefix
Per SEP-2640, the bundled-skill URI structure is skill://<skill-path>/<file-path>, where preceding segments before the final name are an organizational prefix chosen by the server. This commit moves from the flat skill://<name>/SKILL.md form to the prefixed skill://github/<name>/SKILL.md form, matching the convention used in github#2374. Single-line change to skills.Bundled.URI(). Tests already build URIs through this helper, so they pick up the change automatically — no test edits needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 905f094 commit d202ea6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

skills/registry.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ type Bundled struct {
4040
Enabled func() bool
4141
}
4242

43-
// URI returns the skill's canonical SKILL.md URI: skill://<name>/SKILL.md.
44-
func (b Bundled) URI() string { return "skill://" + b.Name + "/SKILL.md" }
43+
// URI returns the skill's canonical SKILL.md URI: skill://github/<name>/SKILL.md.
44+
// The "github/" segment is the SEP's organizational prefix for this server's
45+
// bundled skills; the final path segment is the skill name.
46+
func (b Bundled) URI() string { return "skill://github/" + b.Name + "/SKILL.md" }
4547

4648
func (b Bundled) enabled() bool { return b.Enabled == nil || b.Enabled() }
4749

0 commit comments

Comments
 (0)