{
"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 `