[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JDS500WBXDJ73Q8WFZEQSW":3,"skill-same:01M6JDS500WBXDJ73Q8WFZEQSW":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M6JDS500WBXDJ73Q8WFZEQSW","html-to-image-design-delivery",null,"Convert HTML design artifacts to image deliverables (PNG) when image generation APIs are unavailable. Covers magazine covers, posters, social graphics, and any fixed-size visual asset built as HTML and exported via Playwright screenshot.","S3YED\u002Fappie-kit","S3YED","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62743867?v=4","01M6JBKBRRVP6KMS0VWZ27T3R6","01M6JBKBX0KG30284PW1DBYJT1",14,"MIT","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fhtml-to-image-design-delivery\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"html","html to image design delivery","delivery","design","image","artifacts","screenshot","Image Generation","convert","png","coverage","playwright","social","graphics","visual","poster","as","asset","deliverables","size","2026-11-10 10:12:30",false,"---\nname: html-to-image-design-delivery\ndescription: Convert HTML design artifacts to image deliverables (PNG) when image generation APIs are unavailable. Covers magazine covers, posters, social graphics, and any fixed-size visual asset built as HTML and exported via Playwright screenshot.\nversion: 1.0.0\nauthor: agent\nmetadata:\n  hermes:\n    tags: [design, html, screenshot, playwright, image-delivery, coverage, magazine, poster]\n    related_skills: [claude-design, popular-web-designs, ckm:design]\n---\n\n# HTML-to-Image Design Delivery\n\nUse this skill when the user asks for a **visual design deliverable** (magazine cover, poster, social graphic, flyer, quote card, announcement visual) and image generation tools (FAL, Higgsfield, etc.) are unavailable, unconfigured, or inappropriate for the task.\n\nThe technique: build the design as a self-contained HTML page, then screenshot it with Playwright to deliver a PNG image to the user.\n\n## When To Use\n\n- User sends a photo (selfie, portrait, product shot) and asks \"make this a magazine cover\" \u002F \"turn this into a poster\" \u002F \"make it look like [Forbes\u002FTime\u002FVogue\u002Fetc.]\"\n- Any fixed-size editorial layout with text overlays on a photo\n- Branded quote cards, announcements, social media graphics\n- Fixed-size banners where HTML precision is easier than prompt-only image gen\n- Image gen is not configured (FAL_KEY missing, no Higgsfield account, etc.)\n\n## When NOT To Use\n\n- The user wants a generic text-to-image (no specific brand layout) — let them know image gen is unconfigured first\n- The deliverable needs to be interactive or animated (use plain HTML delivery instead)\n- A video or reel is needed (use branded-reel-pipeline or short-form-video-production)\n\n## The Workflow\n\n### 1. Build the HTML artifact\n\nCreate a self-contained HTML file with:\n\n- **User photo embedded as base64 data URI** — encode the image first:\n  ```python\n  import base64\n  with open('photo.jpg', 'rb') as f:\n      b64 = base64.b64encode(f.read()).decode()\n  ```\n  Then in HTML: `\u003Cimg src=\"data:image\u002Fjpeg;base64,{b64}\">`\n\n- **CSS overlays and gradients** — use `position: absolute` overlay divs with background gradients (e.g., `linear-gradient(180deg, rgba(0,0,0,0.55) 0%, ... rgba(0,0,0,0.4) 100%)`) so text stays readable over the photo.\n\n- **Typographic treatment** — use Google Fonts for brand-relevant typography (Playfair Display for editorial\u002FForbes-style serif, Inter for modern sans). Import via `@import url(...)` in CSS.\n\n- **Fixed dimensions** — wrap everything in a container div with exact pixel dimensions matching the intended output (e.g., `width: 720px; height: 1280px` for portrait magazine covers).\n\n- **All visual elements as CSS** — mastheads, accent bars, cover lines, barcodes, diamonds, price tags, taglines. No images needed except the user photo.\n\n### 2. Serve locally (required for base64 images)\n\nBrowser security blocks file:\u002F\u002F protocol from loading base64 images in some environments. Always serve via HTTP:\n\n```bash\npython3 -m http.server \u003Cport> --bind 127.0.0.1\n```\n\nRun this in the directory containing your HTML file.\n\n### 3. Screenshot with Playwright\n\nInstall Playwright in a temp directory:\n\n```bash\nmkdir -p \u002Ftmp\u002Fscreenshot && cd \u002Ftmp\u002Fscreenshot\nnpm init -y && npm install playwright\n```\n\nCreate a screenshot script:\n\n```js\nconst { chromium } = require('playwright');\n(async () => {\n  const b = await chromium.launch();\n  const p = await b.newPage({ viewport: { width: 720, height: 1280 } });\n  await p.goto('http:\u002F\u002F127.0.0.1:\u003Cport>\u002F\u003Cfile>.html', {\n    waitUntil: 'networkidle',\n    timeout: 15000\n  });\n  await p.screenshot({ path: '\u002Foutput\u002Fpath.png', fullPage: true });\n  await b.close();\n  console.log('DONE');\n})();\n```\n\nRun it: `node screenshot.js`\n\n### 4. Deliver the image\n\nSend the resulting PNG to the user via `MEDIA:\u002Fabsolute\u002Fpath\u002Fto\u002Foutput.png`.\n\n### 5. Clean up\n\n- Kill the HTTP server\n- Remove temp npm install directory\n\n## Magazine Cover Templates\n\n### Forbes-style layout\n- **Masthead**: Playfair Display, 900 weight, ~72px, letter-spacing 14px, white with text-shadow\n- **Subhead**: \"The Creator Economy Issue\" or similar, Inter 300, 11px, letter-spacing 6px\n- **Red accent bar**: 80px wide, 2px height, #e60000\n- **Diamond shape**: 14x14px rotated 45deg with 2px white border\n- **Top cover line**: \"EXCLUSIVE · [MONTH YEAR]\" in small caps\n- **Main headline**: Inter 900, 58px, white, -1px letter-spacing — punchy, aspirational\n- **Subheadline**: Inter 300, 22px, semi-transparent white\n- **Cover lines**: 3-4 bullet-style lines on bottom-left, white, ~16px\n- **Barcode area**: repeating-linear-gradient barcode, \"$7.99 US\u002FCAN\" price tag\n- **Tagline bottom-left**: \"forbes.com · @handle\"\n\n### General layout rules\n- 720x1280px portrait (standard phone-screen portrait ratio)\n- Gradient overlay: dark at top (for logo visibility) → semi-transparent middle → dark at bottom (for text readability)\n- Center author photo as main cover image\n- Light text on the dark overlay\n- Use `box-shadow` on the cover itself for a physical magazine feel\n\n## Pitfalls\n\n- **Always serve via HTTP** — file:\u002F\u002F with base64 images causes blank renders in headless browsers.\n- **Match viewport to output** — set `{ viewport: { width, height } }` to the exact pixel dimensions of the intended output.\n- **Use `waitUntil: 'networkidle'`** — ensures Google Fonts and images fully load before the screenshot fires.\n- **Check the Playwright install path** — Playwright chromium needs to be downloaded first (`npx playwright install chromium`). If that's already done in a system cache, `npm install playwright` picks it up automatically.\n- **Clean up after yourself** — HTTP server and temp npm installs consume disk space.\n- **Let the user know** image gen wasn't available and you used HTML→screenshot instead, so they understand why it's not a \"real\" magazine cover.\n- **Don't use too many Google Fonts** — each import adds load time. Stick to 1-2 families max.","# HTML-to-Image Design Delivery\n\nUse this skill when the user asks for a **visual design deliverable** (magazine cover, poster, social graphic, flyer, quote card, announcement visual) and image generation tools (FAL, Higgsfield, etc.) are unavailable, unconfigured, or inappropriate for the task.\n\nThe technique: build the design as a self-contained HTML page, then screenshot it with Playwright to deliver a PNG image to the user.\n\n## When To Use\n\n- User sends a photo (selfie, portrait, product shot) and asks \"make this a magazine cover\" \u002F \"turn this into a poster\" \u002F \"make it look like [Forbes\u002FTime\u002FVogue\u002Fetc.]\"\n- Any fixed-size editorial layout with text overlays on a photo\n- Branded quote cards, announcements, social media graphics\n- Fixed-size banners where HTML precision is easier than prompt-only image gen\n- Image gen is not configured (FAL_KEY missing, no Higgsfield account, etc.)\n\n## When NOT To Use\n\n- The user wants a generic text-to-image (no specific brand layout) — let them know image gen is unconfigured first\n- The deliverable needs to be interactive or animated (use plain HTML delivery instead)\n- A video or reel is needed (use branded-reel-pipeline or short-form-video-production)\n\n## The Workflow\n\n### 1. Build the HTML artifact\n\nCreate a self-contained HTML file with:\n\n- **User photo embedded as base64 data URI** — encode the image first:\n  ```python\n  import base64\n  with open('photo.jpg', 'rb') as f:\n      b64 = base64.b64encode(f.read()).decode()\n  ```\n  Then in HTML: `\u003Cimg src=\"data:image\u002Fjpeg;base64,{b64}\">`\n\n- **CSS overlays and gradients** — use `position: absolute` overlay divs with background gradients (e.g., `linear-gradient(180deg, rgba(0,0,0,0.55) 0%, ... rgba(0,0,0,0.4) 100%)`) so text stays readable over the photo.\n\n- **Typographic treatment** — use Google Fonts for brand-relevant typography (Playfair Display for editorial\u002FForbes-style serif, Inter for modern sans). Import via `@import url(...)` in CSS.\n\n- **Fixed dimensions** — wrap everything in a container div with exact pixel dimensions matching the intended output (e.g., `width: 720px; height: 1280px` for portrait magazine covers).\n\n- **All visual elements as CSS** — mastheads, accent bars, cover lines, barcodes, diamonds, price tags, taglines. No images needed except the user photo.\n\n### 2. Serve locally (required for base64 images)\n\nBrowser security blocks file:\u002F\u002F protocol from loading base64 images in some environments. Always serve via HTTP:\n\n```bash\npython3 -m http.server \u003Cport> --bind 127.0.0.1\n```\n\nRun this in the directory containing your HTML file.\n\n### 3. Screenshot with Playwright\n\nInstall Playwright in a temp directory:\n\n```bash\nmkdir -p \u002Ftmp\u002Fscreenshot && cd \u002Ftmp\u002Fscreenshot\nnpm init -y && npm install playwright\n```\n\nCreate a screenshot script:\n\n```js\nconst { chromium } = require('playwright');\n(async () => {\n  const b = await chromium.launch();\n  const p = await b.newPage({ viewport: { width: 720, height: 1280 } });\n  await p.goto('http:\u002F\u002F127.0.0.1:\u003Cport>\u002F\u003Cfile>.html', {\n    waitUntil: 'networkidle',\n    timeout: 15000\n  });\n  await p.screenshot({ path: '\u002Foutput\u002Fpath.png', fullPage: true });\n  await b.close();\n  console.log('DONE');\n})();\n```\n\nRun it: `node screenshot.js`\n\n### 4. Deliver the image\n\nSend the resulting PNG to the user via `MEDIA:\u002Fabsolute\u002Fpath\u002Fto\u002Foutput.png`.\n\n### 5. Clean up\n\n- Kill the HTTP server\n- Remove temp npm install directory\n\n## Magazine Cover Templates\n\n### Forbes-style layout\n- **Masthead**: Playfair Display, 900 weight, ~72px, letter-spacing 14px, white with text-shadow\n- **Subhead**: \"The Creator Economy Issue\" or similar, Inter 300, 11px, letter-spacing 6px\n- **Red accent bar**: 80px wide, 2px height, #e60000\n- **Diamond shape**: 14x14px rotated 45deg with 2px white border\n- **Top cover line**: \"EXCLUSIVE · [MONTH YEAR]\" in small caps\n- **Main headline**: Inter 900, 58px, white, -1px letter-spacing — punchy, aspirational\n- **Subheadline**: Inter 300, 22px, semi-transparent white\n- **Cover lines**: 3-4 bullet-style lines on bottom-left, white, ~16px\n- **Barcode area**: repeating-linear-gradient barcode, \"$7.99 US\u002FCAN\" price tag\n- **Tagline bottom-left**: \"forbes.com · @handle\"\n\n### General layout rules\n- 720x1280px portrait (standard phone-screen portrait ratio)\n- Gradient overlay: dark at top (for logo visibility) → semi-transparent middle → dark at bottom (for text readability)\n- Center author photo as main cover image\n- Light text on the dark overlay\n- Use `box-shadow` on the cover itself for a physical magazine feel\n\n## Pitfalls\n\n- **Always serve via HTTP** — file:\u002F\u002F with base64 images causes blank renders in headless browsers.\n- **Match viewport to output** — set `{ viewport: { width, height } }` to the exact pixel dimensions of the intended output.\n- **Use `waitUntil: 'networkidle'`** — ensures Google Fonts and images fully load before the screenshot fires.\n- **Check the Playwright install path** — Playwright chromium needs to be downloaded first (`npx playwright install chromium`). If that's already done in a system cache, `npm install playwright` picks it up automatically.\n- **Clean up after yourself** — HTTP server and temp npm installs consume disk space.\n- **Let the user know** image gen wasn't available and you used HTML→screenshot instead, so they understand why it's not a \"real\" magazine cover.\n- **Don't use too many Google Fonts** — each import adds load time. Stick to 1-2 families max.",{"name":5,"author":43,"version":44,"metadata":45,"description":7},"agent","1.0.0",{"hermes":46},{"tags":47,"related_skills":50},[21,18,24,29,48,28,49,33],"image-delivery","magazine",[51,52,53],"claude-design","popular-web-designs","ckm:design","master","8ec37df6d71fb664ea19d32c079e7d3ff931a8e0","skills\u002Fhtml-to-image-design-delivery",3,"https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit","https:\u002F\u002Fweblyfe.ai","https:\u002F\u002Fgithub.com\u002FS3YED","2026-08-27 01:54:02",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add S3YED\u002Fappie-kit --skill html-to-image-design-delivery",{"tool":68,"command":69},"bunx","bunx skills add S3YED\u002Fappie-kit --skill html-to-image-design-delivery",{"tool":71,"command":72},"pnpm","pnpm dlx skills add S3YED\u002Fappie-kit --skill html-to-image-design-delivery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fhtml-to-image-design-delivery\u002FSKILL.md",true,[],[77,102,128,152,179,203],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":38},"01M6JFD4M6N4DSGC7TXEJ5R3J2","ai-music","AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram\u002Ffeature visualization.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fwethlete\u002Fai-music\u002FSKILL.md",[],[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"music","ai music","humanizer","visualization","Tools","Audio","hermes","hermes agent","songwriting","suno","lyrics","prompts","heartmula","craft","generation","feature","ai music generation","music generation",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":38},"01M6JFCZE4XNFQFMNZDHKHT5V5","agentic-webdesign-design-system-ingestion","Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-design-system-ingestion\u002FSKILL.md",[],[21,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127],"agentic","design system","system","ingestion","webdesign","agentic webdesign design system ingestion","components","generate","design systems","website","ui","Tailwind","bolt","lovable","v0","design-system","wed","design system components","appie",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M6JFCVPX3913CFAS6QQJ33ZB","agentic-webdesign-agent-elements","Use 21st.dev Agent Elements — 25 shadcn\u002Fui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-agent-elements\u002FSKILL.md",[],[109,135,113,136,137,138,115,139,140,141,142,143,144,145,146,147,148,149,150,151],"elements","agentic webdesign agent elements","MCP","ai agent","registry","search","streaming","open source","open","Bash","plan","subagent","edit","install","input","lock","source",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":38},"01M6JFCQC7H65M9QJ6TRE71BS1","vercel-deployment","Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fvercel-deployment\u002FSKILL.md",[],[159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],"deployment","vercel deployment","vercel","macos","cli","linux","windows","deploy","vercel deploy","REST","api","site","deploy to vercel","token","rest api","host","sites","paths","sanitization","static site",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":38},"01M6JFCM4SMTXBM5A01BK2YQG1","software-quality-workflows","Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsoftware-quality-workflows\u002FSKILL.md",[],[186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],"workflows","quality","software","software quality workflows","review","tdd","workflow","commit","debugging","code","debugger","pre-commit","investigation","code simplification","user","simplification","for",{"skillNo":204,"name":205,"nameZh":6,"description":206,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":38},"01M6JFCGD0M6CEATY01W7YN6DB","react-component-refactoring","Safely refactor large React components into smaller, maintainable pieces using proven patterns","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Freact-component-refactoring\u002FSKILL.md",[],[210,211,212,213,214,215,216,217,162,218,219,115,220,165,221,195,222,223,224,225],"react","component","refactoring","component refactoring","react component","react component refactoring","frontend","writing","safe","typescript","react components","modular","refactor","simplify","patterns","test-driven-development"]