Linux Perf
Analyzes system performance using `perf` on Linux, pinpointing bottlenecks and optimizing resource usage for faster applications.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add linux-perf npx -- -y @trustedskills/linux-perf
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"linux-perf": {
"command": "npx",
"args": [
"-y",
"@trustedskills/linux-perf"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
linux-perf
What it does
This skill enables AI agents to interact with the Linux Performance Monitoring Framework (perf) to analyze system performance data. It allows for the execution of perf commands to profile applications, identify bottlenecks, and inspect hardware events directly from within an agent environment.
When to use it
- Profiling a specific application binary to understand CPU usage patterns and hotspots.
- Investigating system-wide latency issues by analyzing kernel tracepoints and hardware counters.
- Generating performance reports for debugging slow-running services on Linux infrastructure.
- Verifying the impact of code optimizations by comparing perf data before and after changes.
Key capabilities
- Execute
perfcommands to record and analyze performance metrics. - Profile user-space applications to identify inefficient functions or threads.
- Inspect hardware events and kernel-level performance counters.
- Generate output suitable for further analysis or reporting within the agent workflow.
Example prompts
- "Run a perf profile on
/usr/bin/myappwith 10 seconds of recording time and display the top 5 functions by CPU usage." - "Analyze system performance using
perf topto identify the most active kernel functions over the last minute." - "Generate a report showing hardware cache misses for the process with PID 1234 using perf stat."
Tips & gotchas
Ensure the target Linux environment has the linux-perf toolchain installed and that the user agent has sufficient permissions to access performance data. Be aware that running perf on production systems may incur slight overhead, so it is best suited for staging or development environments unless configured carefully.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.