golang-security

Apply security best-practice patterns and review checklists to Go code.

5|1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/omarluq/og-template --skill golang-security-omarluq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-security
Source: https://github.com/omarluq/og-template/tree/main/.agents/skills/golang-security
Command: npx skills add https://github.com/omarluq/og-template --skill golang-security-omarluq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go projects often ship insecure implementations; this Skill codifies security best practices to help developers write safer Go code, audit code, and configure security tooling.

Core Features & Use Cases

  • Threat modeling guidance for Go services and libraries.
  • Security pattern catalog covering injection, cryptography, filesystem safety, network security, cookies, secrets management, memory safety, and logging.
  • Code-review and programming best practices with practical patterns, examples, and checklists to reduce risk during development and audits.

Quick Start

Activate this skill by applying its security patterns to your Go codebase to harden inputs, crypto, and access controls.

Frequently Asked Questions about golang-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent security vulnerabilities in my Go codebase?

To prevent security vulnerabilities in Go, apply structured best-practice patterns for input handling, cryptography, filesystem safety, and network security. This approach codifies defense-in-depth guidance and threat modeling to harden your services and libraries during development.

What is threat modeling for Go services and when should I apply it?

Threat modeling for Go services is a structured process of identifying security risks across inputs, network boundaries, and memory management. You should apply it during code writing and security audits to enforce defense-in-depth patterns and reduce implementation risks before deployment.

How do I audit Go code for filesystem and network security risks?

To audit Go code for filesystem and network security risks, use structured code-review checklists that validate input handling, secrets management, and memory safety. These review patterns provide practical examples to identify and remediate insecure implementations during security audits.

What are the best practices for managing secrets and cookies in Golang?

Best practices for managing secrets and cookies in Golang involve applying secure coding patterns that enforce safe storage, transmission, and access controls. Using a security pattern catalog ensures proper cryptographic handling and reduces the risk of leaking sensitive data.

Can I use this approach to harden cryptography and logging in Go libraries?

Yes, you can harden cryptography and logging in Go libraries by applying proven security patterns and templates. This structured guidance covers memory safety and secure logging practices, ensuring that both services and shared libraries ship with robust, defense-in-depth implementations.

Does this security guidance cover tooling configuration for Go audits?

Yes, this security guidance supports tooling configuration for Go audits by providing review checklists and best-practice templates. It helps developers configure security tooling and apply structured guidance across code reviews, ensuring comprehensive coverage of vulnerabilities.