[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGR565EWBBR375065PRY1A":3,"skill-same:01M6JGR565EWBBR375065PRY1A":117},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":64,"install":65,"resources":77},"01M6JGR565EWBBR375065PRY1A","golang-performance",null,"Golang performance optimization patterns and methodology - if X bottleneck, then apply Y. Covers allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, and hot-path optimization. Use when profiling or benchmarks have identified a bottleneck and you need the right optimization pattern to fix it. Also use when performing performance code review to suggest improvements or benchmarks that could help identify quick performance gains. Not for measurement methodology (see golang-benchmark skill) or debugging workflow (see golang-troubleshooting skill).","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"performance","golang","golang performance","projects","pooling","websearch","you","quick","efficiency","caching","bottleneck","fix","code review","Bash","code","debugging","ai coding agents","workflow","memory","review","2026-11-10 10:12:30",false,"---\nname: golang-performance\ndescription: >-\n  Golang performance optimization patterns and methodology - if X\n  bottleneck, then apply Y. Covers allocation reduction, CPU efficiency,\n  memory layout, GC tuning, pooling, caching, and hot-path optimization.\n  Use when profiling or benchmarks have identified a bottleneck and you\n  need the right optimization pattern to fix it. Also use when performing\n  performance code review to suggest improvements or benchmarks that could\n  help identify quick performance gains. Not for measurement methodology\n  (see golang-benchmark skill) or debugging workflow (see\n  golang-troubleshooting skill).\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.1.2\"\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch Bash(benchstat:*) Bash(fieldalignment:*) Bash(staticcheck:*) Bash(curl:*) Bash(fgprof:*) Bash(perf:*) WebSearch AskUserQuestion\n---\n\n**Persona:** You are a Go performance engineer. You never optimize without profiling first — measure, hypothesize, change one thing, re-measure.\n\n**Thinking mode:** Use `ultrathink` for performance optimization. Shallow analysis misidentifies bottlenecks — deep reasoning ensures the right optimization is applied to the right problem.\n\n**Modes:**\n\n- **Review mode (architecture)** — broad scan of a package or service for structural anti-patterns (missing connection pools, unbounded goroutines, wrong data structures). Use up to 3 parallel sub-agents split by concern: (1) allocation and memory layout, (2) I\u002FO and concurrency, (3) algorithmic complexity and caching.\n- **Review mode (hot path)** — focused analysis of a single function or tight loop identified by the caller. Work sequentially; one sub-agent is sufficient.\n- **Optimize mode** — a bottleneck has been identified by profiling. Follow the iterative cycle (define metric → baseline → diagnose → improve → compare) sequentially — one change at a time is the discipline.\n\n# Go Performance Optimization\n\n## Core Philosophy\n\n1. **Profile before optimizing** — intuition about bottlenecks is wrong ~80% of the time. Use pprof to find actual hot spots (→ See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill)\n2. **Allocation reduction yields the biggest ROI** — Go's GC is fast but not free. Reducing allocations per request often matters more than micro-optimizing CPU\n3. **Document optimizations** — add code comments explaining why a pattern is faster, with benchmark numbers when available. Future readers need context to avoid reverting an \"unnecessary\" optimization\n\n## Rule Out External Bottlenecks First\n\nBefore optimizing Go code, verify the bottleneck is in your process — if 90% of latency is a slow DB query or API call, reducing allocations won't help.\n\n**Diagnose:** 1- `fgprof` — captures on-CPU and off-CPU (I\u002FO wait) time; if off-CPU dominates, the bottleneck is external 2- `go tool pprof` (goroutine profile) — many goroutines blocked in `net.(*conn).Read` or `database\u002Fsql` = external wait 3- Distributed tracing (OpenTelemetry) — span breakdown shows which upstream is slow\n\n**When external:** optimize that component instead — query tuning, caching, connection pools, circuit breakers (→ See `samber\u002Fcc-skills-golang@golang-database` skill, [Caching Patterns](references\u002Fcaching.md)).\n\n## Iterative Optimization Methodology\n\n### The cycle: Define Goals → Benchmark → Diagnose → Improve → Benchmark\n\n1. **Define your metric** — latency, throughput, memory, or CPU? Without a target, optimizations are random\n2. **Write an atomic benchmark** — isolate one function per benchmark to avoid result contamination (→ See `samber\u002Fcc-skills-golang@golang-benchmark` skill)\n3. **Measure baseline** — `go test -bench=BenchmarkMyFunc -benchmem -count=6 .\u002Fpkg\u002F... | tee \u002Ftmp\u002Freport-1.txt`\n4. **Diagnose** — use the **Diagnose** lines in each deep-dive section to pick the right tool\n5. **Improve** — apply ONE optimization at a time with an explanatory comment\n6. **Compare** — `benchstat \u002Ftmp\u002Freport-1.txt \u002Ftmp\u002Freport-2.txt` to confirm statistical significance\n7. **Repeat** — increment report number, tackle next bottleneck\n\nRefer to library documentation for known patterns before inventing custom solutions. Keep all `\u002Ftmp\u002Freport-*.txt` files as an audit trail.\n\n## Decision Tree: Where Is Time Spent?\n\n| Bottleneck | Signal (from pprof) | Action |\n| --- | --- | --- |\n| Too many allocations | `alloc_objects` high in heap profile | [Memory optimization](references\u002Fmemory.md) |\n| CPU-bound hot loop | function dominates CPU profile | [CPU optimization](references\u002Fcpu.md) |\n| GC pauses \u002F OOM | high GC%, container limits | [Runtime tuning](references\u002Fruntime.md) |\n| Network \u002F I\u002FO latency | goroutines blocked on I\u002FO | [I\u002FO & networking](references\u002Fio-networking.md) |\n| Repeated expensive work | same computation\u002Ffetch multiple times | [Caching patterns](references\u002Fcaching.md) |\n| Wrong algorithm | O(n²) where O(n) exists | [Algorithmic complexity](references\u002Fcaching.md#algorithmic-complexity) |\n| Lock contention | mutex\u002Fblock profile hot | → See `samber\u002Fcc-skills-golang@golang-concurrency` skill |\n| Slow queries | DB time dominates traces | → See `samber\u002Fcc-skills-golang@golang-database` skill |\n\n## Common Mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Optimizing without profiling | Profile with pprof first — intuition is wrong ~80% of the time |\n| Default `http.Client` without Transport | `MaxIdleConnsPerHost` defaults to 2; set to match your concurrency level |\n| Logging in hot loops | Log calls prevent inlining and allocate even when the level is disabled. Use `slog.LogAttrs` |\n| `panic`\u002F`recover` as control flow | panic allocates a stack trace and unwinds the stack; use error returns |\n| `unsafe` without benchmark proof | Only justified when profiling shows >10% improvement in a verified hot path |\n| No GC tuning in containers | Set `GOMEMLIMIT` to 80-90% of container memory to prevent OOM kills |\n| `reflect.DeepEqual` in production | 50-200x slower than typed comparison; use `slices.Equal`, `maps.Equal`, `bytes.Equal` |\n\n## Deep Dives\n\n- [Memory Optimization](references\u002Fmemory.md) — allocation patterns, backing array leaks, sync.Pool, struct alignment\n- [CPU Optimization](references\u002Fcpu.md) — inlining, cache locality, false sharing, ILP, reflection avoidance\n- [I\u002FO & Networking](references\u002Fio-networking.md) — HTTP transport config, streaming, JSON performance, cgo, batch operations\n- [Runtime Tuning](references\u002Fruntime.md) — GOGC, GOMEMLIMIT, GC diagnostics, GOMAXPROCS, PGO\n- [Caching Patterns](references\u002Fcaching.md) — algorithmic complexity, compiled patterns, singleflight, work avoidance\n- [Production Observability](references\u002Fobservability.md) — Prometheus metrics, PromQL queries, continuous profiling, alerting rules\n\n## CI Regression Detection\n\nAutomate benchmark comparison in CI to catch regressions before they reach production. → See `samber\u002Fcc-skills-golang@golang-benchmark` skill for `benchdiff` and `cob` setup.\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-benchmark` skill for benchmarking methodology, `benchstat`, and `b.Loop()` (Go 1.24+)\n- → See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill for pprof workflow, escape analysis diagnostics, and performance debugging\n- → See `samber\u002Fcc-skills-golang@golang-data-structures` skill for slice\u002Fmap preallocation and `strings.Builder`\n- → See `samber\u002Fcc-skills-golang@golang-concurrency` skill for worker pools, `sync.Pool` API, goroutine lifecycle, and lock contention\n- → See `samber\u002Fcc-skills-golang@golang-safety` skill for defer in loops, slice backing array aliasing\n- → See `samber\u002Fcc-skills-golang@golang-database` skill for connection pool tuning and batch processing\n- → See `samber\u002Fcc-skills-golang@golang-observability` skill for continuous profiling in production\n","**Persona:** You are a Go performance engineer. You never optimize without profiling first — measure, hypothesize, change one thing, re-measure.\n\n**Thinking mode:** Use `ultrathink` for performance optimization. Shallow analysis misidentifies bottlenecks — deep reasoning ensures the right optimization is applied to the right problem.\n\n**Modes:**\n\n- **Review mode (architecture)** — broad scan of a package or service for structural anti-patterns (missing connection pools, unbounded goroutines, wrong data structures). Use up to 3 parallel sub-agents split by concern: (1) allocation and memory layout, (2) I\u002FO and concurrency, (3) algorithmic complexity and caching.\n- **Review mode (hot path)** — focused analysis of a single function or tight loop identified by the caller. Work sequentially; one sub-agent is sufficient.\n- **Optimize mode** — a bottleneck has been identified by profiling. Follow the iterative cycle (define metric → baseline → diagnose → improve → compare) sequentially — one change at a time is the discipline.\n\n# Go Performance Optimization\n\n## Core Philosophy\n\n1. **Profile before optimizing** — intuition about bottlenecks is wrong ~80% of the time. Use pprof to find actual hot spots (→ See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill)\n2. **Allocation reduction yields the biggest ROI** — Go's GC is fast but not free. Reducing allocations per request often matters more than micro-optimizing CPU\n3. **Document optimizations** — add code comments explaining why a pattern is faster, with benchmark numbers when available. Future readers need context to avoid reverting an \"unnecessary\" optimization\n\n## Rule Out External Bottlenecks First\n\nBefore optimizing Go code, verify the bottleneck is in your process — if 90% of latency is a slow DB query or API call, reducing allocations won't help.\n\n**Diagnose:** 1- `fgprof` — captures on-CPU and off-CPU (I\u002FO wait) time; if off-CPU dominates, the bottleneck is external 2- `go tool pprof` (goroutine profile) — many goroutines blocked in `net.(*conn).Read` or `database\u002Fsql` = external wait 3- Distributed tracing (OpenTelemetry) — span breakdown shows which upstream is slow\n\n**When external:** optimize that component instead — query tuning, caching, connection pools, circuit breakers (→ See `samber\u002Fcc-skills-golang@golang-database` skill, [Caching Patterns](references\u002Fcaching.md)).\n\n## Iterative Optimization Methodology\n\n### The cycle: Define Goals → Benchmark → Diagnose → Improve → Benchmark\n\n1. **Define your metric** — latency, throughput, memory, or CPU? Without a target, optimizations are random\n2. **Write an atomic benchmark** — isolate one function per benchmark to avoid result contamination (→ See `samber\u002Fcc-skills-golang@golang-benchmark` skill)\n3. **Measure baseline** — `go test -bench=BenchmarkMyFunc -benchmem -count=6 .\u002Fpkg\u002F... | tee \u002Ftmp\u002Freport-1.txt`\n4. **Diagnose** — use the **Diagnose** lines in each deep-dive section to pick the right tool\n5. **Improve** — apply ONE optimization at a time with an explanatory comment\n6. **Compare** — `benchstat \u002Ftmp\u002Freport-1.txt \u002Ftmp\u002Freport-2.txt` to confirm statistical significance\n7. **Repeat** — increment report number, tackle next bottleneck\n\nRefer to library documentation for known patterns before inventing custom solutions. Keep all `\u002Ftmp\u002Freport-*.txt` files as an audit trail.\n\n## Decision Tree: Where Is Time Spent?\n\n| Bottleneck | Signal (from pprof) | Action |\n| --- | --- | --- |\n| Too many allocations | `alloc_objects` high in heap profile | [Memory optimization](references\u002Fmemory.md) |\n| CPU-bound hot loop | function dominates CPU profile | [CPU optimization](references\u002Fcpu.md) |\n| GC pauses \u002F OOM | high GC%, container limits | [Runtime tuning](references\u002Fruntime.md) |\n| Network \u002F I\u002FO latency | goroutines blocked on I\u002FO | [I\u002FO & networking](references\u002Fio-networking.md) |\n| Repeated expensive work | same computation\u002Ffetch multiple times | [Caching patterns](references\u002Fcaching.md) |\n| Wrong algorithm | O(n²) where O(n) exists | [Algorithmic complexity](references\u002Fcaching.md#algorithmic-complexity) |\n| Lock contention | mutex\u002Fblock profile hot | → See `samber\u002Fcc-skills-golang@golang-concurrency` skill |\n| Slow queries | DB time dominates traces | → See `samber\u002Fcc-skills-golang@golang-database` skill |\n\n## Common Mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Optimizing without profiling | Profile with pprof first — intuition is wrong ~80% of the time |\n| Default `http.Client` without Transport | `MaxIdleConnsPerHost` defaults to 2; set to match your concurrency level |\n| Logging in hot loops | Log calls prevent inlining and allocate even when the level is disabled. Use `slog.LogAttrs` |\n| `panic`\u002F`recover` as control flow | panic allocates a stack trace and unwinds the stack; use error returns |\n| `unsafe` without benchmark proof | Only justified when profiling shows >10% improvement in a verified hot path |\n| No GC tuning in containers | Set `GOMEMLIMIT` to 80-90% of container memory to prevent OOM kills |\n| `reflect.DeepEqual` in production | 50-200x slower than typed comparison; use `slices.Equal`, `maps.Equal`, `bytes.Equal` |\n\n## Deep Dives\n\n- [Memory Optimization](references\u002Fmemory.md) — allocation patterns, backing array leaks, sync.Pool, struct alignment\n- [CPU Optimization](references\u002Fcpu.md) — inlining, cache locality, false sharing, ILP, reflection avoidance\n- [I\u002FO & Networking](references\u002Fio-networking.md) — HTTP transport config, streaming, JSON performance, cgo, batch operations\n- [Runtime Tuning](references\u002Fruntime.md) — GOGC, GOMEMLIMIT, GC diagnostics, GOMAXPROCS, PGO\n- [Caching Patterns](references\u002Fcaching.md) — algorithmic complexity, compiled patterns, singleflight, work avoidance\n- [Production Observability](references\u002Fobservability.md) — Prometheus metrics, PromQL queries, continuous profiling, alerting rules\n\n## CI Regression Detection\n\nAutomate benchmark comparison in CI to catch regressions before they reach production. → See `samber\u002Fcc-skills-golang@golang-benchmark` skill for `benchdiff` and `cob` setup.\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-benchmark` skill for benchmarking methodology, `benchstat`, and `b.Loop()` (Go 1.24+)\n- → See `samber\u002Fcc-skills-golang@golang-troubleshooting` skill for pprof workflow, escape analysis diagnostics, and performance debugging\n- → See `samber\u002Fcc-skills-golang@golang-data-structures` skill for slice\u002Fmap preallocation and `strings.Builder`\n- → See `samber\u002Fcc-skills-golang@golang-concurrency` skill for worker pools, `sync.Pool` API, goroutine lifecycle, and lock contention\n- → See `samber\u002Fcc-skills-golang@golang-safety` skill for defer in loops, slice backing array aliasing\n- → See `samber\u002Fcc-skills-golang@golang-database` skill for connection pool tuning and batch processing\n- → See `samber\u002Fcc-skills-golang@golang-observability` skill for continuous profiling in production\n",{"name":5,"license":15,"metadata":52,"description":7,"allowed-tools":55,"compatibility":56,"user-invocable":57},{"author":53,"version":54},"samber","1.1.2","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch Bash(benchstat:*) Bash(fieldalignment:*) Bash(staticcheck:*) Bash(curl:*) Bash(fgprof:*) Bash(perf:*) WebSearch AskUserQuestion","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":57},[67,70,73],{"tool":68,"command":69},"npx","npx skills add muratovv\u002Fai-hats --skill golang-performance",{"tool":71,"command":72},"bunx","bunx skills add muratovv\u002Fai-hats --skill golang-performance",{"tool":74,"command":75},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill golang-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002FSKILL.md",[78,84,89,93,97,101,105,109,113],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fevals.json","REFERENCE","参考文档",86780,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Fevals\u002Fevals.json",{"path":85,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"LICENSE","许可证",1070,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002FLICENSE",{"path":90,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":91,"sourceHtmlUrl":92},"metadata.yaml",665,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Fmetadata.yaml",{"path":94,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fcaching.md",8108,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fcaching.md",{"path":98,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fcpu.md",17198,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fcpu.md",{"path":102,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fio-networking.md",13317,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fio-networking.md",{"path":106,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fmemory.md",9147,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fmemory.md",{"path":110,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fobservability.md",5098,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fobservability.md",{"path":114,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fruntime.md",11222,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-performance\u002Freferences\u002Fruntime.md",[118,145,168,187,211,225],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":47},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","use","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":47},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[152,42,153,154,125,155,156,157,158,38,135,159,160,161,162,163,164,165,166,167],"systematic debugging","systematic","test","monitoring","hypothesis","verify","behavior","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":175,"publishedAt":47},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[174],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[176,177,178,179,180,158,181,135,182,162,183,184,185,142,186],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":194,"publishedAt":47},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[193],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[195,196,197,198,199,200,201,202,203,204,135,205,206,207,208,209,210],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":217,"publishedAt":47},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[218,219,220,221,222,223,135,224,142],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":226,"name":227,"nameZh":6,"description":228,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":229,"categories":230,"keywords":232,"publishedAt":47},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[231],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[233,234,235,236,198,237,30,238,204,158,135,239,240,140,241,242,243,244,245,246],"framework","retro","retro to framework","change","retrospective","convert","incident","across","problem","about","more","skill update","single","generic"]