@codihaus/claude-skills 1.6.8 → 1.6.10

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.8",
3
+ "version": "1.6.10",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -68,6 +68,7 @@ Depending on mode:
68
68
  **New Project:**
69
69
  - BRD with use cases grouped by feature
70
70
  - Context document (stakeholders, constraints, users)
71
+ - Market research (MVP/Standard/Advanced feature tiers)
71
72
  - Feature folders created
72
73
  - Architecture feasibility validated
73
74
  - Questionnaire for customer gaps
@@ -110,22 +111,72 @@ Detect automatically on start:
110
111
 
111
112
  ## Context Gathering
112
113
 
113
- Use `AskUserQuestion` to understand project context.
114
+ Use `AskUserQuestion` to understand project context and scope preferences.
115
+
116
+ ### For New Project
117
+
118
+ Ask 5 key questions using `AskUserQuestion`:
119
+
120
+ **Q1: Project Type & Source Code**
121
+ Options:
122
+ - New project (no existing code)
123
+ - Existing codebase (current folder)
124
+ - Existing codebase (different folder)
125
+
126
+ **Q2: Industry/Niche**
127
+ Options:
128
+ - SaaS B2B
129
+ - SaaS B2C
130
+ - E-commerce
131
+ - Marketplace
132
+ - Enterprise
133
+ - Other
134
+
135
+ **Q3: Target Users**
136
+ Options:
137
+ - Business users (B2B)
138
+ - Consumers (B2C)
139
+ - Internal users
140
+ - Mixed
141
+
142
+ **Q4: Known Constraints** (multi-select)
143
+ Options:
144
+ - Timeline constraint
145
+ - Budget constraint
146
+ - Compliance requirements
147
+ - Integration requirements
148
+ - None
149
+
150
+ **Q5: Scope Tier Preference**
151
+ Options:
152
+ - **Core (3-5 use cases)** - MVP, essential features only
153
+ - **Standard (8-12 use cases)** - Competitive parity, market standard
154
+ - **Full (15+ use cases)** - Advanced features, differentiation
155
+
156
+ This helps align on MVP vs market standard vs advanced features upfront.
157
+
158
+ ### For Add Feature
159
+
160
+ Ask 2 questions:
161
+
162
+ **Q1: Feature Name**
163
+ What to call this feature (e.g., "billing", "notifications", "analytics")
114
164
 
115
- **For New Project, ask about:**
116
- - Project type (new vs existing codebase)
117
- - Industry/niche
118
- - Target users
119
- - Known constraints
120
- - Scope tier (Core/Standard/Full)
165
+ **Q2: Scope for This Feature**
166
+ Options:
167
+ - **Core** - MVP/essential only
168
+ - **Standard** - Competitive parity
169
+ - **Full** - Advanced/differentiation features
121
170
 
122
- **For Add Feature, ask about:**
123
- - Feature name
124
- - Scope for this feature
171
+ ### For Existing Codebase
125
172
 
126
- **For Existing Codebase:**
127
- - Scan for docs, existing features, patterns
128
- - Reference `references/file-patterns.md` for scan patterns
173
+ **If user indicates existing codebase:**
174
+ - Scan for docs (CLAUDE.md, README, CONTRIBUTING)
175
+ - Scan frontend files (.vue, .tsx, .jsx) to infer existing features
176
+ - Use `references/file-patterns.md` for scan patterns
177
+ - Summarize findings in `context.md`
178
+
179
+ This codebase discovery informs which features already exist and what gaps remain.
129
180
 
130
181
  ## Duplicate Prevention
131
182
 
@@ -150,12 +201,62 @@ Use `AskUserQuestion` to understand project context.
150
201
  - Open questions
151
202
  - References from market research
152
203
 
153
- **Market research:**
154
- - Industry patterns
155
- - User flows
156
- - Compliance requirements
157
- - Documentation links
158
- - Output to `references.md`
204
+ ## Market Research
205
+
206
+ **Why research:** Understand feature tiers and competitive landscape to inform scope decisions.
207
+
208
+ **Combines with user's scope preference:**
209
+ - User chose "Core" → Focus research on MVP features
210
+ - User chose "Standard" → Research MVP + market standard features
211
+ - User chose "Full" → Research all tiers including advanced/differentiation
212
+
213
+ **What to research:**
214
+ - Industry patterns (what similar products do)
215
+ - User flows (standard UX patterns in this domain)
216
+ - Compliance requirements (regulations, standards, must-haves)
217
+ - Documentation links (references for engineers)
218
+
219
+ **Expected insights organized by tier:**
220
+ - **MVP Features (Must-Have):** Minimum to be viable product
221
+ - Example: Login, basic CRUD, core workflows
222
+ - **Market Standard (Competitive Parity):** What competitors offer
223
+ - Example: SSO, notifications, exports
224
+ - **Advanced Features (Differentiation):** What sets apart top products
225
+ - Example: AI suggestions, real-time collaboration, advanced analytics
226
+
227
+ **Output:**
228
+ - `references.md` - Organized by feature tier with links and notes
229
+ - Use insights to:
230
+ - Validate user's scope choice (Core/Standard/Full)
231
+ - Prioritize use cases (Must/Should/Could)
232
+ - Guide customer conversations ("This is standard" vs "This is premium")
233
+
234
+ **Format for references.md:**
235
+ ```markdown
236
+ ## {Feature} - Market Research
237
+
238
+ ### MVP (Must-Have)
239
+ - Login/Signup - Industry standard: email + password + OAuth
240
+ - Reference: [Auth0 best practices](link)
241
+ - Profile management - Every product has this
242
+
243
+ ### Market Standard (Competitive Parity)
244
+ - SSO integration - 80% of competitors offer this
245
+ - Reference: [SAML guide](link)
246
+ - Email notifications - User expectation
247
+
248
+ ### Advanced (Differentiation)
249
+ - AI-powered recommendations - Only Competitor X has this
250
+ - Reference: [ML recommendation patterns](link)
251
+ - Real-time collaboration - Top-tier feature
252
+ ```
253
+
254
+ **How it guides use case creation:**
255
+ - User chose "Core" → Create use cases for MVP tier only
256
+ - User chose "Standard" → Create use cases for MVP + Market Standard tiers
257
+ - User chose "Full" → Create use cases for all tiers
258
+
259
+ This alignment ensures use cases match the agreed scope.
159
260
 
160
261
  ## BRD Structure
161
262
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: utils/docs-graph
3
3
  description: View and query the documentation knowledge graph
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  ---
6
6
 
7
7
  # /utils/docs-graph - Documentation Graph Viewer
@@ -18,74 +18,47 @@ View and query relationships between planning documents.
18
18
  - See overview of all plans and their relationships
19
19
  - Find related documents before making changes
20
20
  - Check impact of changes (what links to this?)
21
- - Verify graph is up-to-date
21
+ - Verify links are valid
22
22
 
23
23
  ## Usage
24
24
 
25
25
  ```
26
26
  /utils/docs-graph # Show graph summary
27
27
  /utils/docs-graph auth # Show nodes related to "auth"
28
- /utils/docs-graph --regenerate # Force regenerate graph
29
28
  /utils/docs-graph --check # Verify all links resolve
30
29
  ```
31
30
 
32
31
  ## How It Works
33
32
 
34
- The graph is automatically updated via Claude Code hooks whenever files in `plans/` are created or modified. This skill provides on-demand viewing and querying.
35
-
36
- ### Automatic Updates
37
-
38
- PostToolUse hook triggers on Write/Edit to plans/:
39
- 1. Hook detects file path contains `plans/`
40
- 2. Runs `python3 scripts/graph.py --check-path <path>`
41
- 3. Graph files updated before next Claude action
42
-
43
- ### Graph Files
33
+ **Automatic Updates:**
34
+ - PostToolUse hook triggers on Write/Edit to `plans/`
35
+ - Regenerates entire graph from all files in `plans/`
36
+ - Updates `plans/docs-graph.json` and `plans/docs-graph.md`
37
+ - Timeout: 3 minutes
44
38
 
39
+ **Graph Files:**
45
40
  ```
46
41
  plans/
47
42
  ├── docs-graph.json # Machine-readable graph data
48
43
  └── docs-graph.md # Mermaid visualization
49
44
  ```
50
45
 
51
- ## Workflow
52
-
53
- ### Phase 1: Load Graph
54
-
55
- 1. Check if `plans/docs-graph.json` exists
56
- 2. If not, run `python3 scripts/graph.py` to generate
57
- 3. Read graph data
58
-
59
- ### Phase 2: Display or Query
46
+ ## Expected Outcome
60
47
 
