mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-19 23:33:07 +08:00
docs: add native Japanese translation of ECC documentation (ja-JP)
Translate everything-claude-code repository to Japanese including: - 17 root documentation files - 60 agent documentation files - 80 command documentation files - 99 rule files across 18 language directories (common, angular, arkts, cpp, csharp, dart, fsharp, golang, java, kotlin, perl, php, python, ruby, rust, swift, typescript, web) - 199 skill documentation files Total: 455 files translated to Japanese with: - Consistent terminology glossary applied throughout - YAML field names preserved in English (name, description, etc.) - Code blocks and examples untouched (comments translated) - Markdown structure and relative links preserved - Professional translation maintaining technical accuracy This translation expands ECC accessibility to Japanese-speaking developers and teams. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
32
docs/ja-JP/rules/golang/coding-style.md
Normal file
32
docs/ja-JP/rules/golang/coding-style.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go コーディングスタイル
|
||||
|
||||
> このファイルは [common/coding-style.md](../common/coding-style.md) を Go 固有のコンテンツで拡張します。
|
||||
|
||||
## フォーマット
|
||||
|
||||
- **gofmt** と **goimports** は必須 — スタイルの議論は不要
|
||||
|
||||
## 設計原則
|
||||
|
||||
- インターフェースを受け取り、構造体を返す
|
||||
- インターフェースは小さく保つ(1〜3メソッド)
|
||||
|
||||
## エラーハンドリング
|
||||
|
||||
常にコンテキスト付きでエラーをラップする:
|
||||
|
||||
```go
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create user: %w", err)
|
||||
}
|
||||
```
|
||||
|
||||
## リファレンス
|
||||
|
||||
スキル: `golang-patterns` で包括的な Go のイディオムとパターンを参照してください。
|
||||
17
docs/ja-JP/rules/golang/hooks.md
Normal file
17
docs/ja-JP/rules/golang/hooks.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go フック
|
||||
|
||||
> このファイルは [common/hooks.md](../common/hooks.md) を Go 固有のコンテンツで拡張します。
|
||||
|
||||
## PostToolUse フック
|
||||
|
||||
`~/.claude/settings.json` で設定:
|
||||
|
||||
- **gofmt/goimports**: 編集後に `.go` ファイルを自動フォーマット
|
||||
- **go vet**: `.go` ファイル編集後に静的解析を実行
|
||||
- **staticcheck**: 変更されたパッケージに対して拡張静的チェックを実行
|
||||
45
docs/ja-JP/rules/golang/patterns.md
Normal file
45
docs/ja-JP/rules/golang/patterns.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go パターン
|
||||
|
||||
> このファイルは [common/patterns.md](../common/patterns.md) を Go 固有のコンテンツで拡張します。
|
||||
|
||||
## Functional Options
|
||||
|
||||
```go
|
||||
type Option func(*Server)
|
||||
|
||||
func WithPort(port int) Option {
|
||||
return func(s *Server) { s.port = port }
|
||||
}
|
||||
|
||||
func NewServer(opts ...Option) *Server {
|
||||
s := &Server{port: 8080}
|
||||
for _, opt := range opts {
|
||||
opt(s)
|
||||
}
|
||||
return s
|
||||
}
|
||||
```
|
||||
|
||||
## 小さなインターフェース
|
||||
|
||||
インターフェースは実装される場所ではなく、使用される場所で定義する。
|
||||
|
||||
## 依存性注入
|
||||
|
||||
コンストラクタ関数を使用して依存関係を注入する:
|
||||
|
||||
```go
|
||||
func NewUserService(repo UserRepository, logger Logger) *UserService {
|
||||
return &UserService{repo: repo, logger: logger}
|
||||
}
|
||||
```
|
||||
|
||||
## リファレンス
|
||||
|
||||
スキル: `golang-patterns` で並行処理、エラーハンドリング、パッケージ構成を含む包括的な Go パターンを参照してください。
|
||||
34
docs/ja-JP/rules/golang/security.md
Normal file
34
docs/ja-JP/rules/golang/security.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go セキュリティ
|
||||
|
||||
> このファイルは [common/security.md](../common/security.md) を Go 固有のコンテンツで拡張します。
|
||||
|
||||
## シークレット管理
|
||||
|
||||
```go
|
||||
apiKey := os.Getenv("OPENAI_API_KEY")
|
||||
if apiKey == "" {
|
||||
log.Fatal("OPENAI_API_KEY not configured")
|
||||
}
|
||||
```
|
||||
|
||||
## セキュリティスキャン
|
||||
|
||||
- **gosec** を使用して静的セキュリティ解析を実行:
|
||||
```bash
|
||||
gosec ./...
|
||||
```
|
||||
|
||||
## Context とタイムアウト
|
||||
|
||||
タイムアウト制御には常に `context.Context` を使用する:
|
||||
|
||||
```go
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
```
|
||||
31
docs/ja-JP/rules/golang/testing.md
Normal file
31
docs/ja-JP/rules/golang/testing.md
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- "**/go.mod"
|
||||
- "**/go.sum"
|
||||
---
|
||||
# Go テスト
|
||||
|
||||
> このファイルは [common/testing.md](../common/testing.md) を Go 固有のコンテンツで拡張します。
|
||||
|
||||
## フレームワーク
|
||||
|
||||
標準の `go test` と**テーブル駆動テスト**を使用する。
|
||||
|
||||
## 競合検出
|
||||
|
||||
常に `-race` フラグを付けて実行する:
|
||||
|
||||
```bash
|
||||
go test -race ./...
|
||||
```
|
||||
|
||||
## カバレッジ
|
||||
|
||||
```bash
|
||||
go test -cover ./...
|
||||
```
|
||||
|
||||
## リファレンス
|
||||
|
||||
スキル: `golang-testing` で詳細な Go テストパターンとヘルパーを参照してください。
|
||||
Reference in New Issue
Block a user