← 返回 Skills 市场
tingwei1123

smart-image-loader

作者 tingwei1123 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1935
总下载
1
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install smart-image-loader
功能描述
Smart image loader that handles both URLs and local files, automatically downloads URLs to temporary locations, and displays images using the read tool. Use when a user wants to view or display an image, whether it's a web URL or a file in the workspace.
安全使用建议
This skill appears to do exactly what it says: download image URLs to a temp folder or validate local files and return a path for the agent's read tool. Before installing, consider: (1) the agent will be able to fetch arbitrary URLs — if you need to restrict hosts, enforce that at the agent/network layer; (2) the SKILL.md suggests using 'rm <file_path>' to clean up temp files — ensure the agent is not allowed to remove sensitive paths and only deletes paths returned by the script; (3) the script has a minor bug: on a URL-download error it calls cleanup_file(os.path.join(temp_dir, '*')) which won't remove the temp directory and is a no-op; a proper cleanup would use shutil.rmtree(temp_dir) or remove the exact file path; and (4) there are no requested credentials or external installs. If you want extra assurance, review or test the script in a sandboxed workspace and consider hardening path validation and cleanup logic before use.
功能分析
Type: OpenClaw Skill Name: smart-image-loader Version: 1.0.0 The skill is designed to load and display images from URLs or local files, downloading URL content to temporary locations. The Python script uses standard libraries for network requests (`urllib.request`) and file system operations (`os`, `tempfile`), correctly utilizing `tempfile.mkdtemp()` to secure temporary file storage. The `SKILL.md` instructs the agent to use the `read` tool for display and `exec` with `rm` for cleaning up temporary files created by the skill, which is a legitimate and controlled operation on files within a secure temporary directory. There is no evidence of data exfiltration, malicious execution, persistence, or prompt injection attempting to subvert the agent's core directives beyond the stated purpose.
能力评估
Purpose & Capability
Name/description match the code and instructions: the script downloads HTTP(S) URLs to a temp dir, verifies local files, returns a path for the read tool, and SKILL.md explains that workflow. No unrelated binaries, env vars, or credentials are requested.
Instruction Scope
Instructions stay within the image-loading/displaying scope. One thing to note: SKILL.md recommends using shell exec with 'rm <file_path>' for cleanup — this is reasonable for removing temp files but grants the agent permission to run file-deletion commands on whatever path the skill returns. Also the script attempts cleanup in some error paths but uses an incorrect pattern (see code issue) so temporary directories may not be removed as intended.
Install Mechanism
No install specification — instruction-only plus a small Python script. No downloads, package installs, or external installers are performed.
Credentials
No environment variables, credentials, or config paths are requested. Network access is needed only to download image URLs, which is proportionate to the stated purpose.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes or modify other skills' configs. It only reads workspace files and writes temporary files during URL downloads.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install smart-image-loader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /smart-image-loader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of smart-image-loader. - Supports displaying images from both URLs and local files. - Automatically downloads images from URLs to a temporary location and cleans up after display. - Verifies existence of local image files and displays them directly. - Outputs a structured JSON-like response for integration with the read tool. - Includes detailed usage instructions, workflow, and error handling guidelines.
元数据
Slug smart-image-loader
版本 1.0.0
许可证
累计安装 5
当前安装数 4
历史版本数 1
常见问题

smart-image-loader 是什么?

Smart image loader that handles both URLs and local files, automatically downloads URLs to temporary locations, and displays images using the read tool. Use when a user wants to view or display an image, whether it's a web URL or a file in the workspace. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1935 次。

如何安装 smart-image-loader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-image-loader」即可一键安装,无需额外配置。

smart-image-loader 是免费的吗?

是的,smart-image-loader 完全免费(开源免费),可自由下载、安装和使用。

smart-image-loader 支持哪些平台?

smart-image-loader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 smart-image-loader?

由 tingwei1123(@tingwei1123)开发并维护,当前版本 v1.0.0。

💬 留言讨论