ソース情報
- リポジトリ
- Miosa-osa/canopy
- ソースの最終更新活動
- 2026年8月16日 14:17
- 検出された SKILL.md の言語
- 英語
- スター
- 228
- フォーク
- 54
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/Miosa-osa/canopy --skill prompt-cache-optimizerコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | prompt-cache-optimizer |
| description | Optimize token usage through prompt caching and compression |
| trigger | auto |
| priority | 2 |
Reduces token costs by 50-90% through intelligent caching and compression.
Query → Embedding → Similarity Search → Cache Hit/Miss
↓ ↓
Vector Store Return cached or call LLM
Cache hits provide 100% token savings with near-instant response.
Mitigate "lost in the middle" problem:
Working Memory (registers) → Always in context
FIFO Queue (L1/L2 cache) → Recent exchanges
Archival Memory (disk) → Semantic search only
| Context Size | Latency Need | Accuracy Need | Strategy |
|---|---|---|---|
| <10K tokens | Any | Any | No compression |
| 10K-50K | Low | High | Light (2-3x) |
| 10K-50K | High | Medium | Moderate (5-7x) |
| 50K-100K | Any | Medium | Aggressive (10-20x) |
| >100K | Any | Any | Hierarchical + Aggressive |
For streaming/long sessions, preserve first 4 tokens as attention sinks:
[attention_sinks (4 tokens)] + [rolling_window (window - 4)]
This maintains model coherence over infinite context.
Hybrid = Dense (semantic) + Sparse (BM25)
Fusion = Reciprocal Rank Fusion (RRF)
Achieves 50-100x document reduction with maintained relevance.
Based on LLMLingua, GPTCache, MemGPT, and StreamingLLM research