create-skill

Scaffold a Claude Code skill directory with canonical YAML files and a Stop hook.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/dohernandez/claude-skills --skill create-skill-dohernandez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-skill
Source: https://github.com/dohernandez/claude-skills/tree/main/plugins/create-skill/skills/create-skill
Command: npx skills add https://github.com/dohernandez/claude-skills --skill create-skill-dohernandez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates scaffolding a new Claude Code skill directory with the canonical multi-YAML layout, ensuring consistent file structure and proper Stop hook wiring.

Core Features & Use Cases

  • Creates: SKILL.md, skill.yaml, validations.yaml, sharp-edges.yaml, collaboration.yaml in a new folder under .claude/skills/{folder-name}/
  • Enforces: folder-name matching the SKILL.md frontmatter name to ensure consistent discovery
  • Wires: a Stop hook that runs validate-skill to enforce canonical validation flow

Quick Start

Run the scaffold tool to create a new skill directory under .claude/skills and validate it with the Stop hook.

Frequently Asked Questions about create-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new Claude Code skill directory with the correct YAML files?

Scaffolding a new Claude Code skill directory requires creating SKILL.md, skill.yaml, validations.yaml, sharp-edges.yaml, and collaboration.yaml. This automation generates all canonical YAML files under .claude/skills/{folder-name}/ and wires a Stop hook to validate the skill structure.

What files are required to set up a Claude Code skill?

A Claude Code skill setup requires SKILL.md, skill.yaml, validations.yaml, sharp-edges.yaml, and collaboration.yaml. The scaffolding automation enforces folder-name consistency with the SKILL.md frontmatter name to ensure proper skill discovery.

Does a new Claude Code skill need a validation hook?

A new Claude Code skill needs a validation hook to enforce the canonical validation flow. The scaffolding process wires a Stop hook to the validate-skill target, ensuring the generated YAML definitions pass structural validation before the skill is used.

Can I automate the folder structure setup for multiple Claude Code skills?

Automating the folder structure for Claude Code skills is supported by running the scaffold tool for each new skill. It creates the canonical multi-YAML layout under .claude/skills/{folder-name}/ and enforces folder-name matching the SKILL.md frontmatter name for consistent discovery.

Why does my Claude Code skill folder name need to match the SKILL.md name?

The Claude Code skill folder name must match the SKILL.md frontmatter name to ensure consistent skill discovery. The scaffolding automation enforces this naming constraint, preventing mismatches that could cause the skill to be overlooked during search and execution.

What is the best way to structure a Claude Code skill for devops automation?

The best way to structure a Claude Code skill for devops automation is using the canonical multi-YAML layout. This approach separates skill definitions, validation rules, sharp edges, and collaboration guidelines into distinct files, with a Stop hook enforcing validation.