Get the FREE Ultimate OpenClaw Setup Guide →

example-skill

Scanned
npx machina-cli add skill Kotty2998/claude-plugins-official/example-skill --openclaw
Files (1)
SKILL.md
2.7 KB

Example Skill

This skill demonstrates the structure and format for Claude Code plugin skills.

Overview

Skills are model-invoked capabilities that Claude autonomously uses based on task context. Unlike commands (user-invoked) or agents (spawned by Claude), skills provide contextual guidance that Claude incorporates into its responses.

When This Skill Applies

This skill activates when the user's request involves:

  • Creating or understanding plugin skills
  • Skill template or reference needs
  • Skill development patterns

Skill Structure

Required Files

skills/
└── skill-name/
    └── SKILL.md          # Main skill definition (required)

Optional Supporting Files

skills/
└── skill-name/
    ├── SKILL.md          # Main skill definition
    ├── README.md         # Additional documentation
    ├── references/       # Reference materials
    │   └── patterns.md
    ├── examples/         # Example files
    │   └── sample.md
    └── scripts/          # Helper scripts
        └── helper.sh

Frontmatter Options

Skills support these frontmatter fields:

  • name (required): Skill identifier
  • description (required): Trigger conditions - describe when Claude should use this skill
  • version (optional): Semantic version number
  • license (optional): License information or reference

Writing Effective Descriptions

The description field is crucial - it tells Claude when to invoke the skill.

Good description patterns:

description: This skill should be used when the user asks to "specific phrase", "another phrase", mentions "keyword", or discusses topic-area.

Include:

  • Specific trigger phrases users might say
  • Keywords that indicate relevance
  • Topic areas the skill covers

Skill Content Guidelines

  1. Clear purpose: State what the skill helps with
  2. When to use: Define activation conditions
  3. Structured guidance: Organize information logically
  4. Actionable instructions: Provide concrete steps
  5. Examples: Include practical examples when helpful

Best Practices

  • Keep skills focused on a single domain
  • Write descriptions that clearly indicate when to activate
  • Include reference materials in subdirectories for complex skills
  • Test that the skill activates for expected queries
  • Avoid overlap with other skills' trigger conditions

Source

git clone https://github.com/Kotty2998/claude-plugins-official/blob/main/plugins/example-plugin/skills/example-skill/SKILL.mdView on GitHub

Overview

This skill demonstrates the structure and format for Claude Code plugin skills. It explains how skills are model-invoked capabilities Claude uses based on task context, and how they differ from commands or agents by providing contextual guidance.

How This Skill Works

Skills are model-invoked capabilities that Claude autonomously uses based on task context. They are activated by trigger phrases and provide structured guidance; the main content resides in SKILL.md and optional supporting files to extend functionality.

When to Use It

  • Creating or understanding plugin skills
  • Skill template or reference needs
  • Skill development patterns
  • Reviewing required vs optional skill files and structure
  • Learning best practices for skill design

Quick Start

  1. Step 1: Open skills/example-skill/SKILL.md and note required fields (name, description, version).
  2. Step 2: Review the optional supporting files (README.md, references/, examples/, scripts/) and how they augment the skill.
  3. Step 3: Write or verify a skill by following the content guidelines (clear purpose, when to use, structured guidance, actionable steps, examples).

Best Practices

  • Keep skills focused on a single domain
  • Write descriptions that clearly indicate when to activate
  • Include reference materials in subdirectories for complex skills
  • Test that the skill activates for expected queries
  • Avoid overlap with other skills' trigger conditions

Example Use Cases

  • A sample skill template showing SKILL.md placement under skills/example-skill/
  • An example README.md for a skill with references and samples
  • A patterns.md reference file in a references/ directory
  • A sample.md demonstrating usage in examples/
  • helper.sh script illustrating helper utilities in scripts/

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers