vault-cleanup
Installation
SKILL.md
Cleanup
Audit raw/processed/ for hygiene issues without deleting canonical evidence.
Parameters
--days Nreport folders older thanNdays (default:90)--mode report|apply-safe|apply(default:report)
apply-safe and apply are both non-destructive here: only empty-folder
cleanup is permitted.
Workflow
- Scan
raw/processed/YYYY-MM-DD/and flag:- date folders older than threshold
- empty date folders
- non-date folder anomalies
- duplicate filenames across dates
- Classify findings:
- informational
- safe fix available
- manual decision required
- Execute by mode:
report: findings onlyapply-safe/apply: remove empty date folders after confirmation
- Return summary and follow-up actions.
Edge Cases
- If
raw/processed/missing: report no-op. - If no findings: report clean state.
Safety
- Treat
raw/processed/as canonical immutable evidence. - Never delete processed source files from
raw/processed/. - Never delete from
raw/sources/. - Never delete from
raw/assets/. - Never delete from
notes/,projects/, orresources/. - Never touch curated notes/projects unless explicitly requested.
Output
Return:
- findings by class
- fixes applied (if any)
- manual follow-up items
Related skills
More from markphelps/agent-plugins
vault-lint
Hygiene pass over notes/ and projects/ surface
9vault-research
Research a note - find competitors, discussions, and market signals
8vault-compact
Merge clusters of small related notes into consolidated files
7vault-x-bookmarks
Review a bounded slice of X bookmarks via the X API and capture selected
7vault-concept-promoter
Promote repeated themes into canonical concept pages under notes/concepts
6vault-maintain
Weekly bounded maintenance loop across ingestion, hygiene, tracking, and
6