61
48
  **Summary mode (default):**
62
- - Show node count by type
63
- - Show edge count
64
- - Display mermaid diagram from docs-graph.md
65
- - List any errors
66
-
67
- **Query mode (with argument):**
68
- - Filter nodes matching query
69
- - Show incoming links (what references this)
70
- - Show outgoing links (what this references)
49
+ - Node count by type
50
+ - Edge count
51
+ - Mermaid diagram from docs-graph.md
71
52
 
72
- **Regenerate mode (--regenerate):**
73
- - Force full rescan of plans/
74
- - Update docs-graph.json and docs-graph.md
75
- - Show diff if changes detected
53
+ **Query mode (with argument like "auth"):**
54
+ - Matching nodes
55
+ - Incoming links (what references this)
56
+ - Outgoing links (what this references)
76
57
 
77
58
  **Check mode (--check):**
78
- - Verify all wikilinks resolve to existing nodes
79
59
  - Report broken links
80
60
  - Suggest fixes
81
61
 
82
- ### Phase 3: Output
83
-
84
- Display results with:
85
- - Mermaid diagram (if summary)
86
- - Table of matching nodes (if query)
87
- - Broken link report (if check)
88
-
89
62
  ## Wikilink Convention
90
63
 
91
64
  Documents use `[[wikilinks]]` to reference each other:
@@ -158,13 +158,15 @@ if [ ! -f ".claude/scripts/graph.py" ]; then
158
158
  exit 0
159
159
  fi
160
160
 
161
- timeout 10s python3 .claude/scripts/graph.py --check-path "$1" || true
161
+ # Full regeneration (scans all files in plans/)
162
+ timeout 180s python3 .claude/scripts/graph.py || true
162
163
  ```
163
164
 
164
165
  Then in settings.json:
165
166
  ```json
166
167
  {
167
- "command": "bash .claude/scripts/safe-graph-update.sh $PATH"
168
+ "command": "bash .claude/scripts/safe-graph-update.sh $PATH",
169
+ "timeout": 180000
168
170
  }
169
171
  ```
170
172
 
@@ -182,7 +184,8 @@ Choose the right `failureAction` based on hook criticality:
182
184
  **Example - Non-critical hook:**
183
185
  ```json
184
186
  {
185
- "command": "python3 .claude/scripts/graph.py --check-path $PATH || true",
187
+ "command": "timeout 180 python3 .claude/scripts/graph.py || true",
188
+ "timeout": 180000,
186
189
  "retries": {
187
190
  "maxAttempts": 3,
188
191
  "failureAction": "warn"
@@ -5,18 +5,17 @@
5
5
  # This script provides resilient execution of graph.py with:
6
6
  # - Dependency checking
7
7
  # - Graceful failure handling
8
- # - Timeout protection
9
- # - Clear error messages
8
+ # - Timeout protection (3 minutes)
9
+ # - Full regeneration of graph from all files in plans/
10
10
  #
11
11
 
12
12
  set -e
13
13
 
14
14
  # Configuration
15
- TIMEOUT_SECONDS=10
15
+ TIMEOUT_SECONDS=180 # 3 minutes
16
16
  # Get the directory where this script is located
17
17
  SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
18
18
  GRAPH_SCRIPT="$SCRIPT_DIR/graph.py"
19
- MAX_RETRIES=0 # Let Claude Code handle retries
20
19
 
21
20
  # Colors for output (optional)
22
21
  RED='\033[0;31m'
@@ -49,8 +48,8 @@ if [[ ! "$FILE_PATH" =~ ^plans/.*\.md$ ]]; then
49
48
  exit 0
50
49
  fi
51
50
 
52
- # Run graph.py with timeout
53
- if timeout "$TIMEOUT_SECONDS" python3 "$GRAPH_SCRIPT" --check-path "$FILE_PATH" 2>/dev/null; then
51
+ # Run full graph regeneration (no --check-path, scans all files)
52
+ if timeout "$TIMEOUT_SECONDS" python3 "$GRAPH_SCRIPT" 2>/dev/null; then
54
53
  # Success - silent
55
54
  exit 0
56
55
  else