ポッドキャストに戻るClaude
Claude Code skills
スキルを共有する
Speaker 1: Skills become more valuable when shared.
skill は共有することでより価値が高まります。
A PR review skill that only you use is helpful.
あなただけが使う PR レビュー skill は役に立ちます。
The same skill shared across your team standardizes code review and provides a consistent experience amongst your organization which is much better.
同じ skill をチームで共有することで、コードレビューが標準化され、組織全体に一貫した体験が提供されます。これははるかに優れています。
Here are ways you can share your skills.
skill を共有する方法をご紹介します。
Speaker 1: Now the simplest sharing method is committing skills to your repository.
最もシンプルな共有方法は、skill をリポジトリにコミットすることです。
Place them in dot-claud-slash-skills.
.claude/skills に配置してください。
Anyone who clones the repository gets these skills automatically.
リポジトリをクローンした人なら誰でも、自動的にこれらの skill を取得できます。
No extra installation, it's just what you're doing already.
追加のインストールは不要です。すでに行っていることをするだけです。
When you push updates, everyone gets them on their next pull.
更新をプッシュすると、全員が次回のプル時に取得できます。
This works well for team coding standards, project-specific workflows, or skills that reference your codebase structure.
これは、チームのコーディング規約、プロジェクト固有のワークフロー、またはコードベース構造を参照する skill に最適です。
Speaker 1: Another way you can distribute your skills is through plugins.
skill を配布するもう一つの方法は、プラグインを使うことです。
Think of plugins as ways to extend Claude Code with custom functionality, but designed to be shared across teams and projects.
プラグインとは、カスタム機能で Claude Code を拡張する手段で、チームやプロジェクトをまたいで共有できるよう設計されています。
In your plugin project, create a directory called skills.
プラグインプロジェクト内に、skills というディレクトリを作成します。
This will then follow a similar file structure to the dot-claud directory in our project with the name of the skill with a skill-dot-MD file.
これは、プロジェクトの .claude ディレクトリと同様のファイル構造になり、skill 名のディレクトリに skill.md ファイルが含まれます。
And after you distribute your plugin to a marketplace, other users can download it into Claude Code for themselves to use.
プラグインをマーケットプレイスに公開した後、他のユーザーが自分の Claude Code にダウンロードして使用できます。
This is best if your skills have functionality that isn't too project-specific and can be used by community members.
skill の機能がプロジェクト固有すぎず、コミュニティメンバーが利用できる場合に最適です。
Speaker 1: Administrators can deploy skills organization-wide through managed settings.
管理者は、マネージド設定を通じて組織全体に skill をデプロイできます。
Enterprise skills take highest priority.
エンタープライズ skill は最高の優先度を持ちます。
Like we discussed before, they override personal project and plugin skills with the same name.
先ほど説明したように、同じ名前の個人・プロジェクト・プラグインの skill を上書きします。
This is for mandatory standards, security requirements, compliance workflows, or coding practices that must be consistent across the organization.
これは、組織全体で一貫している必要がある必須の標準、セキュリティ要件、コンプライアンスワークフロー、またはコーディング規約のためのものです。
Keyword, must.
キーワード:必須。
Speaker 1: Here's some that surprises people: sub-agents don't automatically see your skills.
驚く方も多い点があります。サブエージェントは自動的に skill を参照しません。
Yeah.
そうです。
When you delegate a task to a sub-agent, it starts with a fresh clean context.
タスクをサブエージェントに委任すると、サブエージェントはまっさらなコンテキストで開始します。
Built-in agents like the explorer, planner, and verify can't access skills at all.
explorer、planner、verify などの組み込みエージェントは、skill に一切アクセスできません。
Only custom sub-agents you define can use them, and only when you explicitly list them.
あなたが定義したカスタムサブエージェントのみが使用でき、しかも明示的にリストに記載した場合に限ります。
To create a custom sub-agent with skills, add an agent-dot-MD file in dot-claud-slash-agents.
skill を持つカスタムサブエージェントを作成するには、.claude/agents に agent.md ファイルを追加します。
The skills field lists which skills to load.
skills フィールドに読み込む skill を列挙します。
These skills are loaded when the sub-agent starts, not on demand like in the main conversation.
これらの skill はサブエージェントの起動時に読み込まれ、メイン会話のようにオンデマンドではありません。
So, take that into consideration.
そのことを考慮に入れてください。
First ensure the skills exist.
まず skill が存在することを確認します。
Okay, it exists.
はい、存在しています。
Then create the sub-agent using the Claude Code sub-agent creator.
次に、Claude Code のサブエージェントクリエーターを使ってサブエージェントを作成します。
If you have a sub-agent that you want to add these skills to already, just go to the existing agent-dot-MD file.
すでにサブエージェントがあってそこに skill を追加したい場合は、既存の agent.md ファイルを開くだけです。
Then after that, create the skills field and add your skills.
その後、skills フィールドを作成して skill を追加します。
When you delegate to the sub-agent, it has both skills loaded and applies them to every single review.
サブエージェントに委任すると、両方の skill が読み込まれ、すべてのレビューに適用されます。
Now this pattern works really well when you want isolated task delegation with specific expertise.
このパターンは、特定の専門知識を持つ独立したタスク委任を行いたい場合に非常に効果的です。
Different sub-agents need different skills: front-end reviewer versus back-end reviewer.
フロントエンドレビュアーとバックエンドレビュアーなど、異なるサブエージェントには異なる skill が必要です。
You want to enforce standards and delegate work without relying on prompts.
プロンプトに頼らずに標準を強制し、作業を委任したい場合です。
Only list skills that are always relevant to the sub-agent's purpose.
サブエージェントの目的に常に関連する skill のみをリストに記載してください。
Speaker 1: Share skills through project directories for team access, plugins for cross-repository distribution, or enterprise deployment for organization-wide standards.
チームアクセスにはプロジェクトディレクトリを通じて skill を共有し、クロスリポジトリ配布にはプラグインを、組織全体の標準化にはエンタープライズデプロイを使用します。
Sub-agents don't inherit skills automatically, so list them explicitly in the sub-agent skills field.
サブエージェントは skill を自動的に継承しないため、サブエージェントの skills フィールドに明示的に記載してください。
Built-in agents can't access skills, only custom sub-agents can in your dot-claud-slash-agents.
組み込みエージェントは skill にアクセスできません。.claude/agents 内のカスタムサブエージェントのみがアクセスできます。
Skills load when the sub-agent starts, so only list skills that are always relevant to its purpose.
skill はサブエージェントの起動時に読み込まれるため、その目的に常に関連する skill のみをリストに記載してください。