跳到正文
cccskills
免费在 GitHub 公开

it-ram-doctor

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.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(5)

  • SKILL.md4.4 KB
  • README.md1.2 KB
  • README.ru.md2.0 KB
  • scripts/tails-linux.sh5.7 KB
  • scripts/tails-macos.sh12.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

it-ram-doctor

The snapshot only reads; step 4 kills, and only on the owner's word.

When memory is short

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

  • pressure: sysctl kern.memorystatus_vm_pressure_level is 4 or stays at 2 for long (threshold: on Apple silicon 2 appears under ordinary compression); memory_pressure | tail -1 shows less than 25–30% free;
  • Swapouts in vm_stat grow between two readings a minute apart;
  • swap grows three readings in a row.

No signs: clean only on a direct request. Measure a process by top -o mem or footprint; ps understates the compressed part.

Procedure

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

    ClassWhat it isAction
    claude-сессия (claude session)Claude Code CLI, bundled with Desktop or standalonekill if a tail
    хвост закрытого приложения (closed-app tail)processes of X.app with PPID 1 while X is not running, and everything under themkill
    сирота (orphan)a worker with PPID 1: omp/bun, Chrome for Testing, npx/MCP, grok/codex; duplicates markedkill
    dev-сервер (dev server)http.server, vite, npm run dev without a parent, older than a dayask
    зомби (zombie)STAT Z older than a minuteits 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'
    
    • Idle claude sessions ignore SIGTERM: the KILL pass is required.
    • A dev server started with & inside a session outlives it as an orphan: check the port with lsof -iTCP:<port> -sTCP:LISTEN.

    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.

Off limits

  • the current session, active and isRunning claude sessions;
  • launchd services;
  • Claude.app.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

Audits the agent rules in the current folder (AGENTS.md, nested AGENTS.md files) and the skill descriptions the agent sees at start, then reports what to cut, move or rewrite and edits only after the user says yes. Use on «аудит правил», «проверь AGENTS.md», «почему агент не слушается правил», «проверь скиллы».

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

avatar

免费

Робот агента Personal Corp. Агент делает себе голову робота из набора деталей, хранит её в штабе в stack/avatars.json и кладёт в штаб страницу avatar/robot.html, где робот стоит за партой своего штаба и вокруг видны отделы, без сервера и интернета. На уроке по ссылке входа с экрана урока робот входит в живой класс и горит маячком, пока агент работает. Триггеры /avatar, /avatar <ссылка входа>, сделай себе аватар, покажи своего робота, приди на урок.

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

benchmark

免费

Use when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not from marketing pages: speech recognition for meeting recordings, the model that turns a transcript into notes, the critic model that checks it. Runs every variant in an isolated container, measures time, cost per hour of input (USD and RUB, with price source and date) and quality (WER/CER and course terms for ASR; code checks plus a judge of a different model for LLM steps), writes results.json/csv and one static analytics page. Triggers on "бенчмарк", "сравни движки", "сколько стоит час записи", "какую модель взять для пайплайна", "benchmark the pipeline", "compare ASR engines".

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

Use when user asks for Claude Code usage stats, weekly analytics, project activity summary, or wants to see what projects were worked on. Triggers on "аналитика", "статистика claude", "cc stats", "weekly report", "что делал"

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

Use when needing strategic project analysis from multiple independent expert perspectives. Triggers on business decisions, growth strategy, product direction, competitive analysis, or any situation where diverse C-level opinions reduce blind spots

中文简介正在准备中。当前显示原文说明。

serejaris/personal-corp-os2322026年10月21日 更新

查看 serejaris 的全部技能

报告此技能的问题