claude-flow-novice 2.10.9 → 2.11.0

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.
Files changed (177) hide show
  1. package/.claude/commands/README.md +157 -0
  2. package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
  3. package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
  4. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  5. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
  6. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
  7. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
  8. package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
  9. package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
  10. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  11. package/dist/cli/config-manager.js +109 -91
  12. package/dist/cli/config-manager.js.map +1 -1
  13. package/package.json +3 -2
  14. package/scripts/init-project.js +38 -3
  15. package/claude-assets/commands/agents/README.md +0 -10
  16. package/claude-assets/commands/agents/agent-capabilities.md +0 -21
  17. package/claude-assets/commands/agents/agent-coordination.md +0 -28
  18. package/claude-assets/commands/agents/agent-spawning.md +0 -28
  19. package/claude-assets/commands/agents/agent-types.md +0 -26
  20. package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  21. package/claude-assets/commands/analysis/README.md +0 -9
  22. package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
  23. package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
  24. package/claude-assets/commands/analysis/performance-report.md +0 -25
  25. package/claude-assets/commands/analysis/token-efficiency.md +0 -45
  26. package/claude-assets/commands/analysis/token-usage.md +0 -25
  27. package/claude-assets/commands/automation/README.md +0 -9
  28. package/claude-assets/commands/automation/auto-agent.md +0 -122
  29. package/claude-assets/commands/automation/self-healing.md +0 -106
  30. package/claude-assets/commands/automation/session-memory.md +0 -90
  31. package/claude-assets/commands/automation/smart-agents.md +0 -73
  32. package/claude-assets/commands/automation/smart-spawn.md +0 -25
  33. package/claude-assets/commands/automation/workflow-select.md +0 -25
  34. package/claude-assets/commands/claude-md.js +0 -237
  35. package/claude-assets/commands/claude-soul.js +0 -28
  36. package/claude-assets/commands/cli-integration.js +0 -216
  37. package/claude-assets/commands/coordination/README.md +0 -9
  38. package/claude-assets/commands/coordination/agent-spawn.md +0 -25
  39. package/claude-assets/commands/coordination/coordination-system.md +0 -88
  40. package/claude-assets/commands/coordination/init.md +0 -44
  41. package/claude-assets/commands/coordination/orchestrate.md +0 -43
  42. package/claude-assets/commands/coordination/spawn.md +0 -45
  43. package/claude-assets/commands/coordination/swarm-init.md +0 -85
  44. package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
  45. package/claude-assets/commands/github/README.md +0 -11
  46. package/claude-assets/commands/github/code-review-swarm.md +0 -514
  47. package/claude-assets/commands/github/code-review.md +0 -25
  48. package/claude-assets/commands/github/github-modes.md +0 -147
  49. package/claude-assets/commands/github/github-swarm.md +0 -121
  50. package/claude-assets/commands/github/issue-tracker.md +0 -292
  51. package/claude-assets/commands/github/issue-triage.md +0 -25
  52. package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
  53. package/claude-assets/commands/github/pr-enhance.md +0 -26
  54. package/claude-assets/commands/github/pr-manager.md +0 -170
  55. package/claude-assets/commands/github/project-board-sync.md +0 -471
  56. package/claude-assets/commands/github/release-manager.md +0 -338
  57. package/claude-assets/commands/github/release-swarm.md +0 -544
  58. package/claude-assets/commands/github/repo-analyze.md +0 -25
  59. package/claude-assets/commands/github/repo-architect.md +0 -367
  60. package/claude-assets/commands/github/swarm-issue.md +0 -482
  61. package/claude-assets/commands/github/swarm-pr.md +0 -285
  62. package/claude-assets/commands/github/sync-coordinator.md +0 -301
  63. package/claude-assets/commands/github/workflow-automation.md +0 -442
  64. package/claude-assets/commands/github.js +0 -638
  65. package/claude-assets/commands/hive-mind/README.md +0 -17
  66. package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
  67. package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
  68. package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
  69. package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
  70. package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
  71. package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
  72. package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
  73. package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
  74. package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
  75. package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
  76. package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
  77. package/claude-assets/commands/hooks/README.md +0 -11
  78. package/claude-assets/commands/hooks/overview.md +0 -58
  79. package/claude-assets/commands/hooks/post-edit.md +0 -117
  80. package/claude-assets/commands/hooks/post-task.md +0 -112
  81. package/claude-assets/commands/hooks/pre-edit.md +0 -113
  82. package/claude-assets/commands/hooks/pre-task.md +0 -111
  83. package/claude-assets/commands/hooks/session-end.md +0 -118
  84. package/claude-assets/commands/hooks/session-start.md +0 -9
  85. package/claude-assets/commands/hooks/setup.md +0 -103
  86. package/claude-assets/commands/hooks.js +0 -651
  87. package/claude-assets/commands/index.js +0 -119
  88. package/claude-assets/commands/memory/README.md +0 -9
  89. package/claude-assets/commands/memory/memory-bank.md +0 -58
  90. package/claude-assets/commands/memory/memory-persist.md +0 -25
  91. package/claude-assets/commands/memory/memory-search.md +0 -25
  92. package/claude-assets/commands/memory/memory-usage.md +0 -25
  93. package/claude-assets/commands/memory/neural.md +0 -47
  94. package/claude-assets/commands/memory/usage.md +0 -46
  95. package/claude-assets/commands/monitoring/README.md +0 -9
  96. package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
  97. package/claude-assets/commands/monitoring/agents.md +0 -44
  98. package/claude-assets/commands/monitoring/real-time-view.md +0 -25
  99. package/claude-assets/commands/monitoring/status.md +0 -46
  100. package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
  101. package/claude-assets/commands/neural.js +0 -572
  102. package/claude-assets/commands/optimization/README.md +0 -9
  103. package/claude-assets/commands/optimization/auto-topology.md +0 -62
  104. package/claude-assets/commands/optimization/cache-manage.md +0 -25
  105. package/claude-assets/commands/optimization/parallel-execute.md +0 -25
  106. package/claude-assets/commands/optimization/parallel-execution.md +0 -50
  107. package/claude-assets/commands/optimization/topology-optimize.md +0 -25
  108. package/claude-assets/commands/pair/README.md +0 -261
  109. package/claude-assets/commands/pair/commands.md +0 -546
  110. package/claude-assets/commands/pair/config.md +0 -510
  111. package/claude-assets/commands/pair/examples.md +0 -512
  112. package/claude-assets/commands/pair/modes.md +0 -348
  113. package/claude-assets/commands/pair/session.md +0 -407
  114. package/claude-assets/commands/pair/start.md +0 -209
  115. package/claude-assets/commands/parse-epic.js +0 -180
  116. package/claude-assets/commands/performance.js +0 -582
  117. package/claude-assets/commands/register-all-commands.js +0 -320
  118. package/claude-assets/commands/register-claude-md.js +0 -82
  119. package/claude-assets/commands/register-claude-soul.js +0 -80
  120. package/claude-assets/commands/sparc/analyzer.md +0 -52
  121. package/claude-assets/commands/sparc/architect.md +0 -53
  122. package/claude-assets/commands/sparc/batch-executor.md +0 -54
  123. package/claude-assets/commands/sparc/coder.md +0 -54
  124. package/claude-assets/commands/sparc/debugger.md +0 -54
  125. package/claude-assets/commands/sparc/designer.md +0 -53
  126. package/claude-assets/commands/sparc/documenter.md +0 -54
  127. package/claude-assets/commands/sparc/innovator.md +0 -54
  128. package/claude-assets/commands/sparc/memory-manager.md +0 -54
  129. package/claude-assets/commands/sparc/optimizer.md +0 -54
  130. package/claude-assets/commands/sparc/orchestrator.md +0 -132
  131. package/claude-assets/commands/sparc/researcher.md +0 -54
  132. package/claude-assets/commands/sparc/reviewer.md +0 -54
  133. package/claude-assets/commands/sparc/sparc-modes.md +0 -174
  134. package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
  135. package/claude-assets/commands/sparc/tdd.md +0 -54
  136. package/claude-assets/commands/sparc/tester.md +0 -54
  137. package/claude-assets/commands/sparc/workflow-manager.md +0 -54
  138. package/claude-assets/commands/sparc.js +0 -110
  139. package/claude-assets/commands/stream-chain/pipeline.md +0 -121
  140. package/claude-assets/commands/stream-chain/run.md +0 -70
  141. package/claude-assets/commands/swarm/README.md +0 -15
  142. package/claude-assets/commands/swarm/analysis.md +0 -95
  143. package/claude-assets/commands/swarm/development.md +0 -96
  144. package/claude-assets/commands/swarm/examples.md +0 -168
  145. package/claude-assets/commands/swarm/maintenance.md +0 -102
  146. package/claude-assets/commands/swarm/optimization.md +0 -117
  147. package/claude-assets/commands/swarm/research.md +0 -136
  148. package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
  149. package/claude-assets/commands/swarm/swarm-background.md +0 -8
  150. package/claude-assets/commands/swarm/swarm-init.md +0 -19
  151. package/claude-assets/commands/swarm/swarm-modes.md +0 -8
  152. package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
  153. package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
  154. package/claude-assets/commands/swarm/swarm-status.md +0 -8
  155. package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
  156. package/claude-assets/commands/swarm/swarm.md +0 -27
  157. package/claude-assets/commands/swarm/testing.md +0 -131
  158. package/claude-assets/commands/swarm.js +0 -423
  159. package/claude-assets/commands/testing/playwright-e2e.md +0 -288
  160. package/claude-assets/commands/training/README.md +0 -9
  161. package/claude-assets/commands/training/model-update.md +0 -25
  162. package/claude-assets/commands/training/neural-patterns.md +0 -74
  163. package/claude-assets/commands/training/neural-train.md +0 -25
  164. package/claude-assets/commands/training/pattern-learn.md +0 -25
  165. package/claude-assets/commands/training/specialization.md +0 -63
  166. package/claude-assets/commands/truth/start.md +0 -143
  167. package/claude-assets/commands/validate-commands.js +0 -223
  168. package/claude-assets/commands/verify/check.md +0 -50
  169. package/claude-assets/commands/verify/start.md +0 -128
  170. package/claude-assets/commands/workflow.js +0 -606
  171. package/claude-assets/commands/workflows/README.md +0 -9
  172. package/claude-assets/commands/workflows/development.md +0 -78
  173. package/claude-assets/commands/workflows/research.md +0 -63
  174. package/claude-assets/commands/workflows/workflow-create.md +0 -25
  175. package/claude-assets/commands/workflows/workflow-execute.md +0 -25
  176. package/claude-assets/commands/workflows/workflow-export.md +0 -25
  177. package/claude-assets/hooks/post-edit.config.json +0 -23
