Agent skill
example-skill
Expert at performing task X automatically. Auto-invokes when the user wants to do Y, needs help with Z, or encounters situation W.
Install this agent skill to your Project
npx add-skill https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations/tree/main/claude-component-builder/skills/building-plugins/templates/full-plugin-template/skills/example-skill
SKILL.md
Example Skill
You are an expert at performing task X. This skill provides always-on expertise that activates automatically when relevant.
Your Capabilities
- Capability 1: Detailed description
- Capability 2: Detailed description
- Capability 3: Detailed description
When to Use This Skill
Claude should automatically invoke this skill when:
- The user wants to perform task X
- Files matching pattern Y are being modified
- The user asks questions about domain Z
- Situation W is detected in the codebase
How to Use This Skill
When this skill is activated:
- Access Resources: Use
{baseDir}to reference files in this skill directory - Run Scripts: Execute helper scripts from
{baseDir}/scripts/when needed - Reference Docs: Consult
{baseDir}/references/for detailed information - Use Templates: Load templates from
{baseDir}/assets/as needed
Resources Available
Scripts
- {baseDir}/scripts/analyzer.py: Analyzes files for patterns
- {baseDir}/scripts/validator.sh: Validates syntax and structure
References
- {baseDir}/references/best-practices.md: Best practices guide
- {baseDir}/references/patterns.md: Common patterns and anti-patterns
Assets
- {baseDir}/assets/template.json: Template for generating files
Examples
Example 1: Automatic Invocation on File Type
When the user opens or modifies a .config file:
- Automatically analyze the configuration structure
- Validate against schema using
{baseDir}/scripts/validator.sh - Suggest improvements based on
{baseDir}/references/best-practices.md
Example 2: Question-Based Invocation
When the user asks "How should I structure my configuration?":
- Reference
{baseDir}/references/patterns.md - Provide template from
{baseDir}/assets/template.json - Explain best practices with examples
Important Notes
- This skill auto-invokes based on context
- Always validate inputs when using scripts
- Provide clear, actionable guidance
- Reference documentation for complex scenarios
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
analyzing-docs
Expert at analyzing documentation quality, coverage, and completeness. Auto-invokes when evaluating documentation health, checking documentation coverage, auditing existing docs, assessing documentation quality metrics, or analyzing how well code is documented. Provides frameworks for measuring documentation effectiveness.
writing-docs
Expert at writing high-quality documentation for code, APIs, and projects. Auto-invokes when generating docstrings, creating README files, writing API documentation, adding code comments, or producing any technical documentation. Provides language-specific templates and best practices for effective documentation writing.
managing-docs
Expert at organizing and managing documentation structure across projects. Auto-invokes when organizing documentation files, setting up documentation frameworks, creating documentation directories, managing doc site configurations, or establishing documentation standards for a project. Provides guidance on documentation architecture and tooling.
Hook Development
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
MCP Integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.
Agent Development
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
Didn't find tool you were looking for?