jpskill.com
📦 その他 コミュニティ

how-to-create-claude-code-skill

Claude Code Skillsの作成方法を解説し、Claudeが実行できる特定のタスク(例えばデータ分析やコンテンツ生成)を、コードを使って実現するための手順を理解し、独自の機能拡張を可能にするSkill。

📜 元の英語説明(参考)

A guide to creating Claude Code Skills.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Claude Code Skillsの作成方法を解説し、Claudeが実行できる特定のタスク(例えばデータ分析やコンテンツ生成)を、コードを使って実現するための手順を理解し、独自の機能拡張を可能にするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o how-to-create-claude-code-skill.zip https://jpskill.com/download/17885.zip && unzip -o how-to-create-claude-code-skill.zip && rm how-to-create-claude-code-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17885.zip -OutFile "$d\how-to-create-claude-code-skill.zip"; Expand-Archive "$d\how-to-create-claude-code-skill.zip" -DestinationPath $d -Force; ri "$d\how-to-create-claude-code-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して how-to-create-claude-code-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → how-to-create-claude-code-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Skills のファイル構造には、以下のようないくつかの組織方法があります。

基本 Skill 構造 各 Skill には、YAML 前置メタデータ 1 を含む SKILL.md ファイルが必要です。

---
name: Your Skill Name
description: Brief description of what this Skill does and when to use it
---

Your Skill Name

Instructions

[Clear, step-by-step guidance for Claude to follow]

Examples

[Concrete examples of using this Skill] 完全な Skill ディレクトリ構造 Skill の複雑さが増すにつれて、追加のサポートファイル 2 を含めることができます。

my-skill/
├── SKILL.md (required)
├── reference.md (optional documentation)
├── examples.md (optional examples)
├── scripts/
│   └── helper.py (optional utility)
└── templates/
    └── template.txt (optional template)

漸進式開示モードの例 ドキュメントは、PDF 処理 Skill の完全な構造 3 を示しています。

pdf/
├── SKILL.md              # Main instructions (loaded when triggered)
├── FORMS.md              # Form-filling guide (loaded as needed)
├── reference.md          # API reference (loaded as needed)
├── examples.md           # Usage examples (loaded as needed)
└── scripts/
    ├── analyze_form.py   # Utility script (executed, not loaded)
    ├── fill_form.py      # Form filling script
    └── validate.py       # Validation script

Skill の保存場所 Claude Code では、Skills は異なる場所に保存できます 2。

個人 Skills:

mkdir -p ~/.claude/skills/my-skill-name

プロジェクト Skills:

mkdir -p .claude/skills/my-skill-name

ファイル引用方式 SKILL.md で他のファイルを参照できます 2。

For advanced usage, see reference.md.

Run the helper script:

python scripts/helper.py input.txt

技術要件

  • 最高のパフォーマンスを得るには、SKILL.md の本体の内容を 500 行以下に保ってください (4)
  • YAML 前置メタデータフィールドの制限:name は最大 64 文字、description は最大 1024 文字 (4)
  • 深いネストされた参照は避け、参照の深さを 1 レベル以内に保ってください (3)

Claude は必要なときにのみこれらのファイルを読み込み、コンテキストを効率的に管理するために漸進的な開示を使用します (1)

その他の要件

推奨される命名例(動名詞形式):

"Processing PDFs" "Analyzing spreadsheets" "Managing databases" "Testing code" "Writing documentation" 避けるべき命名方法:

曖昧な名前:"Helper"、"Utils"、"Tools" 一般的すぎる:"Documents"、"Data"、"Files" Skills の組織構造 複数の関連する Skills を含むプロジェクトでは、機能ドメインごとに整理できます。

.claude/skills/
├── pdf-processing/
│   └── SKILL.md
├── excel-analysis/
│   └── SKILL.md
├── git-workflow/
│   └── SKILL.md
└── code-review/
    └── SKILL.md

このような組織化により、Skills の参照、議論、および保守が容易になります 6。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Skills的文件结构有以下几种组织方式:

基本Skill结构 每个Skill都需要一个SKILL.md文件,包含YAML前置元数据1:


name: Your Skill Name description: Brief description of what this Skill does and when to use it

Your Skill Name

Instructions

[Clear, step-by-step guidance for Claude to follow]

Examples

[Concrete examples of using this Skill] 完整的Skill目录结构 随着Skill复杂性的增长,可以包含额外的支持文件2:

my-skill/ ├── SKILL.md (required) ├── reference.md (optional documentation) ├── examples.md (optional examples) ├── scripts/ │ └── helper.py (optional utility) └── templates/ └── template.txt (optional template) 渐进式披露模式示例 文档展示了一个PDF处理Skill的完整结构3:

pdf/ ├── SKILL.md # Main instructions (loaded when triggered) ├── FORMS.md # Form-filling guide (loaded as needed) ├── reference.md # API reference (loaded as needed) ├── examples.md # Usage examples (loaded as needed) └── scripts/ ├── analyze_form.py # Utility script (executed, not loaded) ├── fill_form.py # Form filling script └── validate.py # Validation script Skill存储位置 在Claude Code中,Skills可以存储在不同位置2:

个人Skills:

mkdir -p ~/.claude/skills/my-skill-name 项目Skills:

mkdir -p .claude/skills/my-skill-name 文件引用方式 在SKILL.md中可以引用其他文件2:

For advanced usage, see reference.md.

Run the helper script:


python scripts/helper.py input.txt

## 技术要求

- 保持SKILL.md主体内容在500行以下以获得最佳性能[(4)](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices#technical-notes)
- YAML前置元数据字段限制:`name`最多64字符,`description`最多1024字符[(4)](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices#technical-notes)
- 避免深层嵌套引用,保持引用深度在一级以内[(3)](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices#skill-structure)

Claude只在需要时读取这些文件,使用渐进式披露来高效管理上下文[(1)](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview#skill-structure)。

## 其他要求

推荐的命名示例(动名词形式):

"Processing PDFs"
"Analyzing spreadsheets"
"Managing databases"
"Testing code"
"Writing documentation"
避免的命名方式:

模糊名称:"Helper"、"Utils"、"Tools"
过于通用:"Documents"、"Data"、"Files"
Skills的组织结构
对于包含多个相关Skills的项目,可以按功能域组织:

.claude/skills/
├── pdf-processing/
│   └── SKILL.md
├── excel-analysis/
│   └── SKILL.md
├── git-workflow/
│   └── SKILL.md
└── code-review/
    └── SKILL.md
这样的组织方式使得Skills更容易引用、讨论和维护6。