跳到正文
Skillpedia
技术文档101k · #1197

library-curator

它能做什么

这个工具会在你的个人素材库中搜索图片和其他文件,方便你在项目中复用。它能找到你之前上传或创建过的内容,无需你重新上传。

适用场景

  • ✓当你要求使用之前上传过的图片时。
  • ✓当你想使用已保存的 logo 或截图时。
  • ✓当你更希望用素材库里的文件,而不是新文件时。

技能链接

https://github.com/nexu-io/open-design/blob/main/skills/library-curator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nexu-io/open-design/blob/main/skills/library-curator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Search with a tight query for the kind you need.
  2. Pick the best result by dimensions / title / source.
  3. Apply it to get a project-relative path.
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能