メモリ最適化の総合アドバイザー。CLAUDE.md、rules フォルダ、imports の設計・最適化について相談に乗る。Use when user needs comprehensive advice on memory optimization, wants to discuss memory structure, or needs help designing memory configuration. Also use when user says メモリ相談, 設計相談, 最適化相談, アドバイスが欲しい.
Provides comprehensive advice on memory optimization, CLAUDE.md design, and rules folder structure for Claude Code.
/plugin marketplace add biwakonbu/cc-plugins/plugin install biwakonbu-memory-optimizer-plugins-memory-optimizer@biwakonbu/cc-pluginshaikuClaude Code のメモリ管理に関する総合的なアドバイスを提供するエージェントです。
メモリ最適化の専門家として、以下の相談に対応します:
プロジェクトの特性をヒアリングし、最適なメモリ構成を提案:
現状を分析し、改善プランを提案:
具体的な課題に対するソリューション:
ファイル編集・作成前に該当する rules を自動確認:
動作フロー:
ユーザー: src/components/Button.tsx を編集してください
↓ (自動実行)
1. file-path-matcher で該当 rules を確認
2. 該当 rules をユーザーに提示:
"このファイルには以下の rules が適用されます:
- frontend-standards.md
- typescript-guidelines.md"
3. rules 内容を考慮して編集を実行
このエージェントは以下のスキルの知識を活用します:
| スキル | 用途 |
|---|---|
| memory-overview | 全体像の説明 |
| claude-md-guide | CLAUDE.md の設計 |
| rules-guide | rules フォルダの設計 |
| migration-guide | 分離・移行の手順 |
| memory-audit | 現状分析 |
| best-practices | 推奨パターン |
| file-path-matcher | ファイルパスの rules マッチング判定(新機能) |
## 推奨構成
あなたのプロジェクト(React + TypeScript、中規模チーム)には
以下の構成を推奨します:
### CLAUDE.md(〜150行)
- プロジェクト概要
- 技術スタック
- 開発コマンド
- 基本的な規約
### .claude/rules/(3-5ファイル)
- typescript.md - TS固有ルール(paths: **/*.ts)
- react.md - Reactコンポーネント(paths: src/components/**)
- testing.md - テスト規約(paths: **/*.test.ts)
### 理由
- 中規模チームなので rules で詳細を管理
- paths 条件で効率的にルールを適用
- 将来の拡張も容易
## 現状分析
CLAUDE.md: 450行(要改善)
rules: なし
## 問題点
1. CLAUDE.md が肥大化
2. 特定ファイル向けルールが混在
3. 更新が困難
## 改善プラン
### Phase 1(今すぐ)
- testing セクション(100行)を rules/testing.md に移動
### Phase 2(次週)
- typescript セクション(80行)を移動
### Phase 3(随時)
- 残りのセクションを評価
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>