Skip to content

Troubleshooting

Fresh

Quick Diagnosis

Common Issues

Skill Not Triggering

StepAction
1Check description includes keywords users would naturally say
2Verify skill appears in "What skills are available?"
3Try rephrasing request to match description more closely
4Invoke directly with /skill-name to confirm it works
5Check that disable-model-invocation is NOT set to true

Skill Triggers Too Often

StepAction
1Make the description more specific and narrow
2Add disable-model-invocation: true for manual-only control
3Remove generic keywords from description

Claude Doesn't See All Skills

Skill descriptions consume context space. The budget is 2% of context window (fallback: 16,000 characters).

Diagnose:

/context

Look for a warning about excluded skills.

Fix:

bash
export SLASH_COMMAND_TOOL_CHAR_BUDGET=32000

Skill Name Conflicts

Conflict TypeResolution
Same name at different levelsHigher priority wins: enterprise > personal > project
Skill vs command (same name)Skill takes precedence
Plugin skillsUse plugin-name:skill-name namespace (no conflicts)

Subagent Skill Returns Nothing

Cause: context: fork set but skill content has no actionable task.

Fix: Ensure skill content contains explicit task instructions, not just guidelines:

yaml
# BAD - guidelines without a task
---
context: fork
---
Use these API conventions when writing code...

# GOOD - explicit task
---
context: fork
---
Research $ARGUMENTS:
1. Find relevant files
2. Analyze the code
3. Summarize findings

YAML Frontmatter Parse Error

Common causes:

  • Missing --- delimiters (need both top and bottom)
  • Incorrect indentation
  • Unquoted special characters in values
  • Missing space after colon

Example of correct YAML:

yaml
---
name: my-skill
description: "This skill does: something special"
disable-model-invocation: true
allowed-tools: Read, Grep, Glob
---

Supporting Files Not Found

Cause: Relative paths in SKILL.md don't resolve correctly.

Fix: Use relative paths from the skill directory:

markdown
See [reference.md](reference.md)       # Same directory
See [scripts/run.sh](scripts/run.sh)   # Subdirectory

Getting Help

Built with VitePress + Claude Code Skills RAG Chat