mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-19 05:41:14 +08:00
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>
1.7 KiB
1.7 KiB
paths
| paths | ||
|---|---|---|
|
Swift コーディングスタイル
このファイルは common/coding-style.md を Swift 固有のコンテンツで拡張します。
フォーマット
- 自動フォーマットには SwiftFormat、スタイル強制には SwiftLint を使用する
- Xcode 16+ には代替として
swift-formatがバンドルされている
不変性
varよりもletを優先する — すべてをletで定義し、コンパイラが要求する場合にのみvarに変更する- デフォルトで値セマンティクスの
structを使用する。同一性や参照セマンティクスが必要な場合にのみclassを使用する
命名
Apple API デザインガイドライン に従う:
- 使用箇所での明確さ — 不要な単語を省く
- メソッドとプロパティは型ではなく役割にちなんだ名前を付ける
- グローバル定数よりも
static letを定数に使用する
エラーハンドリング
型付き throws(Swift 6+)とパターンマッチングを使用する:
func load(id: String) throws(LoadError) -> Item {
guard let data = try? read(from: path) else {
throw .fileNotFound(id)
}
return try decode(data)
}
並行性
Swift 6 の厳格な並行性チェックを有効にする。以下を優先する:
- 隔離境界をまたぐデータには
Sendable値型 - 共有ミュータブル状態にはアクター
- 非構造化
Task {}よりも構造化された並行性(async let、TaskGroup)