@codihaus/claude-skills 1.6.14 → 1.6.15

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.14",
3
+ "version": "1.6.15",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -115,7 +115,10 @@ During each skill, consider suggesting:
115
115
 
116
116
  ### /dev-coding
117
117
  - Before: Ensure `/dev-specs` completed
118
- - During: Auto-loads `/dev-coding-backend` or `/dev-coding-frontend`
118
+ - Reads (Three Layers):
119
+ 1. Universal principles: `references/backend-principles.md`, `frontend-principles.md`
120
+ 2. Framework patterns: `knowledge/stacks/{stack}/_index.md` (detected from tech-context.md)
121
+ 3. Project specifics: `tech-context.md`, `codebase-context.md`
119
122
  - Reads: `_quality-attributes.md` for implementation-level checklists
120
123
  - After: Auto-triggers `/dev-test` to verify implementation
121
124
  - After test: "Use `/dev-review` to review changes"
@@ -190,10 +193,11 @@ stacks/{name}/
190
193
  ```
191
194
 
192
195
  **How it works:**
193
- 1. `/dev-scout` detects stack → writes `stack.md`
194
- 2. `/dev-specs` reads `stack.md` → loads `stacks/{name}/_index.md`
195
- 3. Uses "For /dev-specs" section for correct patterns
196
- 4. Deep patterns in `references/`, templates in `assets/`
196
+ 1. `/dev-scout` detects stack → writes `tech-context.md` with stack info
197
+ 2. `/dev-specs` reads tech-context.md → loads `stacks/{name}/_index.md` → uses "For /dev-specs" section
198
+ 3. `/dev-coding` reads tech-context.md → loads `stacks/{name}/_index.md` → uses "For /dev-coding" section
199
+ 4. `/dev-review` reads tech-context.md → loads `stacks/{name}/_index.md` uses "For /dev-review" section
200
+ 5. Deep patterns in `references/`, templates in `assets/`
197
201
 
198
202
  ### Domain Knowledge (`knowledge/domains/`)
199
203
 
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  name: dev-coding
3
3
  description: Implement features as a Principal Engineering Developer
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  ---
6
6
 
7
7
  # /dev-coding - Implementation Skill
8
8
 
9
9
  > **Skill Awareness**: See `skills/_registry.md` for all available skills.
10
10
  > - **Before**: Ensure `/dev-specs` completed
11
- > - **Reads**: Principles (references/), project specifics (tech-context.md), requirements (specs)
11
+ > - **Reads**: Universal principles (references/), framework patterns (knowledge/stacks/), project specifics (tech-context.md), requirements (specs)
12
12
  > - **After**: Auto-triggers `/dev-test` to verify implementation
13
13
  > - **Review**: Suggest `/dev-review` for code review
14
14
 
15
- Work as a **Principal Engineering Developer**: apply universal principles with project-specific implementation.
15
+ Work as a **Principal Engineering Developer**: apply three-layer knowledge (universal + framework + project-specific).
16
16
 
17
17
  ## When to Use
18
18
 
@@ -29,19 +29,29 @@ Work as a **Principal Engineering Developer**: apply universal principles with p
29
29
 
30
30
  ## Role: Principal Engineering Developer
31
31
 
32
- You have universal engineering principles and apply them to this specific project.
32
+ You have three layers of knowledge to apply:
33
+
34
+ **1. Universal Principles** (references/)
35
+ - General software engineering wisdom
36
+ - `backend-principles.md` - API, data, security
37
+ - `frontend-principles.md` - UI, component, state
38
+
39
+ **2. Framework-Specific Patterns** (knowledge/stacks/)
40
+ - Best practices for detected stack (Next.js, Nuxt, Directus, etc.)
41
+ - Framework conventions and patterns
42
+ - Anti-patterns to avoid
43
+
44
+ **3. Project-Specific Implementation** (tech-context.md)
45
+ - How THIS project implements the patterns
46
+ - Project conventions and standards
47
+ - Existing code patterns
33
48
 
34
49
  **Workflow:**
35
- 1. Load principles (references/) + project specifics (tech-context.md)
50
+ 1. Load three layers of knowledge
36
51
  2. Discover details just-in-time (Glob/Grep/Read as needed)
37
- 3. Apply principles based on what requirement needs
52
+ 3. Apply all layers based on what requirement needs
38
53
  4. Validate against acceptance criteria
39
54
 
40
- **Principles:**
41
- - See `references/backend-principles.md` for API, data, security principles
42
- - See `references/frontend-principles.md` for UI, component, state principles
43
- - See `tech-context.md` for how THIS project implements them
44
-
45
55
  ## Prerequisites
46
56
 
47
57
  1. `/dev-specs {feature}` completed → specs exist
@@ -55,33 +65,19 @@ Implemented feature that meets all acceptance criteria from spec.
55
65
  **What "done" looks like:**
56
66
  - All requirements from spec completed
57
67
  - All acceptance criteria pass
58
- - Patterns from tech-context.md followed
59
- - Files from spec checklist created/modified
68
+ - Framework patterns (from knowledge/stacks/) followed
69
+ - Project patterns (from tech-context.md) followed
70
+ - Universal principles (from references/) applied
60
71
  - No security vulnerabilities
61
72
  - Tests passing (if applicable)
62
73
  - Code quality maintained
63
74
 
64
- ## Role: Principal Engineering Developer
65
-
66
- You have universal engineering knowledge and apply it to this specific project.
67
-
68
- **You know:**
69
- - Universal principles (references/backend-principles.md, frontend-principles.md)
70
- - Project-specific patterns (tech-context.md)
71
- - Business requirements (specs/*.md)
72
- - How to verify success (acceptance criteria)
73
-
74
- **You can:**
75
- - Discover details just-in-time (Glob/Grep/Read as needed)
76
- - Apply principles based on what requirement needs
77
- - Validate against acceptance criteria
78
- - Fix and iterate until passing
79
-
80
75
  ## Implementation Approach
81
76
 
82
77
  **1. Load Context (once):**
83
- - Read spec → Get requirements, acceptance criteria, files to modify
84
- - Read tech-context.md → Get project patterns (API, data, UI, validation, etc.)
78
+ - Read spec → Get requirements, acceptance criteria, work area
79
+ - Read tech-context.md → Get project patterns + identify stack(s)
80
+ - Load stack knowledge → Read `knowledge/stacks/{stack}/_index.md` (detected from tech-context.md)
85
81
  - Read codebase-context.md → Get feature-specific implementation
86
82
  - Read architecture.md (if exists) → Get architecture decisions
87
83
  - Load universal principles (references/) as needed
@@ -95,13 +91,13 @@ You have universal engineering knowledge and apply it to this specific project.
95
91
 
96
92
  **3. Implement (for each requirement):**
97
93
  - **Understand:** What to build, where to build it, success criteria
98
- - **Apply:** Use principles + project patterns based on what requirement needs
99
- - API work? → Apply API principles + project's API pattern
100
- - UI work? → Apply component principles + project's UI pattern
101
- - Data work? → Apply data access principles + project's data pattern
102
- - Full-stack? → Apply multiple principles as needed
94
+ - **Apply three layers:** Universal Framework Project-specific
95
+ - API work? → Universal API principles + Framework API patterns (e.g., Server Actions for Next.js) + Project's API pattern
96
+ - UI work? → Universal component principles + Framework UI patterns (e.g., Server Components) + Project's UI pattern
97
+ - Data work? → Universal data principles + Framework data patterns (e.g., Prisma, Directus) + Project's data pattern
98
+ - Full-stack? → Apply all three layers across multiple concerns
103
99
  - **Discover:** Find details just-in-time (Glob/Grep/Read)
104
- - **Build:** Create/modify files following patterns and conventions
100
+ - **Build:** Create/modify files following all three layers
105
101
  - **Validate:** Check acceptance criteria, fix if needed
106
102
  - **Test:** Write/run tests if applicable
107
103
 
@@ -127,21 +123,27 @@ Don't pre-load everything. Discover when needed:
127
123
  - ❌ List all components upfront
128
124
  - ❌ Memorize function names (look up when needed)
129
125
 
130
- ## How Principles Work
126
+ ## Three-Layer Knowledge System
131
127
 
132
128
  ```
