Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sonichi/sutando --skill process-hygienegit clone --depth 1 https://github.com/sonichi/sutandoWrote 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/sonichi/sutando/process-hygiene)<a href="https://agentmods.dev/skills/sonichi/sutando/process-hygiene"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/process-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/sonichi/sutando/process-hygiene"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/process-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.00103 | $0.03162 |
| Opus 5.5 | $0.00041 | $0.01265 |
| Sonnet 5.5 | $0.00021 | $0.00632 |
| Haiku 4.5 | $0.00010 | $0.00316 |
Grade A, and why
process-hygiene scanned grade A with 0 findings 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 3d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Process hygiene
Agent sessions run tests from their per-session scratchpads. When a run is interrupted or times out, background children it started are re-parented to init and keep running: spin loops waiting on a file that will never appear, fixture servers, hung interpreters. They accumulate across sessions for days. This skill finds them by provenance, not by name, and stops them one target at a time.
Usage
python3 skills/process-hygiene/scripts/reap_orphans.py # report only
python3 skills/process-hygiene/scripts/reap_orphans.py --reap # stop candidates
python3 skills/process-hygiene/scripts/reap_orphans.py --spotlight # Spotlight markers only
Every run appends one line per action and a summary to
<workspace>/logs/process-hygiene.log and prints the summary. The exit status is
0 for every run that parsed its arguments, so a scheduled caller never retries in a loop; 2
on a usage error.
What is a candidate
ALL of:
- owned by the user running the script;
- PPID 1 — whatever started it is gone;
- elapsed time over
PROCESS_HYGIENE_MIN_AGE_S(default 7200); - its working directory (
lsof -a -p PID -d cwd -Fnon macOS,/proc/PID/cwdon Linux), as a realpath, is inside a scratchpad root matching/private/tmp/claude-<uid>/*/*/scratchpador/tmp/claude-<uid>/*/*/scratchpad. A root is used only whenclaude-<uid>is a real directory owned by this user, nothing between it andscratchpadis a symlink, and the resolved root sits under the resolvedclaude-<uid>; a symlinked scratchpad would otherwise make its target (a repo, the workspace) a root, for reaping and for--spotlightalike; - the Claude Code session that owns that scratchpad has ended (below);
- no process in its process group holds a server socket — a listening TCP
socket or any UDP socket (
lsof -w -a -p PID -iTCP -sTCP:LISTEN -iUDPon macOS; the pid's socket inodes against/proc/PID/net/{tcp,tcp6,udp,udp6}on Linux). A dev server, database or tunnel an agent started on purpose is spared even after its session ended. If the sockets cannot be read for any member, the whole group is spared.
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.
- 3d ago First seen · 206 lines · 103 tokens per session scan A 98b2df40d0f1
process-hygiene is a skill published in the GitHub repository sonichi/sutando (399 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 3,162 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.
Other skills, from other repositories
sentry-app-setup
Create and configure a Sentry internal integration so the assistant can manage issues, alerts, and releases under its own identity.
code_explorer
Explores the repository to locate primary source files, coupled UI components, and test files for bug reports or feature requests.
gmail
Manage Gmail email — drafting, sending, organizing, filters, vacation replies, and inbox analysis.
app-builder
Build and edit small, personal visual tools and artifacts — dashboards, trackers, calculators, data visualizations, charts, simple landing pages, and slide decks the user wants for THEMSELVES. This is the right skill whenever the user asks to "visualize this," "make a chart," or "build an artifact" for their own use…
assistant-migration
Migrate from ChatGPT, Claude, OpenClaw, Hermes, Manus, and other AI assistants into Vellum by inspecting their data exports, conversation archives, files, prompts, custom instructions, memory, saved memories, tools, GPTs, workflows, integrations, and relationships, then mapping as much as safely possible into Vellum…
vellum-memory-v3-migration
One-time migration of an existing memory-v2 concept corpus into the memory-v3 section-grain "wiki" — topical articles with a stand-alone lead and queryable sections — with loss-proof staging, assistant-reviewed authoring, and a retrieval-eval gate before cutover.