From 1ee4e0501a955ce41dfd6e3e1f2c8cc62b59d0fa Mon Sep 17 00:00:00 2001 From: Bohan Jiang <52446949+Bohan-J@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:39:46 +0800 Subject: [PATCH] fix(handler): add .claude/skills/ candidate path for skills.sh import (#792) Skills stored under .claude/skills/{name}/SKILL.md (the Claude Code native discovery convention) were not found during skills.sh import, causing a 502 error. Add this path to the candidate list. Fixes #777 --- server/internal/handler/skill.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/internal/handler/skill.go b/server/internal/handler/skill.go index ed45320b8..c1a7404da 100644 --- a/server/internal/handler/skill.go +++ b/server/internal/handler/skill.go @@ -646,6 +646,7 @@ func fetchFromSkillsSh(httpClient *http.Client, rawURL string) (*importedSkill, // Skills can be at different paths depending on the repo structure: // skills/{name}/SKILL.md (most common) + // .claude/skills/{name}/SKILL.md (Claude Code native discovery) // plugin/skills/{name}/SKILL.md (e.g. microsoft repos) // {name}/SKILL.md (skill at repo root level) defaultBranch := fetchGitHubDefaultBranch(httpClient, owner, repo) @@ -654,6 +655,7 @@ func fetchFromSkillsSh(httpClient *http.Client, rawURL string) (*importedSkill, candidatePaths := []string{ "skills/" + skillName, + ".claude/skills/" + skillName, "plugin/skills/" + skillName, skillName, }