diagnose_system_lag

diagnose_system_lag is a skill for Claude Code from AI-Shell-Team/aish. It costs 78 tokens per session (1,985 once invoked), scanned A, original, Apache-2.0.

A read-only Linux troubleshooting guide for computers that feel slow, freeze, run out of memory, restart unexpectedly, or have storage or local-network delays. It chooses checks based on the reported symptom.

In plain words
What is it for?
Use it to investigate local system lag, resource pressure, slow disks, memory exhaustion, and unexpected reboots. It reports the relevant process, storage location, or device when the checks reveal one.
Why use it?
It helps identify whether CPU, memory, disks, mounts, or local networking are causing the slowdown without changing settings or stopping programs automatically.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; mentions subagents; positional $N argument.

Good fit Use it to investigate local system lag, resource pressure, slow disks, memory exhaustion, and unexpected reboots. It reports the relevant process, storage location, or device when the checks reveal one.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-shell-team/aish/diagnose_system_lag
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AI-Shell-Team/aish --skill diagnose_system_lag
Clone the repo
git clone --depth 1 https://github.com/AI-Shell-Team/aish

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose_system_lag

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-shell-team/aish/diagnose_system_lag.svg)](https://agentmods.dev/skills/ai-shell-team/aish/diagnose_system_lag)
Your own site
<a href="https://agentmods.dev/skills/ai-shell-team/aish/diagnose_system_lag"><img src="https://agentmods.dev/badge/skills/ai-shell-team/aish/diagnose_system_lag.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01985
Opus 5 $0.00039 $0.00992
Sonnet 5 $0.00016 $0.00397
Haiku 4.5 $0.00008 $0.00198

Measured 8d ago against content hash 1539bdac6486, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

diagnose_system_lag scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check_dependencies.sh, scripts/diagnose.sh, scripts/quickstart.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/diagnose_system_lag/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

System lag diagnosis

Short-path, read-only diagnosis for lag, slowness, resource pressure, or a recent unexpected reboot on this host.

Out of scope: full sos collection, long-running health baselines, cloud VPC troubleshooting, auto config changes or killing processes. Use sosreport-analyzer, deepin-sysassist, or other skills for those.

Rules

  1. Read-only: do not change config, kill processes, drop caches, tune sysctl, or unload modules.
  2. Symptom-first: decide what to probe from the user's report; do not run a fixed full command list every time.
  3. Stop when enough: stop once the symptom is explained and key objects (process / mount / device) are named.
  4. Follow-ups fill gaps only: the next probe answers “what is still missing”, not “scan every focus again”.
  5. Advice needs confirmation: prefer action targets; give concrete kill/restart commands only if asked, and remind the user to save work.
  6. Isolated sessions: do not run report-writing scripts under this skill (for example scripts/diagnose.sh).
  7. Honest probes: if a tool is missing or a probe fails, state that in Evidence—do not treat it as “no problem found”.

Workflow

Understand symptom → quick check (only if vague) → focused probes → answer
                         ↑ stop when evidence is enough ↑

1. Understand the symptom

User report Focus First step
Slow / high load / no specifics Unknown Quick check
Low memory, Swap, OOM, process killed Memory Memory probes
Copy/open large files stalls, disk noise, frozen I/O Disk Disk probes
High CPU, fans spinning, one process pegged CPU CPU probes
Slow/unreachable network (local host side) Network Local network probes
Sudden reboot, black screen then recovery, unclean shutdown Incident Reboot/crash probes

Named apps (browser, WPS, Java, a service) are suspects under the matching focus—not a separate workflow.

Read the full file on GitHub · 219 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 219 lines · 78 tokens per session scan A 1539bdac6486

Subscribe to this mod's changes

diagnose_system_lag is a skill published in the GitHub repository AI-Shell-Team/aish (530 stars, last pushed today), licensed Apache-2.0. It adds 78 tokens to every session and 1,985 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

wispr-flow-debug

Debug and test the Wispr Flow AutoHotkey dictation triggers (Copilot key + extra keys) from WSL by deploying macos.ahk to the Windows Desktop, reloading AutoHotkey, and reading the debug log. Use when an activation/trigger key isn't starting/stopping dictation, when the overlay clicks land wrong, or when verifying a…

sfc-gh-eraigosa/dotfiles · 87 tokens

flare

Manage Flare error tracking and performance monitoring using the flare CLI. Use when the user wants to list, triage, resolve, snooze, or debug errors; manage projects; create projects and retrieve API keys; check error counts; investigate slow routes, queries, jobs, or commands; view aggregated performance data and…

freekmurze/dotfiles · 78 tokens

audit-architecture

Run an application-wide, read-only architecture audit that finds materially useful simplifications in a codebase's data structures, state representation, control flow, algorithms, and ownership boundaries. Fans out bounded read-only agents per subsystem, verifies every finding against the repo, and ranks results P0 to…

freekmurze/dotfiles · 119 tokens

completion-script-generator

Generates shell completion scripts for CLI tools. Parses command structure from help output, commander/yargs configs, or manual specification. Produces completions for bash, zsh, and fish that follow each shell's conventions.

curiositech/windags-skills · 50 tokens

oh-my-posh

Install, configure, or troubleshoot Oh My Posh/ohmyposh: shell init, themes, segments, Nerd Font icons, and prompt setup on PowerShell, zsh, bash, or fish.

JanDeDobbeleer/oh-my-posh · 47 tokens

code-changes

Orchestration workflow for any task that ends in code changes: issue analysis, pull request review, feature implementation, bug fixes, refactors, or fleshing out an idea. MUST be invoked at the start of such a task, before reading or writing any code. Defines how to analyze first, gate on user approval, plan, pick the…

JanDeDobbeleer/oh-my-posh · 88 tokens