スキル一覧に戻る
shawnrushefsky

create-skill

by shawnrushefsky

A starter template for projects using Claude Code

2🍴 0📅 2026年1月6日
GitHubで見るManusで実行

SKILL.md


name: create-skill description: Create new Claude Code skills. Use when the user wants to create a skill, make a skill, add a skill, write a skill, or build a skill for Claude Code. allowed-tools: Read, Write, Bash, Glob

Creating Claude Code Skills

Overview

Skills are reusable instruction sets that extend Claude Code's capabilities. They're stored as SKILL.md files with YAML frontmatter and Markdown instructions.

Skill Locations

TypePathScope
Personal~/.claude/skills/Available across all projects
Project.claude/skills/Shared with team in repository

Instructions

When creating a skill:

  1. Determine scope: Ask if the skill should be personal (~/.claude/skills/) or project-level (.claude/skills/)

  2. Create directory structure:

    .claude/skills/<skill-name>/
    └── SKILL.md
    
  3. Write the SKILL.md file with required frontmatter:

    ---
    name: skill-name
    description: What this skill does. Use when [trigger conditions].
    ---
    
    # Skill Name
    
    ## Instructions
    Step-by-step guidance...
    
    ## Examples
    Concrete examples...
    

Required Frontmatter Fields

FieldDescription
nameLowercase, hyphens allowed, max 64 chars
descriptionWhat it does and when to use it (max 1024 chars)

Optional Frontmatter Fields

FieldDescription
allowed-toolsComma-separated list of tools (e.g., Read, Grep, Glob, Bash)
modelSpecific Claude model to use

Naming Rules

  • Use only lowercase letters, numbers, and hyphens
  • Directory name should match the skill name
  • File must be exactly SKILL.md (case-sensitive)

Best Practices

  1. Write trigger-focused descriptions: Include keywords users would naturally say
  2. Keep SKILL.md under 500 lines: Use progressive disclosure for detailed content
  3. Include concrete examples: Show exactly how the skill should behave
  4. Link supporting files: If you need reference material, put it in separate .md files and link from SKILL.md
  5. Bundle utility scripts: Place helper scripts in a scripts/ subdirectory

Example: Simple Skill

---
name: commit-message
description: Generate commit messages from staged changes. Use when writing commits or reviewing diffs.
---

# Commit Message Generator

## Instructions

1. Run `git diff --staged` to see changes
2. Create a commit message with:
   - Summary under 50 characters (imperative mood)
   - Blank line
   - Detailed description of what and why

## Example Output

Add user authentication middleware

Implement JWT-based authentication that validates tokens on protected routes. Includes refresh token support and automatic token renewal.

Example: Multi-File Skill

api-testing/
├── SKILL.md
├── PATTERNS.md
└── scripts/
    └── mock_server.py

SKILL.md:

---
name: api-testing
description: Test REST APIs with mocking and assertions. Use when testing endpoints or writing API tests.
allowed-tools: Read, Write, Bash
---

# API Testing

## Quick Start
...

For common patterns, see [PATTERNS.md](PATTERNS.md).

After Creating

Remind the user to restart Claude Code or start a new conversation for the skill to be available.

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です