← Back to Skills Marketplace
tingwei1123

smart-image-loader

by tingwei1123 · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
1935
Downloads
1
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install 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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install smart-image-loader
  3. After installation, invoke the skill by name or use /smart-image-loader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug smart-image-loader
Version 1.0.0
License
All-time Installs 5
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 1935 downloads so far.

How do I install smart-image-loader?

Run "/install smart-image-loader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is smart-image-loader free?

Yes, smart-image-loader is completely free (open-source). You can download, install and use it at no cost.

Which platforms does smart-image-loader support?

smart-image-loader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created smart-image-loader?

It is built and maintained by tingwei1123 (@tingwei1123); the current version is v1.0.0.

💬 Comments