create-ai-project 1.24.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,8 @@ Immediately stop and reconsider design when detecting the following patterns:
33
33
 
34
34
  ## Comment Writing Rules
35
35
 
36
- - **Function Description Focus**: Describe what the code "does"
36
+ - **Code first**: Names, types, and structure are the primary medium; add a comment only when it carries what the code cannot express. When in doubt, improve the name instead of commenting
37
+ - **Comment the "why", not the "what"**: Explain reasoning, trade-offs, constraints/edge cases, or public API contracts
37
38
  - **No Historical Information**: Do not record development history
38
39
  - **Timeless**: Write only content that remains valid whenever read
39
40
  - **Conciseness**: Keep explanations to necessary minimum
@@ -12,8 +12,8 @@ description: Guides PRD, ADR, Design Doc, UI Spec, and Work Plan creation. Use w
12
12
  | New Feature Addition (backend) | PRD -> [ADR] -> Design Doc -> Work Plan | After PRD approval |
13
13
  | New Feature Addition (frontend/fullstack) | PRD -> **UI Spec** -> [ADR] -> Design Doc -> Work Plan | UI Spec before Design Doc |
14
14
  | ADR Conditions Met (see below) | ADR -> Design Doc -> Work Plan | Start immediately |
15
- | 6+ Files | ADR -> Design Doc -> Work Plan (Required) | Start immediately |
16
- | 3-5 Files | Design Doc -> Work Plan (Recommended) | Start immediately |
15
+ | 6+ Files | [ADR if conditions apply] -> Design Doc -> Work Plan (Design Doc + Work Plan required) | Start immediately |
16
+ | 3-5 Files | Design Doc -> Work Plan (Required) | Start immediately |
17
17
  | 1-2 Files | None | Implementation cycle without work plan |
18
18
 
19
19
  ## ADR Creation Conditions (Required if Any Apply)
@@ -190,7 +190,7 @@ description: Guides PRD, ADR, Design Doc, UI Spec, and Work Plan creation. Use w
190
190
  `Proposed` -> `Accepted` -> `Deprecated`/`Superseded`/`Rejected`
191
191
 
192
192
  ## AI Automation Rules
193
- - 5+ files: Suggest ADR creation
193
+ - 6+ files: Evaluate ADR Creation Conditions; suggest ADR only when a condition applies
194
194
  - Type/data flow change detected: ADR mandatory
195
195
  - Check existing ADRs before implementation
196
196
 
@@ -49,7 +49,7 @@ const response = await fetch('/api/data') // Backend handles API key authenticat
49
49
  ### Frontend Architecture Patterns
50
50
 
51
51
  **React Component Architecture**:
52
- - **Function Components**: Mandatory, class components deprecated
52
+ - **Function Components**: Mandatory; class components allowed solely for Error Boundaries (no hook equivalent)
53
53
  - **Custom Hooks**: For logic reuse and dependency injection
54
54
  - **Component Hierarchy**: Atoms -> Molecules -> Organisms -> Templates -> Pages
55
55
  - **Props-driven**: Components receive all necessary data via props
@@ -33,7 +33,8 @@ description: コードの品質問題、アンチパターン、可読性を検
33
33
 
34
34
  ## コメント記述ルール
35
35
 
36
- - **機能説明重視**: コードが「何をするか」を記述
36
+ - **コードファースト**: 命名・型・構造を第一の表現手段とし、コードで表現できない情報を持つときだけコメントを書く。迷ったらコメントを足す前に命名を見直す
37
+ - **「なぜ」を説明し「何を」は書かない**: 判断の理由、トレードオフ、制約・エッジケース、公開APIの契約を説明する
37
38
  - **履歴情報禁止**: 開発履歴は記載しない
38
39
  - **タイムレス**: いつ読んでも有効な内容のみ記述
39
40
  - **簡潔性**: 必要最小限の説明にとどめる
@@ -12,8 +12,8 @@ description: PRD、ADR、Design Doc、UI Spec、作業計画書の作成を支
12
12
  | 新機能追加(バックエンド) | PRD → [ADR] → Design Doc → 作業計画書 | PRD承認後 |
13
13
  | 新機能追加(フロントエンド/フルスタック) | PRD → **UI Spec** → [ADR] → Design Doc → 作業計画書 | Design Doc前にUI Spec |
14
14
  | ADR条件該当(下記参照) | ADR → Design Doc → 作業計画書 | 即座に開始 |
15
- | 6ファイル以上 | ADR → Design Doc → 作業計画書(必須) | 即座に開始 |
16
- | 3-5ファイル | Design Doc → 作業計画書(推奨) | 即座に開始 |
15
+ | 6ファイル以上 | [条件該当時はADR] → Design Doc → 作業計画書(Design Doc・作業計画書は必須) | 即座に開始 |
16
+ | 3-5ファイル | Design Doc → 作業計画書(必須) | 即座に開始 |
17
17
  | 1-2ファイル | なし | 作業計画書なしの実装サイクル |
18
18
 
19
19
  ## ADR作成条件(いずれか該当で必須)
@@ -206,7 +206,7 @@ description: PRD、ADR、Design Doc、UI Spec、作業計画書の作成を支
206
206
  `Proposed` → `Accepted` → `Deprecated`/`Superseded`/`Rejected`
207
207
 
208
208
  ## AI自動化ルール
209
- - 5ファイル以上: ADR作成提案
209
+ - 6ファイル以上: ADR作成条件を評価し、いずれかに該当する場合のみADR作成を提案
210
210
  - 型・データフロー変更検出: ADR必須化
211
211
  - 既存ADR確認してから実装
212
212
 
@@ -49,7 +49,7 @@ const response = await fetch('/api/data') // バックエンドがAPIキー認
49
49
  ### フロントエンドアーキテクチャパターン
50
50
 
51
51
  **Reactコンポーネントアーキテクチャ**:
52
- - **Function Components**: 必須、class componentsは非推奨
52
+ - **Function Components**: 必須。class components は Error Boundary に限り許可(hook の代替が存在しないため)
53
53
  - **Custom Hooks**: ロジック再利用と依存性注入のため
54
54
  - **コンポーネント階層**: Atoms → Molecules → Organisms → Templates → Pages
55
55
  - **Props-driven**: コンポーネントは必要なすべてのデータをPropsで受け取る
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.24.1] - 2026-06-21
9
+
10
+ ### Changed
11
+
12
+ - **Skill rule consistency** (skills) — resolved conflicting rules across skills: aligned the ADR file-count matrix with the automation rule in `documentation-criteria`, unified the comment policy (code-first, comment the "why") between `coding-standards` and `typescript-rules`, and added the Error Boundary exception to the class-component rule in `frontend-technical-spec`. Applied across en/ja.
13
+
8
14
  ## [1.24.0] - 2026-06-18
9
15
 
10
16
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ai-project",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "packageManager": "npm@10.8.2",
5
5
  "description": "TypeScript boilerplate with skills and sub-agents for Claude Code. Prevents context exhaustion through role-based task splitting.",
6
6
  "keywords": [