SkillTrust

← All skills

go-defensive

100 / 100 · Low risk

Fine to try.

By cxuu/golang-skills (GitHub) · coding · 194 stars · scanned at commit 91f0c2e

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).

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'go-defensive' ] || [ -L ~/.agents/skills/'go-defensive' ]; then echo 'A skill folder named go-defensive already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/cxuu/golang-skills' "$d" && git -C "$d" checkout --quiet '91f0c2eef559a3168f9d3c38f5f99936d472b508' -- 'skills/go-defensive' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/go-defensive' ~/.agents/skills/'go-defensive' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'go-defensive' ~/.claude/skills/'go-defensive' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for cxuu/golang-skills shows the score of its lowest-scoring skill.

SkillTrust badge for cxuu/golang-skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/cxuu/golang-skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/cxuu/golang-skills/)

Score history

DateVersionScore
2026-11-0791f0c2e100