Skill Files

Understanding the structure and usage of skill files.

Location

Skill files are stored in .claude/skills/, each in its own subdirectory:

.claude/skills/
  commit/SKILL.md
  code-review/SKILL.md
  pattern-discovery/SKILL.md
  chunk-breakdown/SKILL.md

SKILL.md Structure

Each skill file starts with YAML frontmatter followed by markdown instructions:

---
name: my-skill
description: What this skill does
invocation: user
---

# Skill Name

Detailed instructions for the skill...

Required Fields

  • name - Identifier used for installation and discovery
  • description - Short summary of what the skill does
  • invocation - How the skill is triggered (see below)

Invocation Modes

Skills support three invocation modes that control how they are triggered:

Mode Description Example
user Triggered by the user via a slash command /commit, /code-review
automatic Triggered automatically by the system during workflows pattern-discovery, chunk-breakdown
both Supports both automatic and user invocation Skills that work in both contexts

Skills vs Agents

Skills and agents serve different purposes:

Skills

Self-contained workflows and processes. They describe how to perform a specific task — like making commits or reviewing code. Think of them as runbooks.

Agents

Specialized roles with context and capabilities. They define who performs work — like a frontend executor or accessibility analyzer. They often use skills as part of their workflow.

Installing Skills

Install skills from the official directory, GitHub, or local paths:

/hypr:list skills # Browse available skills /hypr:add commit # Install from directory /hypr:add mycompany/custom-skill # Install from GitHub /hypr:add ~/local/my-skill # Install from local path

Built-in Skills

Hypr includes four built-in skills that are automatically used by the core agents:

  • pattern-discovery - Discovers implementation patterns by analyzing similar files
  • rule-extraction - Converts discovered patterns into actionable rules
  • chunk-breakdown - Breaks features into small, implementable chunks
  • pattern-validation - Validates code against established project patterns

Writing Custom Skills

A good skill file includes:

  • When it activates - Clear trigger conditions
  • Step-by-step process - Numbered steps the skill follows
  • Output format - What the result looks like
  • Quality checks - How to verify the output
  • Examples - Concrete examples of inputs and outputs