From go-backend
Go バックエンド開発ワークフロー全体のガイド。「Go」「バックエンド」「API サーバー」「golang」などのキーワードで自動適用。ビルド・テストはサブエージェント、品質・メンテナンスはスキルを推奨。
npx claudepluginhub no-problem-dev/claude-code-plugins --plugin go-backendThis skill uses the workspace's default tool permissions.
Go バックエンドプロジェクトのビルド・テスト・品質管理を統合管理するオーケストレーター。
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
Go バックエンドプロジェクトのビルド・テスト・品質管理を統合管理するオーケストレーター。
| エージェント | 用途 | 使いどころ |
|---|---|---|
| go-build-runner | バイナリビルド | 「ビルドして」「コンパイルして」 |
| go-test-runner | テスト実行 | 「テストして」「テスト走らせて」 |
原則: ビルド・テストは必ずサブエージェントで実行。メインコンテキストにログを流さない。
| スキル | 用途 | 使いどころ |
|---|---|---|
| go-quality | 静的解析 + Swagger 生成 | 「lint して」「Swagger 生成」 |
| go-dev-server | 開発サーバー起動 | 「サーバー起動」「go run」 |
| go-maintenance | 依存整理・キャッシュクリア | 「go mod tidy」「キャッシュクリア」 |
コード変更
↓
go-build-runner(ビルド)
↓ 成功
go-test-runner(テスト)
↓ 全テストパス
go-quality(品質チェック)
↓ 問題なし
コミット・PR
GO_BACKEND_DIR(go.mod の存在を確認)go.modbackend/, server/, api/, go/)| 変数 | 説明 | デフォルト |
|---|---|---|
GO_BACKEND_DIR | バックエンドディレクトリ | 自動検出 |
GO_MAIN_PATH | main.go のパス | cmd/server/main.go |
GO_BIN_NAME | 出力バイナリ名 | server |
go: modules disabled by GO111MODULE=off
対処:
export GO111MODULE=on
go mod tidy
golangci-lint: command not found
対処:
brew install golangci-lint
# または
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
swag: command not found
対処:
go install github.com/swaggo/swag/cmd/swag@latest
カバレッジ付きテストの実行:
go test -cover -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
open coverage.html
プロジェクトルートに .golangci.yml を配置することでLintルールをカスタマイズ可能。
推奨設定例:
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
linters-settings:
errcheck:
check-type-assertions: true