Back to list
Nnnsightnnn

bloat-manager

by Nnnsightnnn

Context system for Claude Code with memory management, skills, hooks, and pain point tracking.

2🍴 0📅 Jan 21, 2026

SKILL.md


name: Bloat Manager description: Prevent unbounded growth of system artifacts. Use when checking system health, consolidating files, or managing archives. allowed-tools: Read, Write, Edit, Grep, Glob, Bash

Bloat Manager Skill

Purpose

Prevent unbounded growth of system artifacts by implementing soft limits, suggesting consolidation, and managing archives. This skill maintains system health without blocking productive work.

Auto-Activation Triggers

This skill activates when:

  • It's Monday (weekly maintenance check)
  • User says "check for bloat", "cleanup review", or "consolidate"
  • Any soft limit threshold is approached or exceeded
  • Files exceed size or count limits

CRITICAL: Soft Limits Philosophy

Never block operations. Always warn and suggest.

Soft limits educate rather than frustrate. They allow justified exceptions while building awareness over time.

Threshold Architecture

HEALTHY    → APPROACHING (80%)  → EXCEEDED (100%)  → CRITICAL (120%)
[No action]   [Suggest review]     [Recommend action]   [Escalate priority]

Soft Limits Reference

File Size Limits

ArtifactSoft LimitReview TriggerCritical
CLAUDE.md400 lines450 lines500 lines
quick-reference.md100 lines120 lines150 lines
procedural-memory.md500 lines600 lines750 lines
episodic-memory.md200 lines250 lines300 lines
Individual SKILL.md300 lines350 lines400 lines

Count Limits

CategorySoft LimitReview TriggerCritical
Active skills304050
Active pain points506580
Error history entries100150200
Patterns in quick-ref202530

Retention Policies

Content TypeActive PeriodArchive TriggerDelete Trigger
PatternsRolling 6 monthsUnused 6 monthsNever
Session summaries30 daysAfter 30 daysAfter 1 year
Error history30 daysAfter 90 daysAfter 1 year
Resolved pain points30 daysAfter 30 daysAfter 6 months

Core Workflow

Step 1: Gather Metrics

Collect current state of all monitored artifacts:

# Count lines in key files
wc -l .claude/CLAUDE.md
wc -l .claude/memory/active/quick-reference.md
wc -l .claude/memory/active/procedural-memory.md
wc -l .claude/memory/active/episodic-memory.md

# Count skills
find .claude/skills -name "SKILL.md" | wc -l

# Count active pain points
grep -c "^### " .claude/pain-points/active-pain-points.md

# Count error history entries
python3 -c "import json; print(len(json.load(open('.claude/pain-points/ai-error-history.json')).get('errors', {})))"

Step 2: Assess Health Status

For each metric, determine status:

  • Healthy: Below 80% of soft limit
  • Approaching: 80-99% of soft limit
  • Exceeded: 100-119% of soft limit
  • Critical: 120%+ of soft limit

Step 3: Generate Health Report

Present findings in clear format:

## System Health Report - YYYY-MM-DD

### Summary
- Overall Status: [Healthy/Needs Attention/Action Required]
- Items Approaching Limits: N
- Items Exceeding Limits: N

### Detailed Metrics

| Artifact | Current | Limit | Status |
|----------|---------|-------|--------|
| CLAUDE.md | 385 lines | 400 | Approaching (96%) |
| Skills | 28 | 30 | Approaching (93%) |
| Pain Points | 42 | 50 | Healthy (84%) |

### Recommended Actions
1. [Specific action for exceeded items]
2. [Specific action for approaching items]

Step 4: Propose Consolidation (if needed)

For items needing attention:

For CLAUDE.md bloat:

  • Identify sections that can move to .claude/specs/
  • Find redundant or outdated rules
  • Suggest merging related specifications

For skill bloat:

  • Identify similar skills that can merge
  • Find unused skills (no invocations in 30 days)
  • Suggest deprecating obsolete skills

For memory bloat:

  • Identify patterns to archive (unused 6+ months)
  • Find duplicate or near-duplicate entries
  • Suggest consolidating related patterns

For pain point bloat:

  • Identify resolved pain points to archive
  • Find stale pain points (no updates in 60 days)
  • Suggest closing or escalating old items

Step 5: Execute Approved Actions

Only after user approval:

  • Move content to archives
  • Consolidate files
  • Update references
  • Document changes in episodic memory

Edge Cases

Monday Falls on Holiday

Condition: Weekly check lands on a holiday Handling: Run check on next working day, note delay in report

Multiple Items Critical

Condition: Several artifacts exceed critical thresholds Handling: Prioritize by impact - CLAUDE.md > skills > memory > pain points

New Project (Few Artifacts)

Condition: Project is new, most metrics near zero Handling: Skip check, note "healthy - early stage project"

Archive Directory Missing

Condition: Archive target doesn't exist Handling: Create archive structure before moving files

Integration Points

With Pain Point Manager

  • Archive resolved pain points
  • Track bloat-related friction as pain points

With Memory System

  • Log consolidation actions in episodic memory
  • Update procedural memory with new patterns discovered

With Skill Metrics

  • Use invocation data to identify unused skills
  • Track bloat manager effectiveness

Output Examples

Example 1: Healthy System

Trigger: Weekly Monday check Response:

## System Health Report - 2026-01-13

### Summary
Overall Status: **Healthy**

All artifacts are within healthy limits. No action required.

| Artifact | Current | Limit | Status |
|----------|---------|-------|--------|
| CLAUDE.md | 285 lines | 400 | Healthy (71%) |
| Skills | 12 | 30 | Healthy (40%) |
| Pain Points | 8 | 50 | Healthy (16%) |
| Error History | 23 | 100 | Healthy (23%) |

Next scheduled check: 2026-01-20

Example 2: Action Required

Trigger: User says "check for bloat" Response:

## System Health Report - 2026-01-16

### Summary
Overall Status: **Action Required**

2 items exceeding limits, 1 approaching.

| Artifact | Current | Limit | Status |
|----------|---------|-------|--------|
| CLAUDE.md | 456 lines | 400 | **Exceeded (114%)** |
| Skills | 35 | 30 | **Exceeded (117%)** |
| Pain Points | 45 | 50 | Approaching (90%) |

### Recommended Actions

**1. CLAUDE.md Consolidation (Priority: High)**
- Move deployment specifications (lines 180-250) to `.claude/specs/deployment.md`
- Archive deprecated rules from 2025 (lines 312-340)
- Expected reduction: ~100 lines

**2. Skill Consolidation (Priority: High)**
- Merge `data-validator` and `input-checker` (similar purpose)
- Archive `legacy-formatter` (0 invocations in 60 days)
- Expected reduction: 5 skills

**3. Pain Point Review (Priority: Medium)**
- Review 12 pain points older than 30 days
- 5 appear resolved but not archived

Shall I proceed with any of these actions?

Error Handling

If File Read Fails

  1. Log the error
  2. Mark that artifact as "Unable to assess"
  3. Continue with other artifacts
  4. Note incomplete assessment in report

If Archive Write Fails

  1. Do not delete original
  2. Report failure to user
  3. Suggest manual intervention
  4. Log in error history

If Metrics File Corrupted

  1. Back up corrupted file
  2. Initialize fresh metrics file
  3. Note data loss in report
  4. Continue with available data

Skill Metadata

Version: 1.0.0 Created: 2026-01-16 Category: System Maintenance Integration: Memory System, Pain Points, Skill Metrics Maintenance: Self-monitoring (runs weekly)

Score

Total Score

55/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

+5

Reviews

💬

Reviews coming soon