od-share-to-community
它能做什么
这个工具可以把你最近完成的作品转换成 OpenDesign 插件。它会从你的项目中提取信息,生成必要的文件,让你的作品能以插件形式使用,你无需重新输入所有内容。
适用场景
- ✓完成一项想分享为插件的作品后。
- ✓当你想把当前项目变成可以反复使用的插件时。
- ✓当你想打包作品,方便别人轻松使用时。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/scenarios/od-share-to-community/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把我当前的项目转换成一个 OpenDesign 插件。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会读取你的项目文件,了解你做了什么。然后生成一个包含插件文件的文件夹,比如描述文件和使用说明,并自动填入相关信息。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
od-share-to-community (scenario)
Triggered by the post-completion "Share to OpenDesign" submission action. The user just finished a piece of work in this project and wants to ship it as a plugin. They have not been asked any questions yet.
Required outcome
Produce a folder named generated-plugin/ in the active project workspace. At minimum:
SKILL.mdwith frontmatter and clear agent instructions.open-design.jsonwith valid plugin metadata:specVersion,name,version,description, mode, task kind, inputs, plus any pipeline / context references the workflow needs.plugin.repois optional during scaffolding, but do not silently omit it: checkgh --versionandgh auth status, then prefer the local account login printed by auth status. Only usegh api user --jq .loginas a fallback when auth status does not expose a login. Ifghis missing, not logged in, rate-limited, or cannot resolve a real owner, omitplugin.repoinstead of inventing an owner and explicitly report the auth problem withgh auth refresh -h github.com -s repo,workflow,gh auth login -h github.com -s repo,workflow, orod plugin publish-repo generated-plugin --owner <github-login-or-org>as recovery commands. Never write placeholder owners such asopen-design-user,<vendor>,example-user,your-org, oryour-usernameinto the final manifest.- Optional
examples/andassets/only when they help review or reuse.
Auto-derive from the project — do not ask the user fields the files already answer
The agent's CWD is the user's OD project root. Before generating anything, read what's already there and infer the plugin from it. Treat the project files as the source of truth; the user does not need to retype things you can see.
What to read, in this order, and what to take from each:
*.artifact.json(orartifact.json) at the project root — task kind, mode, the prompt the user actually ran, the file the agent produced. This drivesod.taskKind,od.mode, the defaultuseCase.query, and the example output path.brand-spec.md/DESIGN.mdif present — voice, brand name, audience. Folds into the plugin description and tags.- The list of generated artifacts in the project workspace (the
*.html,*.tsx,*.svg, etc. the agent wrote during this session) — pick the most recent / largest one asuseCase.exampleOutputs[0].pathafter copying it undergenerated-plugin/examples/. - The user's first prompt in this conversation, if surfaced via the runtime — the natural-language description of what they wanted. Folds into
descriptionand the defaultuseCase.query.
Pick a stable plugin id from what you derived: lowercase letters, numbers, dashes, underscores, dots. Prefer something the brand-spec or artifact metadata suggests over inventing one.
If a field truly cannot be derived (e.g. no artifact.json exists, no brand-spec, the project is too sparse), only then ask the user — and emit one consolidated <question-form> block, not field-by-field prose questions. Default the answers from whatever you did manage to derive so the user can accept the proposed values directly in the rendered form. <question-form> is assistant-text markup rendered by OpenDesign, not a native tool call.
Validate the plugin locally before reporting
Run od plugin validate on the folder, then od plugin pack for a tarball, then od plugin install --source <absolute-folder-path> to confirm the install path works.
When the work above is done
Write a single summary turn covering: files created, od plugin validate status, local install / run status, and od plugin pack output. Then STOP.
Do NOT chain the publish-repo / Open-Design-PR flows yourself
Do NOT suggest follow-up CLI commands such as od plugin publish, od plugin publish --to open-design, gh repo create, git init / git remote add / git push, or any other publish / repo wiring. The plugin-folder card under Design Files already exposes three buttons whose prompts drive those flows end-to-end with the right auth gates, fallbacks, and retry rules baked in:
- Add to My plugins — already satisfied by this turn's
od plugin install --sourcestep. - Publish repo — creates / updates the author's
plugin.repoGitHub repo through a gh + git sequence the agent is told exactly how to run. - OpenDesign PR — opens a draft PR against
nexu-io/open-designfor the community catalog.
…
常见问题
什么是 OpenDesign 插件?
它是一个小程序,可以为 OpenDesign 这样的大型平台添加功能,让用户分享和使用社区创作的工具。
使用这个工具需要安装什么吗?
工具会检查你是否安装了必要的工具,比如 `gh`(GitHub CLI)。如果缺少或需要配置,它会提醒你。
如果工具找不到某些信息怎么办?
如果在你的文件中找不到必要信息,工具会请你清楚地补充缺失的细节。
详情
作者的原始描述
Package the user's just-finished work as an OpenDesign plugin without asking for fields the project files already answer, then surface the existing Add-to-My-plugins / Open-Design-PR buttons.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1072
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …