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.
npx skills add LuisFelipeMoro/Harness-devkit --skill performance-profilinggit clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkitWrote 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.
[](https://agentmods.dev/skills/luisfelipemoro/harness-devkit/performance-profiling)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- 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. - 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. - Analyse at the pprof prompt (
top10,list, flame graph) perreferences/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}. - Lock behaviour. Write the characterization test for the hot path per
references/optimize-and-benchmark.md; it passes before any change. - Fix. Apply the matching row of the common-fixes table in
references/optimize-and-benchmark.md— one change at a time. - Measure. Run the before/after benchmark per
references/optimize-and-benchmark.md(-count=5or more; compare withbenchstatwhen installed) — a gain inside the run-to-run noise is not a gain. The characterization test is still GREEN. - Report the diagnosis, the change (
file:line), the benchmark table and the test name. For production visibility, the continuous-profiling options inreferences/pprof-setup-and-capture.mdapply.
Next: /validate-code, then /review-code; /observability if the trace showed blind spots.
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.
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.
- 1mo ago Changed · -4 lines · -78 tokens per session fa92d06b1795
- 1mo ago Changed · +2 lines 8f57d883bd23
- 2mo ago Changed · +8 tokens per session 52473254cbb6
- 3mo ago First seen · 26 lines · 70 tokens per session scan A 154acd7db282
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.
performance-profiling compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| performance-profilingLuisFelipeMoro/Harness-devkit | Skill | 14 | 6d ago | MIT | A | 0 | Claude Code |
| go-lintersgithub/gh-aw | Skill | 5.8k | today | MIT | A | 17 | Claude Code, Codex |
| golang-troubleshootingsamber/cc-skills-golang | Skill | 4.0k | yesterday | MIT | A | 175 | Claude Code |
| stack-trace-go-probeopensquilla/opensquilla | Skill | 7.2k | 6d ago | Apache-2.0 | A | 42 | Claude Code |
| golang-error-handlingsamber/cc-skills-golang | Skill | 4.0k | yesterday | MIT | A | 144 | Claude Code |
| tree-sitter-language-pack-extracting-code-structurexberg-io/tree-sitter-language-pack | Skill | 489 | 3d ago | MIT | A | 52 | Claude Code |
| tree-sitter-language-pack-parsing-sourcexberg-io/tree-sitter-language-pack | Skill | 489 | 3d ago | MIT | A | 48 | Claude Code |