133
- Universal Principles (references/)
129
+ Layer 1: Universal Principles (references/)
134
130
  +
135
- Project Specifics (tech-context.md)
131
+ Layer 2: Framework Patterns (knowledge/stacks/{stack}/)
132
+ +
133
+ Layer 3: Project Specifics (tech-context.md)
136
134
  =
137
135
  Implementation
138
136
  ```
139
137
 
138
+ **How to detect stack:**
139
+ - Read tech-context.md → Look for "Tech Stack" or "Primary Stack" section
140
+ - Common stacks: Next.js, Nuxt, Directus, Prisma, Supabase
141
+
140
142
  **Apply what the requirement needs:**
141
- - API endpoint? → backend-principles.md + tech-context.md (API patterns)
142
- - UI component? → frontend-principles.md + tech-context.md (component patterns)
143
- - Form validation? → Both + tech-context.md (validation pattern)
144
- - Full-stack feature? → Use all as needed
143
+ - API endpoint? → Universal API principles + Framework API patterns (Server Actions vs API routes) + Project's API pattern
144
+ - UI component? → Universal component principles + Framework component patterns (Server vs Client Components) + Project's UI pattern
145
+ - Data access? → Universal data principles + Framework data patterns (ORM usage) + Project's data pattern
146
+ - Full-stack? → Apply all three layers across concerns
145
147
 
146
148
  ## After Implementation
147
149
 
@@ -155,29 +157,25 @@ Implementation
155
157
  - Commit if requested (follow git conventions from tech-context.md)
156
158
  - Continue to next UC (based on implementation mode)
157
159
 
158
- ## How Principles Work
160
+ ## Example Flow
161
+
162
+ **Requirement:** "Add password reset endpoint" (Next.js project)
159
163
 
160
- ```
161
- Universal Principles (references/)
162
- +
163
- Project Specifics (tech-context.md)
164
- =
165
- Implementation
166
- ```
164
+ 1. **Load Knowledge:**
165
+ - Universal: `references/backend-principles.md` (validation, security)
166
+ - Framework: `knowledge/stacks/nextjs/_index.md` (Server Actions vs Route Handlers)
167
+ - Project: `tech-context.md` (how THIS project does APIs)
167
168
 
168
- **Apply what the requirement needs:**
169
- - API work → backend-principles.md + tech-context.md
170
- - UI work → frontend-principles.md + tech-context.md
171
- - Both → use both references + tech-context.md
169
+ 2. **Discover:** Where are endpoints? → Glob for similar patterns, Read example
172
170
 
173
- ## Example Flow
171
+ 3. **Apply Three Layers:**
172
+ - Universal: Input validation, secure token handling, rate limiting
173
+ - Framework: Use Server Action (Next.js pattern) with `"use server"`
174
+ - Project: Follow existing auth pattern in `lib/actions/`
174
175
 
175
- **Requirement:** "Add password reset endpoint"
176
+ 4. **Implement:** Create/modify files following all three layers
176
177
 
177
- 1. **Think:** API work → backend-principles.md (validation, security) + tech-context.md (how we do APIs)
178
- 2. **Discover:** Where are endpoints? → Glob, Read similar endpoint
179
- 3. **Implement:** Follow pattern + apply principles
180
- 4. **Validate:** Check acceptance criteria
178
+ 5. **Validate:** Check acceptance criteria
181
179
 
182
180
  ## Quality
183
181
 
@@ -198,9 +196,10 @@ Apply principles from references/ during implementation. See `_quality-attribute
198
196
  ## Anti-Patterns
