opencodekit 0.15.21 → 0.16.1

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 (144) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +85 -23
  3. package/dist/template/.opencode/agent/build.md +88 -7
  4. package/dist/template/.opencode/agent/explore.md +1 -1
  5. package/dist/template/.opencode/agent/general.md +54 -4
  6. package/dist/template/.opencode/agent/looker.md +1 -1
  7. package/dist/template/.opencode/agent/painter.md +1 -1
  8. package/dist/template/.opencode/agent/plan.md +52 -0
  9. package/dist/template/.opencode/agent/review.md +1 -1
  10. package/dist/template/.opencode/agent/scout.md +3 -3
  11. package/dist/template/.opencode/agent/vision.md +1 -1
  12. package/dist/template/.opencode/command/create.md +231 -91
  13. package/dist/template/.opencode/command/design.md +40 -7
  14. package/dist/template/.opencode/command/handoff.md +22 -0
  15. package/dist/template/.opencode/command/init.md +49 -78
  16. package/dist/template/.opencode/command/plan.md +36 -16
  17. package/dist/template/.opencode/command/pr.md +15 -0
  18. package/dist/template/.opencode/command/research.md +3 -0
  19. package/dist/template/.opencode/command/resume.md +8 -18
  20. package/dist/template/.opencode/command/review-codebase.md +30 -0
  21. package/dist/template/.opencode/command/ship.md +199 -0
  22. package/dist/template/.opencode/command/start.md +316 -28
  23. package/dist/template/.opencode/command/status.md +24 -1
  24. package/dist/template/.opencode/command/ui-review.md +36 -7
  25. package/dist/template/.opencode/command/verify.md +307 -0
  26. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  27. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  28. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  29. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  30. package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
  31. package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
  32. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  33. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  34. package/dist/template/.opencode/memory.db +0 -0
  35. package/dist/template/.opencode/memory.db-shm +0 -0
  36. package/dist/template/.opencode/memory.db-wal +0 -0
  37. package/dist/template/.opencode/opencode.json +18 -4
  38. package/dist/template/.opencode/package.json +1 -0
  39. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  40. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  41. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  42. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  43. package/dist/template/.opencode/plugin/memory.ts +38 -1
  44. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  45. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  46. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  47. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  48. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  49. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  50. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  51. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  52. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  53. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  54. package/dist/template/.opencode/tool/observation.ts +112 -100
  55. package/dist/template/.opencode/tsconfig.json +19 -19
  56. package/package.json +1 -1
  57. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  58. package/dist/template/.opencode/command/agent-browser.md +0 -21
  59. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  60. package/dist/template/.opencode/command/analyze-project.md +0 -295
  61. package/dist/template/.opencode/command/brainstorm.md +0 -373
  62. package/dist/template/.opencode/command/cloudflare.md +0 -70
  63. package/dist/template/.opencode/command/commit.md +0 -245
  64. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  65. package/dist/template/.opencode/command/design-audit.md +0 -480
  66. package/dist/template/.opencode/command/edit-image.md +0 -242
  67. package/dist/template/.opencode/command/finish.md +0 -255
  68. package/dist/template/.opencode/command/fix-ci.md +0 -109
  69. package/dist/template/.opencode/command/fix-types.md +0 -104
  70. package/dist/template/.opencode/command/fix-ui.md +0 -117
  71. package/dist/template/.opencode/command/fix.md +0 -168
  72. package/dist/template/.opencode/command/frontend-design.md +0 -21
  73. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  74. package/dist/template/.opencode/command/generate-icon.md +0 -283
  75. package/dist/template/.opencode/command/generate-image.md +0 -246
  76. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  77. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  78. package/dist/template/.opencode/command/implement.md +0 -609
  79. package/dist/template/.opencode/command/import-plan.md +0 -406
  80. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  81. package/dist/template/.opencode/command/integration-test.md +0 -424
  82. package/dist/template/.opencode/command/issue.md +0 -102
  83. package/dist/template/.opencode/command/new-feature.md +0 -651
  84. package/dist/template/.opencode/command/opensrc.md +0 -58
  85. package/dist/template/.opencode/command/quick-build.md +0 -238
  86. package/dist/template/.opencode/command/ralph.md +0 -41
  87. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  88. package/dist/template/.opencode/command/research-ui.md +0 -466
  89. package/dist/template/.opencode/command/restore-image.md +0 -424
  90. package/dist/template/.opencode/command/revert-feature.md +0 -386
  91. package/dist/template/.opencode/command/skill-create.md +0 -517
  92. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  93. package/dist/template/.opencode/command/summarize.md +0 -412
  94. package/dist/template/.opencode/command/triage.md +0 -398
  95. package/dist/template/.opencode/memory/_templates/README.md +0 -35
  96. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  97. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  98. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  99. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  100. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  101. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  102. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  103. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  104. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  105. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  107. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  108. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  109. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  110. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  111. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  112. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  113. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  114. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  115. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  116. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  117. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  118. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  119. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  120. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  121. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  122. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  123. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  124. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  125. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  126. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  127. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  128. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  129. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  130. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  131. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  132. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  133. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  134. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  135. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  136. package/dist/template/.opencode/memory/project/commands.md +0 -72
  137. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  138. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  139. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  140. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  141. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  142. package/dist/template/.opencode/tool/oracle.ts +0 -240
  143. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  144. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -1,466 +0,0 @@
