Replies: 2 comments
-
|
This is a common issue — here are the most likely causes and fixes: 1. Missing or malformed SKILL.md frontmatterEvery skill must have YAML frontmatter at the top with at least ---
name: my-skill
description: "What this skill does — Claude uses this to decide when to trigger it"
---If the frontmatter is missing or has a syntax error (wrong indentation, missing quotes on special characters), Claude Code won't detect the skill. 2. Wrong directory structureClaude Code looks for skills in specific paths: A common mistake is placing the SKILL.md directly in 3. Skill installed globally but expected locally (or vice versa)If you installed globally ( Quick debug command: # Check if Claude sees your skills
ls -la ~/.claude/skills/
ls -la .claude/skills/
# Verify SKILL.md has valid frontmatter
head -5 ~/.claude/skills/*/SKILL.md4. Cache issueSometimes Claude Code caches the skill list. Try:
I maintain a skill called continuous-improve that installs across Claude Code, Codex, and Cursor — I ran into this same detection issue during development. The fix was always one of the above. Hope this helps — let me know if you're still stuck and I can help debug further! See it in action: before vs afterBefore (agent without discipline): After (agent with continuous-improve installed):
|
Beta Was this translation helpful? Give feedback.
-
|
@naimkatiman covered the basics well — the directory structure and frontmatter points are correct. Let me add what I've hit myself and a few things the troubleshooting above misses. The actual checklist (in order of likelihood)1. The subdirectory thing — this trips up almost everyone Claude Code doesn't scan for loose The folder name becomes your skill name if you don't set one in frontmatter. Quick check: find ~/.claude/skills -name "SKILL.md" -type fIf any result doesn't have a directory between mkdir -p ~/.claude/skills/my-skill
mv ~/.claude/skills/SKILL.md ~/.claude/skills/my-skill/SKILL.md2. Frontmatter — you need at least a description Without a ---
name: my-skill
description: "Does X when you ask for Y"
---Common gotchas: missing the closing 3. You created the skills/ directory after starting Claude Code This one's subtle. If Just 4. Scope mismatch Project skills live in 5. Too many skills — budget exhaustion This one's less common but real. Claude Code caps skill descriptions at roughly 8,000 characters total. If you have 30+ skills, descriptions get truncated and Claude loses the keywords it needs to auto-trigger. Your skill still works with Fix: @bbhxwl if you can share your directory structure ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why is it that it's installed but cannot be detected?
Beta Was this translation helpful? Give feedback.
All reactions