golang-security

golang-security is a skill for Claude Code from alexastrum/skl. It costs 86 tokens per session (2,955 once invoked), scanned A, a copy of golang-security, MIT.

A set of security guidance for Go code covering common risks such as injection, unsafe file handling, weak cryptography, exposed secrets, network problems, and unsafe logging.

In plain words
What is it for?
Use it for Go code reviews, vulnerability audits, security-focused implementation, and checks involving authentication, authorization, web security, concurrency, dependencies, or secrets.
Why use it?
It helps find and prevent security weaknesses while code is being written or reviewed, before they become exploitable defects.

Skill for Claude Code

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

Good fit Use it for Go code reviews, vulnerability audits, security-focused implementation, and checks involving authentication, authorization, web security, concurrency, dependencies, or secrets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexastrum/skl/golang-security
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 alexastrum/skl --skill golang-security
Clone the repo
git clone --depth 1 https://github.com/alexastrum/skl

Made for: Claude Code.

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/alexastrum/skl/golang-security/github.svg)](https://agentmods.dev/skills/alexastrum/skl/golang-security)
Your own site
<a href="https://agentmods.dev/skills/alexastrum/skl/golang-security"><img src="https://agentmods.dev/badge/skills/alexastrum/skl/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/alexastrum/skl/golang-security"><img src="https://agentmods.dev/badge/skills/alexastrum/skl/golang-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,955 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.
Origin 97% copy Near-identical to another mod 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.00086 $0.02955
Opus 5.5 $0.00034 $0.01182
Sonnet 5.5 $0.00017 $0.00591
Haiku 4.5 $0.00009 $0.00296

Measured 2mo ago against content hash a16b99f2ce1e, 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

This is a copy

97% identical to golang-security — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/golang-security/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 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: Use ultrathink for security audits and vulnerability analysis. Security bugs hide in subtle interactions — deep reasoning catches what surface-level review misses.

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 (via the Agent tool), 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.
  • 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.

Go Security

Overview

Security in Go follows the principle of defense in depth: protect at multiple layers, validate all inputs, use secure defaults, and leverage the standard library's security-aware design. Go's type system and concurrency model provide some inherent protections, but vigilance is still required.

Security Thinking Model

Before writing or reviewing code, ask three questions:

  1. What are the trust boundaries? — Where does untrusted data enter the system? (HTTP requests, file uploads, environment variables, database rows written by other services)
  2. What can an attacker control? — Which inputs flow into sensitive operations? (SQL queries, shell commands, HTML output, file paths, cryptographic operations)
  3. What is the blast radius? — If this defense fails, what's the worst outcome? (Data leak, RCE, privilege escalation, denial of service)

Read the full file on GitHub · 182 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 First seen · 182 lines · 86 tokens per session scan A a16b99f2ce1e

Subscribe to this mod's changes

golang-security is a skill published in the GitHub repository alexastrum/skl (10 stars, last pushed 4mo ago), licensed MIT. It adds 86 tokens to every session and 2,955 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to golang-security, differing in 22 lines, and is treated as a copy.

Related

golang-security compared with skills from other repositories

golang-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
golang-securityalexastrum/sklSkill104mo agoMITA86Claude Code
goericrisco/rsc-harnessSkill5294d agoMITA86Claude Code, Codex
gographozgurcd/gographSkill2312d agoMITA69Claude Code
go-127dimetron/pi-goSkill222yesterdayMITA177Claude Code, Codex
bubbletea-testingdimetron/pi-goSkill222yesterdayMITA139Claude Code, Codex
design-reviewdimetron/pi-goSkill222yesterdayMITA30Claude Code, Codex
demo-subagents-tuidimetron/pi-goSkill222yesterdayMITA0Claude Code, Codex