agentleFS
cumabozkurtcumabozkurt/god-of-design/skills/god-output/SKILL.md

god-output

Skill0 starsChanged 2 months agoMITView on GitHub

Output recipes and handoff - production HTML/CSS, Tailwind, React/Next.js with shadcn/ui, Vue/Svelte notes, SVG graphics, email HTML, rendering HTML/SVG to PNG/PDF (Playwright), image export settings, favicon/OG sets, file naming, and handoff to Figma (variables, auto layout, specs) and Canva (sizes, brand kit, autofill, MCP). Use when turning a design decision into files, choosing an export format, or preparing a design for developers, Figma or Canva.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep components presentational and accept className.

    line 66
  2. Very specific:

    Use next/font (Next.js) to self-host Google Fonts with zero layout shift.

    line 67
  3. Very specific:

    Create Variables collections: Primitives (raw colours, spacing), Semantic (roles) with modes Light/Dark, mirroring god-tokens names.

    line 97
  4. Distinctive:

    If a Figma MCP/API is available, read existing variables and components first and reuse them.

    line 102
  5. Distinctive:

    Use custom dimensions matching the platform spec (e.g.

    line 106
  6. Distinctive:

    Keep text as live text (editable).

    line 109
  7. Distinctive:

    If the Canva MCP is connected: search brand templates → get the dataset (field names) → autofill with your content → export PNG/PDF.

    line 110

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

God Output

Choose the format

NeedBest output
Website / landing page prototypeSingle-file index.html with Tailwind (CDN for prototypes, a build step for production) or plain CSS
Production React appReact/Next.js components + Tailwind v4 tokens (+ shadcn/ui primitives when the project uses it)
Social graphic, poster, slide as an imageHTML/SVG at the exact pixel size → PNG via Playwright
Logo, icon, patternHand-written SVG (optimised), plus PNG exports
Print documentSVG/PDF (vector), or HTML with Paged.js/WeasyPrint; final CMYK preflight in pro tools
Deckdeck.html (16:9 sections) or a .pptx spec / python-pptx
EmailTable-based HTML, inline CSS, 600–640px wide, web-safe font fallbacks
Design-tool handoffTokens JSON + specs + assets → Figma variables / Canva brand kit

HTML/CSS baseline (copy into every page)

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Specific page title · Brand</title>
<meta name="description" content="One specific sentence.">
<meta property="og:image" content="/og.png"><!-- 1200×630 -->
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=...&display=swap" rel="stylesheet">
<style>
  :root { color-scheme: light dark; /* tokens from god-tokens */ }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; font-family: var(--font-body);
         color: var(--color-text); background: var(--color-bg);
         -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  :focus-visible { outline: 2px solid var(--color-focus, currentColor); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }
</style>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header>…</header><main id="main">…</main><footer>…</footer>
</body></html>

Tailwind prototypes: <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> plus a <style type="text/tailwindcss">@theme { … }</style> block. For production, install tailwindcss with the Vite/PostCSS plugin.

React + shadcn/ui notes

  • Map tokens to shadcn's CSS variables (--background, --foreground, --primary, --primary-foreground, --muted, --border, --ring, --radius) in globals.css. Then restyle. Default shadcn styling with zero changes is a slop tell.
  • Keep components presentational and accept className. Use cva for variants.
  • Use next/font (Next.js) to self-host Google Fonts with zero layout shift.

Render HTML/SVG → PNG/PDF

npx -y playwright@latest install chromium                    # once
# PNG at an exact size (2x scale by default)
node skills/god-output/scripts/render.mjs poster.html poster.png 1080 1350
# PDF, one page per slide/section
node skills/god-output/scripts/render.mjs deck.html deck.pdf 1920 1080

(The script uses Playwright if installed and otherwise prints the manual command.)

Export settings

AssetFormatSettings
UI images/photosAVIF/WebP with JPG fallbackQuality 70–82; srcset 1x/2x; explicit width/height
Graphics with textPNG-24 or SVGsRGB
Social imagesPNG (graphics) / JPG 85–92 (photo)Exact platform size, sRGB, < 8MB
Favicon setfavicon.svg + favicon.ico (32) + apple-touch-icon.png (180) + icon-192.png / icon-512.png (PWA manifest)
OG imagePNG/JPG 1200×630Text ≥ 48px, centred safe area
PrintPDF/X-4 or PDF/X-1aCMYK, bleed, crop marks (pro tool preflight)
VideoMP4 H.264 + AAC1080p, 30fps, platform bitrate limits

File naming: brand_asset_variant_size@scale.ext → godofdesign_logo_horizontal_dark@2x.png.

Figma handoff

  1. Create Variables collections: Primitives (raw colours, spacing), Semantic (roles) with modes Light/Dark, mirroring god-tokens names.
  2. Text styles for each type-scale step; effect styles for shadows.
  3. Components with auto layout (padding = spacing tokens), variants for states, and properties for text/icon toggles.
  4. Frames at real device sizes, layout grids matching god-layout.
  5. Annotate: spacing, behaviour, breakpoints, motion specs (duration/easing), accessibility notes (heading levels, focus order, alt text).
  6. If a Figma MCP/API is available, read existing variables and components first and reuse them. Never duplicate the system.

Canva handoff

  1. Use custom dimensions matching the platform spec (e.g. 1080×1350 px for an IG portrait).
  2. Set up a Brand Kit: logos (SVG/PNG), colours (hex), fonts (upload brand fonts or choose the closest Canva fonts), plus a brand template.
  3. Provide a content sheet (CSV: one row per design, columns per text/image field) for Bulk Create or Autofill (Canva Connect API / Canva MCP autofill-design with a brand template).
  4. Keep text as live text (editable). Avoid flattening into images.
  5. If the Canva MCP is connected: search brand templates → get the dataset (field names) → autofill with your content → export PNG/PDF. Always confirm with the user before publishing or sharing anything.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.