Skip to content

Commit 7eed3d4

Browse files
[Docs] Use uppercase SKILL.md for skills discovery
The npx skills tool fetches SKILL.md (uppercase) from the URL, so we need to serve the file with that exact case. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 532fd5c commit 7eed3d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docs/hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ def _write_well_known_skills(config, site_dir):
184184

185185
out_dir = os.path.join(site_dir, WELL_KNOWN_SKILLS_DIR, name)
186186
os.makedirs(out_dir, exist_ok=True)
187-
shutil.copy2(skill_src, os.path.join(out_dir, "skill.md"))
187+
shutil.copy2(skill_src, os.path.join(out_dir, "SKILL.md"))
188188
# Serve skill at site root (e.g. https://dstack.ai/skill.md) from skills/dstack/SKILL.md
189189
shutil.copy2(skill_src, os.path.join(site_dir, "skill.md"))
190190

191191
index_path = os.path.join(site_dir, WELL_KNOWN_SKILLS_DIR, "index.json")
192192
index = {
193193
"skills": [
194-
{"name": name, "description": description.strip()[:1024], "files": ["skill.md"]}
194+
{"name": name, "description": description.strip()[:1024], "files": ["SKILL.md"]}
195195
]
196196
}
197197
with open(index_path, "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)