stack-go

Enforce Go coding style, testing conventions, and security rules from .claude/rules/stack-go/.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/t0lab/harness-kit --skill stack-go-t0lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stack-go
Source: https://github.com/t0lab/harness-kit/tree/main/packages/harness-kit/skills/stack-go
Command: npx skills add https://github.com/t0lab/harness-kit --skill stack-go-t0lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a consistent baseline for applying Go coding style, common patterns, testing conventions, and security practices so edits to .go files follow team and language best practices.

Core Features & Use Cases

  • Baseline Rules: Loads naming, file layout, and type guidance to keep code consistent.
  • Patterns & Anti-Patterns: Highlights idiomatic Go patterns and common anti-patterns to avoid regressions.
  • Testing & Security: Enforces test structure expectations and common security checks for input validation and secret handling.
  • Use Case: During code review or refactor, use these rules to ensure new or modified Go files comply with project standards before committing.

Quick Start

Apply the Go rules from .claude/rules/stack-go/ to review and modify the Go file at cmd/server/main.go for style, tests, and security.

Frequently Asked Questions about stack-go

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

FAQPage Schema
How do I enforce consistent Go coding style and conventions during code review?

You enforce Go coding style by loading baseline rules from .claude/rules/stack-go/ and applying them to review .go files. This validates naming, file layout, and type guidance to ensure modified code follows team and language best practices before committing.

What Go testing conventions and security checks should I apply when refactoring source files?

When refactoring Go source files, apply test structure expectations and security checks for input validation and secret handling. This validates that new or modified .go files comply with project testing requirements and security standards.

Does this Go rules Skill work without any external dependencies or packages?

Yes, this Go rules Skill works without external dependencies. It requires only reading the .claude/rules/stack-go/ documents as the authoritative baseline to apply naming conventions, idioms, test structure, and input validation guidance to .go files.

What's the best way to avoid common Go anti-patterns when preparing code changes?

The best way to avoid common Go anti-patterns is to highlight idiomatic Go patterns and check against documented anti-patterns during code preparation. This prevents regressions by ensuring .go file edits follow established language best practices.

When do I need to load .claude/rules/stack-go/ documents for Go file editing?

You need to load .claude/rules/stack-go/ documents whenever editing or reviewing .go files in projects that include this directory. The documents serve as the authoritative baseline for naming, file layout, idioms, test structure, and input validation guidance.

Can I use this Skill to review Go code for both design patterns and input validation security?

Yes, you can use this Skill to review Go code for both design patterns and input validation security. It applies idiomatic pattern checks and security rules simultaneously to ensure .go files comply with project standards for safe coding practices.