ccjk 16.0.6 → 16.3.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 (69) hide show
  1. package/README.md +72 -316
  2. package/dist/chunks/claude-code-config-manager.mjs +28 -7
  3. package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
  4. package/dist/chunks/codex-config-switch.mjs +3 -3
  5. package/dist/chunks/codex-presets.mjs +98 -0
  6. package/dist/chunks/codex-provider-manager.mjs +4 -4
  7. package/dist/chunks/codex-runtime.mjs +246 -0
  8. package/dist/chunks/codex-uninstaller.mjs +2 -2
  9. package/dist/chunks/commands.mjs +1 -1
  10. package/dist/chunks/features.mjs +35 -15
  11. package/dist/chunks/simple-config.mjs +659 -148
  12. package/dist/cli.mjs +1700 -908
  13. package/dist/i18n/locales/en/clean.json +24 -0
  14. package/dist/i18n/locales/en/codex.json +24 -1
  15. package/dist/i18n/locales/en/configuration.json +27 -12
  16. package/dist/i18n/locales/en/hub.json +30 -0
  17. package/dist/i18n/locales/en/menu.json +32 -8
  18. package/dist/i18n/locales/en/workflow.json +13 -1
  19. package/dist/i18n/locales/zh-CN/clean.json +24 -0
  20. package/dist/i18n/locales/zh-CN/codex.json +24 -1
  21. package/dist/i18n/locales/zh-CN/configuration.json +27 -12
  22. package/dist/i18n/locales/zh-CN/hub.json +30 -0
  23. package/dist/i18n/locales/zh-CN/menu.json +32 -8
  24. package/dist/i18n/locales/zh-CN/workflow.json +13 -1
  25. package/dist/index.d.mts +3 -1
  26. package/dist/index.d.ts +3 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/shared/{ccjk.BSLlI-JL.mjs → ccjk.TC1_-qhV.mjs} +1 -1
  29. package/package.json +1 -1
  30. package/templates/common/output-styles/en/agents-md-baseline.md +28 -0
  31. package/templates/common/output-styles/en/plan-first.md +30 -0
  32. package/templates/common/output-styles/en/surgical-diff.md +27 -0
  33. package/templates/common/output-styles/en/verify-and-ship.md +31 -0
  34. package/templates/common/output-styles/zh-CN/agents-md-baseline.md +28 -0
  35. package/templates/common/output-styles/zh-CN/plan-first.md +30 -0
  36. package/templates/common/output-styles/zh-CN/surgical-diff.md +27 -0
  37. package/templates/common/output-styles/zh-CN/verify-and-ship.md +31 -0
  38. package/templates/common/workflow/bmad/en/bmad-init.md +275 -0
  39. package/templates/common/workflow/bmad/zh-CN/bmad-init.md +275 -0
  40. package/templates/common/workflow/codeReview/en/code-review.md +34 -0
  41. package/templates/common/workflow/codeReview/zh-CN/code-review.md +34 -0
  42. package/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +628 -0
  43. package/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +628 -0
  44. package/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +187 -0
  45. package/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +191 -0
  46. package/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +249 -0
  47. package/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +277 -0
  48. package/templates/common/workflow/essential/en/agents/get-current-datetime.md +29 -0
  49. package/templates/common/workflow/essential/en/agents/init-architect.md +115 -0
  50. package/templates/common/workflow/essential/en/agents/planner.md +116 -0
  51. package/templates/common/workflow/essential/en/agents/teamagent.md +102 -0
  52. package/templates/common/workflow/essential/en/agents/ui-ux-designer.md +91 -0
  53. package/templates/common/workflow/essential/en/feat.md +92 -0
  54. package/templates/common/workflow/essential/en/init-project.md +53 -0
  55. package/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +29 -0
  56. package/templates/common/workflow/essential/zh-CN/agents/init-architect.md +115 -0
  57. package/templates/common/workflow/essential/zh-CN/agents/planner.md +116 -0
  58. package/templates/common/workflow/essential/zh-CN/agents/teamagent.md +102 -0
  59. package/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +91 -0
  60. package/templates/common/workflow/essential/zh-CN/feat.md +315 -0
  61. package/templates/common/workflow/essential/zh-CN/init-project.md +53 -0
  62. package/templates/common/workflow/interview/en/interview.md +67 -0
  63. package/templates/common/workflow/interview/zh-CN/interview.md +67 -0
  64. package/templates/common/workflow/linearMethod/en/linear-method.md +651 -0
  65. package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +750 -0
  66. package/templates/common/workflow/refactoringMaster/en/refactoring-master.md +516 -0
  67. package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +810 -0
  68. package/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +364 -0
  69. package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +364 -0
