📦 Extract
実績のある開発パターンやデバッグの解決策を、
📺 まず動画で見る(YouTube)
▶ 【Claude Code完全入門】誰でも使える/Skills活用法/経営者こそ使うべき ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and examples.
🇯🇵 日本人クリエイター向け解説
実績のある開発パターンやデバッグの解決策を、
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o extract.zip https://jpskill.com/download/4402.zip && unzip -o extract.zip && rm extract.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4402.zip -OutFile "$d\extract.zip"; Expand-Archive "$d\extract.zip" -DestinationPath $d -Force; ri "$d\extract.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
extract.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
extractフォルダができる - 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-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Extract の使い方を教えて
- › Extract で何ができるか具体例で見せて
- › Extract を初めて使う人向けにステップを案内して
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
/si:extract — パターンからスキルを作成する
繰り返し現れるパターンやデバッグソリューションを、どのプロジェクトにもインストールできるスタンドアロンでポータブルなスキルに変換します。
使用方法
/si:extract <pattern description> # 対話型抽出
/si:extract <pattern> --name docker-m1-fixes # スキル名を指定
/si:extract <pattern> --output ./skills/ # カスタム出力ディレクトリ
/si:extract <pattern> --dry-run # ファイルを作成せずにプレビュー
抽出するタイミング
以下のいずれかに該当する場合、学習はスキル抽出の対象となります。
| 基準 | シグナル |
|---|---|
| 繰り返し発生 | 2つ以上のプロジェクトで同じ問題が発生する |
| 自明でない | 発見するために実際のデバッグが必要だった |
| 幅広い適用性 | 特定のコードベースに縛られない |
| 複雑な解決策 | 忘れやすい複数ステップの修正 |
| ユーザーが指摘 | 「これをスキルとして保存してほしい」「これを再利用したい」 |
ワークフロー
ステップ 1: パターンを特定する
ユーザーの説明を読みます。関連するエントリを自動メモリで検索します。
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
grep -rni "<keywords>" "$MEMORY_DIR/"
自動メモリで見つかった場合は、それらのエントリをソース資料として使用します。見つからない場合は、ユーザーの説明を直接使用します。
ステップ 2: スキルのスコープを決定する
(最大2つの質問をします)
- 「これはどのような問題を解決しますか?」(不明な場合)
- 「これにはコード例を含めるべきですか?」(該当する場合)
ステップ 3: スキル名を生成する
命名規則:
- 小文字、単語間はハイフン
- 説明的だが簡潔(2〜4単語)
- 例:
docker-m1-fixes、api-timeout-patterns、pnpm-workspace-setup
ステップ 4: スキルファイルを作成する
実際のファイル生成のために、skill-extractor エージェントを起動します。
エージェントは以下を作成します。
<skill-name>/
├── SKILL.md # フロントマター付きのメインスキルファイル
├── README.md # 人間が読める概要
└── reference/ # (オプション) サポートドキュメント
└── examples.md # 具体的な例とエッジケース
ステップ 5: SKILL.md の構造
生成された SKILL.md は以下の形式に従う必要があります。
---
name: <skill-name>
description: "<1行の説明>。使用条件: <トリガー条件>。"
---
# <スキルタイトル>
> このスキルが解決する問題の1行要約。
## クイックリファレンス
| 問題 | 解決策 |
|---------|----------|
| {{問題 1}} | {{解決策 1}} |
| {{問題 2}} | {{解決策 2}} |
## 問題
{{何がうまくいかないのか、なぜ自明でないのかを2〜3文で説明します。}}
## 解決策
### オプション 1: {{名前}} (推奨)
{{コード例を含むステップバイステップの説明。}}
### オプション 2: {{代替案}}
{{オプション 1 が適用されない場合。}}
## トレードオフ
| アプローチ | 利点 | 欠点 |
|----------|------|------|
| オプション 1 | {{利点}} | {{欠点}} |
| オプション 2 | {{利点}} | {{欠点}} |
## エッジケース
- {{エッジケース 1 とその対処法}}
- {{エッジケース 2 とその対処法}}
ステップ 6: 品質ゲート
最終決定の前に、以下を確認します。
- [ ] SKILL.md に
nameとdescriptionを含む有効な YAML フロントマターがあること - [ ]
nameがフォルダー名と一致していること(小文字、ハイフン) - [ ] 説明に「Use when:」トリガー条件が含まれていること
- [ ] 解決策が自己完結型であること(外部コンテキストが不要)
- [ ] コード例が完全でコピー&ペースト可能であること
- [ ] プロジェクト固有のハードコードされた値(パス、URL、資格情報)がないこと
- [ ] 不要な依存関係がないこと
ステップ 7: レポート
✅ スキルが抽出されました: {{skill-name}}
作成されたファイル:
{{path}}/SKILL.md ({{lines}} 行)
{{path}}/README.md ({{lines}} 行)
{{path}}/reference/examples.md ({{lines}} 行)
インストール: /plugin install (スキルディレクトリにコピー)
公開: clawhub publish {{path}}
ソース: MEMORY.md の {{n, m, ...}} 行のエントリ (保持されます — スキルはポータブルですが、メモリはプロジェクト固有です)
例
デバッグパターンの抽出
/si:extract "Fix for Docker builds failing on Apple Silicon with platform mismatch"
docker-m1-fixes/SKILL.md を作成します。これには以下が含まれます。
- プラットフォーム不一致のエラーメッセージ
- 3つの解決策(ビルドフラグ、Dockerfile、docker-compose)
- トレードオフの表
- Rosetta 2 エミュレーションに関するパフォーマンスノート
ワークフローパターンの抽出
/si:extract "Always regenerate TypeScript API client after modifying OpenAPI spec"
api-client-regen/SKILL.md を作成します。これには以下が含まれます。
- 手動での再生成が必要な理由
- 正確なコマンドシーケンス
- CI 統合スニペット
- よくある失敗モード
ヒント
- 別のプロジェクトで時間を節約できるパターンを抽出します
- スキルは焦点を絞り、1つのスキルにつき1つの問題とします
- 人々が検索するであろうエラーメッセージを含めます
- 元のコンテキストなしでスキルを読んでテストします — 意味が通じますか?
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
/si:extract — Create Skills from Patterns
Transforms a recurring pattern or debugging solution into a standalone, portable skill that can be installed in any project.
Usage
/si:extract <pattern description> # Interactive extraction
/si:extract <pattern> --name docker-m1-fixes # Specify skill name
/si:extract <pattern> --output ./skills/ # Custom output directory
/si:extract <pattern> --dry-run # Preview without creating files
When to Extract
A learning qualifies for skill extraction when ANY of these are true:
| Criterion | Signal |
|---|---|
| Recurring | Same issue across 2+ projects |
| Non-obvious | Required real debugging to discover |
| Broadly applicable | Not tied to one specific codebase |
| Complex solution | Multi-step fix that's easy to forget |
| User-flagged | "Save this as a skill", "I want to reuse this" |
Workflow
Step 1: Identify the pattern
Read the user's description. Search auto-memory for related entries:
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
grep -rni "<keywords>" "$MEMORY_DIR/"
If found in auto-memory, use those entries as source material. If not, use the user's description directly.
Step 2: Determine skill scope
Ask (max 2 questions):
- "What problem does this solve?" (if not clear)
- "Should this include code examples?" (if applicable)
Step 3: Generate skill name
Rules for naming:
- Lowercase, hyphens between words
- Descriptive but concise (2-4 words)
- Examples:
docker-m1-fixes,api-timeout-patterns,pnpm-workspace-setup
Step 4: Create the skill files
Spawn the skill-extractor agent for the actual file generation.
The agent creates:
<skill-name>/
├── SKILL.md # Main skill file with frontmatter
├── README.md # Human-readable overview
└── reference/ # (optional) Supporting documentation
└── examples.md # Concrete examples and edge cases
Step 5: SKILL.md structure
The generated SKILL.md must follow this format:
---
name: <skill-name>
description: "<one-line description>. Use when: <trigger conditions>."
---
# <Skill Title>
> One-line summary of what this skill solves.
## Quick Reference
| Problem | Solution |
|---------|----------|
| {{problem 1}} | {{solution 1}} |
| {{problem 2}} | {{solution 2}} |
## The Problem
{{2-3 sentences explaining what goes wrong and why it's non-obvious.}}
## Solutions
### Option 1: {{Name}} (Recommended)
{{Step-by-step with code examples.}}
### Option 2: {{Alternative}}
{{For when Option 1 doesn't apply.}}
## Trade-offs
| Approach | Pros | Cons |
|----------|------|------|
| Option 1 | {{pros}} | {{cons}} |
| Option 2 | {{pros}} | {{cons}} |
## Edge Cases
- {{edge case 1 and how to handle it}}
- {{edge case 2 and how to handle it}}
Step 6: Quality gates
Before finalizing, verify:
- [ ] SKILL.md has valid YAML frontmatter with
nameanddescription - [ ]
namematches the folder name (lowercase, hyphens) - [ ] Description includes "Use when:" trigger conditions
- [ ] Solutions are self-contained (no external context needed)
- [ ] Code examples are complete and copy-pasteable
- [ ] No project-specific hardcoded values (paths, URLs, credentials)
- [ ] No unnecessary dependencies
Step 7: Report
✅ Skill extracted: {{skill-name}}
Files created:
{{path}}/SKILL.md ({{lines}} lines)
{{path}}/README.md ({{lines}} lines)
{{path}}/reference/examples.md ({{lines}} lines)
Install: /plugin install (copy to your skills directory)
Publish: clawhub publish {{path}}
Source: MEMORY.md entries at lines {{n, m, ...}} (retained — the skill is portable, the memory is project-specific)
Examples
Extracting a debugging pattern
/si:extract "Fix for Docker builds failing on Apple Silicon with platform mismatch"
Creates docker-m1-fixes/SKILL.md with:
- The platform mismatch error message
- Three solutions (build flag, Dockerfile, docker-compose)
- Trade-offs table
- Performance note about Rosetta 2 emulation
Extracting a workflow pattern
/si:extract "Always regenerate TypeScript API client after modifying OpenAPI spec"
Creates api-client-regen/SKILL.md with:
- Why manual regen is needed
- The exact command sequence
- CI integration snippet
- Common failure modes
Tips
- Extract patterns that would save time in a different project
- Keep skills focused — one problem per skill
- Include the error messages people would search for
- Test the skill by reading it without the original context — does it make sense?