コンテキストファイル(CLAUDE.md/AGENTS.md)をClaude Codeの各機能に分解・リファクタリングする
From contextnpx claudepluginhub masseater/claude-code-plugin --plugin contextThis skill is limited to using the following tools:
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.
コンテキストファイルを Claude Code の機能(commands, agents, skills, rules, hooks)に分解する。
$ARGUMENTS が空の場合、以下のメッセージを出力して終了:
エラー: ファイルパスを引数に指定してください
使用方法: /context:refactor-context-file [file-path]
ファイルが存在しない場合もエラー終了。
以下の Skill を読み込む:
claude-code-features: Claude Code の各機能(commands, agents, skills, rules, hooks)を理解should-be-project-context: 分割基準(コロケーションの原則、AGENTS.md 階層設計)を理解入力ファイルのパスから出力先を自動判定:
~/.claude/ 配下のファイル → ~/.claude/ に出力.claude/ に出力(プロジェクト用)@file 参照は展開せず、参照として記録claude-code-features Skill と should-be-project-context Skill の分割基準に従って、各セクションを分類する。
分類結果を一覧表でユーザーに提示
ユーザーの確認を得てから次へ進む。
各カテゴリに応じてコマンド/Skill を呼び出すtodoを追加する。
| カテゴリ | 呼び出し方法 |
|---|---|
| Hooks | cc-hooks-ts Skill を使用 |
| Rules | .claude/rules/ に直接作成 |
| Skills | .claude/skills/ に直接作成 |
| Agents | .claude/agents/ に直接作成 |
| Commands | .claude/commands/ に直接作成 |