Back to list
krzemienski

managing-cache-and-optimization

by krzemienski

1🍴 0📅 Nov 17, 2025

SKILL.md


name: managing-cache-and-optimization description: Use when managing Shannon CLI performance and costs - check cache statistics, clear stale entries, set budgets, understand automatic model selection and cost optimization

Managing Cache and Optimization

Overview

Shannon CLI provides automatic caching and cost optimization across all operations.

Cache Management

Check statistics:

shannon cache stats

Shows: Hit rate, size, savings (USD and time)

Clear cache:

shannon cache clear         # All caches
shannon cache clear --type analysis  # Just analysis cache

Cache layers (3 tiers):

  • Analysis: 7-day TTL
  • Command: 30-day TTL
  • MCP: Indefinite

Performance targets:

  • Hit rate: >60% (good), >80% (excellent)
  • Cache speed: <500ms
  • Size: <500MB total

Cost Optimization

Set budget:

shannon budget set 10.00  # $10 limit
shannon budget status     # Check spending

Automatic model selection:

  • Simple tasks → haiku (cheapest)
  • Complex tasks → sonnet (balanced)
  • Auto-selected per complexity

View optimization:

shannon optimize

Shows: Potential savings, model recommendations

Quick Reference

CommandPurpose
cache statsView hit rates and savings
cache clearClear stale entries
budget set NSet spending limit
budget statusCheck remaining budget
optimizeView cost-saving suggestions

When to Clear Cache

  • After Shannon Framework updates
  • Cache size >400MB
  • Hit rate <40% (stale entries)
  • Debugging cache-related issues

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon