Créer une nouvelle compétence

Créez une nouvelle compétence Claude Code avec structure SKILL.md appropriée, validation de nom et génération de modèle avec frontmatter YAML.

Spar Skills Guide Bot
DeveloppementIntermédiaire0 vues0 installations02/03/2026
Claude Code
skill-creationtemplate-generationyaml-frontmattervalidationscaffolding

description: Create a new skill with proper SKILL.md structure and frontmatter argument-hint: <skill-name> [plugin-path] allowed-tools: Read, Write, Glob

Create New Skill

Create a new Claude Code skill with the name: $1 Target plugin path: $2 (defaults to current directory)

Process

  1. Validate skill name

    • Must be lowercase
    • Only alphanumeric and hyphens
    • Max 64 characters
  2. Create directory structure

    skills/
    └── $1/
        └── SKILL.md
    
  3. Generate SKILL.md with template

---
name: $1
description: [Ask user for description - must be specific with trigger phrases, max 1024 chars]
allowed-tools: Read, Grep, Glob
---

# [Skill Title]

## Overview

[Brief explanation of what this skill provides]

## Instructions

[Step-by-step instructions for Claude when this skill is active]

## Examples

[Concrete examples of using this skill]
  1. Ask user for:

    • Description (with guidance on making it specific)
    • Which tools should be allowed (or all)
    • Main purpose/instructions
  2. Create optional reference.md if needed

Validation

After creation, verify:

  • [ ] Directory skills/$1/ exists
  • [ ] SKILL.md has valid YAML frontmatter
  • [ ] Description includes trigger phrases
  • [ ] Description under 1024 characters

Skills similaires

Créer une nouvelle compétence | Skills Guide | Skills Guide