スキル一覧に戻る
sane-apps

memory-compactor

by sane-apps

memory-compactorは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。

109🍴 9📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: memory-compactor description: Guide smart memory compaction with focus instructions. Use when memory is full, tokens are high, context needs optimization, or you need to archive learnings. Keywords: compact, memory full, tokens high, archive, optimize context allowed-tools: Bash(./scripts/SaneMaster.rb:*), Read

Memory Compactor

When This Skill Activates

Claude uses this when:

  • Memory entity count exceeds 60
  • Token budget approaches 8,000+
  • You ask about compacting or optimizing memory
  • Context feels cluttered or stale

Before Running /compact

1. Check Current State

./scripts/SaneMaster.rb mh        # Current entity/token count
./scripts/SaneMaster.rb mcompact  # Entities needing compaction

2. Choose Focus Instructions

FocusKeepsArchives
"API patterns"API learnings, integrationsGeneral tips
"bug fixes"Workarounds, fixesFeature explorations
"SOP compliance"Rule violations, learningsRoutine operations
"accessibility APIs"AXUIElement patternsGeneric Swift tips

3. Run with Instructions

/compact keep SaneBar accessibility patterns and bug workarounds, archive general Swift tips

Smart Compact Examples

For SaneBar development:

/compact keep accessibility API patterns, NSStatusItem positioning fixes, and SOP violations. Archive competitive research and general macOS tips.

For debugging session:

/compact keep all error patterns and workarounds discovered. Archive exploration attempts that didn't work.

For feature work:

/compact keep the feature requirements and implementation decisions. Archive research that led to dead ends.

Post-Compact Verification

./scripts/SaneMaster.rb mh  # Should be < 60 entities now

Thresholds

MetricWarningCritical
Entities6080
Tokens8,00012,000

Key Insight

The /compact command accepts natural language instructions about what to keep vs. discard. Be specific about SaneBar-relevant context to preserve.

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

3ヶ月以内に更新

+5
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

+5

レビュー

💬

レビュー機能は近日公開予定です