@codihaus/claude-skills 1.6.11 → 1.6.12
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
|
@@ -11,14 +11,26 @@ version: 3.0.0
|
|
|
11
11
|
> - **After**: Use `/dev-specs` for implementation plans
|
|
12
12
|
> - **Utils**: `/utils/diagram` for architecture visualization
|
|
13
13
|
|
|
14
|
-
Discover and document **how the codebase works** - patterns, rules, and team conventions
|
|
14
|
+
Discover and document **how the codebase works** - patterns, rules, and team conventions for EXISTING code.
|
|
15
15
|
|
|
16
16
|
## When to Use
|
|
17
17
|
|
|
18
18
|
- Understand **how the project works** before implementation
|
|
19
19
|
- Document **team patterns and conventions** for new engineers
|
|
20
20
|
- Discover **architectural patterns** that must be followed
|
|
21
|
-
- Capture **
|
|
21
|
+
- Capture **existing features** and how they're implemented
|
|
22
|
+
|
|
23
|
+
## What Scout Does vs Doesn't
|
|
24
|
+
|
|
25
|
+
**Scout documents EXISTING code:**
|
|
26
|
+
- ✅ How the project currently works (patterns, conventions)
|
|
27
|
+
- ✅ Complete list of existing features
|
|
28
|
+
- ✅ How each feature is implemented (for understanding/extending)
|
|
29
|
+
|
|
30
|
+
**Scout does NOT plan NEW features:**
|
|
31
|
+
- ❌ NOT for creating implementation specs
|
|
32
|
+
- ❌ NOT for planning new features
|
|
33
|
+
- ❌ Use `/dev-specs` for new feature planning
|
|
22
34
|
|
|
23
35
|
**Not for:** Listing files, counting components, inventorying routes (use Glob/Grep fresh instead)
|
|
24
36
|
|
|
@@ -78,37 +90,48 @@ Discover and document **how the codebase works** - patterns, rules, and team con
|
|
|
78
90
|
|
|
79
91
|
### Project-Level: `tech-context.md` (~150-200 lines)
|
|
80
92
|
|
|
81
|
-
Answers
|
|
93
|
+
Answers: **How does this project work?**
|
|
82
94
|
|
|
83
|
-
**
|
|
84
|
-
- How we make API calls
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
- Tech stack choices (framework, libraries, tools)
|
|
95
|
+
**For new developers, provide:**
|
|
96
|
+
- **Patterns** - How we make API calls, access data, structure code (with file/location references)
|
|
97
|
+
- **Conventions** - Team standards for naming, formatting, git workflow
|
|
98
|
+
- **Stack** - Tech choices and why
|
|
99
|
+
- **All existing features** - Complete list (important: don't miss any!)
|
|
89
100
|
|
|
90
|
-
**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
101
|
+
**Format:** Overview + location reference, NOT do/don't lists
|
|
102
|
+
|
|
103
|
+
**Example:**
|
|
104
|
+
```markdown
|
|
105
|
+
### API Communication
|
|
106
|
+
**Pattern:** All API calls go through `lib/api/client.ts` wrapper
|
|
107
|
+
**Location:** See `lib/api/client.ts` for implementation
|
|
108
|
+
**Usage:** Import `apiClient` and call methods
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
NOT:
|
|
112
|
+
```markdown
|
|
113
|
+
✅ DO: Use apiClient
|
|
114
|
+
❌ DON'T: Use fetch directly
|
|
115
|
+
```
|
|
95
116
|
|
|
96
117
|
### Feature-Level: `codebase-context.md`
|
|
97
118
|
|
|
98
|
-
Answers
|
|
119
|
+
Answers: **How does THIS already-implemented feature work?**
|
|
99
120
|
|
|
100
|
-
**
|
|
121
|
+
**Purpose:** Document existing implementation for understanding/extending, NOT create specs
|
|
122
|
+
|
|
123
|
+
**Prerequisite:** MUST have `tech-context.md` first
|
|
101
124
|
|
|
102
125
|
**Captures:**
|
|
103
|
-
- How this feature
|
|
104
|
-
- Where
|
|
105
|
-
- How
|
|
106
|
-
-
|
|
126
|
+
- How this feature uses the patterns (reference tech-context.md)
|
|
127
|
+
- Where key files are (locations, entry points)
|
|
128
|
+
- How it currently works (flow, architecture)
|
|
129
|
+
- How to extend it (what to modify where)
|
|
107
130
|
|
|
108
|
-
**Does NOT
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
131
|
+
**Does NOT:**
|
|
132
|
+
- Create implementation specs (this is for EXISTING code)
|
|
133
|
+
- Repeat patterns (reference tech-context.md instead)
|
|
134
|
+
- Include do/don't lists (show pattern usage with locations)
|
|
112
135
|
|
|
113
136
|
## Success Criteria
|
|
114
137
|
|
|
@@ -128,6 +151,7 @@ Answers the question: **How does THIS feature work?**
|
|
|
128
151
|
- Detect tech stack from package.json, configs
|
|
129
152
|
- Sample 2-3 files per category to discover patterns
|
|
130
153
|
- Extract conventions from configs
|
|
154
|
+
- **Discover ALL existing features** (don't miss any - scan routes, pages, API endpoints)
|
|
131
155
|
|
|
132
156
|
**Deep Mode:**
|
|
133
157
|
- All of Medium +
|
|
@@ -135,14 +159,22 @@ Answers the question: **How does THIS feature work?**
|
|
|
135
159
|
- Code convention detection
|
|
136
160
|
- Git & team process
|
|
137
161
|
|
|
162
|
+
**Output:** `tech-context.md` with patterns + complete feature list
|
|
163
|
+
|
|
138
164
|
### Feature-Level
|
|
139
165
|
|
|
140
|
-
**
|
|
166
|
+
**Purpose:** Document existing implementation for understanding/extending
|
|
167
|
+
|
|
168
|
+
**NOT FOR:** Creating specs or planning new features
|
|
169
|
+
|
|
170
|
+
**Lightweight approach:**
|
|
141
171
|
|
|
142
172
|
1. **Check prerequisite:** tech-context.md exists? If not, run project-level first
|
|
143
173
|
2. **Read patterns:** Load tech-context.md (now you know API pattern, data access, conventions)
|
|
144
174
|
3. **Focus on feature:** Find files (Glob/Grep), read 2-3 key files, identify entry points
|
|
145
|
-
4. **Document:** How
|
|
175
|
+
4. **Document existing code:** How it works NOW, where files are, how to extend
|
|
176
|
+
|
|
177
|
+
**Output:** `codebase-context.md` describing current implementation
|
|
146
178
|
|
|
147
179
|
## Pattern Discovery Rules
|
|
148
180
|
|
|
@@ -39,23 +39,32 @@
|
|
|
39
39
|
|
|
40
40
|
## Architecture Patterns (How We Build)
|
|
41
41
|
|
|
42
|
+
**Format:** Overview + location reference (NOT do/don't lists)
|
|
43
|
+
|
|
42
44
|
### 1. API Communication
|
|
43
|
-
**
|
|
44
|
-
**
|
|
45
|
-
**Example:** {code
|
|
46
|
-
**Why:** {reason}
|
|
45
|
+
**Pattern:** {description of approach}
|
|
46
|
+
**Location:** `{file/folder}` - {what's there}
|
|
47
|
+
**Usage Example:** {short code snippet showing usage}
|
|
47
48
|
|
|
48
49
|
### 2. Data Access
|
|
49
|
-
{
|
|
50
|
+
**Pattern:** {description}
|
|
51
|
+
**Location:** `{file/folder}`
|
|
52
|
+
**Usage Example:** {snippet}
|
|
50
53
|
|
|
51
54
|
### 3. Client-Side Data Fetching
|
|
52
|
-
{
|
|
55
|
+
**Pattern:** {description}
|
|
56
|
+
**Location:** `{file/folder}`
|
|
57
|
+
**Usage Example:** {snippet}
|
|
53
58
|
|
|
54
59
|
### 4. Validation & Forms
|
|
55
|
-
{
|
|
60
|
+
**Pattern:** {description}
|
|
61
|
+
**Location:** `{file/folder}`
|
|
62
|
+
**Usage Example:** {snippet}
|
|
56
63
|
|
|
57
64
|
### 5. State Management
|
|
58
|
-
{
|
|
65
|
+
**Pattern:** {description}
|
|
66
|
+
**Location:** `{file/folder}`
|
|
67
|
+
**Usage Example:** {snippet}
|
|
59
68
|
|
|
60
69
|
## Code Conventions (Team Standards)
|
|
61
70
|
|
|
@@ -94,6 +103,16 @@
|
|
|
94
103
|
### Available MCPs
|
|
95
104
|
{what they provide}
|
|
96
105
|
|
|
106
|
+
## Existing Features (Complete List)
|
|
107
|
+
|
|
108
|
+
**IMPORTANT:** List ALL features found in codebase, don't sample.
|
|
109
|
+
|
|
110
|
+
| Feature | Status | Location | Key Files |
|
|
111
|
+
|---------|--------|----------|-----------|
|
|
112
|
+
| {feature} | Complete | `{folder}` | `{main files}` |
|
|
113
|
+
|
|
114
|
+
**Discovery method:** Scan routes, pages, components, API endpoints
|
|
115
|
+
|
|
97
116
|
## Project Structure (High-Level)
|
|
98
117
|
|
|
99
118
|
{core directories only, not exhaustive}
|
|
@@ -131,7 +150,8 @@
|
|
|
131
150
|
## 2. Feature-Level: codebase-context.md
|
|
132
151
|
|
|
133
152
|
**Location:** `plans/features/{feature}/codebase-context.md`
|
|
134
|
-
**Purpose:**
|
|
153
|
+
**Purpose:** Document how THIS already-implemented feature works (for understanding/extending)
|
|
154
|
+
**NOT FOR:** Creating specs or planning new features (use /dev-specs for that)
|
|
135
155
|
**Prerequisite:** MUST read tech-context.md first (patterns already documented)
|
|
136
156
|
**Length:** ~100-150 lines
|
|
137
157
|
|
|
@@ -186,35 +206,27 @@
|
|
|
186
206
|
|
|
187
207
|
## Integration Points
|
|
188
208
|
|
|
189
|
-
**Where to add new code:**
|
|
190
|
-
{location + pattern}
|
|
191
|
-
|
|
192
|
-
**What to extend:**
|
|
193
|
-
{existing abstraction}
|
|
194
|
-
|
|
195
209
|
**Dependencies:**
|
|
196
210
|
{what must exist}
|
|
197
211
|
|
|
198
212
|
**Used By:**
|
|
199
213
|
{what depends on this}
|
|
200
214
|
|
|
201
|
-
##
|
|
202
|
-
|
|
203
|
-
**✅ DO:**
|
|
204
|
-
{feature-specific guidance}
|
|
205
|
-
|
|
206
|
-
**❌ DON'T:**
|
|
207
|
-
{feature-specific anti-pattern}
|
|
215
|
+
## How to Extend
|
|
208
216
|
|
|
209
|
-
|
|
217
|
+
**To add new functionality:**
|
|
218
|
+
1. Location: `{file/folder}`
|
|
219
|
+
2. Pattern reference: See tech-context.md → {section}
|
|
220
|
+
3. Example: {how similar functionality was added}
|
|
210
221
|
|
|
211
|
-
|
|
222
|
+
**To modify behavior:**
|
|
223
|
+
1. Location: `{file}`
|
|
224
|
+
2. Pattern reference: See tech-context.md → {section}
|
|
225
|
+
3. Note: {what to watch out for}
|
|
212
226
|
|
|
213
|
-
##
|
|
227
|
+
## Gotchas & Notes
|
|
214
228
|
|
|
215
|
-
|
|
216
|
-
**Follow pattern:** See tech-context.md → {section}
|
|
217
|
-
**Watch out:** {warning}
|
|
229
|
+
{feature-specific issues, edge cases, known limitations}
|
|
218
230
|
```
|
|
219
231
|
|
|
220
232
|
---
|