Teaches Claude how to profile CPU performance on Linux using perf, from quick hardware counter snapshots with perf stat to full sampling with perf record and flamegraph generation. Covers the permissions dance (perf_event_paranoid), fixing [unknown] symbols with frame pointers or DWARF unwinding, and interpreting metrics like IPC and cache miss rates. The workflow is comprehensive, walking through record, report, annotate, and integration with Brendan Gregg's flamegraph tools. Honestly one of the most complete perf references I've seen packaged as a skill. If you're doing performance work on Linux and keep forgetting which perf flags to use or how to read the TUI, this will save you a lot of time.

skills.sh installs
814
GitHub stars
279
last updated
Aug 21, 2026

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill linux-perf --agent claude-code

Installs into .claude/skills of the current project.

Files

Linux perf

Purpose

Guide agents through perf for CPU profiling: sampling, hardware counter measurement, hotspot identification, and integration with flamegraph generation.

Triggers

  • "Which function is consuming the most CPU?"
  • "How do I measure cache misses / IPC?"
  • "How do I use perf to find hotspots?"
  • "How do I generate a flamegraph from perf data?"
  • "perf shows [unknown] or [kernel] frames"

Workflow

1. Prerequisites

# Install
sudo apt install linux-perf    # Debian/Ubuntu (version-matched)
sudo dnf install perf          # Fedora/RHEL

# Check permissions
# By default perf requires root or paranoid level ≤ 1
cat /proc/sys/kernel/perf_event_paranoid
# 2 = only CPU stats (not kernel), 1 = user+kernel, 0 = all, -1 = no restrictions

# Temporarily lower (session only)
sudo sysctl -w kernel.perf_event_paranoid=1

# Persistent
echo 'kernel.perf_event_paranoid=1' | sudo tee /etc/sysctl.d/99-perf.conf
sudo sysctl -p /etc/sysctl.d/99-perf.conf

Compile the target with debug symbols for useful frame data:

Sponsors

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Git & Pull Requests, Debugging
First seen
Jun 3, 2026

More from mohitmishra786/low-level-dev-skills

All 54
1schwepps avatarlinkedin-personal-brandingschwepps/skillsComprehensive LinkedIn personal branding analysis, profile optimization, and visibility improvement skill using Claude for Chrome browser tools. Use when users 813skills.sh installs
2alirezarezvani avatarisms-audit-expertalirezarezvani/claude-skillsInformation Security Management System (ISMS) audit expert for ISO 27001 compliance verification, security control assessment, and certification support. Use wh806skills.sh installs
3mvanhorn avatarpp-company-goatmvanhorn/printing-press-libraryLook up startups across SEC Form D, GitHub, Hacker News, Companies House, YC, and Wikidata in one command — including the SEC fundraising data hidden behind pai803skills.sh installs
4alirezarezvani avatarapi-design-revieweralirezarezvani/claude-skillsComprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing version800skills.sh installs
5lulu-eva avatarevalulu-eva/eva-skillEva-skill 2.2.8 的极薄路由入口。仅在用户调用 /eva、点名 Eva 子入口,提出 Eva 的思考、人群识别、短视频或非虚构文章、发布前审核、学习、Brief、复盘、Lens、Memory、Link、新手教程,或在 Eva 上下文中询问“下一步怎么走、先用哪个功能、入口排序、给我一个工作流”时使用;也处799skills.sh installs
6anthropics avatarcookbook-auditanthropics/claude-cookbooksAudit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.788skills.sh installs