You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi — wanted to gauge interest and fit before writing any code, per CONTRIBUTING.md.
The gap I keep hitting
OD is great at producing a rendered artifact (HTML prototype, page, deck). What I keep wanting on top of that, for real frontend work, is the next step: turning that artifact into a set of actual UI components organized as Storybook stories — componentized source files plus *.stories.tsx with args/controls bound to the active design system's tokens. Today that step is manual.
Proposed shape — a functional skill
Based on specs/current/skills-and-design-templates.md, this reads as a functional skill (od.mode: utility) rather than a design template: its job is to do work on user input (an existing artifact or a prompt), not render an artifact itself.
Rough sketch of what skills/storybook-components/ would do:
Take an OD artifact (or a fresh prompt) plus the active design system.
Drive the agent to detect component boundaries, infer props from variants, and map design-system tokens to story args.
Emit a small tree of component files + CSF 3 stories + a minimal .storybook/ scaffold if one isn't present.
Validate by compiling the generated stories and headlessly mounting them, retrying on failure so the output is something a developer can actually pnpm storybook against — not just text that looks right.
The interesting (and risky) part is step 4 — the validation loop is what separates "looks plausible" from "works". Without it the skill would be a toy.
v0 scope I'd propose
To keep it shippable as "one folder, ~2 files plus the validation harness":
React + CSF 3 only. Vue/Svelte/styled-components can come later.
Consumes one active design system from design-systems/ — does not invent tokens.
One sample artifact + one design system as the eval case; the PR shows the generated Storybook running.
Questions before I start
Does a storybook-components skill fit OD's direction, or is "componentize an artifact" intentionally out of scope?
Is od.mode: utility the right classification, or should it be something new?
Any prior art / abandoned attempts I should read before reinventing?
Is the validation harness (spawning a Storybook build to verify generated output) acceptable inside a skill, or does that belong in the daemon?
Happy to iterate on the shape based on feedback before writing anything. Thanks for building OD — the skills surface is a really clean place to extend from.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi — wanted to gauge interest and fit before writing any code, per CONTRIBUTING.md.
The gap I keep hitting
OD is great at producing a rendered artifact (HTML prototype, page, deck). What I keep wanting on top of that, for real frontend work, is the next step: turning that artifact into a set of actual UI components organized as Storybook stories — componentized source files plus
*.stories.tsxwith args/controls bound to the active design system's tokens. Today that step is manual.Proposed shape — a functional skill
Based on
specs/current/skills-and-design-templates.md, this reads as a functional skill (od.mode: utility) rather than a design template: its job is to do work on user input (an existing artifact or a prompt), not render an artifact itself.Rough sketch of what
skills/storybook-components/would do:.storybook/scaffold if one isn't present.pnpm storybookagainst — not just text that looks right.The interesting (and risky) part is step 4 — the validation loop is what separates "looks plausible" from "works". Without it the skill would be a toy.
v0 scope I'd propose
To keep it shippable as "one folder, ~2 files plus the validation harness":
design-systems/— does not invent tokens.Questions before I start
storybook-componentsskill fit OD's direction, or is "componentize an artifact" intentionally out of scope?od.mode: utilitythe right classification, or should it be something new?Happy to iterate on the shape based on feedback before writing anything. Thanks for building OD — the skills surface is a really clean place to extend from.
以下中文版本由 AI 根据上方英文原文翻译生成,如有表述不当之处欢迎指正。
中文 (简体)
你好 — 在动手写代码之前,想先按照 CONTRIBUTING.md 的建议,征询一下大家对这个想法的兴趣与契合度。
我反复遇到的缺口
OD 在生成渲染产物方面表现很好(HTML 原型、页面、Deck)。但在真实的前端开发中,我反复想要的是它的下一步:把这些产物转化为一组真正以 Storybook 方式组织的 UI 组件 — 也就是组件化的源码文件,加上
*.stories.tsx,其 args/controls 绑定到当前设计系统的 token。目前这一步只能手工完成。形态设想 — 一个功能型 skill
参照
specs/current/skills-and-design-templates.md,这更像是一个功能型 skill(od.mode: utility),而非 design template:它的职责是对用户输入做处理(已有产物或一段 prompt),而不是去渲染一个产物。skills/storybook-components/大致会做这些事:.storybook/脚手架。pnpm storybook跑起来的东西 — 而不仅仅是"看起来对"的文本。最关键也最有风险的部分是第 4 步 — 这一校验闭环是"看起来可信"与"真的能用"之间的分水岭。没有它,这个 skill 就只是个玩具。
v0 建议范围
为了让它符合"一个文件夹、约 2 个文件,再加上校验脚手架"的尺寸:
design-systems/下当前激活的一套设计系统 — 不自行编造 token。在开始之前的几个问题
storybook-components这个 skill 是否契合 OD 的方向?或者"把产物组件化"是有意排除在外的?od.mode: utility是合适的分类吗,还是应该新增一种?很乐意根据反馈先把形态打磨好再动手。感谢各位把 OD 做出来 — skills 这层是一个非常清爽的扩展面。
All reactions