Agent skill
emergency-ulimit-mitigation
Emergency steps to mitigate ulimit-related crashes by increasing file descriptor limits and restarting services.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/emergency-ulimit-mitigation
SKILL.md
qqu='qq "cat ~/d/AI/Prompts/Commands/fix-ulimit-exceeded.md"'# Emergency ulimit Mitigation
Tags: AI/Prompt, ulimit, filedescriptors, crashing, toomanyfilesopen, Stability, Maintenance
Modified: 2025-10-27T08:55:02-04:00
Immediate Emergency Fix
# Instant relief - run immediately when services are crashing
ulimit -n 65536
echo 2097152 | sudo tee /proc/sys/fs/file-max
Emergency Service Recovery
# Restart crashed services
sudo systemctl restart docker traefik
sudo docker system prune -f
Check Current Status
# See what's using FDs
lsof | wc -l
cat /proc/sys/fs/file-nr | awk '{printf "FDs: %d/%d (%.1f%%)\n", $1, $3, ($1/$3)*100}'
Deploy Full Solution
sudo ./scripts/set-ulimits.sh
sudo systemctl enable --now fd-monitor.timer
Emergency Cleanup
./scripts/fd-cleanup.sh
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?