{
  "schemaVersion": "1.0",
  "item": {
    "slug": "smart-image-loader",
    "name": "smart-image-loader",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/tingwei1123/smart-image-loader",
    "canonicalUrl": "https://clawhub.ai/tingwei1123/smart-image-loader",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/smart-image-loader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=smart-image-loader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/smart_image_loader.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/smart-image-loader"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/smart-image-loader",
    "agentPageUrl": "https://openagent3.xyz/skills/smart-image-loader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/smart-image-loader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/smart-image-loader/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Quick Start",
        "body": "When a user asks to display an image:\n\nCheck if input is a URL or local path\n\nURLs start with http:// or https://\nLocal paths are file paths in the workspace\n\n\n\nFor URLs:\n\nDownload the image to a temporary location using the Python script\nUse read tool to display the image\nClean up the temporary file afterward\n\n\n\nFor local files:\n\nVerify the file exists (relative to workspace or absolute path)\nUse read tool directly to display the image"
      },
      {
        "title": "Usage Examples",
        "body": "User says: \"Show me this image: https://example.com/photo.jpg\"\n\nRun: python3 scripts/smart_image_loader.py https://example.com/photo.jpg\nScript downloads to temp: /tmp/dir/photo.jpg\nUse read tool on: /tmp/dir/photo.jpg\nClean up: Delete the temp file\n\nUser says: \"Display ./images/logo.png\"\n\nRun: python3 scripts/smart_image_loader.py ./images/logo.png\nScript verifies file exists\nUse read tool on: /home/node/clawd/images/logo.png (absolute path)"
      },
      {
        "title": "Script Usage",
        "body": "python3 scripts/smart_image_loader.py <image_path_or_url>"
      },
      {
        "title": "Arguments",
        "body": "ArgumentDescriptionimage_path_or_urlEither a local file path (relative or absolute) or a URL"
      },
      {
        "title": "Output Format",
        "body": "The script returns a JSON-like output with:\n\nStatus: SUCCESS or FAILED\nType: url or local\nFile Path: Local path for the read tool\nMessage: Status description\nCleanup Needed: true if temp file should be deleted"
      },
      {
        "title": "Examples",
        "body": "# URL example\npython3 scripts/smart_image_loader.py https://example.com/image.jpg\n# Output: Downloads to /tmp/xyz/image.jpg, use read tool on that path\n\n# Local file example (relative)\npython3 scripts/smart_image_loader.py ./photos/vacation.jpg\n# Output: File found at /home/node/clawd/photos/vacation.jpg\n\n# Local file example (absolute)\npython3 scripts/smart_image_loader.py /home/node/clawd/downloads/graphic.png\n# Output: File found at /home/node/clawd/downloads/graphic.png"
      },
      {
        "title": "Workflow Decision Tree",
        "body": "User asks to display an image\n         |\n         v\n    Is it a URL? (http:// or https://)\n         |\n    +----+---------------------------+\n    |                                 |\n   YES                               NO\n    |                                 |\n    v                                 v\nDownload to temp              Does file exist?\n    |                                 |\n    v                          +-----+-----+\nUse read tool                 |           |\n    |                        YES          NO\n    v                              |\nCleanup temp file              v\n                           Use read tool\n                               |\n                               v\n                          Done (no cleanup)"
      },
      {
        "title": "Cleanup Guidelines",
        "body": "URL downloads: Always clean up temporary files after displaying\nLocal files: No cleanup needed (files remain in workspace)\nUse exec with rm <file_path> for cleanup"
      },
      {
        "title": "Image Formats Supported",
        "body": "JPEG (.jpg, .jpeg)\nPNG (.png)\nGIF (.gif)\nWebP (.webp)\nBMP (.bmp)"
      },
      {
        "title": "Error Handling",
        "body": "ScenarioActionURL download failsReport error to userLocal file not foundReport error to userInvalid inputShow usage instructions"
      }
    ],
    "body": "Smart Image Loader\nQuick Start\n\nWhen a user asks to display an image:\n\nCheck if input is a URL or local path\n\nURLs start with http:// or https://\nLocal paths are file paths in the workspace\n\nFor URLs:\n\nDownload the image to a temporary location using the Python script\nUse read tool to display the image\nClean up the temporary file afterward\n\nFor local files:\n\nVerify the file exists (relative to workspace or absolute path)\nUse read tool directly to display the image\nUsage Examples\n\nUser says: \"Show me this image: https://example.com/photo.jpg\"\n\nRun: python3 scripts/smart_image_loader.py https://example.com/photo.jpg\nScript downloads to temp: /tmp/dir/photo.jpg\nUse read tool on: /tmp/dir/photo.jpg\nClean up: Delete the temp file\n\nUser says: \"Display ./images/logo.png\"\n\nRun: python3 scripts/smart_image_loader.py ./images/logo.png\nScript verifies file exists\nUse read tool on: /home/node/clawd/images/logo.png (absolute path)\nScript Usage\npython3 scripts/smart_image_loader.py <image_path_or_url>\n\nArguments\nArgument\tDescription\nimage_path_or_url\tEither a local file path (relative or absolute) or a URL\nOutput Format\n\nThe script returns a JSON-like output with:\n\nStatus: SUCCESS or FAILED\nType: url or local\nFile Path: Local path for the read tool\nMessage: Status description\nCleanup Needed: true if temp file should be deleted\nExamples\n# URL example\npython3 scripts/smart_image_loader.py https://example.com/image.jpg\n# Output: Downloads to /tmp/xyz/image.jpg, use read tool on that path\n\n# Local file example (relative)\npython3 scripts/smart_image_loader.py ./photos/vacation.jpg\n# Output: File found at /home/node/clawd/photos/vacation.jpg\n\n# Local file example (absolute)\npython3 scripts/smart_image_loader.py /home/node/clawd/downloads/graphic.png\n# Output: File found at /home/node/clawd/downloads/graphic.png\n\nWorkflow Decision Tree\nUser asks to display an image\n         |\n         v\n    Is it a URL? (http:// or https://)\n         |\n    +----+---------------------------+\n    |                                 |\n   YES                               NO\n    |                                 |\n    v                                 v\nDownload to temp              Does file exist?\n    |                                 |\n    v                          +-----+-----+\nUse read tool                 |           |\n    |                        YES          NO\n    v                              |\nCleanup temp file              v\n                           Use read tool\n                               |\n                               v\n                          Done (no cleanup)\n\nCleanup Guidelines\nURL downloads: Always clean up temporary files after displaying\nLocal files: No cleanup needed (files remain in workspace)\nUse exec with rm <file_path> for cleanup\nImage Formats Supported\nJPEG (.jpg, .jpeg)\nPNG (.png)\nGIF (.gif)\nWebP (.webp)\nBMP (.bmp)\nError Handling\nScenario\tAction\nURL download fails\tReport error to user\nLocal file not found\tReport error to user\nInvalid input\tShow usage instructions"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tingwei1123/smart-image-loader",
    "publisherUrl": "https://clawhub.ai/tingwei1123/smart-image-loader",
    "owner": "tingwei1123",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/smart-image-loader",
    "downloadUrl": "https://openagent3.xyz/downloads/smart-image-loader",
    "agentUrl": "https://openagent3.xyz/skills/smart-image-loader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/smart-image-loader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/smart-image-loader/agent.md"
  }
}