CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-safety

Defensive Golang coding to prevent panics, silent data corruption, and subtle runtime bugs. Use when encountering nil panics, append aliasing, map concurrent access, float comparison pitfalls, or zero-value design questions. Also use when reviewing code for nil-safety, numeric conversion overflow, resource lifecycle issues (defer in loops), or defensive copying of slices and maps.

67

Quality

82%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

64%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is a strong, actionable defensive Go coding reference with excellent concrete examples showing both anti-patterns and fixes. Its main weaknesses are redundancy (the Common Mistakes table repeats earlier content, Cross-References appears twice, and the summary duplicates the body) and missing bundle files for the referenced deep-dive documents. The skill would benefit from trimming duplicate content and ensuring referenced files exist.

Suggestions

Remove the duplicate Cross-References section and consolidate into one at the end.

Consider removing or significantly trimming the Common Mistakes table since it largely repeats content already covered with code examples in the body sections.

Provide the referenced bundle files (references/nil-safety.md, references/slice-map-safety.md) or remove the references if they don't exist.

Add a brief validation workflow in the linter section — e.g., a concrete command to run staticcheck/errcheck and how to interpret results for these specific safety issues.

DimensionReasoningScore

Conciseness

The skill is mostly efficient with good code examples and tables, but there's some redundancy — the 'Common Mistakes' table at the end largely repeats content already covered in detail in the body sections. The 'Best Practices Summary' also duplicates what follows. The persona line and the safety vs security distinction are minor but unnecessary padding. Cross-References section appears twice.

2 / 3

Actionability

Every major pitfall includes fully executable, copy-paste-ready Go code with clear ✗ Bad / ✓ Good patterns. The examples are concrete, realistic, and demonstrate both the problem and the fix with specific values (e.g., 3_000_000_000 wrapping to -1294967296).

3 / 3

Workflow Clarity

This is primarily a reference/pattern skill rather than a multi-step workflow, so explicit sequencing is less critical. However, there are no validation checkpoints or feedback loops — for example, no guidance on how to verify that a defensive copy is actually needed, or how to detect slice aliasing bugs. The linter section mentions tools but doesn't provide a concrete validation workflow.

2 / 3

Progressive Disclosure

The skill references deep-dive files (nil-safety.md, slice-map-safety.md) and cross-references other skills, which is good structure. However, no bundle files were provided, so the referenced files don't actually exist. The Cross-References section is duplicated. The content itself is fairly long and could benefit from moving some sections (like the full Common Mistakes table) to a reference file.

2 / 3

Total

9

/

12

Passed

Description

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 clearly defines its scope (defensive Go coding), lists numerous specific concrete actions and pitfalls it addresses, and provides explicit 'Use when' guidance with natural trigger terms. It uses proper third-person voice throughout and would be easily distinguishable from other skills in a large skill library.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions and concerns: nil panics, append aliasing, map concurrent access, float comparison pitfalls, zero-value design, numeric conversion overflow, defer in loops, defensive copying of slices and maps.

3 / 3

Completeness

Clearly answers both 'what' (defensive Golang coding to prevent panics, silent data corruption, and subtle runtime bugs) and 'when' (explicit 'Use when' clause listing specific trigger scenarios like nil panics, append aliasing, code review for nil-safety, etc.).

3 / 3

Trigger Term Quality

Excellent coverage of natural terms a Go developer would use: 'nil panics', 'append aliasing', 'map concurrent access', 'float comparison', 'zero-value', 'defer in loops', 'defensive copying', 'slices and maps', 'nil-safety', 'numeric conversion overflow'. These are terms developers naturally use when encountering these issues.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive — targets a specific niche of defensive Go programming patterns with very specific trigger terms like 'append aliasing', 'defer in loops', and 'map concurrent access' that are unlikely to overlap with general coding or other language skills.

3 / 3

Total

12

/

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.

Validation9 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

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

Repository
samber/cc-skills-golang
Reviewed

Table of Contents

Is this your skill?

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.