What problem does it solve?
After a web search produces candidate image URLs, fetching them reliably requires handling redirects, non-image responses, and slot-to-URL matching. This Skill performs that download step deterministically with Python HTTP APIs instead of sandboxed shell curl, saving validated images into the configured project tree.
Core Features & Use Cases
- Slot-based image fetching: Reads normalized media slots and search results from stdin, scores candidate URLs against slot subjects and keywords, and downloads the best match per slot.
- Content validation: Verifies responses via magic bytes and Content-Type for PNG, JPEG, GIF, and WebP before writing files named by slot_id.
- Structured reporting: Emits a JSON summary plus IMAGE_READY records for each saved file and IMAGE_DOWNLOAD_INCOMPLETE when slots remain unfilled.
- Use Case: As part of an AwesomeWebpageMetaSkill workflow, pipe search results containing image URLs into this downloader to populate a project's assets/images directory with validated local copies.
Quick Start
Run this skill with the output directory and piped search results to download the candidate images into your project's assets folder.