opencodekit 0.15.21 → 0.16.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.
- package/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +21 -20
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +201 -95
- package/dist/template/.opencode/command/design.md +5 -7
- package/dist/template/.opencode/command/handoff.md +7 -0
- package/dist/template/.opencode/command/init.md +25 -47
- package/dist/template/.opencode/command/plan.md +35 -16
- package/dist/template/.opencode/command/resume.md +7 -18
- package/dist/template/.opencode/command/ship.md +156 -0
- package/dist/template/.opencode/command/start.md +315 -28
- package/dist/template/.opencode/command/ui-review.md +5 -7
- package/dist/template/.opencode/command/verify.md +279 -0
- package/dist/template/.opencode/memory/_templates/README.md +57 -19
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
- package/dist/template/.opencode/memory/project/command-rules.md +122 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/opencode.json +916 -803
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
|
@@ -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
|
-
```
|