Security best practices and vulnerability prevention for Golang. Covers injection (SQL, command, XSS), cryptography, filesystem safety, network security, cookies, secrets management, memory safety, and logging. Apply when writing, reviewing, or auditing Go code for security, or when working on any risky code involving crypto, I/O, secrets management, user input handling, or authentication. Includes configuration of security tools.
Detected risks:
The golang-security skill provides comprehensive guidance on securing Go (Golang) applications, focusing on best practices and vulnerability prevention. It addresses critical security areas such as injection attacks (SQL, command, XSS), cryptography, filesystem safety, network security, cookie management, secrets handling, memory safety, and logging. The skill is designed to help developers write, review, or audit Go code with a security-first mindset, emphasizing the principle of defense in depth. By guiding users through threat modeling, input validation, and secure defaults, it reduces the likelihood of vulnerabilities and ensures that risky code areas are properly assessed.
You can use the Review mode, which starts from the changed files and traces call sites and data flows into adjacent code. This helps identify vulnerabilities that may not appear directly in the diff but could be triggered by it.
Yes, it is designed for projects using Golang and is compatible with AI coding agents like Claude Code. It requires Go and the govulncheck tool to perform certain security checks.
The skill assumes access to Go development tools and optionally govulncheck for vulnerability scanning. It is intended for users familiar with Go coding practices, security auditing, and handling sensitive operations.
Yes, the Coding mode guides users in writing new code or fixing vulnerabilities. It can also run background agents to search for common vulnerability patterns while implementing features.
Yes, it uses DREAD-based severity levels ranging from Low to Critical, helping prioritize fixes and focus on the most impactful security issues.
Quick Setup:
.claude/skills/Repository
samber/cc-skills-golang