@@ -0,0 +1,651 @@
1
+ ---
2
+ description: Linear Quality Method - Problem validation → Prioritization → Focused building, Linear team's product quality philosophy
3
+ allowed-tools: Read(**), Write(**), Exec(npm run dev, npm test)
4
+ argument-hint: [--validate] [--prioritize] [--focus-mode]
5
+ # examples:
6
+ # - /linear-method # Start Linear workflow
7
+ # - /linear-method --validate # Problem validation phase
8
+ # - /linear-method --prioritize # Prioritization
9
+ # - /linear-method --focus-mode # Focused building mode
10
+ ---
11
+
12
+ # Linear Quality Method
13
+
14
+ Based on Linear team's product development philosophy: rigorous problem validation, prioritization, and focused building for high-quality software.
15
+
16
+ ---
17
+
18
+ ## Core Philosophy
19
+
20
+ Linear is a project management tool known for speed and quality. Their development methodology emphasizes:
21
+
22
+ **1. Problem-First**
23
+ - Understand the problem before considering solutions
24
+ - Validate that the problem actually exists
25
+ - Assess the problem's impact scope
26
+
27
+ **2. Quality Over Speed**
28
+ - Better to be slow and right than fast and wrong
29
+ - Technical debt is the biggest enemy
30
+ - Every feature requires careful consideration
31
+
32
+ **3. Focus on Building**
33
+ - Minimize meetings and interruptions
34
+ - Long periods of deep work
35
+ - Do one thing at a time
36
+
37
+ **4. User Experience**
38
+ - Every detail matters
39
+ - Performance is a feature
40
+ - Simplicity over complexity
41
+
42
+ ---
43
+
44
+ ## Linear Workflow
45
+
46
+ ### Phase 1: Problem Validation
47
+
48
+ **Goal**: Ensure we're solving real and important problems
49
+
50
+ #### 1.1 Problem Statement
51
+
52
+ Using Linear's problem template:
53
+
54
+ ```markdown
55
+ ## Problem Statement
56
+
57
+ ### What is the problem?
58
+ [Clear description of the problem]
59
+
60
+ ### Who is affected?
61
+ - [ ] All users
62
+ - [ ] Specific user segment: [describe]
63
+ - [ ] Internal team
64
+ - [ ] External partners
65
+
66
+ ### How often does this occur?
67
+ - [ ] Every time
68
+ - [ ] Frequently (daily)
69
+ - [ ] Occasionally (weekly)
70
+ - [ ] Rarely (monthly)
71
+
72
+ ### What is the impact?
73
+ - [ ] Blocker (prevents work)
74
+ - [ ] Major (significant friction)
75
+ - [ ] Minor (small annoyance)
76
+ - [ ] Nice to have
77
+
78
+ ### Evidence
79
+ - User feedback: [links]
80
+ - Analytics data: [metrics]
81
+ - Support tickets: [count]
82
+ - Team observations: [notes]
83
+ ```
84
+
85
+ #### 1.2 Validation Checklist
86
+
87
+ ```markdown
88
+ ## Validation Checklist
89
+
90
+ - [ ] Problem description is clear and specific (not a solution)
91
+ - [ ] Supported by real user feedback or data
92
+ - [ ] Impact scope is quantified
93
+ - [ ] Consequences of not solving are assessed
94
+ - [ ] Aligns with product vision
95
+ - [ ] Not an XY problem (user wants X, we think they want Y)
96
+ ```
97
+
98
+ #### 1.3 Anti-patterns: Fake Problems
99
+
100
+ ```markdown
101
+ ❌ Bad: "We need to add a new settings page"
102
+ → This is a solution, not a problem
103
+
104
+ ✅ Good: "Users cannot customize notification preferences, leading to
105
+ too many irrelevant notifications. 50+ users complain daily
106
+ in support channels about this issue"
107
+
108
+ ❌ Bad: "Code needs refactoring"
109
+ → Doesn't explain why refactoring is needed
110
+
111
+ ✅ Good: "Current auth module complexity causes each new feature to take
112
+ 3 days, while competitors need only half a day, affecting our
113
+ iteration speed"
114
+ ```
115
+
116
+ ---
117
+
118
+ ### Phase 2: Prioritization
119
+
120
+ **Goal**: Do the most important things with limited time
121
+
122
+ #### 2.1 RICE Scoring Framework
123
+
124
+ Linear uses RICE framework for priority assessment:
125
+
126
+ ```
127
+ RICE Score = (Reach × Impact × Confidence) / Effort
128
+
129
+ Reach: How many users affected?
130
+ - 1000+ users = 10
131
+ - 100-1000 users = 5
132
+ - 10-100 users = 2
133
+ - < 10 users = 1
134
+
135
+ Impact: How much does it affect users?
136
+ - Massive (3.0): Core feature, significantly improves experience
137
+ - High (2.0): Important feature, clearly improves experience
138
+ - Medium (1.0): Useful feature, moderately improves experience
139
+ - Low (0.5): Small improvement
140
+ - Minimal (0.25): Tiny improvement
141
+
142
+ Confidence: How certain are we?
143
+ - High (100%): Data-supported
144
+ - Medium (80%): Some evidence
145
+ - Low (50%): Based on assumptions
146
+
147
+ Effort: How many person-months?
148
+ - In person-months (1 person-month = 1 person working 1 month)
149
+ ```
150
+
151
+ #### 2.2 Priority Examples
152
+
153
+ ```markdown
154
+ ## Feature: Keyboard Shortcuts
155
+
156
+ Reach: 8 (80% of active users)
157
+ Impact: 2.0 (High - significantly improves efficiency)
158
+ Confidence: 100% (strong user demand)
159
+ Effort: 2 person-months
160
+
161
+ RICE Score = (8 × 2.0 × 1.0) / 2 = 8.0
162
+
163
+ ---
164
+
165
+ ## Feature: Dark Mode
166
+
167
+ Reach: 10 (all users)
168
+ Impact: 1.0 (Medium - improves experience)
169
+ Confidence: 80% (some users requested)
170
+ Effort: 3 person-months
171
+
172
+ RICE Score = (10 × 1.0 × 0.8) / 3 = 2.67
173
+
174
+ ---
175
+
176
+ ## Bug: Inaccurate Search Results
177
+
178
+ Reach: 9 (90% users use search)
179
+ Impact: 3.0 (Massive - core feature broken)
180
+ Confidence: 100% (clear reproduction steps)
181
+ Effort: 1 person-month
182
+
183
+ RICE Score = (9 × 3.0 × 1.0) / 1 = 27.0 ← Highest priority
184
+ ```
185
+
186
+ #### 2.3 Priority Matrix
187
+
188
+ ```
189
+ High │ 🔥 Do Now │ 📅 Plan to Do
190
+ Impact │ (Quick Wins) │ (Major Projects)
191
+ │ │
192
+ ────────┼──────────────────┼──────────────────
193
+ │ │
194
+ Low │ 🤔 Consider │ ❌ Don't Do
195
+ Impact │ (Fill-ins) │ (Time Sinks)
196
+ │ │
197
+ Low Effort High Effort
198
+ ```
199
+
200
+ #### 2.4 The Art of Saying No
201
+
202
+ Linear team is famous for saying "no":
203
+
204
+ ```markdown
205
+ ## When to Say No
206
+
207
+ ❌ Feature request from single user (unless key customer)
208
+ ❌ Complex solution with small impact
209
+ ❌ Doesn't align with product vision
210
+ ❌ Simpler alternatives exist
211
+ ❌ Maintenance cost exceeds value
212
+
213
+ ## How to Say No
214
+
215
+ ✅ "Thanks for the feedback! We understand this need, but it's currently
216
+ lower priority as only 2% of users would use it. We'll continue monitoring."
217
+
218
+ ✅ "This is a good idea, but implementation cost is high (3 months),
219
+ and we have higher priority problems to solve."
220
+
221
+ ✅ "We've considered this approach, but it would increase product complexity,
222
+ which conflicts with our 'keep it simple' philosophy."
223
+ ```
224
+
225
+ ---
226
+
227
+ ### Phase 3: Spec Writing
228
+
229
+ **Goal**: Clarify all details before coding
230
+
231
+ #### 3.1 Linear Spec Template
232
+
233
+ ```markdown
234
+ # [Feature Name]
235
+
236
+ ## Problem
237
+ [Copy problem statement from Phase 1]
238
+
239
+ ## Goals
240
+ - Primary goal: [core objective]
241
+ - Secondary goals: [secondary objectives]
242
+ - Non-goals: [explicitly what we won't do]
243
+
244
+ ## User Stories
245
+
246
+ As a [role], I want to [action] so that [benefit].
247
+
248
+ ### Example
249
+ As a developer, I want to use keyboard shortcuts
250
+ so that I can navigate the app without using the mouse.
251
+
252
+ ## Solution
253
+
254
+ ### Overview
255
+ [High-level solution description]
256
+
257
+ ### User Flow
258
+ 1. User presses `Cmd+K`
259
+ 2. Command palette opens
260
+ 3. User types "create issue"
261
+ 4. Matching commands are filtered
262
+ 5. User presses Enter
263
+ 6. Issue creation dialog opens
264
+
265
+ ### UI/UX Design
266
+ [Figma link or screenshots]
267
+
268
+ ### Technical Approach
269
+
270
+ #### Architecture
271
+ ```typescript
272
+ // Core interface design
273
+ interface KeyboardShortcut {
274
+ key: string
275
+ modifiers: Modifier[]
276
+ action: () => void
277
+ description: string
278
+ }
279
+
280
+ class ShortcutManager {
281
+ register(shortcut: KeyboardShortcut): void
282
+ unregister(key: string): void
283
+ execute(event: KeyboardEvent): void
284
+ }
285
+ ```
286
+
287
+ #### Data Model
288
+ [Database schema or state structure]
289
+
290
+ #### API Changes
291
+ [New or modified APIs]
292
+
293
+ ### Edge Cases
294
+ - What if user presses conflicting shortcuts?
295
+ - What if shortcut is already used by browser?
296
+ - What if user is in an input field?
297
+
298
+ ### Performance Considerations
299
+ - Shortcut registration: O(1)
300
+ - Shortcut lookup: O(1) using Map
301
+ - No impact on initial load time
302
+
303
+ ### Accessibility
304
+ - All shortcuts must have mouse alternatives
305
+ - Shortcuts must be discoverable (help menu)
306
+ - Support for screen readers
307
+
308
+ ### Security
309
+ - No security implications
310
+
311
+ ## Success Metrics
312
+
313
+ - 30% of users adopt keyboard shortcuts within 1 month
314
+ - Average task completion time reduces by 20%
315
+ - NPS score increases by 5 points
316
+
317
+ ## Rollout Plan
318
+
319
+ ### Phase 1: Internal Beta (Week 1)
320
+ - Deploy to team
321
+ - Gather feedback
322
+ - Fix critical bugs
323
+
324
+ ### Phase 2: Public Beta (Week 2-3)
325
+ - Deploy to 10% of users
326
+ - Monitor metrics
327
+ - Iterate based on feedback
328
+
329
+ ### Phase 3: General Availability (Week 4)
330
+ - Deploy to all users
331
+ - Announce in changelog
332
+ - Create help documentation
333
+
334
+ ## Open Questions
335
+
336
+ - [ ] Should shortcuts be customizable?
337
+ - [ ] Which shortcuts should be enabled by default?
338
+ - [ ] How to handle conflicts with browser shortcuts?
339
+
340
+ ## Timeline
341
+
342
+ - Spec review: 2 days
343
+ - Implementation: 1.5 weeks
344
+ - Testing: 2 days
345
+ - Beta: 1 week
346
+ - GA: Week 4
347
+
348
+ Total: 4 weeks
349
+ ```
350
+
351
+ ---
352
+
353
+ ### Phase 4: Focused Building
354
+
355
+ **Goal**: Build features with high quality and efficiency
356
+
357
+ #### 4.1 Deep Work Principles
358
+
359
+ Linear team advocates deep work:
360
+
361
+ ```markdown
362
+ ## Deep Work Principles
363
+
364
+ ### 1. Long Focus Blocks
365
+ - Minimum 2 hours uninterrupted work
366
+ - Turn off all notifications
367
+ - Use Pomodoro technique (optional)
368
+
369
+ ### 2. Minimize Meetings
370
+ - Maximum 5 hours of meetings per week
371
+ - Async communication first
372
+ - Meetings must have clear agenda
373
+
374
+ ### 3. Batch Communication
375
+ - Check messages at fixed times (e.g., 10am, 3pm)
376
+ - Don't immediately reply to non-urgent messages
377
+ - Use status indicators (focused/available)
378
+
379
+ ### 4. Single-Task Mode
380
+ - Work on one issue at a time
381
+ - Finish before starting next
382
+ - Avoid context switching
383
+ ```
384
+
385
+ #### 4.2 Code Quality Standards
386
+
387
+ ```typescript
388
+ // Linear's code quality standards
389
+
390
+ // ✅ Good: Clear naming
391
+ function calculateMonthlyRecurringRevenue(subscriptions: Subscription[]): number {
392
+ return subscriptions
393
+ .filter(sub => sub.status === 'active')
394
+ .reduce((sum, sub) => sum + sub.monthlyPrice, 0)
395
+ }
396
+
397
+ // ❌ Bad: Vague naming
398
+ function calc(data: any[]): number {
399
+ return data.filter(d => d.s === 'a').reduce((s, d) => s + d.p, 0)
400
+ }
401
+
402
+ // ✅ Good: Small functions, single responsibility
403
+ function validateEmail(email: string): boolean {
404
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
405
+ }
406
+
407
+ function validatePassword(password: string): boolean {
408
+ return password.length >= 8
409
+ }
410
+
411
+ function validateUser(user: User): ValidationResult {
412
+ const errors: string[] = []
413
+ if (!validateEmail(user.email)) errors.push('Invalid email')
414
+ if (!validatePassword(user.password)) errors.push('Password too short')
415
+ return { valid: errors.length === 0, errors }
416
+ }
417
+
418
+ // ❌ Bad: Large function, multiple responsibilities
419
+ function validate(user: any): any {
420
+ // 100 lines of validation logic
421
+ }
422
+ ```
423
+
424
+ #### 4.3 Performance First
425
+
426
+ ```typescript
427
+ // Linear's extreme focus on performance
428
+
429
+ // ✅ Good: Optimized list rendering
430
+ function IssueList({ issues }: { issues: Issue[] }) {
431
+ return (
432
+ <VirtualList
433
+ items={issues}
434
+ itemHeight={48}
435
+ renderItem={(issue) => <IssueRow issue={issue} />}
436
+ />
437
+ )
438
+ }
439
+
440
+ // ❌ Bad: Render all items
441
+ function IssueList({ issues }: { issues: Issue[] }) {
442
+ return (
443
+ <div>
444
+ {issues.map(issue => <IssueRow key={issue.id} issue={issue} />)}
445
+ </div>
446
+ )
447
+ }
448
+
449
+ // ✅ Good: Debounced search
450
+ const debouncedSearch = useMemo(
451
+ () => debounce((query: string) => {
452
+ searchIssues(query)
453
+ }, 300),
454
+ []
455
+ )
456
+
457
+ // ✅ Good: Optimistic updates
458
+ function updateIssue(id: string, data: Partial<Issue>) {
459
+ // Update UI immediately
460
+ setIssues(prev => prev.map(issue =>
461
+ issue.id === id ? { ...issue, ...data } : issue
462
+ ))
463
+
464
+ // Sync in background
465
+ api.updateIssue(id, data).catch(() => {
466
+ // Revert on failure
467
+ revertIssue(id)
468
+ })
469
+ }
470
+ ```
471
+
472
+ ---
473
+
474
+ ### Phase 5: Quality Assurance
475
+
476
+ **Goal**: Ensure released features meet Linear's quality standards
477
+
478
+ #### 5.1 Testing Checklist
479
+
480
+ ```markdown
481
+ ## Testing Checklist
482
+
483
+ ### Functional Testing
484
+ - [ ] All user scenarios work correctly
485
+ - [ ] Edge cases tested
486
+ - [ ] Error handling correct
487
+
488
+ ### Performance Testing
489
+ - [ ] Page load time < 1s
490
+ - [ ] Interaction response time < 100ms
491
+ - [ ] No memory leaks
492
+
493
+ ### Accessibility Testing
494
+ - [ ] Keyboard navigation works
495
+ - [ ] Screen reader compatible
496
+ - [ ] Color contrast meets standards
497
+
498
+ ### Cross-browser Testing
499
+ - [ ] Chrome (latest)
500
+ - [ ] Firefox (latest)
501
+ - [ ] Safari (latest)
502
+ - [ ] Edge (latest)
503
+
504
+ ### Mobile Testing
505
+ - [ ] iOS Safari
506
+ - [ ] Android Chrome
507
+ - [ ] Responsive layout correct
508
+ ```
509
+
510
+ ---
511
+
512
+ ### Phase 6: Launch & Iterate
513
+
514
+ **Goal**: Successfully launch and continuously improve
515
+
516
+ #### 6.1 Launch Checklist
517
+
518
+ ```markdown
519
+ ## Launch Checklist
520
+
521
+ ### Pre-launch
522
+ - [ ] All tests pass
523
+ - [ ] Performance metrics meet standards
524
+ - [ ] Documentation updated
525
+ - [ ] Team trained
526
+
527
+ ### Launch
528
+ - [ ] Deploy to production
529
+ - [ ] Monitor key metrics
530
+ - [ ] Prepare rollback plan
531
+
532
+ ### Post-launch
533
+ - [ ] Publish announcement
534
+ - [ ] Collect user feedback
535
+ - [ ] Monitor error rates
536
+ - [ ] Analyze usage data
537
+ ```
538
+
539
+ #### 6.2 Success Metrics Tracking
540
+
541
+ ```typescript
542
+ // Track key metrics
543
+ const metrics = {
544
+ // Usage metrics
545
+ adoptionRate: 0.30, // 30% users use new feature
546
+ dailyActiveUsers: 1250,
547
+ featureUsagePerUser: 8.5,
548
+
549
+ // Performance metrics
550
+ p50Latency: 45, // ms
551
+ p95Latency: 120, // ms
552
+ errorRate: 0.001, // 0.1%
553
+
554
+ // Business metrics
555
+ userSatisfaction: 4.8, // out of 5
556
+ supportTickets: -15, // 15% reduction
557
+ taskCompletionTime: -20 // 20% reduction
558
+ }
559
+ ```
560
+
561
+ ---
562
+
563
+ ## Linear Principles
564
+
565
+ ### 1. Speed Comes from Quality
566
+
567
+ ```
568
+ Low quality → Technical debt → Slower development → More debt → Vicious cycle
569
+ High quality → Easy to modify → Faster development → Higher quality → Virtuous cycle
570
+ ```
571
+
572
+ ### 2. Simplicity Over Complexity
573
+
574
+ ```markdown
575
+ ❌ Add config options for users to choose
576
+ ✅ Choose best default
577
+
578
+ ❌ Support all possible use cases
579
+ ✅ Focus on core use cases
580
+
581
+ ❌ More features is better
582
+ ✅ Just enough features
583
+ ```
584
+
585
+ ### 3. Details Matter
586
+
587
+ ```typescript
588
+ // Linear's attention to detail
589
+
590
+ // Animation duration precise to milliseconds
591
+ const ANIMATION_DURATION = 150 // ms
592
+
593
+ // Spacing uses 4px grid system
594
+ const SPACING = {
595
+ xs: 4,
596
+ sm: 8,
597
+ md: 16,
598
+ lg: 24,
599
+ xl: 32
600
+ }
601
+
602
+ // Colors have clear semantics
603
+ const COLORS = {
604
+ primary: '#5E6AD2',
605
+ success: '#0FA958',
606
+ warning: '#F2994A',
607
+ error: '#E5484D'
608
+ }
609
+ ```
610
+
611
+ ### 4. UX Everywhere
612
+
613
+ ```markdown
614
+ ## UX Checklist
615
+
616
+ - [ ] Loading states (don't make users wait)
617
+ - [ ] Error messages (clear error info)
618
+ - [ ] Empty states (guide users to start)
619
+ - [ ] Keyboard shortcuts (improve efficiency)
620
+ - [ ] Undo operations (allow mistakes)
621
+ - [ ] Optimistic updates (instant feedback)
622
+ - [ ] Progressive enhancement (basic features first)
623
+ ```
624
+
625
+ ---
626
+
627
+ ## Command Options
628
+
629
+ - `--validate`: Run problem validation workflow
630
+ - `--prioritize`: Use RICE framework for prioritization
631
+ - `--focus-mode`: Start focused building mode
632
+ - `--quality-check`: Run quality checks
633
+
634
+ ---
635
+
636
+ ## Success Metrics
637
+
638
+ - ✅ Feature adoption rate > 30%
639
+ - ✅ User satisfaction > 4.5/5
640
+ - ✅ Performance P95 < 200ms
641
+ - ✅ Error rate < 0.1%
642
+ - ✅ Technical debt stays low
643
+
644
+ ---
645
+
646
+ ## References
647
+
648
+ - Linear Blog: "How we build Linear"
649
+ - Linear Method: Product development philosophy
650
+ - Cal Newport - *Deep Work*
651
+ - Basecamp - *Shape Up*