@codihaus/claude-skills 1.6.17 → 1.6.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codihaus/claude-skills",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: dev-review
3
3
  description: Code review with focus on quality, security, and best practices
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  ---
6
6
 
7
7
  # /dev-review - Code Review
@@ -80,12 +80,45 @@ Review report with verdict and categorized issues.
80
80
  - Positives (acknowledge good work)
81
81
  - Spec compliance (if UC provided)
82
82
 
83
+ ## Review Workflow
84
+
85
+ **1. Load Context (once):**
86
+ - Read `plans/brd/tech-context.md` → Identify stack(s)
87
+ - Load `knowledge/stacks/{stack}/_index.md` → Focus on "For /dev-review" section
88
+ - Read `_quality-attributes.md` → Get all level checklists
89
+ - Read spec (if UC provided) → Get requirements
90
+ - Get git diff or file list → Understand what changed
91
+
92
+ **2. Analyze Changes:**
93
+ - Review each changed file
94
+ - Apply: Security + Quality + Conventions + Stack-Specific checks
95
+ - Note issues by severity (critical/important/suggestion)
96
+ - Acknowledge good practices
97
+
98
+ **3. Verify Spec Compliance (if UC provided):**
99
+ - Check all requirements met
100
+ - Identify missing items
101
+ - Flag unauthorized additions
102
+
103
+ **4. Generate Report:**
104
+ - Verdict (Approve/Request Changes/Needs Discussion)
105
+ - Issues by severity
106
+ - Issues by file
107
+ - Spec compliance status
108
+ - Positives
109
+
110
+ **5. Offer Fix (if issues found):**
111
+ - Critical/Important → Suggest auto-fix via `/dev-coding`
112
+ - Suggestions → User decides
113
+
83
114
  ## Success Criteria
84
115
 
116
+ - Stack knowledge loaded and applied
85
117
  - Security risks identified
86
118
  - Quality issues found
87
119
  - Spec compliance verified
88
120
  - Conventions checked
121
+ - Framework patterns verified (from stack knowledge)
89
122
  - Constructive feedback with suggested fixes
90
123
  - Clear verdict given
91
124
 
@@ -116,12 +149,38 @@ Review report with verdict and categorized issues.
116
149
  - Not in spec (unauthorized additions)
117
150
 
118
151
  ### Stack-Specific
119
- Read stack knowledge files (knowledge/stacks/) for stack-specific review checklists.
120
152
 
121
- Examples:
122
- - Directus: Check for proper collection usage, field types, permissions
123
- - Nuxt: Check for composables, server routes, nitro patterns
124
- - Next.js: Check for App Router patterns, server components, actions
153
+ **CRITICAL: Load framework-specific review checklists**
154
+
155
+ After loading stack knowledge (from Context Sources → Step 1), apply framework-specific checks from the "For /dev-review" section:
156
+
157
+ **React projects:**
158
+ - Hooks follow Rules of Hooks (no conditional calls, correct order)
159
+ - All dependencies included in useEffect/useCallback/useMemo
160
+ - No infinite loops, no stale closures
161
+ - State updates are immutable
162
+ - Performance optimizations appropriate (memo, lazy)
163
+ - Lists have stable keys
164
+
165
+ **Next.js projects:**
166
+ - Server vs Client Components used correctly
167
+ - Server Actions have "use server" directive
168
+ - Data fetching uses proper Next.js patterns
169
+ - No client-side code in Server Components
170
+
171
+ **Nuxt projects:**
172
+ - Composables follow naming convention (useX)
173
+ - Server routes in correct location
174
+ - Auto-imports used correctly
175
+ - SSR-safe code (no window access in setup)
176
+
177
+ **Directus projects:**
178
+ - Collections accessed properly
179
+ - Permissions configured
180
+ - Field types match requirements
181
+ - Flows and hooks follow patterns
182
+
183
+ **If stack knowledge file doesn't exist**, apply general best practices only.
125
184
 
126
185
  ## Context Sources
127
186
 
@@ -130,12 +189,22 @@ Examples:
130
189
  - Specific files (if provided)
131
190
 
132
191
  **Read to understand standards:**
133
- - tech-context.md - Project conventions
134
- - stack knowledge files - Stack-specific patterns
135
- - architecture.md - Architecture decisions
136
- - spec - Requirements (if UC provided)
137
- - _quality-attributes.md - ALL levels (Architecture, Specification, Implementation, Review)
138
- - Config files (.eslintrc, tsconfig.json)
192
+
193
+ **Step 1: Load stack knowledge (CRITICAL)**
194
+ - Read `plans/brd/tech-context.md` Identify stack(s)
195
+ - Extract stack names (look for "Primary Stack" or "Tech Stack" section)
196
+ - Load corresponding knowledge files:
197
+ - If "React" → Read `knowledge/stacks/react/_index.md` → Focus on "For /dev-review" section
198
+ - If "Next.js" → Read `knowledge/stacks/nextjs/_index.md` → Focus on "For /dev-review" section
199
+ - If "Nuxt" → Read `knowledge/stacks/nuxt/_index.md` → Focus on "For /dev-review" section
200
+ - If "Directus" → Read `knowledge/stacks/directus/_index.md` → Focus on "For /dev-review" section
201
+
202
+ **Step 2: Load project and spec context**
203
+ - `tech-context.md` - Project conventions
204
+ - `architecture.md` - Architecture decisions (if exists)
205
+ - `spec` - Requirements (if UC provided)
206
+ - `_quality-attributes.md` - ALL levels (Architecture, Specification, Implementation, Review)
207
+ - Config files (`.eslintrc`, `tsconfig.json`, etc.)
139
208
 
140
209
  ## Severity Levels
141
210
 
@@ -225,17 +294,22 @@ const posts = await db.posts.findMany({
225
294
  ```
226
295
  User: /dev-review UC-AUTH-001
227
296
 
228
- Phase 1: Gather
229
- - Get git diff for UC-AUTH-001 files
230
- - Read scout conventions
231
- - Read UC-AUTH-001 spec
232
-
233
- Phase 2-6: Analyze
297
+ Step 1: Load Context
298
+ - Read tech-context.md Stack: Next.js 14 + TypeScript
299
+ - Read knowledge/stacks/nextjs/_index.md → "For /dev-review" section
300
+ Check Server Actions, App Router, Server Components
301
+ - Read knowledge/stacks/react/_index.md → "For /dev-review" section
302
+ Check Hooks, state management, performance
303
+ - Read _quality-attributes.md → All level checklists
304
+ - Read UC-AUTH-001 spec → Requirements
305
+ - Get git diff → Changed files
306
+
307
+ Step 2: Analyze
234
308
  - src/api/auth/login.ts: Clean ✓
235
- - src/components/LoginForm.tsx: 1 issue
236
- - src/lib/api.ts: 1 suggestion
309
+ - src/components/LoginForm.tsx: 1 issue (React hooks deps missing)
310
+ - src/lib/api.ts: 1 suggestion (naming)
237
311
 
238
- Phase 7: Output
312
+ Step 3: Generate Report
239
313
 
240
314
  ## Review Summary
241
315