alive-cleanup

Featured

System maintenance -- stale tasks, orphan folders, unsaved sessions, world health check

AI & Automation 127 stars 8 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
70
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
99
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# System Cleanup Scan across all walnuts for entropy. Surface issues one at a time. ## Checks ### 1. Unsaved Sessions ```bash grep -l "saves: 0" "$ALIVE_WORLD_ROOT/.alive/_squirrels/"*.yaml 2>/dev/null ``` For each: check transcript file size before dismissing. `saves: 0` + `stash: []` does NOT mean empty -- the stash is only written at save. ``` [N] unsaved sessions found. [id] -- [date] -- [walnut] -- transcript: [size] Review transcripts for lost work? 1. Yes, check them all 2. Show me the list first 3. Clear and move on ``` ### 2. Stale Bundles Find bundles in `draft` status unchanged for 30+ days: ```bash find "$ALIVE_WORLD_ROOT" -name "context.manifest.yaml" -mtime +30 2>/dev/null ``` For each stale bundle: ``` "[bundle-name]" has been in draft for [N] days. 1. Advance it (prototype/published) 2. Archive it (set status: done) 3. Kill it (delete -- drafts are disposable) 4. Leave it ``` ### 3. Stale Walnuts Walnuts past 2x their rhythm with no recent sessions: ``` [walnut] -- waiting -- [N] days past weekly rhythm 1. Load it (check what's there) 2. Archive it (move to 01_Archive) 3. Update rhythm (maybe it's monthly now) 4. Leave it ``` ### 4. Empty Tasks Walnuts with stale or empty task files: ```bash find "$ALIVE_WORLD_ROOT" -name "tasks.json" -exec python3 -c " import json, sys data = json.load(open(sys.argv[1])) tasks = data.get('tasks', []) active = [t for t in tasks if t.get('status') not in ('done', 'archived')] if active: ...

Details

Author
alivecontext
Repository
alivecontext/alive
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category