Linux Perf Doctor — Development skill for Claude Code
Read-only Linux performance diagnostics using /proc, /sys, PSI and cgroup telemetry to investigate CPU, memory, process, disk I/O and TCP bottlenecks.
How to install Linux Perf Doctor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open AnujTiwari-Student/linux-perf-doctor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Linux Perf Doctor does
Read-only Linux performance diagnostics using /proc, /sys, PSI and cgroup telemetry to investigate CPU, memory, process, disk I/O and TCP bottlenecks.
Alternatives in Development
- Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
- Investigate Performance — Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid 1.6k ★
- MCP Language Server — mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, a 1.5k ★
README
linux-perf-doctor
**Read-only Linux Performance Diagnostics for AI Agents and SRE Workflows**
1. Project Name and Positioning
`linux-perf-doctor` is a production-grade [Agent Skill](https://agentskills.io/specification) that equips AI coding and SRE agents with deterministic Linux operating-system telemetry collection, cgroup v1/v2 container pressure analysis, and evidence-backed bottleneck diagnosis.
2. Problem Statement
When applications suffer latency spikes, CPU throttling, or OOM terminations in production or containerized staging environments, AI coding assistants frequently speculate about source-code algorithms without inspecting actual kernel counters. Furthermore, containerized workloads often misreport host `/proc/meminfo` and CPU core counts while silently suffering cgroup CFS bandwidth throttling (`nr_throttled`) or cgroup memory reclaim stalls.
3. What the Skill Actually Does
`linux-perf-doctor` executes deterministic, read-only collectors against `/proc`, `/sys/fs/cgroup`, `/proc/pressure` (PSI), `/proc/diskstats`, and `/proc/net/tcp*`, with optional capability detection for `perf`, `strace`, `ss`, `iostat`, `vmstat`, `pidstat`, and eBPF utilities. It correlates findings across subsystems and distinguishes **measured facts** from **diagnostic hypotheses**.
4. Key Features
- Capability & Security Guard Detection: Checks installed binaries (
perf,strace,ss,iostat,vmstat,bpftool) and kernel security parameters (perf_event_paranoid,yama.ptrace_scope,kptr_restrict). - System & PSI Telemetry: Measures CPU user/system/idle/iowait/steal deltas, context switch rates,
/proc/vmstatOOM/fault counters, and Linux Pressure Stall Information (cpu,memory,io). - Container & Cgroup v1/v2 Analyzer: Detects CFS quota throttling (
nr_throttled,throttled_usec),memory.currentvsmemory.max, and
Related Skills
Perf Scan
Find performance bottlenecks and optimizations
Claude Codex Taskbar
CCT: Windows 11 & Windows 10 taskbar widget for Claude Code and Codex usage limits (5-hour and weekly %) plus
OS Telemetry
Low-footprint system telemetry for the operating system and an honest ledger of every byte your laptop writes.
Sys
Answer a question about this machine with live read-only probes (disk, memory, load, processes)
Isolate Dependency Process Boundary
Use a GPL-incompatible-but-needed dependency by running it in a separate process the app talks to over IPC, so
Unity Optimize
Profile and optimize performance — uses MCP profiler for frame timing, memory, rendering stats. Identifies bot
Related Agents
Linux Bringup Debugger
Diagnoses embedded-Linux board bring-up and runtime problems from evidence — U-Boot and kernel boot logs, dmes
Sovereign Kernel SRE
Low-level systems and SRE specialist for CPU/RAM/GPU profiling, memory leaks, concurrency, networking, and Tai
Unity Optimizer
Profiles and optimizes Unity performance. Uses MCP profiler for frame timing, memory snapshots, rendering stat