199
197
 
200
198
  ❌ Reading every file upfront (discover as needed)
201
- Categorizing work as "backend" or "frontend" (just apply what's needed)
199
+ Ignoring framework patterns (using fetch when should use Server Actions)
200
+ ❌ Skipping any knowledge layer (need all three: universal + framework + project)
201
+ ❌ Applying patterns from wrong framework (React patterns in Vue project)
202
202
  ❌ Memorizing function names (look them up when needed)
203
- ❌ Ignoring principles (universal + project-specific)
204
203
  ❌ Not validating against acceptance criteria (that's success)
205
204
  ❌ Pre-loading all components (wasteful, discover when needed)
206
205
 
@@ -212,24 +211,49 @@ Apply principles from references/ during implementation. See `_quality-attribute
212
211
  **No spec:**
213
212
  - Error: "Run /dev-specs {feature} first to create implementation plan"
214
213
 
214
+ **Stack not detected:**
215
+ - Load only universal principles + project specifics
216
+ - Note: "No framework-specific patterns loaded"
217
+
218
+ **Stack knowledge not available:**
219
+ - If `knowledge/stacks/{stack}/` doesn't exist
220
+ - Load only universal principles + project specifics
221
+ - Follow general best practices for that framework
222
+ - Note: "Framework patterns applied from general knowledge"
223
+
215
224
  **Spec references non-existent pattern:**
216
225
  - Discover pattern via Grep/Glob
217
- - If truly doesn't exist, implement following best practices
226
+ - If truly doesn't exist, implement following three-layer approach
218
227
  - Note deviation in implementation notes
219
228
 
220
229
  ## Success Criteria
221
230
 
222
231
  Implementation successful when:
223
232
  - ✅ All acceptance criteria met
224
- - ✅ All files from checklist created/modified
225
- - ✅ Patterns from tech-context.md followed
233
+ - ✅ Universal principles applied (security, validation, performance)
234
+ - ✅ Framework patterns followed (Server Actions, composables, etc.)
235
+ - ✅ Project patterns followed (conventions from tech-context.md)
226
236
  - ✅ Tests passing (if applicable)
227
237
  - ✅ Code quality checks passed
228
238
  - ✅ No security vulnerabilities
229
239
 
230
240
  ## References
231
241
 
232
- - `references/backend-principles.md` - Universal API, data, security principles
233
- - `references/frontend-principles.md` - Universal UI, component, state principles
242
+ **Layer 1 - Universal:**
243
+ - `references/backend-principles.md` - General API, data, security principles
244
+ - `references/frontend-principles.md` - General UI, component, state principles
245
+
246
+ **Layer 2 - Framework:**
247
+ - `knowledge/stacks/nextjs/_index.md` - Next.js patterns (Server Actions, App Router, RSC)
248
+ - `knowledge/stacks/nuxt/_index.md` - Nuxt patterns (composables, Nuxt UI, SSR)
249
+ - `knowledge/stacks/directus/_index.md` - Directus patterns (collections, flows, extensions)
250
+ - See `knowledge/stacks/_index.md` for all available stacks
251
+
252
+ **Layer 3 - Project:**
253
+ - `tech-context.md` - How THIS project implements patterns
254
+ - `codebase-context.md` - Feature-specific implementation details
234
255
 
235
- These provide general software engineering wisdom. Combine with tech-context.md for project-specific implementation.
256
+ **Three-layer approach ensures:**
257
+ - ✅ Solid engineering fundamentals (Layer 1)
258
+ - ✅ Framework best practices (Layer 2)
259
+ - ✅ Project consistency (Layer 3)