Skip to content
Back to skills

Clud Windows Trash

ASecurity

Quarantine Windows-locked DLL/EXE/PYD artifacts with the launching clud executable's trash subcommand instead of retrying deletes or killing processes.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
ai-agentsgoshell

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add talos-hq/clud --skill clud-windows-trash --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clud Windows Trash?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clud Windows Trash
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/talos-hq-clud-windows-trash/badge)](https://www.skillsdirectory.com/skills/talos-hq-clud-windows-trash)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clud-windows-trash
description: Quarantine Windows-locked DLL/EXE/PYD artifacts with the launching clud executable's trash subcommand instead of retrying deletes or killing processes.
triggers:
  - "When deleting *.dll, *.pyd, or *.exe on Windows fails with os error 32 or being used by another process"
  - "When a build fails because an output DLL, PYD, or EXE is locked"
  - "When a directory containing Windows build artifacts cannot be removed"
---
<!-- managed-by: clud -->

# /clud-windows-trash

Use `& $env:CLUD_EXE trash` in PowerShell when Windows refuses to delete freshly built native artifacts. The launcher sets `CLUD_EXE` to its own absolute path; outside a clud-launched session, set it to the intended binary first. In cmd, use `"%CLUD_EXE%" trash` instead.

## Code Change Rule

If trashing a locked artifact unblocks a bug fix or feature implementation, continue with RED -> GREEN: prove the focused test/repro fails before the code change, implement the scoped fix, then rerun that signal until it passes.

## Triggers

- A delete of `*.dll`, `*.pyd`, or `*.exe` fails with `os error 32`, `being used by another process`, `Access is denied`, or similar loader/Defender lock symptoms.
- A build script cannot overwrite an output file because the previous artifact is still locked.
- A directory removal fails and the tree contains Windows native build outputs.

## Rules

1. Do not retry `del`, `Remove-Item`, or `rm` in a loop.
2. Do not run `taskkill` for guessed parent processes.
3. Run `& $env:CLUD_EXE trash <path>` for the locked file or containing directory, then continue the build or cleanup.
4. If the trash command reports a source/trash volume mismatch, pass `--cross-volume` only when the copy cost is acceptable: `& $env:CLUD_EXE trash --cross-volume <path>`.

## Workflow

1. Identify the smallest locked path that unblocks the build. Prefer the exact file; use the containing build-output directory when many siblings are blocked.
2. Run `& $env:CLUD_EXE trash <path>`.
3. If the command succeeds, proceed immediately. The clud daemon will retry deletion from `~/.clud/trash/` until Windows releases the lock.
4. If cross-volume copy is required and acceptable, rerun with `--cross-volume`. Source removal after the copy is best-effort.
5. To inspect pending cleanup, run `& $env:CLUD_EXE gc list --kind trash`.

## Exit Guidance

After a successful trash, keep going. Do not wait for the daemon to reap the quarantined path unless the user explicitly asks to verify cleanup.

Files in this skill

  • README.md188 B
  • SKILL.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.