Agent skill

Tsz Disk Cache Hygiene

by tsz-org in tsz-org/tsz

Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches.

Apache-2.0Auto-check passedDevelopment

Install Tsz Disk Cache Hygiene

skills CLI
$ npx skills add tsz-org/tsz --skill tsz-disk-cache-hygiene -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tsz-org/tsz tsz-disk-cache-hygiene --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tsz-org/tsz.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tsz-disk-cache-hygiene .claude/skills/tsz-disk-cache-hygiene && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tsz-disk-cache-hygiene
GitHub stars
577
Token cost
~342 tokens
SKILL.md length
104 words
Files
3 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches.

  • Tasks that involve Git worktrees
  • SKILL.md covers Compact Checks, Cleanup Ladder and Preserve
  • Calls git and cargo

What it does

Tsz Disk Cache Hygiene is an agent skill from tsz-org/tsz. Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches. Use before creating worktrees, running large builds/tests, diagnosing low disk, cleaning artifacts, deciding whether to delete caches, or recovering space without slowing future Rust/TypeScript builds.

Its SKILL.md is about 340 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/cleanup-ladder.md`).

It sits in Development, covering Git worktrees. It works with Rust and TypeScript. The repository describes itself as: An experiment in fully hand-off software engineering: A performance-first TypeScript checker. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/tsz-disk-cache-hygiene”

What it can do on your machine

Read from SKILL.md and the folder at commit 153b25a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tsz Disk Cache Hygiene loads about 342 tokens when it runs, and up to ~822 if it reads all its reference files. Until then it costs about 81 tokens; SKILL.md has 104 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~342
With references · SKILL.md plus every file in references/, read only if the agent opens them
~822

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tsz-org/tsz at commit 153b25a, republished under its Apache-2.0 licence (© tsz-org). 104 words, ~342 tokens.

Download SKILL.mdSave it as .claude/skills/tsz-disk-cache-hygiene/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
tsz-disk-cache-hygiene
description
Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches. Use before creating worktrees, running large builds/tests, diagnosing low disk, cleaning artifacts, deciding whether to delete caches, or recovering space without slowing future Rust/TypeScript builds.

TSZ Disk Cache Hygiene

Use when disk, cleanup, or new worktrees are involved. Preserve hot caches unless the machine is at risk.

Compact Checks

bash
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:

bash
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.

© tsz-org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .agents/skills/tsz-disk-cache-hygiene of tsz-org/tsz.

  • SKILL.md
  • agents/openai.yaml
  • references/cleanup-ladder.md

Open the folder on GitHubat commit 153b25a

Compare with similar skills

Tsz Disk Cache Hygiene next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tsz Disk Cache Hygiene compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tsz Disk Cache Hygiene this skilltsz-org/tsz577—~342Automated safety check: PassApache-2.0
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence
Testing Changespnpm/pnpm37k—~1.1kAutomated safety check: PassMIT
jscpd Code Migration Trackerkucherenko/jscpd6.4k—~5kAutomated safety check: PassMIT
Cpu Reductionnubjs/nub4.4k—~2.8kAutomated safety check: PassMIT

Similar skills

  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Run the tests that cover a change in the pnpm repository, in the Rust workspace (pnpm/, pnpr/) or the TypeScript CLI (pnpm11/), and recognize the cases where a scoped run passes without testing…

    37k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.

    6.4k GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check passed
  • Cpu Reduction

    nubjs/nub

    Diagnose and clear CPU, memory, and disk contention on the maintainer's dev host.

    4.4k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Reclaim disk on the maintainer's Mac when the volume is full or filling — ENOSPC, "no space left on device", a failed build or agent harness, or a routine sweep of Rust build residue.

    4.4k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed

More from tsz-org/tsz

All 12 skills in this repo
  • Run a deep DRY + code-hygiene audit of the Rust workspace and turn the findings into verified, deduplicated, hierarchical GitHub tech-debt issues.

    577 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Audit TSZ repo iteration speed and quality. An agent skill from tsz-org/tsz.

    577 GitHub stars~557 tokensUpdated 1 mo ago
    Auto-check passed
  • A skill your agent uses when planning, implementing, reviewing, or interpreting TSZ performance work, including benchmark regressions, cache/residency changes, timing claims, perf counters, hotspot…

    577 GitHub stars~746 tokensUpdated 1 mo ago
    Auto-check passed
  • Create, refresh, and publish TSZ pull requests with correct body and state.

    577 GitHub stars~555 tokensUpdated 1 mo ago
    Auto-check passed
  • Start TSZ work safely in a crowded multi-agent checkout. An agent skill from tsz-org/tsz.

    577 GitHub stars~518 tokensUpdated 1 mo ago
    Auto-check passed
  • Tsz Architecture

    tsz-org/tsz

    Preserve TSZ architecture boundaries while changing checker, solver, binder, emitter, LSP, WASM, or CLI code.

    577 GitHub stars~547 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Tsz Disk Cache Hygiene

What does Tsz Disk Cache Hygiene do?

Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches. Tsz Disk Cache Hygiene is an agent skill from tsz-org/tsz. Prevent TSZ machines and worktrees from running out of disk while preserving useful build caches.

When should I use Tsz Disk Cache Hygiene?

Tsz Disk Cache Hygiene fits situations like: tasks that involve Git worktrees.

How do I install Tsz Disk Cache Hygiene in Claude Code?

Run `npx skills add tsz-org/tsz --skill tsz-disk-cache-hygiene -a claude-code`. Or copy the skill folder (.agents/skills/tsz-disk-cache-hygiene in tsz-org/tsz) into .claude/skills/tsz-disk-cache-hygiene in your project. Claude Code loads it when a task matches its description.

How do I install Tsz Disk Cache Hygiene in Codex?

Run `npx skills add tsz-org/tsz --skill tsz-disk-cache-hygiene -a codex`. Or copy the skill folder (.agents/skills/tsz-disk-cache-hygiene in tsz-org/tsz) into .agents/skills/tsz-disk-cache-hygiene in your project. Codex loads it when a task matches its description.

Can I use Tsz Disk Cache Hygiene in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tsz-org/tsz --skill tsz-disk-cache-hygiene -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tsz-disk-cache-hygiene, .gemini/skills/tsz-disk-cache-hygiene, .github/skills/tsz-disk-cache-hygiene and .opencode/skills/tsz-disk-cache-hygiene in your project.

What does Tsz Disk Cache Hygiene need to run?

Going by SKILL.md and its folder, Tsz Disk Cache Hygiene needs the command-line tools its instructions call (git and cargo).

Does Tsz Disk Cache Hygiene access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Tsz Disk Cache Hygiene safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tsz Disk Cache Hygiene use?

Tsz Disk Cache Hygiene is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tsz Disk Cache Hygiene use?

About 342 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 480 tokens, read only when the agent opens those files.

What are the alternatives to Tsz Disk Cache Hygiene?

Skills that share tags, products or a category with Tsz Disk Cache Hygiene: Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Pnpm Engine (teambit/bit, 18k stars), Testing Changes (pnpm/pnpm, 37k stars) and jscpd Code Migration Tracker (kucherenko/jscpd, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tsz Disk Cache Hygiene?

tsz-org (a GitHub organization) maintains it in tsz-org/tsz, which has 577 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 9, 2026.

Source: tsz-org/tsz on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.