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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install smart-image-loader或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install smart-image-loader⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/smart-image-loader/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: smart-image-loader description: 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. ---
When a user asks to display an image:
- URLs start with http:// or https:// - Local paths are file paths in the workspace
- Download the image to a temporary location using the Python script - Use read tool to display the image - Clean up the temporary file afterward
- Verify the file exists (relative to workspace or absolute path) - Use read tool directly to display the image
User says: "Show me this image: https://example.com/photo.jpg"
python3 scripts/smart_image_loader.py https://example.com/photo.jpg/tmp/dir/photo.jpgread tool on: /tmp/dir/photo.jpgUser says: "Display ./images/logo.png"
python3 scripts/smart_image_loader.py ./images/logo.pngread tool on: /home/node/clawd/images/logo.png (absolute path)python3 scripts/smart_image_loader.py <image_path_or_url>
| Argument | Description | |----------|-------------| | image_path_or_url | Either a local file path (relative or absolute) or a URL |
The script returns a JSON-like output with:
Status: SUCCESS or FAILEDType: url or localFile Path: Local path for the read toolMessage: Status descriptionCleanup Needed: true if temp file should be deleted# URL example
python3 scripts/smart_image_loader.py https://example.com/image.jpg
# Output: Downloads to /tmp/xyz/image.jpg, use read tool on that path
# Local file example (relative)
python3 scripts/smart_image_loader.py ./photos/vacation.jpg
# Output: File found at /home/node/clawd/photos/vacation.jpg
# Local file example (absolute)
python3 scripts/smart_image_loader.py /home/node/clawd/downloads/graphic.png
# Output: File found at /home/node/clawd/downloads/graphic.png
User asks to display an image
|
v
Is it a URL? (http:// or https://)
|
+----+---------------------------+
| |
YES NO
| |
v v
Download to temp Does file exist?
| |
v +-----+-----+
Use read tool | |
| YES NO
v |
Cleanup temp file v
Use read tool
|
v
Done (no cleanup)
exec with rm for cleanup| Scenario | Action | |----------|--------| | URL download fails | Report error to user | | Local file not found | Report error to user | | Invalid input | Show usage instructions |
安装 smart-image-loader 后,可以对 AI 说这些话来触发它
Help me get started with smart-image-loader
Explains what smart-image-loader does, walks through the setup, and runs a quick demo based on your current project
Use smart-image-loader to smart image loader that handles both URLs and local files, automati...
Invokes smart-image-loader with the right parameters and returns the result directly in the conversation
What can I do with smart-image-loader in my marketing & growth workflow?
Lists the top use cases for smart-image-loader, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/smart-image-loader/ 目录(个人级,所有项目可用),或 .claude/skills/smart-image-loader/(项目级)。重启 AI 客户端后,用 /smart-image-loader 主动调用,或让 AI 根据上下文自动发现并使用。
smart-image-loader 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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.
smart-image-loader 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using smart-image-loader
Identifies repetitive steps in your workflow and sets up smart-image-loader to handle them automatically