← 返回 Skills 市场
154
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install image-collect
功能描述
This skill extracts knowledge from an image and saves it locally.
使用说明 (SKILL.md)
Image Collect Skill
This skill extracts knowledge from an image and saves it locally.
When to use
Use this skill when:
- User sends an image
- User asks to save image as knowledge
- Image needs OCR or content understanding
What it does
- Download image
- Extract text and meaning
- Generate summary
- Save image locally
- Append knowledge to JSON database
Command
Run:
node dist/index.js "\x3Cimage_url>"
Example:
node dist/index.js "https://example.com/image.png" node dist/index.js "data:image/png;base64,xxxx" node dist/index.js "/tmp/image.png"
Output
Returns extracted knowledge including:
- summary
- keywords
- text
- saved image path
安全使用建议
This skill's behavior appears coherent with its description, but take precautions before installing or running it:
- Installation: The package.json lists dependencies (axios, sharp, tesseract.js) but no install steps are provided. Ask the author for an install spec or be prepared to run npm/pnpm install in a safe environment. Sharp is a native module and often requires build tools or prebuilt binaries.
- Files written: The skill will create ~/openclaw-skill-data/image-knowledge-assets/ and ~/openclaw-skill-data/image-knowledge.json (or a literal '~/openclaw-skill-data' if HOME is unset). If you run it, expect persistent files in your home directory; run in a sandbox or change the code/path if you prefer.
- Remote downloads: The skill will fetch any URL you pass. Do not provide untrusted or internal-network URLs (it could fetch internal endpoints if you or an agent supplies such URLs). If an agent can call it autonomously, ensure it only runs on user-supplied images.
- Tesseract language data and runtime: The code calls tesseract.js; make sure required language models (e.g., chi_sim) are available or that tesseract.js is configured correctly.
- Recommendation: request or supply a proper install spec (or containerized packaging), test in an isolated environment, and verify where files are written before granting it regular use.
功能分析
Type: OpenClaw Skill
Name: image-collect
Version: 1.0.0
The skill is classified as suspicious due to a significant local file read vulnerability in `dist/index.js`. The `saveImage` function uses `fs.copyFileSync` on the user-provided input path without any validation or sandboxing, allowing the agent (or a prompt injection attack) to copy sensitive files (e.g., SSH keys, credentials) from the host into the skill's data directory. Additionally, the use of `axios` to fetch remote images without URL filtering introduces a Server-Side Request Forgery (SSRF) risk.
能力评估
Purpose & Capability
Name/description (extract knowledge from images and save locally) align with the included code and README. Dependencies (axios, sharp, tesseract.js) are appropriate for downloading, preprocessing, and OCR.
Instruction Scope
SKILL.md directs running node dist/index.js with a URL/Base64/local path. The runtime code implements only the declared behaviors: download/accept image, preprocess, OCR, generate summary/keywords, and append a JSON record. It reads process.env.HOME to determine storage location and writes image and JSON files — consistent with 'save locally'.
Install Mechanism
There is no install spec despite package.json and code importing third-party modules (axios, sharp, tesseract.js). Sharp is a native module that typically requires compilation/binaries; tesseract.js may need language data. Without an install step the provided dist/index.js will likely fail in most runtimes. This is an incoherence between delivered files and expected runtime environment.
Credentials
The skill requests no secrets or extra environment variables. It only references HOME to place files, which is proportionate to its purpose. No unrelated credentials or config paths are requested.
Persistence & Privilege
The skill writes persistent data to a directory under the user's home (~/openclaw-skill-data/). That is consistent with its purpose (saving images and a JSON DB). It does not attempt to modify other skills or global agent settings. always:false (no forced inclusion).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install image-collect - 安装完成后,直接呼叫该 Skill 的名称或使用
/image-collect触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of image-collect skill.
- Extracts knowledge from images using OCR and content analysis.
- Saves the original image locally.
- Generates a summary, keywords, and extracted text from the image.
- Appends the extracted knowledge to a JSON database for future reference.
- Supports various image sources: URLs, base64 strings, and local file paths.
元数据
常见问题
image-collect 是什么?
This skill extracts knowledge from an image and saves it locally. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。
如何安装 image-collect?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install image-collect」即可一键安装,无需额外配置。
image-collect 是免费的吗?
是的,image-collect 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
image-collect 支持哪些平台?
image-collect 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 image-collect?
由 bondli(@bondli)开发并维护,当前版本 v1.0.0。
推荐 Skills