Analyze and optimize skill frontmatter for reliable automatic invocation. Use this skill when: (1) improving an existing skill's description for better triggering, (2) diagnosing why a skill isn't being invoked, (3) rewriting frontmatter to match production patterns, (4) validating description quality against best practices, or any task involving skill metadata optimization (examples: "optimize frontmatter", "fix skill triggering", "improve skill description", "why isn't my skill invoked").
Optimize skill frontmatter descriptions for reliable automatic invocation by Claude Code.
The description field is the sole triggering mechanism for skills. Claude only sees name + description (~100 words) until a skill triggers. The SKILL.md body is invisible until after the decision. Poor descriptions = unreliable invocation.
Run the analysis script to extract key information:
python scripts/analyze_skill.py /path/to/skill-folder
This extracts:
Run the generator with analysis output:
python scripts/generate_description.py /path/to/skill-folder
Or manually construct using the pattern in references/patterns.md.
python /mnt/skills/examples/skill-creator/scripts/quick_validate.py /path/to/skill-folder
If not using scripts, apply this template:
description: "[CAPABILITY_VERBS] [DOMAIN/FORMAT] [FEATURE_LIST]. Use this skill when [USER_INTENT] for: (1) [SCENARIO_1], (2) [SCENARIO_2], (3) [SCENARIO_3], or [CATCH_ALL]. (examples include [CONCRETE_TRIGGERS])"
(.docx files), (.pdf, .xlsx)< or >| Problem | Fix | |---------|-----| | Too vague | Add specific file types, actions, domains | | No trigger signal | Add "Use this skill when..." phrase | | Missing scenarios | Enumerate with (1), (2), (3)... | | Body has "When to Use" | Move entirely to description | | Over 1024 chars | Prioritize triggers over features |
See references/patterns.md for production-tested patterns from Anthropic's own skills.
npx skills add IngmarKrusch/skill-frontmatter-optimizer下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer