go-development

支持 Go 代码开发流程,涵盖核心应用、共享包与命令行工具的修改。提供代码静态检查、依赖整理、构建验证与单元测试执行能力,确保符合架构规范与编码标准,适用于内部模块及服务的持续集成场景。

快捷安装

在终端运行此命令,即可一键安装该 Skill 到您的 Claude 中

npx skills add hiromaily/go-crypto-wallet --skill "go-development"

Go Development Workflow

Workflow for Go code changes in this repository.

Prerequisites

  • Use git-workflow Skill for branch management, commit conventions, and PR creation.
  • Refer to .claude/rules/go.md for detailed verification commands and coding rules (SSOT).

Applicable Directories

DirectoryDescription
internal/Core application code (Clean Architecture)
pkg/Reusable shared packages
cmd/Application entry points

Workflow

1. Make Changes

Edit Go files following the rules in .claude/rules/go.md.

2. Verify (from rules/go.md)

make go-lint && make tidy && make check-build && make go-test

3. Self-Review Checklist

  • Domain layer has ZERO infrastructure dependencies
  • Error handling uses fmt.Errorf("context: %w", err)
  • No private keys or sensitive data logged
  • Auto-generated files not edited

Database Changes

If modifying database schema, use db-migration skill.

  • .claude/rules/go.md - Go rules (SSOT)
  • git-workflow - Branch, commit, PR workflow
  • db-migration - Database schema workflow