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 `samber/cc-skills-golang@golang-benchmark` skill) or debugging workflow (→ See `samber/cc-skills-golang@golang-troubleshooting` skill).
73
92%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Quality
Discovery
100%Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.
This is an excellent skill description that hits all the marks. It provides specific concrete capabilities, includes natural trigger terms a Go developer would use, explicitly states both what it does and when to use it, and proactively distinguishes itself from related skills with cross-references. The 'if X bottleneck, then apply Y' framing is particularly effective at communicating the skill's methodology.
| Dimension | Reasoning | Score |
|---|---|---|
Specificity | Lists multiple specific concrete actions and domains: allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, hot-path optimization, and performance code review. The 'if X bottleneck, then apply Y' framing adds methodological specificity. | 3 / 3 |
Completeness | Clearly answers both 'what' (Golang performance optimization patterns covering allocation reduction, CPU efficiency, etc.) and 'when' (explicit 'Use when profiling or benchmarks have identified a bottleneck' and 'when performing performance code review'). Also includes explicit 'Not for' exclusions with cross-references to related skills. | 3 / 3 |
Trigger Term Quality | Includes strong natural keywords users would say: 'performance optimization', 'profiling', 'benchmarks', 'bottleneck', 'allocation reduction', 'GC tuning', 'caching', 'hot-path', 'performance code review'. These cover a wide range of terms a Go developer would naturally use when seeking optimization help. | 3 / 3 |
Distinctiveness Conflict Risk | Highly distinctive with explicit boundary-setting via 'Not for measurement methodology' and 'Not for debugging workflow' with direct cross-references to sibling skills. This clearly carves out a niche for optimization patterns specifically, reducing conflict risk with adjacent Golang skills. | 3 / 3 |
Total | 12 / 12 Passed |
Implementation
85%Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
This is a well-structured performance optimization skill that excels as a routing/decision document. Its core strength is the clear methodology (measure → diagnose → improve → compare) and the decision tree mapping pprof signals to specific reference documents. The main weakness is that the SKILL.md itself lacks executable code examples — the actual optimization patterns live in reference files that weren't provided for evaluation, making the hub document less immediately actionable on its own.
Suggestions
Add 1-2 inline executable Go code examples for the most common optimization (e.g., a before/after sync.Pool usage or slice preallocation) so the skill is immediately actionable without needing to navigate to reference files.
Include a concrete benchstat output example in the iterative methodology section to show what a statistically significant improvement looks like, reinforcing the workflow.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The content is lean and efficient. It avoids explaining what Go, pprof, or GC are. Every section delivers actionable patterns or decision tables without padding. The philosophy section is brief and justified (it sets behavioral constraints, not teaching basics). | 3 / 3 |
Actionability | The iterative methodology provides concrete commands (benchstat, go test -bench flags), and the decision tree maps signals to actions. However, the skill itself contains no executable Go code examples — the actual optimization patterns are deferred to reference files. The common mistakes table gives specific fixes but mostly as prose rather than code snippets. | 2 / 3 |
Workflow Clarity | The iterative optimization cycle is clearly sequenced with 8 numbered steps including explicit validation (benchstat comparison for statistical significance), a feedback loop (repeat), and discipline constraints (one change at a time). The 'Rule Out External Bottlenecks First' section adds a diagnostic pre-check before the main workflow. The decision tree provides clear routing from symptom to action. | 3 / 3 |
Progressive Disclosure | The skill is an excellent overview document with a clear decision tree routing to well-signaled one-level-deep references (references/memory.md, references/cpu.md, etc.). Cross-references to other skills are clearly marked with → arrows. The structure is easy to navigate with the main SKILL.md serving as a hub. However, bundle files were not provided, so we cannot verify the referenced files exist. | 3 / 3 |
Total | 11 / 12 Passed |
Validation
81%Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.
Validation — 9 / 11 Passed
Validation for skill structure
| Criteria | Description | Result |
|---|---|---|
metadata_field | 'metadata' should map string keys to string values | Warning |
frontmatter_unknown_keys | Unknown frontmatter key(s) found; consider removing or moving to metadata | Warning |
Total | 9 / 11 Passed | |
8c7e016
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.