AnujTiwari-Student

Linux Perf Doctor — Development skill for Claude Code

Development community

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

linux-perf-doctor logo

**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/vmstat OOM/fault counters, and Linux Pressure Stall Information (cpu, memory, io).
  • Container & Cgroup v1/v2 Analyzer: Detects CFS quota throttling (nr_throttled, throttled_usec), memory.current vs memory.max, and