diagnose
Skill2 starsChanged 38 days agoMITView on GitHub
Diagnose a failing 5dive agent runtime on its own VM — auth state, service health, disk, memory, recent CLI errors, skill integrity — and return a root-cause report, plus an optional host security audit. Use only when the 5dive runtime itself is suspect; a command, build or test failing inside your own work is not a trigger.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- agent-services-at/pluginstheir own version, first seen Nov 8, 2026
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- venhdev/skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- DeevsDeevs/agent-systemtheir own version, first seen Nov 8, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use zoom-out, to-prd and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 61 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 56 projects that use this
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 53 projects that use this
simo97Skilledit-article
The user will invoke this skill to help them edit an article.
Also in 17 projects that use this
simo97Skillwrite-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Also in 44 projects that use this
AnasX7Skillsetup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Also in 27 projects that use this
- +4 more from simo97
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- github/awesome-copilot★ 41ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- CherryHQ/cherry-studio-app★ 4.1ksame name
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- formancehq/ledger★ 1.5ksame name
- getagentseal/founder-playbook★ 745same name
- victorgarciaesgi/regle★ 508same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- openvetta/open-vetta★ 302same name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- 5dive-cli-extrasSkill
- 5dive-cliSkill
- ad-creativeSkill
- caveman-marketingSkill
- code-reviewSkill
- compile-knowledgeSkill
- copywritingSkill
- deep-researchSkill
- find-loopsSkill
- loopsSkill
- no-ai-slopSkill
- openagentSkill
- playwright-e2eSkill
- verifySkill
- zero-human-dev-teamSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Do not trigger the security audit sub-capability automatically — run it only when the user explicitly asks for a security check or audit.
- Distinctive: line 45
Run these in order. Stop at the first critical failure and attempt a fix before continuing.
- Very specific: line 55
If a type comes back status: "fail", that's why agents of that type can't start.
- Very specific: line 70
Look for repeated auth_required, not_running, or timeout entries — they pin down which agent is failing and why.
- Very specific: line 109
If an agent OOM-killed, systemd shows status=1/KILLED and journalctl shows Killed process.
- Distinctive: line 132
After running the checks above, produce a report in this structure:
- Very specific: line 156
Keep findings machine-readable (one fact per bullet, consistent prefixes) so a calling agent can parse them with agent ask.
- Distinctive: line 201
Run this block only when the user explicitly asks for a security check.
- Distinctive: line 232
Read before writing: Run checks before attempting fixes.
- Distinctive: line 234
Never touch production credentials: If you find a misconfigured key, report it.
- Distinctive: line 235
Security audit is opt-in: Never run the security section automatically.
- Distinctive: line 236
Surface uncertainty: If you can't determine the root cause, say so clearly rather than guessing.
“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
diagnose
When NOT to use this
This skill diagnoses the 5dive agent runtime — auth state, service health, disk, memory, recent CLI errors, skill integrity — on the VM the agent runs on.
It is not the handler for a failed command in ordinary work. A build that
breaks, a test that goes red, a script that exits non-zero, a compiler error, a
network call that 404s: debug those in place. Reach for diagnose only when
the evidence points at the runtime itself — the agent cannot authenticate,
5dive commands fail systemically, a service is down, the box is out of disk
or memory, or installed skills are missing or corrupt.
This skill turns your agent into its own first-line support. Instead of forwarding "something's wrong" messages to a human, the agent inspects the VM, identifies the root cause, and either fixes it or reports a precise diagnosis.
When to trigger
Trigger this skill automatically when:
- The user says anything like "something's wrong", "not working", "broken", "help", "can't connect", "error", or "I'm stuck".
- Any command or tool returns a non-zero exit code and you don't already know why.
- A
StopFailureor similar hook fires. - An agent you spawned goes silent or returns a
generic/timeouterror class.
Do not trigger the security audit sub-capability automatically — run it only when the user explicitly asks for a security check or audit.
Standard health check
Run these in order. Stop at the first critical failure and attempt a fix before continuing. Report the full picture at the end.
1. Auth state
# Check which agent types are authenticated on this host.
sudo 5dive doctor --json | jq '.data.checks | map(select(.name | startswith("auth")))'If a type comes back status: "fail", that's why agents of that type can't start.
Fix with auth set (API key) or guide the user through auth start (OAuth):
# API key path — pipe the key, never leave it in the shell history.
echo "$KEY" | sudo 5dive agent auth set claude --api-key=- --json2. Recent 5dive-cli errors
# Last 50 error/warning lines from the CLI audit log.
sudo journalctl -u '5dive-agent@*' -p warning -n 50 --no-pagerLook for repeated auth_required, not_running, or timeout entries — they pin
down which agent is failing and why.
3. Service health
# Overall host check — exits 0 even with failures, read data.summary.errors.
sudo 5dive doctor --json
# Per-agent status (running / stopped / failed).
sudo 5dive agent list --json | jq '.data.agents | to_entries[] | {name:.key, status:.value.status}'
# Full systemd state for a specific agent:
sudo systemctl status '5dive-agent@<name>'A failed unit usually means the agent crashed on startup. Check
journalctl -u 5dive-agent@<name> -n 30 --no-pager for the stack trace.
4. Disk usage
# Filesystem usage — warn if any mount is over 80 %.
df -h | awk 'NR==1 || $5+0 > 80'
# Top 10 disk consumers under /home and /var/lib/5dive:
du -sh /home/*/ /var/lib/5dive/ 2>/dev/null | sort -rh | head -10High disk is the #1 cause of silent install failures and agent crashes.
Clean logs with sudo journalctl --vacuum-size=200M if journals are the culprit.
5. Memory
free -h
# Swap usage over 50 % with low free RAM = OOM risk.If an agent OOM-killed, systemd shows status=1/KILLED and journalctl shows
Killed process. The fix is usually sudo 5dive agent rm <heavy-agent> or
adding swap.
6. Skill integrity
# List installed skills for each running agent.
for agent in $(sudo 5dive agent list --json | jq -r '.data.agents | keys[]'); do
echo "=== $agent ===";
sudo 5dive agent skill "$agent" list --json | jq -r '.data.skills[].name';
doneA missing skill that the agent depends on causes silent capability gaps — not errors, just "I don't know how to do that". Re-install with:
sudo 5dive agent skill <name> add --source=<source> --skill=<skillId> --jsonPutting it together — the diagnosis report
After running the checks above, produce a report in this structure:
## Diagnosis
**Status:** [Healthy / Degraded / Critical]
### Findings
- [auth] claude: authenticated ✓
- [service] agent-worker: failed — exit code 1, OOM at 03:12 UTC
- [disk] /var/lib: 87 % full — journals consuming 4.2 GB
- [skill] worker: brainstorming missing
### Root cause
<one sentence>
### Actions taken
- Vacuumed journals (freed 3.8 GB)
- Re-installed brainstorming skill on worker
### Remaining issues
- worker OOM: recommend reducing concurrent agents or adding 2 GB swapKeep findings machine-readable (one fact per bullet, consistent prefixes) so a
calling agent can parse them with agent ask.
Quick fix recipes
Restart a failed agent
sudo systemctl restart 5dive-agent@<name>
sudo 5dive agent list --json | jq '.data.agents["<name>"].status'Free disk space fast
sudo journalctl --vacuum-size=200M
docker system prune -f 2>/dev/null || trueRe-authenticate a type
# API key (non-interactive, safe from an agent):
echo "$KEY" | sudo 5dive agent auth set <type> --api-key=- --json
# OAuth (needs a human — give them the URL):
sudo 5dive agent auth start <type> --json
# Relay the URL to the user; they paste back the callback code:
sudo 5dive agent auth submit <type> --code=<callback-code> --jsonAdd swap (if OOM is the culprit)
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabSecurity audit (explicit only — do not auto-run)
Run this block only when the user explicitly asks for a security check.
# 1. SSH authorized keys — list all keys across all users.
for f in /root/.ssh/authorized_keys /home/*/.ssh/authorized_keys; do
[ -f "$f" ] && echo "=== $f ===" && cat "$f";
done
# 2. Open listening ports.
ss -tlnp
# 3. Recent auth failures (last 50).
sudo journalctl -u ssh -n 50 --no-pager | grep -i 'fail\|invalid\|refused'
# 4. World-writable files under /etc and /var/lib/5dive (should be empty).
find /etc /var/lib/5dive -maxdepth 4 -perm -o+w -type f 2>/dev/null
# 5. Setuid/setgid binaries not in the baseline (spot new surprises).
find / -maxdepth 5 \( -perm -4000 -o -perm -2000 \) -type f 2>/dev/null \
| grep -v '^/usr/\|^/bin/\|^/sbin/'
# 6. Agent env files — confirm they are root-readable only.
ls -la /etc/5dive/connectors/Report findings with a Risk label: Low, Medium, or High. Only flag
deviations from the expected baseline — an empty world-writable list is a pass,
not a finding.
Rules of engagement
- Read before writing. Run checks before attempting fixes.
- Fix one thing at a time. Each fix should be verifiable — rerun the relevant check after each action.
- Never touch production credentials. If you find a misconfigured key, report it; don't rotate it without explicit user approval.
- Security audit is opt-in. Never run the security section automatically.
- Surface uncertainty. If you can't determine the root cause, say so clearly rather than guessing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

