library-curator
它能做什么
这个工具会在你的个人素材库中搜索图片和其他文件,方便你在项目中复用。它能找到你之前上传或创建过的内容,无需你重新上传。
适用场景
- ✓当你要求使用之前上传过的图片时。
- ✓当你想使用已保存的 logo 或截图时。
- ✓当你更希望用素材库里的文件,而不是新文件时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/library-curator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“找到我昨天上传的公司 logo,放到页面上。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会根据你或 AI 提供的关键词搜索素材库。找到文件后,它会把文件添加到你的项目中,并给你一个该文件的链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
library-curator
Reuse assets that already live in the user's OD Library — images captured with the OD Clipper, manual uploads, agent-generated media, and design-system material — without asking the user to re-upload them.
When to use
- The user references an asset they already have ("the screenshot I clipped", "my logo", "that hero image from earlier").
- You need an image for the page you're building and the user prefers their own library over freshly generated media.
Tools (tool-token track)
Both endpoints authenticate with the run's tool token (OD_TOOL_TOKEN, injected
by the daemon) and operate on the project the run belongs to.
Search
POST /api/tools/library/search
{ "query": "blue hero background", "kind": "image", "limit": 20 }
Returns { "results": [{ "asset": { "id": "...", "kind": "image", "sourceTitle": "...", "width": 1600, "height": 900, "sources": [...] }, "score": 0 }], "semantic": false }.
semantic: false means keyword/metadata matching (no embedding model
configured). Filter and rank the results yourself from the asset metadata.
Apply
POST /api/tools/library/apply
{ "assetId": "<id from search>", "dir": "assets" }
Copies the asset into the project (default subdir library/, or the dir you
pass) and returns { "relPath": "assets/<hash>.png" }. Reference that
relPath from the HTML/CSS you write (e.g. <img src="assets/ab12cd34ef.png">).
Recipe
- Search with a tight query for the kind you need.
- Pick the best result by dimensions / title / source.
- Apply it to get a project-relative path.
- Wire that path into the artifact you're editing.
If search returns nothing, fall back to media generation rather than guessing a
path — never invent a relPath that apply did not return.
常见问题
什么是“OD Library”?
它是存放你的文件(图片、logo 等)的地方,方便你随时复用。
工具怎么知道该选哪个文件?
它会用你输入的词去搜索,并与文件信息进行比对。如果有多个结果,它会尝试根据尺寸或文件名挑出最合适的一个。
如果工具找不到我要的东西怎么办?
它不会凭空编造文件。如果什么也没找到,它会告诉你,或者尝试生成一个新的素材,而不会使用一个不存在的链接。
详情
作者的原始描述
Search the OD Library (the global asset registry) and apply matching assets into the current project mid-task. Use when the user asks to reuse an image they captured/uploaded earlier, "pull a logo/screenshot from my library", or to find and drop a stored asset into the page being built.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1197
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …