Skip to content

About

Agent skill that builds banners as ImageKit URLs from one Figma frame, and offers the assets in your ImageKit DAM

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Figma banner builder

An agent skill that turns one Figma frame, an offers file and the product shots in your ImageKit DAM into banners. Each banner is a live ImageKit URL, so nothing is exported from Figma per banner.

Check out Template-based creative automation with Figma and ImageKit to learn more.

What's here

Path What it is
.claude/skills/figma-banner-builder/ The skill: its instructions, the banner URL template and two scripts
offers.csv A sample offers file with 11 rows. Row o11 has no matching product on purpose
templates/ Two sample frame backgrounds, 1200x400 and 1080x1080
.mcp.json The Figma, ImageKit DAM and ImageKit DevTools servers

What you need

  • An AI coding agent that supports skills, can run shell commands and can connect to MCP servers. We tested it in Claude Code.
  • Python 3. The scripts use only the standard library.
  • The Figma remote MCP server with a Dev or Full seat on a paid Figma plan
  • An ImageKit account

The skill sits in .claude/skills/, where Claude Code looks for it. For another agent, copy the figma-banner-builder folder to wherever that agent reads skills from, and add the servers in .mcp.json the way that agent expects. The commands in the skill's instructions use the .claude/skills/ path, so change those too if you move it.

Set it up

  1. Frame. In Figma, make a frame with six layers named background, product, logo, headline, price and cta. The cta layer holds a text layer named cta-label. The frame can be any size.
  2. Background. Export the background layer and upload it to your DAM as /templates/<frame name>-bg.png. The two samples in templates/ work if you name your frame banner-1200x400 or banner-1080x1080.
  3. Assets. Put product images in /products with the custom metadata fields brand, gender and garment_type, and logos in /logos with brand.
  4. Offers. Edit offers.csv so its values match your metadata. Keep the column names.
  5. Servers. Connect the Figma and ImageKit DAM servers in your agent and sign in to each. DevTools is only needed to regenerate the URL template.

Run it

Give your agent a link to the frame, including its node-id:

Build a banner for every offer in offers.csv from this Figma frame, using the products in our ImageKit DAM:

To try it on a few rows first, ask for "the first 2 offers".

The run writes three files to banner-output/, plus a saved copy of every banner:

  • banners.csv: one row per banner, with its URL
  • failed-rows.csv: one row per offer that had no match, with the reason
  • contact-sheet.html: every banner, grouped by offer

Make it yours

  • Fonts and colors are fixed in url-template.txt: Montserrat and Roboto, and the sample brand colors. Change them there, or regenerate the template with the DevTools transformation_builder, then look at a banner to check it.
  • Matching rules are in the skill's instructions. An offer with no matching product fails with a reason and is never filled with something close.

About

Agent skill that builds banners as ImageKit URLs from one Figma frame, and offers the assets in your ImageKit DAM

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages