Borrowing it
Nothing to install: this file belongs to tsz-org/tsz. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tsz-org/tsz/main/.agents/skills/tsz-disk-cache-hygiene/SKILL.mdgit clone --depth 1 https://github.com/tsz-org/tszWrote 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.
[](https://agentmods.dev/skills/tsz-org/tsz/tsz-disk-cache-hygiene)<a href="https://agentmods.dev/skills/tsz-org/tsz/tsz-disk-cache-hygiene"><img src="https://agentmods.dev/badge/skills/tsz-org/tsz/tsz-disk-cache-hygiene/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.
<a href="https://agentmods.dev/skills/tsz-org/tsz/tsz-disk-cache-hygiene"><img src="https://agentmods.dev/badge/skills/tsz-org/tsz/tsz-disk-cache-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.00313 |
| Opus 5.5 | $0.00025 | $0.00125 |
| Sonnet 5.5 | $0.00013 | $0.00063 |
| Haiku 4.5 | $0.00006 | $0.00031 |
Grade C, and why
tsz-disk-cache-hygiene scanned grade C with 1 finding 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 23d ago.
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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
pressure proves otherwise. Do not run `cargo clean`, `rm -rf target`, or full What it actually says
TSZ Disk Cache Hygiene
Use when disk, cleanup, or new worktrees are involved. Preserve hot caches unless the machine is at risk.
Compact Checks
df -h .
scripts/setup/disk-worktree-guard.sh
scripts/agents/disk-preflight.sh
git worktree list
Reuse inactive sister worktrees before creating new ones.
Cleanup Ladder
If low disk:
scripts/setup/disk-worktree-guard.sh --auto-prune
scripts/setup/clean.sh --quiet
Rerun the guard. Read references/cleanup-ladder.md before deleting worktrees,
running scripts/setup/clean.sh --full, or manually removing build dirs.
Preserve
Keep .target/, .target-bench/, target/, populated/symlinked
TypeScript/, and package-manager caches unless corruption or emergency space
pressure proves otherwise. Do not run cargo clean, rm -rf target, or full
clean as routine hygiene.
Report only before/after guard summary, caches preserved/destroyed, and why any worktree/cache removal was safe. Avoid giant recursive size listings.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 23d ago First seen · 43 lines · 63 tokens per session scan C 4f839e73e100
tsz-disk-cache-hygiene is a skill published in the GitHub repository tsz-org/tsz (577 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 313 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.
Other skills, from other repositories
deployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.
codex-pr-body
Update the title and body of one or more pull requests.
update-v8-version
Update Codex's pinned v8 / rustyv8 versions, validate the release-candidate path, and investigate failed V8 canary or artifact builds. Use when asked to bump V8, update rustyv8 artifacts, prepare or validate a V8 release candidate, check v8-canary, or diagnose why a V8 version update no longer builds.
contributor-onboarding
Help a new contributor get productive on this checkout - inspect sync state against main, build, run the repository's exact verification gate, and produce a local what's-new digest. Never fetches, pulls, or modifies a dirty tree on its own. Explicit-only.
codew-release-qa-sweep
Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.
gh-find-prs
Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.