
Writes an Architecture Decision Record for the Alt project in Japanese after a completed implementation, then runs the Pact-gated manual deploy (./scripts/deploy.sh production). Trigger when the user says "ADR書いて" / "ADRにまとめて" / "ADRに記録して" / "実装が終わったのでドキュメントに" / "コンテナ再ビルドしてADR書いて" / "docs/ADR" 関連のまとめ依頼, or after finishing code changes that clearly warrant a decision record. Skip the deploy step only when the user explicitly says "ADRだけ書いて"; skip the build step only for documentation-only changes.
--- name: bp-go description: Go ベストプラクティス。Go コードの品質を保つための規約とパターン集。 TRIGGER when: .go ファイルを編集・作成する時、Go コードを書く時、Go サービス(alt-backend, auth-hub, pre-processor, search-indexer, mq-hub, altctl)を実装する時。 DO NOT TRIGGER when: テストの実行のみ、go.mod の確認のみ、ファイルの読み取りのみ、他言語の作業時。 --- # Go Best Practices このスキルが発動したら、`docs/best_practices/go.md` を Read ツールで読み込み、 記載されたベストプラクティス(DECREE)に従ってコードを書くこと。 ## 重要原則 1. **エラーラップ必須**: `fmt.Errorf("action: %w", err)` でコンテキスト付きラップ。裸の `return nil, err` 禁止 2. **main.go は薄く**: co