tsz: Skill for Codex

.agents/skills/tsz-disk-cache-hygiene/SKILL.md

tsz-disk-cache-hygiene is a skill for Codex from tsz-org/tsz. It costs 63 tokens per session (313 once invoked), scanned C, original, Apache-2.0.

A procedure for managing disk space on development machines and Git worktrees while keeping useful build caches. A worktree is another checked-out working directory connected to the same Git repository.

In plain words
What is it for?
Use it before creating worktrees or running large builds and tests, and when diagnosing low disk space or deciding which build artifacts and caches are safe to remove.
Why use it?
Large builds and extra worktrees can fill a disk, while deleting caches can make later builds slower. It provides a cautious cleanup order and identifies what should normally be preserved.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is tsz-org/tsz's own configuration. It tells Codex how to work on tsz itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tsz configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tsz-org/tsz/main/.agents/skills/tsz-disk-cache-hygiene/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tsz-org/tsz

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 tsz-disk-cache-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/tsz-org/tsz/tsz-disk-cache-hygiene/github.svg)](https://agentmods.dev/skills/tsz-org/tsz/tsz-disk-cache-hygiene)
Your own site
<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.

agentmods 80×15 button for tsz-disk-cache-hygiene

Your own site · 80×15
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 313 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00063 $0.00313
Opus 5.5 $0.00025 $0.00125
Sonnet 5.5 $0.00013 $0.00063
Haiku 4.5 $0.00006 $0.00031

Measured 23d ago against content hash 4f839e73e100, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
.agents/skills/tsz-disk-cache-hygiene/SKILL.md · 43 lines

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.

Files

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.

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. 23d ago First seen · 43 lines · 63 tokens per session scan C 4f839e73e100

Subscribe to this mod's changes

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.