← Back to list

memory-compactor
by sane-apps
The privacy-first menu bar manager for macOS. Native, lightweight, and scriptable.
⭐ 109🍴 9📅 Jan 23, 2026
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
| Focus | Keeps | Archives |
|---|---|---|
"API patterns" | API learnings, integrations | General tips |
"bug fixes" | Workarounds, fixes | Feature explorations |
"SOP compliance" | Rule violations, learnings | Routine operations |
"accessibility APIs" | AXUIElement patterns | Generic 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
| Metric | Warning | Critical |
|---|---|---|
| Entities | 60 | 80 |
| Tokens | 8,000 | 12,000 |
Key Insight
The /compact command accepts natural language instructions about what to keep vs. discard. Be specific about SaneBar-relevant context to preserve.
Score
Total Score
70/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


