syeeel/claude-code-go-template
syeeel/claude-code-go-template · 0 stars · 5 plugins
Marketplace "Template repository for a Go environment with Claude Code dev container
Install
/plugin marketplace add syeeel/claude-code-go-templateRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 5
After adding the marketplace, install one with /plugin install <name>@claude-code-plugins.
- 1agent-sdk-devDevelopment kit for working with the Claude Agent SDK
/plugin install agent-sdk-dev@claude-code-plugins - 2pr-review-toolkitComprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
/plugin install pr-review-toolkit@claude-code-plugins - 3commit-commandsCommands for git commit workflows including commit, push, and PR creation
/plugin install commit-commands@claude-code-plugins - 4feature-devComprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
/plugin install feature-dev@claude-code-plugins - 5security-guidanceSecurity reminder hook that warns about potential security issues when editing files, including command injection, XSS, and unsafe code patterns
/plugin install security-guidance@claude-code-plugins
Files
Claude Code Go開発テンプレート
Claude CodeのDevContainer環境でGo言語開発を行うためのテンプレートです。 DevContainerを使用することで、ローカル環境を汚さずに、すぐに開発を始められます。
特徴
- Go 1.25.3 - 最新の安定版Go
- Claude Code完全統合 - AIアシスタントによる開発支援
- 開発ツール完備
gopls- Go Language Server(コード補完、リファクタリング、型チェック)golangci-lint- 統合リンター(複数のリンターを統合)delve (dlv)- デバッガーair- ホットリロード開発サーバー
- VS Code / Cursor最適化 - Go開発に必要な拡張機能とエディタ設定を事前構成
- 開発環境の完全分離 - DevContainerによる再現可能な開発環境
セットアップ
前提条件
- Docker Desktop がインストールされていること
- VS Code または Cursor エディタがインストールされていること
- VS Code / Cursorに「Dev Containers」拡張機能がインストールされていること
1. リポジトリのクローン
git clone <このリポジトリのURL> cd <リポジトリ名>
2. DevContainerでの起動
VS Code / Cursorでこのプロジェクトを開き、以下のいずれかの方法でDevContainerを起動:
方法1: 通知から起動
- エディタ右下に表示される「Reopen in Container」をクリック
方法2: コマンドパレットから起動
Cmd+Shift+P(Mac) /Ctrl+Shift+P(Windows/Linux) でコマンドパレットを開くDev Containers: Rebuild and Reopen in Containerを選択
初回起動時はDockerイメージのビルドに数分かかります。
3. 動作確認
コンテナが起動したら、ターミナルで以下のコマンドを実行して環境を確認:
# Goのバージョン確認 go version # 開発ツールの確認 gopls version golangci-lint --version dlv version air -v
使い方
基本的な開発
# アプリケーションの実行 go run main.go # ビルド go build -o app # テストの実行 go test ./... # リンターの実行 golangci-lint run
ホットリロード(Air使用)
# Airでホットリロードを有効にして開発 air # .air.toml で設定をカスタマイズ可能
ファイルを保存すると自動的に再ビルド・再起動されます。
デバッグ
VS Code / Cursorのデバッグ機能を使用するか、コマンドラインから:
# デバッガーを起動 dlv debug
プロジェクト構成
.
├── .devcontainer/ # DevContainer設定ファイル
│ ├── Dockerfile # Go開発環境のDockerイメージ定義
│ └── devcontainer.json # DevContainerの設定
├── .claude/ # Claude Code設定
├── .vscode/ # VS Code設定
├── .air.toml # Airホットリロード設定
├── main.go # サンプルHTTPサーバー
├── go.mod # Go module定義
├── README.md # このファイル
└── .gitignore # Gitignore設定
サンプルアプリケーション
このテンプレートには簡単なHTTPサーバーが含まれています:
# サーバーを起動 go run main.go # 別のターミナルで確認 curl http://localhost:8080 curl http://localhost:8080/health
開発環境の詳細
インストール済みツール
- Go 1.23.2 - 最新の安定版Go
- Node.js 20 - Claude Code実行環境
- Git & GitHub CLI - バージョン管理
- Zsh - デフォルトシェル(高機能なコマンドライン)
- Git Delta - 美しい差分表示
Go開発ツール
- gopls - Go Language Server Protocol実装(IntelliSense、リファクタリング、型チェック)
- golangci-lint - 統合リンター(go vet、staticcheck等、複数のリンターを統合)
- delve (dlv) - Goデバッガー(ブレークポイント、ステップ実行)
- air - ライブリロードツール(ファイル変更を検知して自動再起動)
VS Code / Cursor拡張機能
自動的にインストールされる拡張機能:
- Claude Code - AIアシスタント
- Go - Go言語サポート
- GitLens - Git強化ツール
エディタ設定
.devcontainer/devcontainer.jsonで以下が自動設定されます:
- 保存時の自動フォーマット(
gofmt) - 保存時のインポート自動整理
- golangci-lintによる自動リント
- Zshをデフォルトターミナルに設定
カスタマイズ
Goバージョンの変更
.devcontainer/Dockerfile の FROM golang:1.23.2-bookworm を変更してください。
追加のGo依存関係
go get <package-name>
追加の開発ツール
.devcontainer/Dockerfile の該当セクションに追加してください。
トラブルシューティング
コンテナが起動しない
# コンテナを完全に再ビルド Dev Containers: Rebuild Container Without Cache
Go言語サーバーが動作しない
# goplsの再インストール go install golang.org/x/tools/gopls@latest
Claude Code について
このテンプレートはClaude Codeとの統合を前提に設計されています。
Claude Codeとは?
Claude CodeはAnthropicが開発したAIアシスタントで、VS Code / Cursor内で直接動作し、コードの作成、リファクタリング、バグ修正、説明などを支援します。
このテンプレートでできること
- コード生成: 自然言語でリクエストして、Goコードを生成
- バグ修正: エラーメッセージを共有して、修正案を取得
- コードレビュー: 既存コードの改善提案を受ける
- テスト作成: 関数のユニットテストを自動生成
- リファクタリング: コードの改善提案と実装
使い方
- DevContainerでプロジェクトを開く
- Claude Codeを起動(エディタ内のClaude Code拡張機能から)
- 自然言語でリクエストを入力
- Claude Codeがコードを生成・編集
詳しくはClaude Code公式ドキュメントをご覧ください。
よくある質問
Q: ローカル環境にGoをインストールする必要はありますか?
A: いいえ、必要ありません。全ての開発環境はDevContainer内に含まれているため、Dockerさえあれば開発を始められます。
Q: このテンプレートは商用プロジェクトで使用できますか?
A: はい、自由に使用できます。詳細はLICENSE.mdをご確認ください。
Q: Go以外の言語でも同様のテンプレートはありますか?
A: Claude Codeは様々な言語に対応しています。詳しくは公式ドキュメントをご覧ください。
Q: DevContainerを使わずに使用できますか?
A: このテンプレートはDevContainer前提で設計されていますが、Dockerfileを参考にローカル環境を構築することも可能です。
参考リンク
- Go公式ドキュメント - Go言語の公式ドキュメント
- Claude Code公式サイト - Claude Codeの詳細
- Claude Code ドキュメント - 使い方ガイド
- golangci-lint - Goリンターツール
- Air - ホットリロードツール
- Dev Containers - VS Code Dev Containers
ライセンス
このプロジェクトのライセンスについては、LICENSE.mdをご確認ください。
セキュリティ
セキュリティに関する問題を発見した場合は、SECURITY.mdをご確認ください。
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"name": "claude-code-plugins",
"version": "1.0.0",
"description": "Bundled plugins for Claude Code including Agent SDK development tools, PR review toolkit, and commit workflows",
"owner": {
"name": "Anthropic",
"email": "support@anthropic.com"
},
"plugins": [
{
"name": "agent-sdk-dev",
"description": "Development kit for working with the Claude Agent SDK",
"source": "./plugins/agent-sdk-dev",
"category": "development"
},
{
"name": "pr-review-toolkit",
"description": "Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification",
"version": "1.0.0",
"author": {
"name": "Anthropic",
"email": "support@anthropic.com"
},
"source": "./plugins/pr-review-toolkit",
"category": "productivity"
},
{
"name": "commit-commands",
"description": "Commands for git commit workflows including commit, push, and PR creation",
"version": "1.0.0",
"author": {
"name": "Anthropic",
"email": "support@anthropic.com"
},
"source": "./plugins/commit-commands",
"category": "productivity"
},
{
"name": "feature-dev",
"description": "Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review",
"version": "1.0.0",
"author": {
"name": "Siddharth Bidasaria",
"email": "sbidasaria@anthropic.com"
},
"source": "./plugins/feature-dev",
"category": "development"
},
{
"name": "security-guidance",
"description": "Security reminder hook that warns about potential security issues when editing files, including command injection, XSS, and unsafe code patterns",
"version": "1.0.0",
"author": {
"name": "David Dworken",
"email": "dworken@anthropic.com"
},
"source": "./plugins/security-guidance",
"category": "security"
}
]
}Facts
- Kind
- Marketplace
- Repo
- syeeel/claude-code-go-template
- Group
- Uncategorized
- Stars
- 0
- Marketplace name
- claude-code-plugins
- Owner
- Anthropic
- Language
- TypeScript
- Created
- 2025-10-19
- Last push
- 2026-03-02
- Plugins
- 5
Next on this shelf
- 2531syfyufei/project-managementsyfyufei/project-management0
- 2532syfyufei/skill-squaredsyfyufei/skill-squared0
- 2533tadokoro-ryusuke/cc-pluginstadokoro-ryusuke/cc-plugins0
- 2534takemi-ohama/ai-pluginstakemi-ohama/ai-plugins0
- 2535takutakahashi/claude-code-pluginstakutakahashi/claude-code-plugins0
- 2536takutakahashi/marketplacetakutakahashi/marketplace0