新しいfrontmatterフィールド
| フィールド | 説明 |
|---|
context: fork | サブエージェント分離実行 |
agent | forkのエージェントタイプ(Explore, Plan等) |
hooks | PreToolUse/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)