CommunityImagegithub.com

Flyer

Design a small-business flyer from a brand kit and an offer. Print sizes and social sizes, as one HTML file exported to PNG or PDF.

What is Flyer?

Lays out a flyer or promo graphic from brand colors, type, and the offer, then exports it.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bright-kumedzro/ai-skills/tree/HEAD/skills/flyer

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does Flyer do?

1. Load the brand

Look for brand.md in the project folder, the attached files or the project knowledge. Use its colours, fonts, logo, contact details and current offers.

If there is no brand.md, offer to set one up with the brand-kit skill. If they would rather skip that, ask only for the business name, two colours, the logo and one contact line.

2. Get the brief

Ask only for what is missing, in one message:

  1. What it's for: the offer, event or news, in their own words.
  2. The facts: price or discount, dates, times, place and terms. Copy them exactly.
  3. What people should do: call, WhatsApp, visit, book or order. Use the contact details from brand.md.
  4. Where it will be shown: this sets the size (see the table below).
  5. Photos: use their real product, food or venue photos. Never generate or fake a product photo. Without a photo, use a text-led layout.
Where it's shownSizeTemplate class
Instagram or Facebook post1080 × 1350 pxsize-post
Square post1080 × 1080 pxsize-square
Story, WhatsApp status, TikTok1080 × 1920 pxsize-story
A4 print210 × 297 mmsize-a4
A5 handout148 × 210 mmsize-a5

If they're not sure, make a post (1080 × 1350), and an A4 version as well if they plan to print.

3. Write the words first

  • Headline: at most six words. Lead with the offer or the benefit, not the business name.
  • One supporting line.
  • The facts: price, date and place, in that order.
  • What to do next, with the real contact details.
  • If there are terms, add "T&Cs apply" and the key term. Make no claims the owner didn't give you.

Check the words against the voice in brand.md. Show them to the owner and get a yes, unless they said to go straight ahead.

4. Design

Start from the closest template:

Each template sets the brand at the top of the file, as CSS variables on :root: --primary, --accent, --text, --bg, --font-head and --font-body. Set these from brand.md, add the Google Fonts link, fill the content slots, and put the size class on <body>.

For photo-hero.html, save the owner's photo next to the HTML file as photo.jpg. Without it the template shows a brand-colour gradient instead of a broken image. Slots are marked with data-slot attributes, and a comment at the top of each template lists them.

Rules:

  • One focal point. The headline must still be readable at thumbnail size.
  • At most two fonts, the ones in brand.md.
  • Small text needs a contrast of at least 4.5:1 against its background.
  • Show the logo once. The contact details are always visible.
  • Keep everything 5% in from the edges. On stories, keep the top and bottom 250 px free of text, because the app's buttons cover them.
  • When a fact is long, shorten the words rather than shrinking the type.

5. Export

Where Chrome or Edge is available (Claude Code or another agent that can run commands):

node scripts/render.mjs flyer.html --out flyer.png        # social sizes
node scripts/render.mjs flyer.html --out flyer.pdf        # print sizes

The script reads the size from the size class on <body>. Add --size post|square|story|a4|a5 to render another size from the same file without editing it. A4 and A5 PNGs are rendered at 300 dpi. It needs Node 18 or later and Chrome, Edge or Chromium. No npm install is needed.

Without a browser: hand over the HTML file. To get a PDF, they open it in Chrome and choose Print → Save as PDF, with margins set to none. For an image, they open it and take a screenshot. If the chat app can preview HTML, show the preview.

Look at the rendered result yourself before handing it over. Check for text overflowing or cut off, poor contrast, a stretched logo and wrong facts.

6. Other sizes

Offer once to make the same design in the other sizes the owner needs, such as a story, a post and an A4. Rearrange the layout for each shape rather than just scaling it.

Related Skills