Ops Claude
Agent Buildingops-claudeOps Claude is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Claude Code maintenance and diagnostics. Check inotify limits, clean caches, diagnose startup failures, and manage skills directories across projects.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/ops-claude/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ops-claude, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ops-Claude Skill
Maintenance and diagnostics for Claude Code installations.
Supported IDEs/CLIs
| IDE | Skills Path | User-level |
|---|---|---|
| Claude Code | .claude/skills | ~/.claude/skills |
| Pi Agent | .pi/skills | ~/.pi/skills |
| Codex | .codex/skills | ~/.codex/skills |
| KiloCode | .kilocode/skills | ~/.kilocode/skills |
| GitHub Copilot | .github/skills | - |
| Antigravity/Gemini | .gemini/skills | ~/.gemini/skills |
| Agent (generic) | .agent/skills | ~/.agent/skills |
Common Issues Addressed
| Error | Cause | Fix Command |
|---|---|---|
ENOSPC: System limit for number of file watchers | inotify exhaustion | ./run.sh fix-inotify |
JavaScript heap out of memory | Too many files in skills | ./run.sh clean-skills |
Allocation failed | Node.js heap limit | ./run.sh fix-heap |
| Claude hangs on startup | Corrupted cache | ./run.sh clean-cache |
Commands
diagnose
Run full diagnostics and report issues.
./run.sh diagnose
fix-inotify
Increase inotify limits (requires sudo).
./run.sh fix-inotify
fix-heap
Set NODE_OPTIONS for larger heap.
./run.sh fix-heap
clean-skills
Remove .venv, pycache, .pytest_cache from all skills directories.
./run.sh clean-skills
clean-cache
Clear Claude Code's cache directories.
./run.sh clean-cache
status
Show current resource usage and limits.
./run.sh status
gitignore
Add/update .gitignore in all skills directories.
./run.sh gitignore
Quick Fixes
# Full diagnostic + automatic fixes
./run.sh diagnose --fix
# Just see status
./run.sh status
# Emergency cleanup (all caches)
./run.sh clean-all
Proactive Usage
Run ./run.sh diagnose when:
- Claude Code fails to start
- Claude Code crashes with memory errors
- After syncing skills across projects
- System feels sluggish with many projects open