golang-security

golang-security is a skill for Claude Code from samber/cc-skills-golang. It costs 197 tokens per session (3,299 once invoked), scanned A, original, MIT.

A security review guide for Go, the programming language, covering common risks such as injection attacks, unsafe files, weak cryptography, exposed secrets, and insecure networks.

In plain words
What is it for?
Use it for Go code reviews, pull-request checks, full codebase audits, and security work involving data input, authentication, files, networks, cookies, secrets, or logs.
Why use it?
It helps developers find and prevent security problems while writing, reviewing, or auditing Go code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Part of the cc-skills-golang plugin — 46 skills shipped together

Good fit Use it for Go code reviews, pull-request checks, full codebase audits, and security work involving data input, authentication, files, networks, cookies, secrets, or logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/samber/cc-skills-golang/golang-security
About the project

samber/cc-skills-golang is a collection of reusable agent instructions for Go development, covering areas such as the language, testing, security, and observability. It is for coding agents assisting with production-oriented Golang projects. The catalogue entries are its Go-specific skills, rule, plugin, and instruction.

samber/cc-skills-golang · 3,815 stars · on GitHub · skills.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add samber/cc-skills-golang --skill golang-security
Clone the repo
git clone --depth 1 https://github.com/samber/cc-skills-golang

Made for: Claude Code.

Or install cc-skills-golang, the plugin that ships this one along with the rest of its 46 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for golang-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/samber/cc-skills-golang/golang-security/github.svg)](https://agentmods.dev/skills/samber/cc-skills-golang/golang-security)
Your own site
<a href="https://agentmods.dev/skills/samber/cc-skills-golang/golang-security"><img src="https://agentmods.dev/badge/skills/samber/cc-skills-golang/golang-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for golang-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/samber/cc-skills-golang/golang-security"><img src="https://agentmods.dev/badge/skills/samber/cc-skills-golang/golang-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 197 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00197 $0.03299
Opus 5.5 $0.00079 $0.01320
Sonnet 5.5 $0.00039 $0.00660
Haiku 4.5 $0.00020 $0.00330

Measured 2mo ago against content hash 8bcc0f7ff7d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

golang-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/golang-security/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Persona: You are a senior Go security engineer. You apply security thinking both when auditing existing code and when writing new code — threats are easier to prevent than to fix.

Thinking mode: Reason as thoroughly as possible for security audits and vulnerability analysis — security bugs hide in subtle interactions and deep reasoning catches what surface-level review misses. On Claude Code, use ultrathink to trigger extended thinking explicitly.

Orchestration mode: Fan out the five vulnerability-domain sub-agents described in Audit mode as a fan-out-then-synthesize workflow for a full-codebase security audit. Parallelism covers more attack surface per pass; the synthesis step deduplicates findings and ranks them by severity. On Claude Code, use ultracode to opt into multi-agent orchestration explicitly.

Modes:

  • Review mode — reviewing a PR for security issues. Start from the changed files, then trace call sites and data flows into adjacent code — a vulnerability may live outside the diff but be triggered by it. Sequential.
  • Audit mode — full codebase security scan. Launch up to 5 parallel sub-agents, each covering an independent vulnerability domain: (1) injection patterns, (2) cryptography and secrets, (3) web security and headers, (4) authentication and authorization, (5) concurrency safety and dependency vulnerabilities. Aggregate findings, score with DREAD, and report by severity. A large audit produces many independent findings — apply each fix/improvement in its own isolated worktree, so one fix = one worktree = one focused, reviewable, independently revertible PR, instead of one large mixed-concern change.
  • Coding mode — use when writing new code or fixing a reported vulnerability. Follow the skill's sequential guidance. Optionally launch a background agent to grep for common vulnerability patterns in newly written code while the main agent continues implementing the feature.

Dependencies:

  • govulncheck: go install golang.org/x/vuln/cmd/govulncheck@latest

Go Security

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed 8bcc0f7ff7d1
  2. 2mo ago Changed · +111 tokens per session 8db304b21cc0
  3. 2mo ago First seen · 192 lines · 86 tokens per session scan A dc3330dba380

Subscribe to this mod's changes

golang-security is a skill published in the GitHub repository samber/cc-skills-golang (3,815 stars, last pushed 7d ago), licensed MIT. It adds 197 tokens to every session and 3,299 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

golang-security compared with skills from other repositories

golang-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
golang-securitysamber/cc-skills-golangSkill3.8k7d agoMITA197Claude Code
stack-trace-go-probeopensquilla/opensquillaSkill7.1k2d agoApache-2.0A42Claude Code
golang-prormyndharis/antigravity-skillsSkill2.0ktodayMITA57Claude Code, Codex
site-launch-checklistsamber/cc-skillsSkill2427d agoMITA206Claude Code
copywriting-hookssamber/cc-skillsSkill2427d agoMITA172Claude Code
copywriting-prose-creatorsamber/cc-skillsSkill2427d agoMITA170Claude Code
deep-researchsamber/cc-skillsSkill2427d agoMITA333Claude Code