Skip to main content

fd-leak-diagnosis

Stars3
Forks2
UpdatedMay 25, 2026 at 07:43

文件描述符(FD)泄漏诊断技能。当用户提到 Too many open files、EMFILE、ENFILE、 CLOSE_WAIT 堆积、epoll FD 泄漏、inotify watch 超限、文件句柄耗尽、file-nr 接近上限、 VFS file-max limit reached、ENOSPC (file watchers)、ulimit 超限等关键词时, 必须使用本技能。覆盖场景:进程 FD 逼近 ulimit 上限、Socket CLOSE_WAIT 堆积、 epoll 实例泄漏、系统级 FD 耗尽(/proc/sys/fs/file-nr 告警)、inotify watch 泄漏、 已删除文件仍被进程占用、strace 显示 open/close 严重不匹配的混合复杂泄漏。 即使只收到 "连接不上"、"服务崩了"、"应用报错" 但怀疑 FD 相关时也应触发本技能。 支持 FD 泄漏全路径分析(系统 → 进程 → FD 类型 → 代码级根因)。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
13 files
SKILL.md
readonly