bp-go
Go ベストプラクティス。Go コードの品質を保つための規約とパターン集。
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Go ベストプラクティス。Go コードの品質を保つための規約とパターン集。
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Writes a blameless incident postmortem for the s4rCiv project in Japanese, grounded in the real timeline, commits, and logs (never speculation). Use when the user says "ポストモーテム書いて" / "障害報告書いて" / "事後検証" / "incident report" / "RCA" / "根本原因", or after an incident, outage, data-integrity scare, or a committed bug fix worth a durable record. Authoring only — no deploy.
Python ベストプラクティス。Python コードの品質を保つための規約とレビュー観点(Python 3.14+)。
Rust ベストプラクティス。Rust コードの品質を保つための規約とパターン集(Edition 2024)。
Svelte 5 & SvelteKit ベストプラクティス。Svelte 5 Runes ベースのコンポーネント設計規約。
TypeScript ベストプラクティス。型安全性とコード品質を保つための規約。
Clean Architecture layer patterns (Handler → Usecase → Port → Gateway → Driver), mapped to s4rCiv's adapter model and observation/interpretation plane separation. Use when implementing or reviewing layered backend code (source adapters, normalizer, read models, CQRS).
| name | bp-go |
| description | Go ベストプラクティス。Go コードの品質を保つための規約とパターン集。 |
このスキルが発動したら、docs/best_practices/go.md を Read ツールで読み込み、
記載されたベストプラクティス(DECREE)に従ってコードを書くこと。
fmt.Errorf("action: %w", err) でコンテキスト付きラップ。裸の return nil, err 禁止ctx context.Context を第一引数に。構造体フィールドに保持しないlog パッケージ不可。slog.With("key", value) でキー付きログ[]struct{ name string; ... } + t.Run(tt.name, ...) パターン。testify/assert 使用Close(), Unlock(), cancel() は取得直後に deferinternal/ に配置完全なベストプラクティスは docs/best_practices/go.md を参照。
セクション: Project Structure, Error Handling, Concurrency, Context, Logging, Testing, Database, HTTP/API, Configuration