{
  "schemaVersion": "1.0",
  "item": {
    "slug": "skill-listing-image-optimizer",
    "name": "Amazon Listing Image Optimizer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Zero2Ai-hub/skill-listing-image-optimizer",
    "canonicalUrl": "https://clawhub.ai/Zero2Ai-hub/skill-listing-image-optimizer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/skill-listing-image-optimizer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=skill-listing-image-optimizer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/audit.js",
      "scripts/pad_to_square.py",
      "scripts/push_images.js"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/skill-listing-image-optimizer"
    },
    "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/skill-listing-image-optimizer",
    "agentPageUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Amazon Listing Image Optimizer",
        "body": "Automatically fix non-square product images on Amazon listings — download, pad to 2000×2000 white background, and push back to live listings via SP-API. No manual Seller Central work required."
      },
      {
        "title": "Why This Exists",
        "body": "Amazon penalizes listings with non-square images (aspect ratio != 1:1). Common offenders:\n\nLandscape 16:9 or 4:3 product shots\nPortrait hero images\nTiny low-resolution images\n\nThis skill detects, fixes, and re-uploads — all automatically."
      },
      {
        "title": "1. Install dependencies",
        "body": "pip3 install Pillow\nnpm install amazon-sp-api"
      },
      {
        "title": "2. Create SP-API credentials file",
        "body": "{\n  \"lwaClientId\": \"amzn1.application-oa2-client.YOUR_CLIENT_ID\",\n  \"lwaClientSecret\": \"YOUR_CLIENT_SECRET\",\n  \"refreshToken\": \"Atzr|YOUR_REFRESH_TOKEN\",\n  \"region\": \"eu\",\n  \"marketplace\": \"YOUR_MARKETPLACE_ID\",\n  \"sellerId\": \"YOUR_SELLER_ID\"\n}\n\nSet AMAZON_SPAPI_PATH env var to point to it (default: ./amazon-sp-api.json)."
      },
      {
        "title": "audit.js — Detect non-square images",
        "body": "node scripts/audit.js --sku \"MY-SKU\"          # audit single SKU\nnode scripts/audit.js --all                    # audit all FBA SKUs\nnode scripts/audit.js --all --out report.json  # save report\n\nOutputs: list of non-conforming image slots with dimensions."
      },
      {
        "title": "pad_to_square.py — Fix images locally",
        "body": "# After audit.js downloads originals to ./image_fix/\npython3 scripts/pad_to_square.py ./image_fix/\n\nPads all *_orig.jpg files to 2000×2000 white background, outputs *_fixed.jpg."
      },
      {
        "title": "push_images.js — Upload fixed images to Amazon",
        "body": "node scripts/push_images.js --dir ./image_fix/ --sku \"MY-SKU\" --slots PT03,PT05\n\nSpins up a local HTTP server on a public port, submits image URLs to SP-API, then auto-kills the server after 15 minutes (time for Amazon to crawl)."
      },
      {
        "title": "fix_title.js — Patch listing title",
        "body": "node scripts/fix_title.js --sku \"MY-SKU\" --title \"New optimized title here\""
      },
      {
        "title": "Full Pipeline (one command)",
        "body": "node scripts/audit.js --all --out report.json\npython3 scripts/pad_to_square.py ./image_fix/\nnode scripts/push_images.js --dir ./image_fix/ --from-report report.json"
      },
      {
        "title": "Image Slot Reference",
        "body": "SlotAttributeDescriptionMAINmain_product_image_locatorHero image (must be white bg)PT01–PT08other_product_image_locator_1 … _8Secondary images"
      },
      {
        "title": "Notes",
        "body": "Amazon processes image updates within 15–30 mins of ACCEPTED response\nVPS must have a publicly accessible IP/port for the temp HTTP server (or use S3/Cloudflare)\nPIL uses LANCZOS resampling for best quality when resizing\nKeep images under 10MB; target 2000×2000px @ 95% JPEG quality"
      },
      {
        "title": "Related",
        "body": "skill-amazon-spapi — Core SP-API auth & orders"
      }
    ],
    "body": "Amazon Listing Image Optimizer\n\nAutomatically fix non-square product images on Amazon listings — download, pad to 2000×2000 white background, and push back to live listings via SP-API. No manual Seller Central work required.\n\nWhy This Exists\n\nAmazon penalizes listings with non-square images (aspect ratio != 1:1). Common offenders:\n\nLandscape 16:9 or 4:3 product shots\nPortrait hero images\nTiny low-resolution images\n\nThis skill detects, fixes, and re-uploads — all automatically.\n\nSetup\n1. Install dependencies\npip3 install Pillow\nnpm install amazon-sp-api\n\n2. Create SP-API credentials file\n{\n  \"lwaClientId\": \"amzn1.application-oa2-client.YOUR_CLIENT_ID\",\n  \"lwaClientSecret\": \"YOUR_CLIENT_SECRET\",\n  \"refreshToken\": \"Atzr|YOUR_REFRESH_TOKEN\",\n  \"region\": \"eu\",\n  \"marketplace\": \"YOUR_MARKETPLACE_ID\",\n  \"sellerId\": \"YOUR_SELLER_ID\"\n}\n\n\nSet AMAZON_SPAPI_PATH env var to point to it (default: ./amazon-sp-api.json).\n\nScripts\naudit.js — Detect non-square images\nnode scripts/audit.js --sku \"MY-SKU\"          # audit single SKU\nnode scripts/audit.js --all                    # audit all FBA SKUs\nnode scripts/audit.js --all --out report.json  # save report\n\n\nOutputs: list of non-conforming image slots with dimensions.\n\npad_to_square.py — Fix images locally\n# After audit.js downloads originals to ./image_fix/\npython3 scripts/pad_to_square.py ./image_fix/\n\n\nPads all *_orig.jpg files to 2000×2000 white background, outputs *_fixed.jpg.\n\npush_images.js — Upload fixed images to Amazon\nnode scripts/push_images.js --dir ./image_fix/ --sku \"MY-SKU\" --slots PT03,PT05\n\n\nSpins up a local HTTP server on a public port, submits image URLs to SP-API, then auto-kills the server after 15 minutes (time for Amazon to crawl).\n\nfix_title.js — Patch listing title\nnode scripts/fix_title.js --sku \"MY-SKU\" --title \"New optimized title here\"\n\nFull Pipeline (one command)\nnode scripts/audit.js --all --out report.json\npython3 scripts/pad_to_square.py ./image_fix/\nnode scripts/push_images.js --dir ./image_fix/ --from-report report.json\n\nImage Slot Reference\nSlot\tAttribute\tDescription\nMAIN\tmain_product_image_locator\tHero image (must be white bg)\nPT01–PT08\tother_product_image_locator_1 … _8\tSecondary images\nNotes\nAmazon processes image updates within 15–30 mins of ACCEPTED response\nVPS must have a publicly accessible IP/port for the temp HTTP server (or use S3/Cloudflare)\nPIL uses LANCZOS resampling for best quality when resizing\nKeep images under 10MB; target 2000×2000px @ 95% JPEG quality\nRelated\nskill-amazon-spapi — Core SP-API auth & orders"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Zero2Ai-hub/skill-listing-image-optimizer",
    "publisherUrl": "https://clawhub.ai/Zero2Ai-hub/skill-listing-image-optimizer",
    "owner": "Zero2Ai-hub",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer",
    "downloadUrl": "https://openagent3.xyz/downloads/skill-listing-image-optimizer",
    "agentUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/skill-listing-image-optimizer/agent.md"
  }
}