paperclip-api
Use when managing Paperclip AI agent companies - creating tasks, managing agents, approving hires, running heartbeats, or any…
Process tails that hold memory for nothing: finds them and, on the owner's word, kills them. Use on "slow", "swap", "low memory", "kill the tails", "clean up memory", "ram doctor", and after closing heavy apps.
$ npx -y skills add serejaris/personal-corp-os --skill it-ram-doctor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/it-ram-doctorContext preview
The summary Claude sees to decide when to auto-load this skill.
Process tails that hold memory for nothing: finds them and, on the owner's word, kills them. Use on "slow", "swap", "low memory", "kill the tails", "clean up memory", "ram doctor", and after closing heavy apps.
name: it-ram-doctor description: >- Process tails that hold memory for nothing: finds them and, on the owner's word, kills them. Use on "slow", "swap", "low memory", "kill the tails", "clean up memory", "ram doctor", and after closing heavy apps.
The snapshot only reads; step 4 kills, and only on the owner's word.
"13 of 16 GB used" and the swap size do not show load: macOS keeps memory busy with cache and compression, and swap does not shrink until a reboot. Memory is short when any of these holds:
No signs: clean only on a direct request. Measure a process by `top -o mem` or `footprint`; `ps` understates the compressed part.
1. **Snapshot.** From the skill root:
bash scripts/tails-macos.sh # local ssh -o BatchMode=yes -o ConnectTimeout=8 <alias> 'bash -s' < scripts/tails-<os>.sh # remote
Keep the script's summary as the "before" and take the top of `top -o mem`: the table omits launchd services (on Linux, `.service` units), system processes, Claude.app and children of active sessions, and one live job (a local whisper run, 9 GB) can outweigh all the tails. Done when you hold the table, the summary and the top of `top`.
2. **Decide.** The "Action" column sets what to do with a class (the script prints the Russian labels shown):
| Class | What it is | Action | |---|---|---| | `claude-сессия` (claude session) | Claude Code CLI, bundled with Desktop or standalone | kill if a tail | | `хвост закрытого приложения` (closed-app tail) | processes of `X.app` with PPID 1 while `X` is not running, and everything under them | kill | | `сирота` (orphan) | a worker with PPID 1: omp/bun, Chrome for Testing, npx/MCP, grok/codex; duplicates marked | kill | | `dev-сервер` (dev server) | `http.server`, vite, `npm run dev` without a parent, older than a day | ask | | `зомби` (zombie) | STAT Z older than a minute | its parent reaps it: name the parent |
The script does not know session activity: match the id from the row against `list_sessions`. A tail is a session with `lastActivityAt` older than 12 h, not `isRunning`, with no work going on. Id "не найдена" (not found) and sessions on a remote machine (`list_sessions` does not know them): ask. Done when every row has an action and every claude row has a verdict: tail, live or ask.
3. **Show.** The table to the owner: row, action, what dies with it. Before killing a claude process, name its dev servers and ports from the "dies with it" column. "Kill" and "clean up" go straight to step 4; "slow" and "swap" wait for the word. Done when the owner sees the table and the word is received or not needed.
4. **Kill.** Only rows that passed step 2, in bash with an array, with a check and a follow-up KILL:
# bash -c: in zsh `kill $pids` with a string silently kills nothing
bash -c 'pids=(111 222 333); kill -TERM "${pids[@]}"; sleep 4
for p in "${pids[@]}"; do kill -0 "$p" 2>/dev/null && kill -KILL "$p"; done'Done when no pid from the array answers `kill -0` and the ports of killed dev servers are free.
5. **Verify.** Run the script again. Report to the owner: pressure and the candidates' RSS before and after; swap does not shrink until a reboot, so it is not the measure. A killed claude session stays in the app's list and comes back on the next message. Killing the CLI does not free the memory of Desktop's renderer and main processes: that needs an app restart, on the owner's word, after checking it will not interrupt needed work, with another reading. Done when the run shows no killed candidates and "before" and "after" are named.
Manager uses your local Manager Config for repositories and boards; the distributed skill contains no personal workspace logs.
Use when managing Paperclip AI agent companies - creating tasks, managing agents, approving hires, running heartbeats, or any…
Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.
Audits the agent rules in the current folder (AGENTS.md, nested AGENTS.md files) and the skill descriptions the agent sees at…
Робот агента Personal Corp. Агент делает себе голову робота из набора деталей, хранит её в штабе в stack/avatars.json и кладёт в…
Use when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not…
Use when user asks for Claude Code usage stats, weekly analytics, project activity summary, or wants to see what projects were…