Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Insajin/autopus-adknpx agentmods add skills/insajin/autopus-adk/performanceWrote 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/insajin/autopus-adk/performance)<a href="https://agentmods.dev/skills/insajin/autopus-adk/performance"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/performance/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/insajin/autopus-adk/performance"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00019 | $0.00883 |
| Opus 5.5 | $0.00008 | $0.00353 |
| Sonnet 5.5 | $0.00004 | $0.00177 |
| Haiku 4.5 | $0.00002 | $0.00088 |
Grade A, and why
performance 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Performance Skill
Go 애플리케이션의 성능을 측정하고 최적화하는 스킬입니다.
벤치마크 작성
func BenchmarkFunction(b *testing.B) {
// 셋업 (타이머에 포함되지 않음)
data := prepareTestData()
b.ResetTimer()
for i := 0; i < b.N; i++ {
Function(data)
}
}
// 메모리 할당 추적
func BenchmarkFunction_Allocs(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
Function(input)
}
}
실행:
go test -bench=. -benchmem ./pkg/...
go test -bench=BenchmarkFunction -count=5 -benchtime=3s ./...
pprof 프로파일링
CPU 프로파일
import _ "net/http/pprof"
// 서버에 추가
go func() {
http.ListenAndServe("localhost:6060", nil)
}()
# 30초 CPU 프로파일 수집
go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30
# 힙 메모리 프로파일
go tool pprof http://localhost:6060/debug/pprof/heap
# 고루틴 프로파일
go tool pprof http://localhost:6060/debug/pprof/goroutine
테스트에서 프로파일
go test -cpuprofile=cpu.out -memprofile=mem.out -bench=. ./...
go tool pprof -http=:8080 cpu.out
일반적인 최적화 패턴
메모리 할당 줄이기
// Before: 반복 할당
func process(items []Item) []Result {
var results []Result
for _, item := range items {
results = append(results, transform(item))
}
return results
}
// After: 사전 할당
func process(items []Item) []Result {
results := make([]Result, 0, len(items))
for _, item := range items {
results = append(results, transform(item))
}
return results
}
sync.Pool 활용
var bufPool = sync.Pool{
New: func() interface{} {
return new(bytes.Buffer)
},
}
func process() {
buf := bufPool.Get().(*bytes.Buffer)
defer bufPool.Put(buf)
buf.Reset()
// buf 사용
}
문자열 연결
// Bad: O(n^2) 할당
s := ""
for _, item := range items {
s += item.String()
}
// Good: O(n)
var b strings.Builder
for _, item := range items {
b.WriteString(item.String())
}
s := b.String()
캐싱 전략
| 전략 | 용도 | 구현 |
|---|---|---|
| In-memory | 읽기 빈도 높은 소량 데이터 | sync.Map, LRU 캐시 |
| Redis | 분산 캐시, 세션 | go-redis |
| HTTP 캐시 | API 응답 캐싱 | ETag, Cache-Control |
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.
- 2mo ago First seen · 146 lines · 19 tokens per session scan A 2730cc151e72
performance is a skill published in the GitHub repository Insajin/autopus-adk (111 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5.5. 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-09-03.
performance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| performanceInsajin/autopus-adk | Skill | 111 | 2mo ago | MIT | A | 19 | Claude Code, Codex |
| goericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 86 | Claude Code, Codex |
| goga-cell-goqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 14 | Claude Code, Codex |
| python-package-managementmicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 43 | Claude Code, Codex |
| python-feature-lifecyclemicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 43 | Claude Code, Codex |
| agent-framework-builder-dotnetmicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 82 | Claude Code, Codex |
| build-and-testmicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 26 | Claude Code, Codex |