Home / Skills / go-defensive

go-defensive

cxuu/golang-skillsSkill

Use when hardening Go code at API boundaries — copying slices/maps, verifying interface compliance, using defer for cleanup, time.Time/time.Duration, or avoiding mutable globals. Also use when reviewing for robustness concerns like missing cleanup or unsafe crypto usage, even if the user doesn't mention "defensive programming." Does not cover error handling strategy (see go-error-handling).

ScannedSkillSource: GitHub
180 stars +4 this week Updated 5mo ago License Apache-2.0 Context ≈102 tokens always loaded
51popular

Why this score

Stars9/35
Usage (forks)2/15
Upkeep15/25
License15/15
Owner history10/10

This repo hosts 10 skills, so its 180 stars are split between them (about 18 each) for scoring.

Popularity score: 51/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

Security

Scanned Oct 20, 2026 at commit 91f0c2eef559, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onego-defensive cxuu/golang-skills · Skill 51★ 180≈102 always5mo ago
defensive-programming-remover luongnv89/skills · Subagent Both about defensive and programming 57★ 133≈28 in chat16d ago
go anombyte93/prd-taskmaster · Skill Both about go 62★ 606≈23 always3mo ago
go-generator Redocly/redocly-cli · Skill Both about go 71★ 1.5k≈30 always16d ago
a-share-strategy-allmarket-multi-swing-defensive shouldnotappearcalm/a-share-skill · Skill Both about defensive and strategy 65★ 248≈46 always24d ago
go-ultimate Djarvur/go-ultimate · Skill Both about go 63★ 30≈24 always17d ago