← ClaudeAtlas

prune-discussionslisted

Delete old discussion files based on retention preferences, explicit age, or interactive selection. Respects configured retention and always confirms before deleting.
brennacodes/brenna-plugs · ★ 1 · Data & Documents · score 70
Install: claude install-skill brennacodes/brenna-plugs
<purpose> Prune old discussions from `~/.things/for-the-record/discussions/`. Three modes: use the configured `discussion_retention_days` preference (default), specify `--older-than <days>` explicitly, or use `--interactive` to pick specific files. Always confirms before deleting. </purpose> <steps> <step id="load-config" number="1"> <description>Load Configuration</description> <load-config> <action>Resolve the user's home directory.</action> <command language="bash" output="home" tool="Bash">echo $HOME</command> <constraint>Never pass `~` to the Read tool.</constraint> <read path="<home>/.things/config.json" output="config" /> <if condition="config-missing">Tell the user: "Run `/things:setup-things` first." Then stop.<exit /></if> <read path="<home>/.things/for-the-record/preferences.json" output="preferences" /> <if condition="preferences-missing">Tell the user: "Run `/setup-ftr` first." Then stop.<exit /></if> </load-config> </step> <step id="determine-mode" number="2"> <description>Determine Pruning Mode</description> <action>Parse `$ARGUMENTS` for:</action> - **--older-than <days>**: Delete discussions older than N days - **--interactive**: Show all discussions for manual selection <if condition="--interactive"> <action>Use interactive mode (step 4).</action> </if> <if condition="--older-than provided"> <action>Use the explicit days value.</action> </if>