← スキル一覧に戻る

go
by anntnzrb
Configurations for LLM Harnesses
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: go description: "Develop Go applications using modern patterns, popular libraries, and idiomatic design. Activate when working with .go files, go.mod, go.sum, or user mentions Go, Golang, goroutines, channels, or Go libraries like gin, cobra, gorm."
Go Development Skill
Activation Triggers
- Working with
.gofiles,go.mod,go.sum,go.work - User mentions Go, Golang, or Go-specific terms
- Questions about Go libraries, frameworks, or tooling
- Concurrency patterns (goroutines, channels, context)
Workflow: Research-First Approach
Before implementing, gather context from authoritative sources:
# Context7 query-docs for repo-specific docs
query-docs({ libraryId: "/gin-gonic/gin", query: "how to set up middleware" })
query-docs({ libraryId: "/uber-go/zap", query: "structured logging setup" })
# gh search code for real-world implementation examples
gh search code "ratelimit.New(" --language=go
gh search code "errgroup.WithContext(" --language=go
# For style/idiom questions
query-docs({ libraryId: "/uber-go/guide", query: "style guide patterns and idioms" })
Notes
Repository routing table lives in reference.md.
CLI Quick Reference
Module Management
go mod init <module> # Initialize module
go mod tidy # Sync dependencies
go get <pkg>@latest # Add/update dependency
go get <pkg>@v1.2.3 # Specific version
go mod download # Download dependencies
go mod why <pkg> # Why is pkg needed
go mod graph # Dependency graph
Build & Run
go build ./... # Build all packages
go run . # Run current package
go install ./cmd/... # Install binaries
go generate ./... # Run go:generate directives
Testing
go test ./... # Run all tests
go test -v ./... # Verbose output
go test -race ./... # Race detector
go test -cover ./... # Coverage summary
go test -coverprofile=c.out ./... && go tool cover -html=c.out # Coverage HTML
go test -bench=. ./... # Run benchmarks
go test -fuzz=FuzzXxx ./... # Fuzz testing
go test -run=TestName # Run specific test
go test -count=1 # Disable test caching
Linting (golangci-lint)
golangci-lint run # Run all linters
golangci-lint run --fix # Auto-fix issues
golangci-lint linters # List available linters
Workspaces (multi-module)
go work init ./mod1 ./mod2 # Initialize workspace
go work use ./mod3 # Add module to workspace
go work sync # Sync workspace
Other Tools
go fmt ./... # Format code
go vet ./... # Static analysis
go doc <pkg> # View documentation
go env # Environment variables
go version # Go version
Files
reference.md- Go 1.24+ features, project layout, Uber style highlightscookbook/testing.md- Table-driven tests, testify, mocking, benchmarkscookbook/concurrency.md- Goroutines, channels, context, errgroupcookbook/patterns.md- Functional options, DI, error handling
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です