The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
paths: - "/*.go" - "/go.mod" - "**/go.sum"
Go コーディングスタイル
このファイルは common/coding-style.md を Go 固有のコンテンツで拡張します。
フォーマット
- gofmt と goimports は必須 — スタイルの議論は不要
設計原則
- インターフェースを受け取り、構造体を返す
- インターフェースは小さく保つ(1〜3メソッド)
エラーハンドリング
常にコンテキスト付きでエラーをラップする:
if err != nil {
return fmt.Errorf("failed to create user: %w", err)
}
リファレンス
スキル: golang-patterns で包括的な Go のイディオムとパターンを参照してください。