@@ -1,512 +0,0 @@
1
- # Pair Programming Examples
2
-
3
- Real-world examples and scenarios for pair programming sessions.
4
-
5
- ## Example 1: Feature Implementation
6
-
7
- ### Scenario
8
- Implementing a user authentication feature with JWT tokens.
9
-
10
- ### Session Setup
11
- ```bash
12
- claude-flow-novice pair --start \
13
- --mode switch \
14
- --agent senior-dev \
15
- --focus implement \
16
- --verify \
17
- --test
18
- ```
19
-
20
- ### Session Flow
21
- ```
22
- 👥 Starting pair programming for authentication feature...
23
-
24
- [DRIVER: You - 10 minutes]
25
- /explain JWT authentication flow
26
- > AI explains JWT concepts and best practices
27
-
28
- /suggest implementation approach
29
- > AI suggests using middleware pattern with refresh tokens
30
-
31
- # You write the basic auth middleware structure
32
-
33
- [SWITCH TO NAVIGATOR]
34
-
35
- [NAVIGATOR: AI - 10 minutes]
36
- /implement JWT token generation with refresh tokens
37
- > AI generates secure token implementation
38
-
39
- /test-gen
40
- > AI creates comprehensive test suite
41
-
42
- [SWITCH TO DRIVER]
43
-
44
- [DRIVER: You - 10 minutes]
45
- # You refine the implementation
46
- /review --security
47
- > AI performs security review, suggests improvements
48
-
49
- /commit --message "feat: JWT authentication with refresh tokens"
50
- ✅ Truth Score: 0.98 - Committed successfully
51
- ```
52
-
53
- ## Example 2: Bug Fixing Session
54
-
55
- ### Scenario
56
- Debugging a memory leak in a Node.js application.
57
-
58
- ### Session Setup
59
- ```bash
60
- claude-flow-novice pair --start \
61
- --mode navigator \
62
- --agent debugger-expert \
63
- --focus debug \
64
- --trace
65
- ```
66
-
67
- ### Session Flow
68
- ```
69
- 👥 Starting debugging session...
70
-
71
- /status
72
- > Analyzing application for memory issues...
73
-
74
- /perf --profile
75
- > Memory usage growing: 150MB → 450MB over 10 minutes
76
-
77
- /find "new EventEmitter" --regex
78
- > Found 3 instances of EventEmitter creation
79
-
80
- /inspect eventEmitters --deep
81
- > Discovering listeners not being removed
82
-
83
- /suggest fix for memory leak
84
- > AI suggests: "Add removeListener in cleanup functions"
85
-
86
- /implement cleanup functions for all event emitters
87
- > AI generates proper cleanup code
88
-
89
- /test
90
- > Memory stable at 150MB ✅
91
-
92
- /commit --message "fix: memory leak in event emitters"
93
- ```
94
-
95
- ## Example 3: Test-Driven Development
96
-
97
- ### Scenario
98
- Building a shopping cart feature using TDD.
99
-
100
- ### Session Setup
101
- ```bash
102
- claude-flow-novice pair --start \
103
- --mode tdd \
104
- --agent tdd-specialist \
105
- --test-first
106
- ```
107
-
108
- ### Session Flow
109
- ```
110
- 👥 TDD Session: Shopping Cart Feature
111
-
112
- [RED PHASE]
113
- /test-gen "add item to cart"
114
- > AI writes failing test:
115
- ✗ should add item to cart
116
- ✗ should update quantity for existing item
117
- ✗ should calculate total price
118
-
119
- [GREEN PHASE]
120
- /implement minimal cart functionality
121
- > You write just enough code to pass tests
122
-
123
- /test
124
- > Tests passing: 3/3 ✅
125
-
126
- [REFACTOR PHASE]
127
- /refactor --pattern repository
128
- > AI refactors to repository pattern
129
-
130
- /test
131
- > Tests still passing: 3/3 ✅
132
-
133
- [NEXT CYCLE]
134
- /test-gen "remove item from cart"
135
- > AI writes new failing tests...
136
- ```
137
-
138
- ## Example 4: Code Refactoring
139
-
140
- ### Scenario
141
- Refactoring legacy code to modern patterns.
142
-
143
- ### Session Setup
144
- ```bash
145
- claude-flow-novice pair --start \
146
- --mode driver \
147
- --focus refactor \
148
- --verify \
149
- --threshold 0.98
150
- ```
151
-
152
- ### Session Flow
153
- ```
154
- 👥 Refactoring Session: Modernizing UserService
155
-
156
- /analyze UserService.js
157
- > AI identifies:
158
- - Callback hell (5 levels deep)
159
- - No error handling
160
- - Tight coupling
161
- - No tests
162
-
163
- /suggest refactoring plan
164
- > AI suggests:
165
- 1. Convert callbacks to async/await
166
- 2. Add error boundaries
167
- 3. Extract dependencies
168
- 4. Add unit tests
169
-
170
- /test-gen --before-refactor
171
- > AI generates tests for current behavior
172
-
173
- /refactor callbacks to async/await
174
- # You refactor with AI guidance
175
-
176
- /test
177
- > All tests passing ✅
178
-
179
- /review --compare
180
- > AI shows before/after comparison
181
- > Code complexity: 35 → 12
182
- > Truth score: 0.99 ✅
183
-
184
- /commit --message "refactor: modernize UserService with async/await"
185
- ```
186
-
187
- ## Example 5: Learning Session
188
-
189
- ### Scenario
190
- Learning React hooks with AI mentorship.
191
-
192
- ### Session Setup
193
- ```bash
194
- claude-flow-novice pair --start \
195
- --mode mentor \
196
- --agent react-expert \
197
- --pace slow \
198
- --examples
199
- ```
200
-
201
- ### Session Flow
202
- ```
203
- 👥 Learning Session: React Hooks
204
-
205
- /learn useState hook
206
- > AI explains with interactive examples
207
-
208
- /example custom hook for API calls
209
- > AI shows best practice implementation:
210
- ```javascript
211
- function useApi(url) {
212
- const [data, setData] = useState(null);
213
- const [loading, setLoading] = useState(true);
214
- const [error, setError] = useState(null);
215
-
216
- useEffect(() => {
217
- // Implementation explained step by step
218
- }, [url]);
219
-
220
- return { data, loading, error };
221
- }
222
- ```
223
-
224
- /implement my own custom hook
225
- # You write with AI guidance
226
-
227
- /review --educational
228
- > AI provides detailed feedback with learning points
229
-
230
- /quiz react hooks
231
- > AI tests your understanding
232
- > Score: 8/10 - Good progress!
233
- ```
234
-
235
- ## Example 6: Performance Optimization
236
-
237
- ### Scenario
238
- Optimizing a slow React application.
239
-
240
- ### Session Setup
241
- ```bash
242
- claude-flow-novice pair --start \
243
- --mode switch \
244
- --agent performance-expert \
245
- --focus optimize \
246
- --profile
247
- ```
248
-
249
- ### Session Flow
250
- ```
251
- 👥 Performance Optimization Session
252
-
253
- /perf --profile
254
- > React DevTools Profiler Results:
255
- - ProductList: 450ms render
256
- - CartSummary: 200ms render
257
- - Unnecessary re-renders: 15
258
-
259
- /suggest optimizations for ProductList
260
- > AI suggests:
261
- 1. Add React.memo
262
- 2. Use useMemo for expensive calculations
263
- 3. Implement virtualization for long lists
264
-
265
- /implement React.memo and useMemo
266
- # You implement with AI guidance
267
-
268
- /perf --profile
269
- > ProductList: 45ms render (90% improvement!) ✅
270
-
271
- /implement virtualization with react-window
272
- > AI implements virtual scrolling
273
-
274
- /perf --profile
275
- > ProductList: 12ms render (97% improvement!) ✅
276
- > FPS: 60 stable ✅
277
-
278
- /commit --message "perf: optimize ProductList with memoization and virtualization"
279
- ```
280
-
281
- ## Example 7: API Development
282
-
283
- ### Scenario
284
- Building a RESTful API with Express.
285
-
286
- ### Session Setup
287
- ```bash
288
- claude-flow-novice pair --start \
289
- --mode navigator \
290
- --agent backend-expert \
291
- --focus implement \
292
- --test
293
- ```
294
-
295
- ### Session Flow
296
- ```
297
- 👥 API Development Session
298
-
299
- /design REST API for blog platform
300
- > AI designs endpoints:
301
- POST /api/posts
302
- GET /api/posts
303
- GET /api/posts/:id
304
- PUT /api/posts/:id
305
- DELETE /api/posts/:id
306
-
307
- /implement CRUD endpoints with validation
308
- > AI implements with Express + Joi validation
309
-
310
- /test-gen --integration
311
- > AI generates integration tests
312
-
313
- /security --api
314
- > AI adds:
315
- - Rate limiting
316
- - Input sanitization
317
- - JWT authentication
318
- - CORS configuration
319
-
320
- /document --openapi
321
- > AI generates OpenAPI documentation
322
-
323
- /test --integration
324
- > All endpoints tested: 15/15 ✅
325
-
326
- /deploy --staging
327
- > API deployed to staging environment
328
- ```
329
-
330
- ## Example 8: Database Migration
331
-
332
- ### Scenario
333
- Migrating from MongoDB to PostgreSQL.
334
-
335
- ### Session Setup
336
- ```bash
337
- claude-flow-novice pair --start \
338
- --mode switch \
339
- --agent database-expert \
340
- --verify \
341
- --test
342
- ```
343
-
344
- ### Session Flow
345
- ```
346
- 👥 Database Migration Session
347
-
348
- /analyze MongoDB schema
349
- > AI maps current structure:
350
- - users collection → users table
351
- - posts collection → posts table
352
- - Embedded comments → comments table with FK
353
-
354
- /design PostgreSQL schema
355
- > AI creates normalized schema with relations
356
-
357
- /implement migration script
358
- # You write migration with AI assistance
359
-
360
- /test --migration --sample-data
361
- > Migration successful for 10,000 records ✅
362
-
363
- /implement data access layer
364
- > AI creates repository pattern implementation
365
-
366
- /test --integration
367
- > All queries working correctly ✅
368
-
369
- /verify data integrity
370
- > Truth score: 0.995 ✅
371
- > No data loss detected
372
- ```
373
-
374
- ## Example 9: CI/CD Pipeline
375
-
376
- ### Scenario
377
- Setting up GitHub Actions CI/CD pipeline.
378
-
379
- ### Session Setup
380
- ```bash
381
- claude-flow-novice pair --start \
382
- --mode navigator \
383
- --agent devops-expert \
384
- --focus implement
385
- ```
386
-
387
- ### Session Flow
388
- ```
389
- 👥 CI/CD Pipeline Setup
390
-
391
- /implement GitHub Actions workflow
392
- > AI creates .github/workflows/ci.yml:
393
- - Build on push/PR
394
- - Run tests
395
- - Check coverage
396
- - Deploy to staging
397
-
398
- /test --ci --dry-run
399
- > Pipeline simulation successful ✅
400
-
401
- /implement deployment to production
402
- > AI adds:
403
- - Manual approval step
404
- - Rollback capability
405
- - Health checks
406
- - Notifications
407
-
408
- /security --scan-pipeline
409
- > AI adds security scanning:
410
- - Dependency scanning
411
- - Container scanning
412
- - Secret scanning
413
-
414
- /commit --message "ci: complete CI/CD pipeline with security scanning"
415
- ```
416
-
417
- ## Example 10: Mobile App Development
418
-
419
- ### Scenario
420
- Building a React Native mobile feature.
421
-
422
- ### Session Setup
423
- ```bash
424
- claude-flow-novice pair --start \
425
- --mode switch \
426
- --agent mobile-expert \
427
- --language react-native \
428
- --test
429
- ```
430
-
431
- ### Session Flow
432
- ```
433
- 👥 Mobile Development Session
434
-
435
- /implement offline-first data sync
436
- > AI implements:
437
- - Local SQLite storage
438
- - Queue for pending changes
439
- - Sync on connection restore
440
- - Conflict resolution
441
-
442
- /test --device ios simulator
443
- > Feature working on iOS ✅
444
-
445
- /test --device android emulator
446
- > Feature working on Android ✅
447
-
448
- /optimize --mobile
449
- > AI optimizes:
450
- - Reduces bundle size by 30%
451
- - Implements lazy loading
452
- - Adds image caching
453
-
454
- /review --accessibility
455
- > AI ensures:
456
- - Screen reader support
457
- - Proper contrast ratios
458
- - Touch target sizes
459
-
460
- /commit --message "feat: offline-first sync with optimizations"
461
- ```
462
-
463
- ## Common Patterns
464
-
465
- ### Starting Patterns
466
- ```bash
467
- # Quick start for common scenarios
468
- claude-flow-novice pair --template <template>
469
- ```
470
-
471
- Available templates:
472
- - `feature` - New feature development
473
- - `bugfix` - Bug fixing session
474
- - `refactor` - Code refactoring
475
- - `optimize` - Performance optimization
476
- - `test` - Test writing
477
- - `review` - Code review
478
- - `learn` - Learning session
479
-
480
- ### Session Commands Flow
481
-
482
- #### Typical Feature Development
483
- ```
484
- /start → /explain → /design → /implement → /test → /review → /commit → /end
485
- ```
486
-
487
- #### Typical Bug Fix
488
- ```
489
- /start → /reproduce → /debug → /trace → /fix → /test → /verify → /commit → /end
490
- ```
491
-
492
- #### Typical Refactoring
493
- ```
494
- /start → /analyze → /plan → /test-gen → /refactor → /test → /review → /commit → /end
495
- ```
496
-
497
- ## Best Practices from Examples
498
-
499
- 1. **Always Start with Context** - Use `/explain` or `/analyze`
500
- 2. **Test Early and Often** - Run tests after each change
501
- 3. **Verify Before Commit** - Check truth scores
502
- 4. **Document Decisions** - Use `/note` for important choices
503
- 5. **Review Security** - Always run `/security` for sensitive code
504
- 6. **Profile Performance** - Use `/perf` for optimization
505
- 7. **Save Sessions** - Use `/save` for complex work
506
-
507
- ## Related Documentation
508
-
509
- - [Getting Started](./README.md)
510
- - [Session Management](./session.md)
511
- - [Commands Reference](./commands.md)
512
- - [Configuration](./config.md)