skill-developer
Create and manage Claude Code skills following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns, file paths, content patterns), enforcement levels (block, suggest, warn), hook mechanisms (UserPromptSubmit, PreToolUse), session tracking, and the 500-line rule.
Author
Category
AI Skill DevelopmentInstall
Download and extract to your skills directory
Copy command and send to OpenClaw for auto-install:
Skill Developer - Complete Guide to Claude Code Skill Development
Skill Overview
Skill Developer is the authoritative guide for creating and managing custom skills for Claude Code. It helps developers master Anthropic’s official best practices, including skill architecture design, trigger configuration, the Hook mechanism, and the 500-line rule.
Use Cases
When you need to build a custom skill for a specific domain or task, this guide provides a complete workflow—from writing SKILL.md to configuring skill-rules.json—so that your skill conforms to Anthropic’s official standards.
When the skill you wrote is not being auto-activated, this guide offers a systematic debugging approach, including trigger testing, Hook validation, and troubleshooting common problems.
When your skill documentation exceeds 500 lines, this guide teaches you how to keep the core SKILL.md concise using reference files and a layered structure, while still providing detailed reference documentation.
Core Features
Explains the operation mechanisms of two Hook types—UserPromptSubmit (proactive suggestions) and Stop Hook (gentle reminders)—to help developers understand how and when a skill is activated and called.
Covers four trigger methods: keyword triggers, intent modes (regular expressions), file paths (Glob), and content detection. Includes best-practice configuration examples for real scenarios.
Supports three execution levels—BLOCK (forcefully block), SUGGEST (suggest/remind), and WARN (warn)—allowing developers to choose the appropriate level of strictness based on the skill’s importance.
Frequently Asked Questions
How do I create a Claude Code custom skill?
Creating a skill consists of five steps:
.claude/skills/{skill-name}/ containing YAML frontmatter (name and description) and the skill content.claude/skills/skill-rules.json, defining the type, execution level, and trigger conditionsWhy isn’t my skill being activated?
A skill usually fails to activate for the following reasons:
description and promptTriggers.keywords include words the user is likely to inputfilePatterns don’t match the actual file locations.claude/settings.jsonIt’s recommended to use npx tsx .claude/hooks/skill-activation-prompt.ts for manual testing.
What’s the difference between Guardrail skills and Domain skills?
The main differences are purpose and strictness:
| Feature | Guardrail skill | Domain skill |
|---|---|---|
| Type | guardrail | domain |
| Execution level | block | suggest |
| Priority | critical/high | high/medium |
| Purpose | Prevent critical mistakes (e.g., wrong database column names) | Provide domain guidance and best practices |
| Behavior | Physically blocks editing until the skill is used | Suggest using the relevant skill at the right time |
| Typical scenarios | database-verification | backend-dev-guidelines |
If your skill is meant to prevent runtime errors or data-safety issues, use Guardrail; if it’s meant to provide development guidance, use Domain.