performance-profiling

performance-profiling is a skill for Claude Code from LuisFelipeMoro/Harness-devkit. It costs 0 tokens per session (569 once invoked), scanned A, original, MIT.

A workflow for finding and fixing performance problems in Go services. It uses pprof, a Go profiling tool, to inspect CPU, memory, goroutines, blocking, and lock contention.

In plain words
What is it for?
Use it to investigate latency, high CPU, memory problems, bottlenecks, or suspected leaks, then compare before-and-after benchmark results.
Why use it?
It helps identify the code causing slowness or high resource use and checks that an optimization preserves existing behaviour.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the engineering plugin — 6 skills shipped together

Good fit Use it to investigate latency, high CPU, memory problems, bottlenecks, or suspected leaks, then compare before-and-after benchmark results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luisfelipemoro/harness-devkit/performance-profiling
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 LuisFelipeMoro/Harness-devkit --skill performance-profiling
Clone the repo
git clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkit

Made for: Claude Code.

Or install engineering, the plugin that ships this one along with the rest of its 6 skills.

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 performance-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/performance-profiling/github.svg)](https://agentmods.dev/skills/luisfelipemoro/harness-devkit/performance-profiling)
Your own site
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/performance-profiling"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/performance-profiling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/performance-profiling"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/performance-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 569 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.
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.00000 $0.00569
Opus 5.5 $0.00000 $0.00228
Sonnet 5.5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 1mo ago against content hash fa92d06b1795, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-profiling 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 1mo ago.

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.

plugins/engineering/skills/performance-profiling/SKILL.md · 24 lines

What it actually says

Input: a Go service and the symptom (ask for the metric and the SLO/target if missing). Output: a profiled diagnosis, an optimization, a GREEN characterization test, and before/after benchmark numbers. Boundary: profiling is read-only; a change lands only behind a GREEN characterization test and a measured benchmark. The pprof endpoint stays on an internal port, never a public one. No dispatches.

Optimization never changes behaviour: the characterization test pins today's output first and stays GREEN through every change.

Steps

  1. Pick the route. Latency spread across layers or services rather than one hot function → references/latency-budget.md (trace first, then fix by layer), which routes back to steps 4–6 for the fix. One hot process → continue at step 2.
  2. Capture. Enable pprof on an internal port and capture CPU, heap, goroutine, block and mutex profiles with the commands in references/pprof-setup-and-capture.md.
  3. Analyse at the pprof prompt (top10, list, flame graph) per references/pprof-setup-and-capture.md; the widest bars at the top of the flame are the hot path. State the diagnosis as {function file:line} — {share of CPU/alloc} — {why}.
  4. Lock behaviour. Write the characterization test for the hot path per references/optimize-and-benchmark.md; it passes before any change.
  5. Fix. Apply the matching row of the common-fixes table in references/optimize-and-benchmark.md — one change at a time.
  6. Measure. Run the before/after benchmark per references/optimize-and-benchmark.md (-count=5 or more; compare with benchstat when installed) — a gain inside the run-to-run noise is not a gain. The characterization test is still GREEN.
  7. Report the diagnosis, the change (file:line), the benchmark table and the test name. For production visibility, the continuous-profiling options in references/pprof-setup-and-capture.md apply.

Next: /validate-code, then /review-code; /observability if the trace showed blind spots.

Files

What ships with it

3 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. 1mo ago Changed · -4 lines · -78 tokens per session fa92d06b1795
  2. 1mo ago Changed · +2 lines 8f57d883bd23
  3. 2mo ago Changed · +8 tokens per session 52473254cbb6
  4. 3mo ago First seen · 26 lines · 70 tokens per session scan A 154acd7db282

Subscribe to this mod's changes

performance-profiling is a skill published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 569 tokens. 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-31.

Related

performance-profiling compared with skills from other repositories

performance-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-profilingLuisFelipeMoro/Harness-devkitSkill146d agoMITA0Claude Code
go-lintersgithub/gh-awSkill5.8ktodayMITA17Claude Code, Codex
golang-troubleshootingsamber/cc-skills-golangSkill4.0kyesterdayMITA175Claude Code
stack-trace-go-probeopensquilla/opensquillaSkill7.2k6d agoApache-2.0A42Claude Code
golang-error-handlingsamber/cc-skills-golangSkill4.0kyesterdayMITA144Claude Code
tree-sitter-language-pack-extracting-code-structurexberg-io/tree-sitter-language-packSkill4893d agoMITA52Claude Code
tree-sitter-language-pack-parsing-sourcexberg-io/tree-sitter-language-packSkill4893d agoMITA48Claude Code