Skills

Instructions that tell the AI what to do -- the building blocks of every workflow

Concept

What is a Skill?

A markdown file with YAML frontmatter and instructions. Like giving a smart colleague a detailed checklist.

The Idea

A skill is a directory containing a SKILL.md file and optional supporting resources. When you type /dx-plan, the AI reads the skill instructions and follows them step by step. Skills live inside plugins and are auto-discovered by both Claude Code and Copilot CLI.

Skill directory structure
skills/dx-init/
├── SKILL.md                    # Instructions (required)
├── scripts/                    # Shell helpers
│   ├── detect-env.sh           #   Environment detection
│   ├── scaffold.sh             #   File scaffolding
│   └── install-copilot-agents.sh  # Agent template installer
└── references/                 # Context docs (optional)
  └── ...                     #   Read by skill at runtime

More Than a Markdown File

Complex skills bundle supporting resources:

  • scripts/ — Shell scripts the skill executes via bash ${CLAUDE_SKILL_DIR}/scripts/…. Deterministic operations (file copying, env detection, scaffolding) that don’t need AI reasoning.
  • references/ — Context documents the skill reads at runtime. Design guidelines, fallback patterns, quality checklists. Keeps SKILL.md focused on instructions while offloading domain knowledge.
  • assets/ — Templates and static files (report templates, wiki formats).
Example
/dx-plan    # AI reads skill, generates implement.md
Anatomy

Anatomy of a Skill

YAML frontmatter for metadata, markdown body for instructions.

Simplified example: dx-plan/SKILL.md
---
name: dx-plan
description: Generate an implementation plan from requirements
allowed-tools: all
---
# Implementation Plan Generator

Read the requirements and codebase context, then produce
a step-by-step implementation plan.

## Steps
1. Read explain.md from the spec directory
2. Read research.md for codebase context
3. Generate implement.md with numbered steps
4. Each step must include: file paths, what to change, and why
5. Save to .ai/specs/<id>/implement.md

Skills are instructions, not personas

Notice the skill says what to do, not who you are. A skill runs inline in your main conversation — the AI reads these instructions and follows them as itself. Compare this with agents, which define an isolated worker with its own identity, model, and tools.

Key Frontmatter Fields

FieldPurposeExample
nameSlash command namedx-plan
descriptionWhat the skill does (shown in help)Generate implementation plan
argument-hintPlaceholder text for the argument<ticket-id>
allowed-toolsTools the AI can useall, or [read, edit, grep]
disable-model-invocationSkip AI reasoning (template-only)true
context: forkRun in isolated subagent contextfork
agent:Run as a specific agent typedx-code-reviewer
Categories

Skill Categories in KAI

76 skills organized by workflow phase.

Requirements (/dx-req-*)

Fetch work items (ADO or Jira), explain requirements, research the codebase, share plans with the team.

Example
/dx-req 2467362

Planning (/dx-plan)

Generate step-by-step implementation plans with file paths, code changes, and rationale.

Example
/dx-plan

Execution (/dx-step-*)

Execute plan steps, verify changes, run build and lint checks after each step.

Example
/dx-step-next

Review (/dx-pr-*)

Review PR diffs, post inline comments with severity levels, answer reviewer questions.

Example
/dx-pr-review

Bug Fix (/dx-bug-*)

Triage bugs, find affected code, create fix branches, verify the fix works.

Example
/dx-bug-fix 2451742

AEM (/aem-*)

Inspect AEM components, scan pages, verify dialog fields, capture screenshots.

Example
/aem-component hero

Docs

Official Documentation

Deep-dive into skill authoring.

KAI by Dragan Filipovic