{ "skill_name": "image", "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": [] } ] }