1
- ---
2
- description: Research UI/UX patterns, design systems, and component implementations
3
- argument-hint: "<topic-or-path> [bead-id] [--audit] [--compare]"
4
- agent: vision
5
- model: proxypal/gemini-3-flash-preview
6
- subtask: true
7
- ---
8
-
9
- # Research UI: $ARGUMENTS
10
-
11
- Comprehensive UI/UX research across codebase patterns, design systems, and external best practices.
12
-
13
- ## Load Research Skill
14
-
15
- ```typescript
16
- skill({ name: "ui-ux-research" });
17
- ```
18
-
19
- ## Phase 1: Parse Research Target
20
-
21
- ### Input Types
22
-
23
- ```typescript
24
- const input = "$ARGUMENTS";
25
-
26
- const parseTarget = (input: string) => {
27
- // File/directory path
28
- if (input.includes("/") || input.startsWith("src")) {
29
- return { type: "codebase", path: input };
30
- }
31
-
32
- // Bead reference
33
- if (input.startsWith("bd-")) {
34
- return { type: "bead", id: input };
35
- }
36
-
37
- // Topic keywords
38
- const topics = [
39
- "design-system",
40
- "components",
41
- "typography",
42
- "colors",
43
- "spacing",
44
- "animations",
45
- "accessibility",
46
- "responsive",
47
- "dark-mode",
48
- "forms",
49
- "tables",
50
- "navigation",
51
- "modals",
52
- ];
53
-
54
- if (topics.some((t) => input.includes(t))) {
55
- return { type: "topic", name: input };
56
- }
57
-
58
- // Default: treat as general topic
59
- return { type: "topic", name: input };
60
- };
61
- ```
62
-
63
- ## Phase 2: Codebase UI Analysis
64
-
65
- ### If Path Provided
66
-
67
- ```typescript
68
- // Find all UI-related files in path
69
- glob({ pattern: `${path}/**/*.{tsx,jsx,css,scss,vue,svelte}` });
70
-
71
- // Analyze component structure
72
- lsp_lsp_document_symbols({ filePath: mainComponentFile });
73
-
74
- // Search for styling patterns
75
- ast_grep({ pattern: "className={$$$}", path });
76
- ast_grep({ pattern: "style={{$$$}}", path });
77
- ```
78
-
79
- ### Component Inventory
80
-
81
- ```
82
- COMPONENT INVENTORY: [path]
83
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━
84
-
85
- Components Found: [count]
86
-
87
- Component │ Props │ Variants │ Tests │ Docs
88
- ───────────────────┼───────┼──────────┼───────┼──────
89
- Button │ 8 │ 4 │ ✓ │ ✓
90
- Card │ 5 │ 2 │ ✓ │ ✗
91
- Modal │ 12 │ 3 │ ✗ │ ✗
92
- Input │ 15 │ 5 │ ✓ │ ✓
93
-
94
- Patterns Detected:
95
- - Styling: [Tailwind/CSS Modules/Styled Components/etc.]
96
- - Variants: [CVA/clsx/manual classes]
97
- - Icons: [Lucide/Heroicons/custom]
98
- - Animations: [Framer Motion/CSS/none]
99
- ```
100
-
101
- ### Design Token Analysis
102
-
103
- ```typescript
104
- // Find design tokens
105
- grep({ pattern: "colors\\.|spacing\\.|fontSize", include: "*.{ts,js,css}" });
106
-
107
- // Check for Tailwind config
108
- read({ filePath: "tailwind.config.js" });
109
- read({ filePath: "tailwind.config.ts" });
110
-
111
- // Check for CSS variables
112
- grep({ pattern: "--[a-z]+-", include: "*.css" });
113
- ```
114
-
115
- ```
116
- DESIGN TOKENS
117
- ━━━━━━━━━━━━━
118
-
119
- Source: [tailwind.config.ts / CSS variables / theme.ts]
120
-
121
- Colors:
122
- ├── Primary: #3B82F6 (blue-500)
123
- ├── Secondary: #6B7280 (gray-500)
124
- ├── Accent: #10B981 (emerald-500)
125
- ├── Error: #EF4444 (red-500)
126
- └── Background: #FFFFFF / #0F172A (dark)
127
-
128
- Spacing Scale:
129
- ├── xs: 4px (0.25rem)
130
- ├── sm: 8px (0.5rem)
131
- ├── md: 16px (1rem)
132
- ├── lg: 24px (1.5rem)
133
- └── xl: 32px (2rem)
134
-
135
- Typography:
136
- ├── Font: Inter, system-ui
137
- ├── Sizes: 12px - 48px (7 steps)
138
- └── Weights: 400, 500, 600, 700
139
-
140
- Breakpoints:
141
- ├── sm: 640px
142
- ├── md: 768px
143
- ├── lg: 1024px
144
- └── xl: 1280px
145
- ```
146
-
147
- ## Phase 3: Topic-Based Research
148
-
149
- ### Design System Topics
150
-
151
- | Topic | Research Focus |
152
- | --------------- | -------------------------------------------------------- |
153
- | `design-system` | Overall architecture, token structure, component library |
154
- | `components` | Component inventory, prop patterns, composition |
155
- | `typography` | Font stacks, scale, line heights, responsive sizing |
156
- | `colors` | Palette, semantic colors, dark mode support |
157
- | `spacing` | Scale consistency, component spacing patterns |
158
- | `animations` | Motion patterns, timing, accessibility concerns |
159
- | `accessibility` | ARIA usage, keyboard nav, color contrast |
160
- | `responsive` | Breakpoints, mobile-first patterns, fluid sizing |
161
- | `dark-mode` | Color inversion, theme switching, persistence |
162
- | `forms` | Input patterns, validation, error states |
163
- | `tables` | Data display, sorting, pagination, responsive |
164
- | `navigation` | Menu patterns, routing, breadcrumbs, mobile nav |
165
- | `modals` | Dialog patterns, focus trap, animations, stacking |
166
-
167
- ### Research Approach by Topic
168
-
169
- ```typescript
170
- const researchApproach = {
171
- "design-system": async () => {
172
- // Find theme/config files
173
- glob({ pattern: "**/theme.{ts,js}" });
174
- glob({ pattern: "**/design-tokens.{ts,js}" });
175
- glob({ pattern: "**/tailwind.config.*" });
176
-
177
- // Analyze token usage
178
- grep({ pattern: "theme\\.", include: "*.tsx" });
179
- },
180
-
181
- accessibility: async () => {
182
- // Find ARIA usage
183
- grep({ pattern: "aria-", include: "*.tsx" });
184
- grep({ pattern: "role=", include: "*.tsx" });
185
-
186
- // Check for focus management
187
- grep({ pattern: "tabIndex|focus\\(\\)", include: "*.tsx" });
188
-
189
- // Run accessibility skill
190
- skill({ name: "accessibility-audit" });
191
- },
192
-
193
- "dark-mode": async () => {
194
- // Find dark mode patterns
195
- grep({ pattern: "dark:|dark-mode|isDark", include: "*.{tsx,css}" });
196
-
197
- // Check for theme context
198
- grep({ pattern: "ThemeProvider|useTheme", include: "*.tsx" });
199
- },
200
- };
201
- ```
202
-
203
- ## Phase 4: External Research
204
-
205
- ### Best Practices Lookup
206
-
207
- ```typescript
208
- // Design system documentation
209
- context7_resolve_library_id({
210
- libraryName: "shadcn/ui",
211
- query: "[specific UI pattern]",
212
- });
213
-
214
- // Real-world implementations
215
- grepsearch({
216
- query: "[pattern to find]",
217
- language: ["TypeScript", "TSX"],
218
- path: "components/",
219
- });
220
- ```
221
-
222
- ### Research Sources
223
-
224
- ```
225
- EXTERNAL SOURCES
226
- ━━━━━━━━━━━━━━━━
227
-
228
- 1. Component Libraries
229
- - shadcn/ui (Radix-based, Tailwind)
230
- - Chakra UI (accessible, themeable)
231
- - Material UI (design system)
232
- - Ant Design (enterprise)
233
-
234
- 2. Design Systems
235
- - Tailwind CSS (utility-first)
236
- - Open Props (CSS custom properties)
237
- - Radix Primitives (unstyled, accessible)
238
-
239
- 3. Pattern Libraries
240
- - Patterns.dev (React patterns)
241
- - Component Gallery (real implementations)
242
- - Storybook showcase
243
- ```
244
-
245
- ## Phase 5: Comparison Mode (--compare)
246
-
247
- Compare two UI implementations:
248
-
249
- ```bash
250
- /research-ui src/components/Button --compare packages/ui/Button
251
- ```
252
-
253
- ```
254
- COMPARISON: Button Components
255
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
256
-
257
- │ src/components │ packages/ui
258
- ────────────────────┼────────────────┼─────────────
259
- Props │ 8 │ 12
260
- Variants │ 4 │ 6
261
- Accessibility │ Partial │ Full
262
- Dark Mode │ ✗ │ ✓
263
- Animation │ CSS │ Framer Motion
264
- Bundle Size │ 2.1kb │ 3.4kb
265
- Test Coverage │ 45% │ 92%
266
-
267
- Key Differences:
268
- 1. packages/ui has better a11y (full ARIA support)
269
- 2. packages/ui supports more variants
270
- 3. src/components is lighter but less complete
271
-
272
- Recommendation:
273
- Consider migrating to packages/ui for consistency,
274
- or backport a11y patterns to src/components.
275
- ```
276
-
277
- ## Phase 6: Audit Mode (--audit)
278
-
279
- Comprehensive UI audit:
280
-
281
- ```bash
282
- /research-ui --audit
283
- ```
284
-
285
- ```
286
- UI AUDIT REPORT
287
- ━━━━━━━━━━━━━━━
288
-
289
- CONSISTENCY SCORE: 72/100
290
-
291
- Issues Found:
292
-
293
- 🔴 CRITICAL (3)
294
- ├── Hardcoded colors in 12 files (bypassing theme)
295
- ├── Missing dark mode support in Modal component
296
- └── No focus indicators on custom buttons
297
-
298
- 🟡 WARNING (7)
299
- ├── Inconsistent spacing: mix of px and rem
300
- ├── Typography: 3 different font stacks detected
301
- ├── Z-index: no consistent scale (values: 1-9999)
302
- ├── Animation timing varies (0.2s to 0.5s)
303
- ├── Border radius: 4 values used (2px, 4px, 8px, 12px)
304
- ├── Icon sizes not standardized
305
- └── Form inputs have different heights
306
-
307
- 🟢 GOOD PRACTICES (5)
308
- ├── Consistent primary color usage
309
- ├── Semantic color naming
310
- ├── Responsive breakpoints aligned
311
- ├── Component folder structure
312
- └── Prop naming conventions
313
-
314
- RECOMMENDATIONS:
315
- 1. Create border-radius scale: sm, md, lg
316
- 2. Standardize animation timing: fast(150ms), normal(250ms), slow(400ms)
317
- 3. Add dark mode to remaining 8 components
318
- 4. Create z-index scale in theme config
319
- ```
320
-
321
- ## Phase 7: Generate Research Report
322
-
323
- ### Report Structure
324
-
325
- ```markdown
326
- # UI Research: $ARGUMENTS
327
-
328
- ## Executive Summary
329
-
330
- [1-2 sentence overview]
331
-
332
- ## Current State
333
-
334
- ### Component Analysis
335
-
336
- [What exists, patterns used]
337
-
338
- ### Design Token Status
339
-
340
- [Token coverage, consistency]
341
-
342
- ### Gaps Identified
343
-
344
- [Missing pieces, inconsistencies]
345
-
346
- ## Research Findings
347
-
348
- ### Codebase Patterns
349
-
350
- [What was discovered in the code]
351
-
352
- ### External Best Practices
353
-
354
- [What industry does]
355
-
356
- ### Recommendations
357
-
358
- [Actionable suggestions]
359
-
360
- ## Implementation Guidance
361
-
362
- ### Quick Wins
363
-
364
- - [Low effort, high impact changes]
365
-
366
- ### Medium Term
367
-
368
- - [Larger improvements]
369
-
370
- ### Long Term
371
-
372
- - [Architectural changes]
373
-
374
- ## Code Examples
375
-
376
- ### Pattern to Adopt
377
-
378
- \`\`\`tsx
379
- // Recommended pattern based on research
380
- \`\`\`
381
-
382
- ### Anti-Pattern to Avoid
383
-
384
- \`\`\`tsx
385
- // Pattern found in codebase that should be refactored
386
- \`\`\`
387
-
388
- ## Next Steps
389
-
390
- 1. [Immediate action]
391
- 2. [Follow-up task]
392
- 3. [Future consideration]
393
- ```
394
-
395
- ### Save Research
396
-
397
- ```typescript
398
- if (beadId) {
399
- // Save to bead artifacts
400
- write({
401
- filePath: `.beads/artifacts/${beadId}/ui-research.md`,
402
- content: researchReport,
403
- });
404
- } else {
405
- // Save to memory
406
- write({
407
- filePath: `.opencode/memory/design/research/${topic}-${timestamp}.md`,
408
- content: researchReport,
409
- });
410
- }
411
- ```
412
-
413
- ## Examples
414
-
415
- ```bash
416
- /research-ui src/components # Analyze component directory
417
- /research-ui typography # Research typography patterns
418
- /research-ui dark-mode bd-theme01 # Research for specific bead
419
- /research-ui --audit # Full UI consistency audit
420
- /research-ui Button --compare # Compare implementations
421
- /research-ui forms accessibility # Focused topic research
422
- ```
423
-
424
- ## Integration
425
-
426
- After research, common next steps:
427
-
428
- ```
429
- NEXT STEPS
430
- ━━━━━━━━━━
431
-
432
- Based on your research, consider:
433
-
434
- /design-audit # Formal audit with scoring
435
- /accessibility-check # A11y focused review
436
- /implement bd-xxx # Implement findings
437
- /plan bd-xxx # Create implementation plan
438
-
439
- Or create new tasks:
440
- /create "Fix typography inconsistencies"
441
- /create "Add dark mode to Modal component"
442
- ```
443
-
444
- ## Output Formats
445
-
446
- ### Concise (default)
447
-
448
- Key findings + recommendations in ~50 lines
449
-
450
- ### Detailed (--verbose)
451
-
452
- Full analysis with all code examples
453
-
454
- ### JSON (--json)
455
-
456
- Structured output for tooling:
457
-
458
- ```json
459
- {
460
- "topic": "design-system",
461
- "components": [],
462
- "tokens": {},
463
- "issues": [],
464
- "recommendations": []
465
- }
466
- ```