Dev purge gh cache

From Takazudo/claude-resources · View interactive version

Dev purge gh cache is an AI agent skill from the GitHub repository Takazudo/claude-resources. Purge GitHub Actions caches across all non-archived repos of one or more owners. Use for 'purge gh cache', 'clear actions cache', 'delete CI cache', or /dev-purge-gh-cache.

How to use this skill

Skill file

dev-purge-gh-cache

Wipe GitHub Actions caches across all of an owner's repos in one shot. GH Actions

caches are per-repo, so "purge for an account" means iterating every repo under

that owner. scripts/purge-gh-cache.sh does the whole survey → delete → verify

fan-out; this skill just drives it.

Usage

Run the bundled script with the owner name(s) the user gave. Pass the absolute

path so the script can re-invoke itself for parallel workers:

bash $HOME/.claude/skills/dev-purge-gh-cache/scripts/purge-gh-cache.sh <owner1> [owner2 ...]

gh cache delete --all, then re-checks and prints ✅ ALL CLEAR or the repos

that still have caches.

If the user only named one owner, just run it for that one. If they asked to

"see what's there" rather than purge, use --survey-only.

Requirements

Two gotchas baked into the script (don't re-learn them)

usage endpoint is GitHub's billing figure and is recomputed on a delay — it

keeps reporting the old size/count for up to ~24h after caches are deleted,

which falsely looks like the purge failed. The script verifies with the

real-time gh cache list instead.

exported bash functions don't survive into xargs ... bash -c subshells

("command not found"). The script parallelizes by re-invoking itself with an

internal __count / __delete subcommand instead.

Notes

empty repo — that's expected and the script ignores it.

may still show the old size for up to ~24h; the caches themselves are gone

(confirmed by the live verification step).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.