Summary
Create a deterministic script (stage 4 procedural skill) that removes build artifacts, editor metadata, and other non-content trash from the triage directory. Triage contains ingested Obsidian vaults, git repositories, and code projects whose content is valuable but whose tooling artifacts are not.
Motivation
Triage contains hundreds of non-content files that inflate the triage index, waste enrichment cycles, and create noise when mining for relevant content. A survey found:
.obsidian/directories (AGRODAO, collapse dynamics, Delta Register, Groundhog Autonomous Zone).trash/directories (Obsidian’s internal trash).git/directories (nested git repos in fennel, elisp, hugo, library)__pycache__/directories and.pycfiles.venv/directories (Python virtual environments)node_modules/directoriesdesktop.ini,.DS_Store,Thumbs.db.logfiles (build artifacts, not journal entries)
Removing these is fully deterministic — no inference needed.
Steps
-
Write a Python script at
skills/clean-triage-trash/clean-triage-trash.pythat:- Accepts
--dry-runflag (default: dry run) - Removes directories matching:
.obsidian,.trash,.git,__pycache__,node_modules,.venv,.cache - Removes files matching:
*.pyc,.DS_Store,Thumbs.db,desktop.ini - Optionally removes
.logfiles (with a--include-logsflag, since some.logfiles may be content) - Reports what was removed and how much space was reclaimed
- Accepts
-
Write the SKILL.md manifest with:
runtime: scriptkind: operational- triggers: “clean triage”, “remove triage trash”, “triage cleanup”
-
Register the skill in
.claude/skills/registry.mdunder Maintain. -
Run the script in dry-run mode to verify, then with emsenn’s approval execute for real.
-
Rebuild the triage index after cleanup.
Done when
- Script exists and runs without errors in dry-run mode
- SKILL.md manifest passes
validate-frontmatter - Skill is registered in the registry
- Dry-run output reviewed and approved by emsenn
- Trash removed from triage
- Triage index rebuilt
Dependencies
- Triage directory must exist (it does)
Log
2026-03-08 — Created. Survey of trash patterns completed: found .obsidian, .trash, .git, pycache, .venv, node_modules, desktop.ini across triage.