yq-windows-trash-cleaner

yq-windows-trash-cleaner is a skill for Codex from EthanYoQ/Skill-hub. It costs 46 tokens per session (3,051 once invoked), scanned A, original, MIT.

A safety-focused Windows maintenance workflow for auditing and cleaning storage or investigating memory problems.

In plain words
What is it for?
Use it to inspect the C drive, caches, projects, Docker or WSL data, Git worktrees, agent sessions, or memory usage. It can report findings, prepare a cleanup plan, or apply an approved scope.
Why use it?
It separates disk usage from RAM issues and requires explicit approval before deleting anything.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to inspect the C drive, caches, projects, Docker or WSL data, Git worktrees, agent sessions, or memory usage. It can report findings, prepare a cleanup plan, or apply an approved scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/yq-windows-trash-cleaner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add EthanYoQ/Skill-hub --skill yq-windows-trash-cleaner
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yq-windows-trash-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yq-windows-trash-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-windows-trash-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 32
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Anti-Refusal · line 182
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03051
Opus 5 $0.00023 $0.01525
Sonnet 5 $0.00009 $0.00610
Haiku 4.5 $0.00005 $0.00305

Measured 11d ago against content hash 4745aa670864, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yq-windows-trash-cleaner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/Collect-WindowsHealthSnapshot.ps1, scripts/Get-ComputerProjectInventory.ps1, scripts/Get-ComputerStorageInventory.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/01-agent-engineering/yq-windows-trash-cleaner/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YQ Windows Trash Cleaner

Run an evidence-first Windows maintenance workflow that is safe to invoke at any time and is not tied to one project, drive, application, or prior incident.

Route the request

Distinguish storage from RAM before collecting data:

  • Storage intent: C drive/full disk, rapid GB growth, caches, projects, worktrees, Docker/WSL images, backups, sessions, compression, or cleanup.
  • RAM intent: processes consuming memory, paged/nonpaged pool, pool tags, startup storms, long-running workload growth, Fast Startup, or suspected leaks.
  • Mixed intent: run the storage and memory tracks separately and reconcile them only in the final report.

Classify authorization:

  • AUDIT_ONLY: inspect and report. Phrases such as “哪些可以删” do not authorize deletion.
  • PLAN_ONLY: produce exact manifest IDs, commands, recovery, and predicted impact without changing state.
  • APPLY_APPROVED: execute only the candidate IDs the user explicitly approved or an exact safe-clean scope the user explicitly requested after seeing the classification.

Scanning is always read-only. A report, HTML button, color, ignored status, or large size is never authorization.

Safety contract

Protect user work before reclaiming space:

  • Never delete documents, downloads, sessions, databases, credentials, models, evidence, backups, dirty/unmerged worktrees, release artifacts, Docker volumes, system files, or unknown directories by category name alone.
  • Do not run whole-repository git clean -fdX, blanket docker volume prune, or raw recursive worktree deletion.
  • Do not hand-delete WinSxS, DriverStore, Windows Installer, pagefile, hiberfil, recovery data, or VSS data.
  • Do not follow reparse points while measuring or deleting. Resolve every target and reject a target equal to an approved root, outside it, or sharing only a text prefix.
  • Keep active projects protected. Read repository instructions and current-state documents; check Git state, worktrees, running processes, locks, manifests, lockfiles, evidence paths, and regeneration commands.
  • Prefer semantic maintenance: package-manager prune commands, git worktree remove, Docker object IDs, official DISM analysis/cleanup, transactional SQLite maintenance, or moving a review item to the Recycle Bin.
  • Hard deletion is off by default. It requires a fresh explicit decision, exact paths/IDs, full preflight, and an action log.

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 205 lines · 46 tokens per session scan A 4745aa670864

Subscribe to this mod's changes

yq-windows-trash-cleaner is a skill published in the GitHub repository EthanYoQ/Skill-hub (9 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 3,051 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.