tmp-cleanup SKILL.md skillA

tmp-cleanup from fabienjuif/agentic-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add fabienjuif/agentic-skills/tmp-cleanup@git:20261009.60762ca

Pins git:20261009.60762ca in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
fabienjuif/agentic-skills
Path
plugins/fabien-skills/skills/tmp-cleanup/SKILL.md
Versions recorded
1
Latest version
git:20261009.60762ca, committed Oct 9, 2026
Size
2,146 bytes
Repository stars
3
License
MIT

Free memory by deleting stale artefacts from the temp dir (/tmp is often tmpfs, so it lives in RAM). Use when the user asks to free memory or clean up, when temp cleanup is requested, or when you notice memory pressure (low MemAvailable, swapping, OOM, large tmpfs usage).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# tmp-cleanup

On many Linux systems `/tmp` is tmpfs, so everything in it consumes RAM. The bundled
script `tmp-cleanup.sh` (next to this file) deletes stale top-level entries. It is a
script, rather than inline `rm -rf`, so the deletion rules (age, ownership, protected
names) are fixed and reviewable instead of improvised per call.

Works on Linux and macOS (bash 3.2+). Same skill format for Claude Code
(`~/.claude/skills/`) and Codex (`~/.codex/skills/` or `~/.agents/skills/`).

## Steps

1. Dry run first and show the count and size to the user:
   `<skill dir>/tmp-cleanup.sh`
2. Delete: `<skill dir>/tmp-cleanup.sh --apply`
   - Default age threshold is 3h; use `--hours N` if the user asks for another.
   - `--dir PATH` targets another directory (default `/tmp` on Linux, `$TMPDIR` on macOS).
   - On an explicit "free memory" / "cleanup" request, go straight to `--apply`.
   - On self-noticed memory pressure, dry-run, then ask before `--apply`.
3. Report only the before/after `df` lines. If memory is still tight, look at
   `du -sh /tmp/* 2>/dev/null | sort -h | tail` and tell the user about recent big
   offenders; don't delete entries newer than the threshold unasked.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add fabienjuif/agentic-skills/tmp-cleanup@sha256:eb3f2b71720f0ecc

The line at the top of this page pins the label git:20261009.60762ca, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_o3vg6ubnjplzmspp.svg)](https://markdownregistry.com/a/art_o3vg6ubnjplzmspp)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 9, 2026.

versioncommittedcommitsizeaudit
git:20261009.60762ca latest2026-10-09 60762ca 2,146 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2146 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

fabienjuif/agentic-skills · 3 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_o3vg6ubnjplzmspp
GET https://markdownregistry.com/api/v1/resolve?ref=fabienjuif/agentic-skills/tmp-cleanup
GET https://markdownregistry.com/api/v1/blob/eb3f2b71720f0ecca286033cedc910c2bc9b13a922ae65ed6e27c915522ffa78

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from fabienjuif/agentic-skills

CLAUDE.md CLAUDE.md file
fabienjuif/agentic-skills · CLAUDE.md
git:20260618.56590b0 · audit A · 3 stars
capture-docs SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/capture-docs/SKILL.md · At the end of a session, capture what was learned into the repo's documentation so it isn't lost and future sessions…
git:20260624.c5daeaa · audit A · 3 stars
catch-up SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/catch-up/SKILL.md · Personal daily catch-up dashboard — gathers, for the configured sources, the Slack messages where you're involved in…
git:20260713.ecc0062 · audit A · 3 stars
close-session SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/close-session/SKILL.md · Wrap up a work session in one pass — find the issue-tracker tickets the session touched (Linear) and update them, or…
git:20261017.6803000 · audit A · 3 stars
eta SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/eta/SKILL.md · Report the ETA of what you are currently doing, in one fixed format (progress bar, ETA clock time, per-step table)…
git:20261019.1d12772 · audit A · 3 stars
fix-stale-doc SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/fix-stale-doc/SKILL.md · Full-repo documentation sweep. Fans out one sub-agent per module / docs subdir / README cluster to (1) fix stale claims…
git:20260718.cfba5c5 · audit A · 3 stars
gitmoji SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/gitmoji/SKILL.md · Commit the current changes with a gitmoji-prefixed message (https://gitmoji.dev), picking the one gitmoji that matches…
git:20261004.11e6def · audit A · 3 stars
idea SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/idea/SKILL.md · Quickly capture an idea about the current project into docs/IDEA.md — a "what's next" backlog. Ideas can be anything…
git:20260705.f380f09 · audit A · 3 stars
make-plan SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/make-plan/SKILL.md · Produce a plan for a non-trivial task as a self-contained docs/plans/<name>/ directory (CLAUDE.md, README.md…
git:20260618.56590b0 · audit A · 3 stars
pr-review SKILL.md skill
fabienjuif/agentic-skills · plugins/fabien-skills/skills/pr-review/SKILL.md · Review a pull request and post ONE consolidated review comment that updates in place across re-reviews — each pass…
git:20260625.6630199 · audit A · 3 stars

Every file in fabienjuif/agentic-skills

Browse by kind, by grade A, or by owner.