← 戻る

Claude Code skill最新仕様メモ(2026年2月時点)


新しいfrontmatterフィールド

フィールド説明
context: forkサブエージェント分離実行
agentforkのエージェントタイプ(Explore, Plan等)
hooksPreToolUse/PostToolUse/Stopフック

動的コンテキスト注入

## Context
- Current branch: !`git branch --show-current`

!command“ でスキル送信前にコマンド出力を埋め込める。

descriptionのベストプラクティス

Triggers: キーワードで自動起動条件を明記する。これがClaude自動起動の唯一の判断材料。

"PRをレビューする。Triggers: user says 'レビューして', or when a PR number is mentioned."

Progressive Disclosure

  • Level 1: メタデータ(常時ロード、~100トークン)
  • Level 2: SKILL.md本文(起動時、<5000トークン推奨)
  • Level 3: references/(必要時にRead)