{ "skill_name": "media", "evals": [ { "id": 1, "prompt": "Our Next.js marketing page loads slowly. The hero is `public/hero.png` (4000x2500, 6.8 MB) rendered with a plain `` inside a container that is at most 1200px wide. There's also a `public/logo.png` (2000x2000) shown at 40x40 in the header; we have `logo.svg` in the design repo. Can you optimize these?", "expected_output": "Should inspect display size and placement before choosing formats. Should use the project's existing image pipeline (next/image) instead of a raw img tag for responsive sizing. Should resize/compress the hero for the actual display width and pixel densities, writing optimized output to separate files while preserving the original. Should not lazy-load the hero because it is critical above-the-fold content. Should reserve layout space (width/height or aspect ratio) and provide meaningful alt text. Should reuse the SVG for the logo. Should report changed assets and measured size savings, and list rendering checks not performed.", "assertions": [ "Uses the existing Next.js image component or pipeline rather than adding a new dependency", "Sizes the hero for the ~1200px display width and relevant pixel densities", "Preserves the original hero and writes optimized output separately", "Removes lazy loading or deprioritization from the above-the-fold hero", "Reserves layout space via dimensions or aspect ratio", "Recommends reusing the SVG for the logo", "Reports measured size savings or states that sizes were not measured", "Lists rendering or compatibility checks that were not performed" ], "files": [] }, { "id": 2, "prompt": "When I share our blog post links on LinkedIn and Slack there's no preview image. The page head currently has only `` and `<meta name=\"description\">`. We have a 1200x630 banner at https://cdn.example.com/blog/banner.jpg, but the CDN bucket requires a signed cookie. Set up the previews.", "expected_output": "Should add Open Graph metadata including the required og:title, og:type, og:url, and og:image, plus og:image:width, og:image:height and og:image:alt. Should use the project's existing metadata mechanism. Should flag that the image URL must be accessible to the intended consumer, so a CDN requiring a signed cookie will block crawlers and must be addressed. Should report checks not performed, such as validating the preview with the platforms.", "assertions": [ "Adds og:title, og:type, og:url, and og:image", "Adds og:image:width 1200 and og:image:height 630", "Adds og:image:alt with meaningful alternative text", "Flags that the signed-cookie CDN will prevent link-preview crawlers from fetching the image", "Uses an absolute image URL", "States that preview validation on the target platforms was not performed or how to perform it" ], "files": [] }, { "id": 3, "prompt": "Grab a screenshot of our admin dashboard for the docs page \"Managing users\". Just use the one from my laptop I took yesterday, it shows the real customer list with emails so people see what it looks like. Also add a small decorative divider image between sections.", "expected_output": "Should require removing sensitive data (real customer names and emails) before using the screenshot, preferring a capture of the real application with sanitized or seeded data. Should check readability of screenshot text at the final display size. Should give the screenshot meaningful alt text and give the decorative divider empty alt text. Should not publish the screenshot with real customer emails as-is.", "assertions": [ "Refuses or declines to use the screenshot as-is because it contains real customer emails", "Recommends removing sensitive data or capturing with non-sensitive data", "Mentions checking screenshot text readability at the final display size", "Gives the informative screenshot meaningful alt text", "Gives the decorative divider empty alt text", "Does not keyword-stuff the alt text" ], "files": [] }, { "id": 4, "prompt": "Generate a brand-new AI illustration of a robot holding our logo for the homepage hero. Make it look photorealistic.", "expected_output": "Should recognize that generating new AI images is out of scope for this skill, which integrates, optimizes, and prepares existing assets with existing design tools. Should state this clearly and not claim to have generated an image. May offer to integrate and optimize the illustration once the user supplies it, including sizing, format, loading priority, and alt text.", "assertions": [ "States that generating new AI images is out of scope for this skill", "Does not claim to have generated an image", "Offers to integrate or optimize the image once it is supplied" ], "files": [] }, { "id": 5, "prompt": "Add our 90-second product demo (demo.mov, 400 MB, with narration) to the landing page. It should start playing automatically when the page loads.", "expected_output": "Transcodes into WebM (AV1 and Opus) plus an MP4 (H.264 and AAC) fallback sized for the display, or uses the project's video service or adaptive streaming for a file this large. Does not autoplay with sound: either autoplays muted with playsinline and visible controls, or starts on user action, and explains the browser autoplay rule. Adds a poster, intrinsic dimensions, appropriate preload, and WebVTT captions for the narration. Keeps the original file and reports size savings and untested clients.", "assertions": [ "Provides a compressed modern format with a broadly supported fallback, or adaptive streaming", "Does not autoplay the video with sound", "Adds playsinline and controls when autoplaying muted", "Adds captions for the narration", "Adds a poster and reserves layout space", "Reports size savings and checks not performed" ], "files": [] }, { "id": 6, "prompt": "We publish a weekly podcast episode on our site as an MP3 link. Make it a proper player on the episode page.", "expected_output": "Uses native audio controls or an accessible player, does not autoplay, uses preload none or metadata, offers suitable formats, and provides a transcript for the audio-only content, including relevant non-speech sounds. Reports what was not verified, such as playback in specific browsers.", "assertions": [ "Uses accessible playback controls", "Does not autoplay the audio", "Provides or requests a transcript for the episode", "Uses a lazy preload setting" ], "files": [] } ] }