create-agent-skills
Expert guidance for creating Claude Code skills and slash commands. Use when working with SKILL.md files, authoring new skills, improving existing skills, creating slash commands, or understanding skill structure and best practices.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o create-agent-skills.zip https://jpskill.com/download/22788.zip && unzip -o create-agent-skills.zip && rm create-agent-skills.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22788.zip -OutFile "$d\create-agent-skills.zip"; Expand-Archive "$d\create-agent-skills.zip" -DestinationPath $d -Force; ri "$d\create-agent-skills.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
create-agent-skills.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
create-agent-skillsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 14
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
スキルとコマンドの作成
このスキルでは、code.claude.com/docs/en/skills の公式仕様に従って、効果的な Claude Code スキルを作成する方法を説明します。
コマンドとスキルは同じものになりました
カスタムスラッシュコマンドはスキルに統合されました。.claude/commands/review.md のファイルも、.claude/skills/review/SKILL.md のスキルも、どちらも /review を作成し、同じように機能します。既存の .claude/commands/ ファイルは引き続き機能します。スキルには、サポートファイル用のディレクトリ、呼び出しを制御するフロントマター、自動コンテキスト読み込みといったオプション機能が追加されます。
スキルとコマンドが同じ名前を共有する場合、スキルが優先されます。
いつ何を作成するか
コマンドファイル (commands/name.md) を使用するのは次の場合です。
- シンプルな単一ファイルワークフロー
- サポートファイルが不要
- タスク指向のアクション (デプロイ、コミット、トリアージ)
スキルディレクトリ (skills/name/SKILL.md) を使用するのは次の場合です。
- サポートする参照ファイル、スクリプト、またはテンプレートが必要
- Claude が自動的に読み込むべき背景知識
- 段階的な開示から恩恵を受けるほど複雑な場合
どちらも同じ YAML フロントマターと Markdown コンテンツ形式を使用します。
標準 Markdown 形式
YAML フロントマターと Markdown 本文を標準の Markdown 見出しとともに使用します。クリーンで直接的なものにしてください。
---
name: my-skill-name
description: What it does and when to use it
---
# My Skill Name
## Quick Start
Immediate actionable guidance...
## Instructions
Step-by-step procedures...
## Examples
Concrete usage examples...
フロントマターリファレンス
すべてのフィールドはオプションです。description のみが推奨されます。
| フィールド | 必須 | 説明 |
|---|---|---|
name |
いいえ | 表示名。小文字、数字、ハイフン (最大 64 文字)。デフォルトはディレクトリ名です。 |
description |
推奨 | 何をするか、そしていつ使用するか。Claude はこれを自動検出に使用します。最大 1024 文字。 |
argument-hint |
いいえ | オートコンプリート中に表示されるヒント。例: [issue-number] |
disable-model-invocation |
いいえ | Claude の自動読み込みを防ぐには true に設定します。/deploy、/commit のような手動ワークフローに使用します。デフォルト: false。 |
user-invocable |
いいえ | / メニューから非表示にするには false に設定します。背景知識に使用します。デフォルト: true。 |
allowed-tools |
いいえ | Claude が許可プロンプトなしで使用できるツール。例: Read, Bash(git *) |
model |
いいえ | 使用するモデル。オプション: haiku、sonnet、opus。 |
context |
いいえ | 隔離されたサブエージェントコンテキストで実行するには fork に設定します。 |
agent |
いいえ | context: fork の場合のサブエージェントタイプ。オプション: Explore、Plan、general-purpose、またはカスタムエージェント名。 |
呼び出し制御
| フロントマター | ユーザーが呼び出し可能 | Claude が呼び出し可能 | 読み込み時 |
|---|---|---|---|
| (デフォルト) | はい | はい | 説明は常にコンテキストにあり、呼び出し時に完全なコンテンツが読み込まれます |
disable-model-invocation: true |
はい | いいえ | 説明はコンテキストになく、ユーザーが呼び出したときにのみ読み込まれます |
user-invocable: false |
いいえ | はい | 説明は常にコンテキストにあり、関連するときに読み込まれます |
副作用のあるワークフローにはdisable-model-invocation: true を使用してください。例: /deploy、/commit、/triage-prs、/send-slack-message。コードが準備できたからといって Claude がデプロイを決定するのを望まないでしょう。
意味のあるユーザーアクションではない背景知識にはuser-invocable: false を使用してください。例: コーディング規約、ドメインコンテキスト、レガシーシステムドキュメント。
動的機能
引数
ユーザー入力には $ARGUMENTS プレースホルダーを使用します。コンテンツに存在しない場合、引数は自動的に追加されます。
---
name: fix-issue
description: Fix a GitHub issue
disable-model-invocation: true
---
Fix GitHub issue $ARGUMENTS following our coding standards.
個々の引数にアクセスするには: $ARGUMENTS[0] または短縮形 $0、$1、$2。
動的コンテキスト注入
!`command` 構文は、コンテンツが Claude に送信される前にシェルコマンドを実行します。
---
name: pr-summary
description: Summarize changes in a pull request
context: fork
agent: Explore
---
## Context
- PR diff: !`gh pr diff`
- Changed files: !`gh pr diff --name-only`
Summarize this pull request...
サブエージェントでの実行
context: fork を追加すると、隔離された状態で実行されます。スキルコンテンツはサブエージェントのプロンプトになります。会話履歴は持ちません。
---
name: deep-research
description: Research a topic thoroughly
context: fork
agent: Explore
---
Research $ARGUMENTS thoroughly:
1. Find relevant files
2. Analyze the code
3. Summarize findings
段階的な開示
SKILL.md は 500 行未満に保ってください。詳細なコンテンツは参照ファイルに分割します。
my-skill/
├── SKILL.md # エントリポイント (必須、概要 + ナビゲーション)
├── reference.md # 詳細ドキュメント (必要に応じて読み込まれる)
├── examples.md # 使用例 (必要に応じて読み込まれる)
└── scripts/
└── helper.py # ユーティリティスクリプト (実行される、読み込まれない)
SKILL.md からリンクします: API の詳細については、[reference.md](reference.md) を参照してください。
参照は SKILL.md から1 階層深く保ってください。ネストされたチェーンは避けてください。
効果的な説明
説明はスキルの発見を可能にします。何をするか、そしていつ使用するかを両方含めてください。
良い例:
description: PDF ファイルからテキストとテーブルを抽出し、フォームに記入し、ドキュメントを結合します。PDF ファイルを操作する場合、またはユーザーが PDF、フォーム、ドキュメント抽出について言及した場合に使用します。
悪い例:
description: ドキュメントを支援します
何をしたいですか?
- 新しいスキルを作成 - ゼロから構築
- 新しいコマンドを作成 - スラッシュコマンドを構築
- 既存のスキルを監査 - ベストプラクティスに照らして確認
- コンポーネントを追加 - ワークフロー/参照/例を追加
- ガイダンスを得る - スキル設計を理解
新しいスキルまたはコマンドの作成
ステップ 1: タイプを選択
質問: これは手動ワークフロー (デプロイ、コミット、トリアージ) ですか、それとも背景知識 (規約、パターン) ですか?
- 手動ワークフロー →
disable-model-invocation: trueを持つコマンド - 背景知識 →
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Creating Skills & Commands
This skill teaches how to create effective Claude Code skills following the official specification from code.claude.com/docs/en/skills.
Commands and Skills Are Now The Same Thing
Custom slash commands have been merged into skills. A file at .claude/commands/review.md and a skill at .claude/skills/review/SKILL.md both create /review and work the same way. Existing .claude/commands/ files keep working. Skills add optional features: a directory for supporting files, frontmatter to control invocation, and automatic context loading.
If a skill and a command share the same name, the skill takes precedence.
When To Create What
Use a command file (commands/name.md) when:
- Simple, single-file workflow
- No supporting files needed
- Task-oriented action (deploy, commit, triage)
Use a skill directory (skills/name/SKILL.md) when:
- Need supporting reference files, scripts, or templates
- Background knowledge Claude should auto-load
- Complex enough to benefit from progressive disclosure
Both use identical YAML frontmatter and markdown content format.
Standard Markdown Format
Use YAML frontmatter + markdown body with standard markdown headings. Keep it clean and direct.
---
name: my-skill-name
description: What it does and when to use it
---
# My Skill Name
## Quick Start
Immediate actionable guidance...
## Instructions
Step-by-step procedures...
## Examples
Concrete usage examples...
Frontmatter Reference
All fields are optional. Only description is recommended.
| Field | Required | Description |
|---|---|---|
name |
No | Display name. Lowercase letters, numbers, hyphens (max 64 chars). Defaults to directory name. |
description |
Recommended | What it does AND when to use it. Claude uses this for auto-discovery. Max 1024 chars. |
argument-hint |
No | Hint shown during autocomplete. Example: [issue-number] |
disable-model-invocation |
No | Set true to prevent Claude auto-loading. Use for manual workflows like /deploy, /commit. Default: false. |
user-invocable |
No | Set false to hide from / menu. Use for background knowledge. Default: true. |
allowed-tools |
No | Tools Claude can use without permission prompts. Example: Read, Bash(git *) |
model |
No | Model to use. Options: haiku, sonnet, opus. |
context |
No | Set fork to run in isolated subagent context. |
agent |
No | Subagent type when context: fork. Options: Explore, Plan, general-purpose, or custom agent name. |
Invocation Control
| Frontmatter | User can invoke | Claude can invoke | When loaded |
|---|---|---|---|
| (default) | Yes | Yes | Description always in context, full content loads when invoked |
disable-model-invocation: true |
Yes | No | Description not in context, loads only when user invokes |
user-invocable: false |
No | Yes | Description always in context, loads when relevant |
Use disable-model-invocation: true for workflows with side effects: /deploy, /commit, /triage-prs, /send-slack-message. You don't want Claude deciding to deploy because your code looks ready.
Use user-invocable: false for background knowledge that isn't a meaningful user action: coding conventions, domain context, legacy system docs.
Dynamic Features
Arguments
Use $ARGUMENTS placeholder for user input. If not present in content, arguments are appended automatically.
---
name: fix-issue
description: Fix a GitHub issue
disable-model-invocation: true
---
Fix GitHub issue $ARGUMENTS following our coding standards.
Access individual args: $ARGUMENTS[0] or shorthand $0, $1, $2.
Dynamic Context Injection
The !`command` syntax runs shell commands before content is sent to Claude:
---
name: pr-summary
description: Summarize changes in a pull request
context: fork
agent: Explore
---
## Context
- PR diff: !`gh pr diff`
- Changed files: !`gh pr diff --name-only`
Summarize this pull request...
Running in a Subagent
Add context: fork to run in isolation. The skill content becomes the subagent's prompt. It won't have conversation history.
---
name: deep-research
description: Research a topic thoroughly
context: fork
agent: Explore
---
Research $ARGUMENTS thoroughly:
1. Find relevant files
2. Analyze the code
3. Summarize findings
Progressive Disclosure
Keep SKILL.md under 500 lines. Split detailed content into reference files:
my-skill/
├── SKILL.md # Entry point (required, overview + navigation)
├── reference.md # Detailed docs (loaded when needed)
├── examples.md # Usage examples (loaded when needed)
└── scripts/
└── helper.py # Utility script (executed, not loaded)
Link from SKILL.md: For API details, see [reference.md](reference.md).
Keep references one level deep from SKILL.md. Avoid nested chains.
Effective Descriptions
The description enables skill discovery. Include both what it does and when to use it.
Good:
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
Bad:
description: Helps with documents
What Would You Like To Do?
- Create new skill - Build from scratch
- Create new command - Build a slash command
- Audit existing skill - Check against best practices
- Add component - Add workflow/reference/example
- Get guidance - Understand skill design
Creating a New Skill or Command
Step 1: Choose Type
Ask: Is this a manual workflow (deploy, commit, triage) or background knowledge (conventions, patterns)?
- Manual workflow → command with
disable-model-invocation: true - Background knowledge → skill without
disable-model-invocation - Complex with supporting files → skill directory
Step 2: Create the File
Command:
---
name: my-command
description: What this command does
argument-hint: [expected arguments]
disable-model-invocation: true
allowed-tools: Bash(gh *), Read
---
# Command Title
## Workflow
### Step 1: Gather Context
...
### Step 2: Execute
...
## Success Criteria
- [ ] Expected outcome 1
- [ ] Expected outcome 2
Skill:
---
name: my-skill
description: What it does. Use when [trigger conditions].
---
# Skill Title
## Quick Start
[Immediate actionable example]
## Instructions
[Core guidance]
## Examples
[Concrete input/output pairs]
Step 3: Add Reference Files (If Needed)
Link from SKILL.md to detailed content:
For API reference, see [reference.md](reference.md).
For form filling guide, see [forms.md](forms.md).
Step 4: Test With Real Usage
- Test with actual tasks, not test scenarios
- Invoke directly with
/skill-nameto verify - Check auto-triggering by asking something that matches the description
- Refine based on real behavior
Audit Checklist
- [ ] Valid YAML frontmatter (name + description)
- [ ] Description includes trigger keywords and is specific
- [ ] Uses standard markdown headings (not XML tags)
- [ ] SKILL.md under 500 lines
- [ ]
disable-model-invocation: trueif it has side effects - [ ]
allowed-toolsset if specific tools needed - [ ] References one level deep, properly linked
- [ ] Examples are concrete, not abstract
- [ ] Tested with real usage
Anti-Patterns to Avoid
- XML tags in body - Use standard markdown headings
- Vague descriptions - Be specific with trigger keywords
- Deep nesting - Keep references one level from SKILL.md
- Missing invocation control - Side-effect workflows need
disable-model-invocation: true - Too many options - Provide a default with escape hatch
- Punting to Claude - Scripts should handle errors explicitly
Reference Files
For detailed guidance, see:
- official-spec.md - Official skill specification
- best-practices.md - Skill authoring best practices
Sources
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (8,736 bytes)
- 📎 references/api-security.md (6,193 bytes)
- 📎 references/be-clear-and-direct.md (13,030 bytes)
- 📎 references/best-practices.md (9,282 bytes)
- 📎 references/common-patterns.md (14,431 bytes)
- 📎 references/core-principles.md (12,695 bytes)
- 📎 references/executable-code.md (4,378 bytes)
- 📎 references/iteration-and-testing.md (13,496 bytes)
- 📎 references/official-spec.md (5,029 bytes)
- 📎 references/recommended-structure.md (4,006 bytes)
- 📎 references/skill-structure.md (4,437 bytes)
- 📎 references/using-scripts.md (3,023 bytes)
- 📎 references/using-templates.md (2,924 bytes)
- 📎 references/workflows-and-validation.md (11,845 bytes)