open-design/plugins/spec/README.zh-CN.md
pftom 0edbf38171 feat(plugins): add specVersion and version fields to plugin and marketplace schemas
- Introduced `specVersion` and `version` fields to the plugin and marketplace schemas, ensuring better versioning and compatibility tracking.
- Updated various components and functions to handle the new fields, including database migrations, plugin snapshots, and marketplace management.
- Enhanced tests to validate the presence and correctness of the new fields in plugin manifests and marketplace entries.
- Improved documentation to reflect the changes in schema requirements and provide guidance on the new versioning system.

This update strengthens the plugin ecosystem by providing clear versioning, enhancing the reliability and maintainability of plugins and marketplaces.
2026-05-13 22:24:50 +08:00

3.4 KiB
Raw Permalink Blame History

Open Design 插件规范包

语言:English | 简体中文

这个文件夹是给 Open Design 插件作者使用的可共享规范包。它既适合人直接阅读,也适合交给 Claude Code、Codex、Cursor、OpenClaw、Hermes Agent 或其他兼容 Agent Skills 的编码 agent 使用。

Open Design 插件遵循和 Agent Skills 兼容的可移植形态:一个包含 SKILL.md 的文件夹,可选添加 assets、references、scripts 和 examples。Open Design 额外使用 open-design.json 作为 sidecar让同一个文件夹可以出现在 OD 插件库里、填充首页输入框、声明 inputs 和 GenUI surfaces、运行 OD atom pipeline并参与发布或 PR 流程。

文件夹地图

英文原文:

可以构建什么

工作流主类:

  • Import - Figma、GitHub、代码文件夹、URL、截图、PDF、PPTX、Framer、Webflow。
  • Create - 原型、幻灯片、live artifact、图像资产、视频 prompt、HyperFrames composition、音频资产。
  • Export - PPTX、PDF、HTML、ZIP、Markdown、Figma handoff、Next.js、React、Vue、Svelte、Astro、Angular、Tailwind。
  • Share - 公共链接、GitHub PR、Gist、Slack、Discord、Notion、Linear、Jira。
  • Deploy - Vercel、Cloudflare Pages、Netlify、GitHub Pages、Fly.io、Render。
  • Refine - critique、patch、tune、品牌替换、A/B variants、stakeholder review。
  • Extend - 插件作者工具、marketplace 发布、内部目录自动化。

五分钟开始

  1. 复制 templates/ 到一个新的插件文件夹。
  2. 把文件夹名和 frontmatter name 改成小写 id例如 launch-deck
  3. SKILL.md 里写清触发描述格式建议是“Use this plugin when...”
  4. 填写 open-design.jsonspecVersion、title、插件 version、tags、od.taskKindod.modeod.useCase.queryod.pipeline、inputs 和 capabilities。
  5. 如果插件有视觉输出,添加一个小的 examples/preview/ artifact。
  6. 本地校验:
pnpm guard
pnpm --filter @open-design/plugin-runtime typecheck

如果 daemon CLI 已构建:

od plugin validate ./path/to/plugin
od plugin install ./path/to/plugin
od plugin apply <plugin-id> --input key=value

兼容性承诺

包含 SKILL.md 的文件夹可以作为普通 skill 被兼容 Agent Skills 的客户端使用。添加 open-design.json 不应该降低可移植性;它只增加 Open Design 产品行为。

参考: