npx claudepluginhub bizuayeu/plugins-weave --plugin ContextPreloaderThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
SessionStart hookで任意のファイル・URLを事前文脈として読み込むシステムの管理スキル。
このスキルが呼ばれたら、必ず最初にステータスチェックを実行すること。
cd plugins-weave/ContextPreloader
python -m scripts status
出力例:
{
"ready": false,
"config": {"ok": false, "path": "~/.claude/plugins/.contextpreloader/sources.json"},
"hook": {"ok": false, "path": "~/.claude/hooks/context_preloader.py"},
"settings": {"ok": false, "path": null},
"profiles": [],
"global_sources": 0
}
判定ルール:
ready | 対応 |
|---|---|
true | → 管理フローへ進む |
false | → 対話型セットアップを開始 |
ready: false の場合、不足しているコンポーネントを順に対話的に構築する。
TodoWriteで以下のリストを作成し、該当するステップのみ実行すること
config.ok が false の場合)mkdir -p ~/.claude/plugins/.contextpreloader/profiles
ユーザーが指定したファイルをsourcesに追加:
python -m scripts add --path "/path/to/file" --label "Label"
ファイル指定がない場合は空のsources.jsonを配置(テンプレートをコピー):
cp plugins-weave/ContextPreloader/.claude-plugin/sources.template.json ~/.claude/plugins/.contextpreloader/sources.json
profiles/{name}.json を作成hook.ok が false の場合)cp plugins-weave/ContextPreloader/hooks/context_preloader.py ~/.claude/hooks/
settings.ok が false の場合).claude/settings.json を読み込む(なければ作成)プロファイルなしの場合:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "python \"~/.claude/hooks/context_preloader.py\"",
"timeout": 15000
}
]
}
]
}
}
プロファイルありの場合(--profile NAME を追加):
"command": "python \"~/.claude/hooks/context_preloader.py\" --profile NAME"
注意: 既存のhooksがある場合はマージすること。上書きしない。
python -m scripts status
python -m scripts test
ready: true になっていることを確認し、ユーザーに報告:
ready: true の場合、ステータス情報を表示した上で操作を選択。
--profile の動作| コマンド | 読み込み対象 |
|---|---|
python -m scripts | グローバル (sources.json) のみ |
python -m scripts --profile weave | グローバル + プロファイル (profiles/weave.json) をマージ |
CLIコマンド(list, test, add, remove)も同様:
--profile なし → グローバルsourcesを操作--profile NAME → グローバル + そのプロファイルを対象SessionStart hookの --profile 設定は settings.json で固定されるため、
CLIで手動操作するときも同じプロファイル名を指定すること。
python -m scripts add --path "/path/to/file.txt" --label "My Notes"
python -m scripts add --path "https://example.com/api" --label "API Docs"
python -m scripts add --path "/path/to/file.txt" --label "My Notes" --profile NAME
python -m scripts remove --id my-notes
python -m scripts list
python -m scripts list --profile NAME
python -m scripts test
python -m scripts test --profile NAME
python -m scripts profiles
=== Project Notes ===
[テキストファイルの内容がそのまま出力]
=== Design Spec [PDF document] ===
Path: /path/to/spec.pdf
Type: PDF document
Size: 2.3 MB
Note: Use Read tool to view this file
=== API Reference [URL] ===
Source: https://docs.example.com/api
[HTMLから抽出されたテキスト]
=== ContextPreloader Summary ===
Loaded: 1 text file, 1 URL, 1 binary reference
Total text: ~55KB