ss-cleanup
Skill2 starsChanged 5 months agoApache-2.0View on GitHub
Safely remove only separately authorized exact owned workspace or external checkpoint paths while preserving user work and evidence.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ss-archiveSkill
- ss-code-reviewSkill
- ss-codingSkill
- ss-coding-workflowSkill
- ss-create-branchSkill
- ss-create-prSkill
- ss-feature-workflowSkill
- ss-guardrailsSkill
- ss-inspectSkill
- ss-list-changesSkill
- ss-multi-repo-workflowSkill
- ss-planSkill
- ss-proposalSkill
- ss-referencesSkill
- ss-reverse-specSkill
- ss-show-specSkill
- ss-trace-specSkill
- ss-troubleshooting-workflowSkill
- ss-write-specSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
No policy retention timer, lock database or automatic expired-run deletion.
- Very specific: line 24
Use supported Git worktree removal and branch deletion only for exact authorized owned paths/refs after safety checks.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scoped Cleanup
Cleanup needs separate authorization; PR creation, workflow completion or skill uninstall never grants deletion authority. Read checkpoint. A dry-run inventory is safe when requested; deletion is not an implied next step.
Inputs name exact paths, branches/artifacts, scope and owner. Confirm canonical roots, task/repo identity, permissions and symlink boundaries. Reject glob cleanup, root/ancestor deletion, symlink escapes, unknown owner/process or mismatched checkpoint. No policy retention timer, lock database or automatic expired-run deletion.
Inspect tracked, untracked, ignored and recursive submodule dirty work and known live writers before removing a worktree. Unmerged/unpushed branches and original failure/review/test logs remain evidence, not rubbish. Preserve necessary nonsecret recoverable user content externally with restricted permissions and obtain consent before discard; secret-bearing raw files must not be copied to recovery/logs. Unknown process state or preservation conflict blocks deletion.
Use supported Git worktree removal and branch deletion only for exact authorized owned paths/refs after safety checks; never force removal/reset/clean or infer that all worktrees are disposable. Remote branch deletion needs explicit authority. External checkpoint cleanup likewise checks exact root/identity and preserves required original results. Do not delete arbitrary host sessions or project files.
Report exact removed/retained paths, protected backup references, skipped unsafe items and actual errors. Cancellation stops cleanup and preserves remaining state. Uninstalling the skill bundle changes discovery files only, not task artifacts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

