# AdSmith: Batch Meta Static Ads from YAML

> Batch-render Meta static image ads from YAML using AI, stock, or local backgrounds with built-in policy linting.

AdSmith: Batch Meta Static Ads from YAML is a paid AI agent skill on Agensi by MAD-IT, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [MAD-IT](https://www.agensi.io/creators/bambushu)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/adsmith-batch-meta-static-ads-from-yaml
- Tags: marketing, image, meta-ads, creative-ops

## About this skill

Manually designing ad creatives is a bottleneck that leads to slow testing and ad fatigue. AdSmith solves this by batch-rendering Meta/Facebook static image ads directly from a YAML configuration file. It composites headlines, badges, CTAs, and fine-print overlays over local photos, AI-generated backgrounds, or Pexels stock imagery using six distinct layout styles.

### What it does
- **Batch rendering** generates multiple PNG ad creatives from a single YAML manifest.
- **Multi-source backgrounds** supports local files, OpenRouter AI generation (Gemini), or Pexels stock photography.
- **Automated compositing** overlays copy, badges, and CTAs using professionally designed layout templates (Square and 4:5).
- **Policy linting** blocks the render when copy contains phrases that commonly get Meta ads rejected (insurance, credit/income and health claims by default; an optional second-person rule). The lists live in an editable policy.yaml.
- **Style variations** provides six distinct looks ranging from "Editorial" serif layouts to high-contrast "Highlighter" tabloid styles.
- **Scene-led ads** (style H) put the copy INTO the photo: neon on a night wall, chalk on a slate, ink on sunlit plaster, gold leaf on shop glass, anchored to the surface you measure in the render.

### How it works
1. **Configure** a YAML file defining your output directory, copy blocks, and creative variants.
2. **Execute** the generator script via Node.js, passing your YAML file as the primary argument.
3. **Review** the rendered PNGs and the `manifest.json` file which tracks the provenance of every asset.
4. **Audit** the outputs with the optional Python QA scripts: contact sheet, dead-space and tiny-type check, clipped-cutout check, copy coverage and contrast zones.

### Frameworks & tools
This tool is built with Node.js and Playwright for headless browser rendering. No key is needed with your own background images; AI backgrounds need an OpenRouter key and stock photos a Pexels key, while the optional QA suite utilizes Python 3.9, Pillow, and NumPy.

### Why this beats prompting it yourself
Standard prompting often results in garbled text or inconsistent layout positioning that violates platform rules. This skill enforces strict typographic hierarchy and safety linting while allowing you to iterate on copy across dozens of variants without re-generating the underlying artwork.

### Use cases
- Generating A/B/C variants of a single ad angle for rapid testing.
- Creating 4:5 brand composites with product cutouts and logos.
- Turning one product shoot or a set of AI scenes into a campaign where every ad uses a different device, not the same photo-plus-box template.
- Scaling creative production for local businesses using stock or AI scenes.

### Known limitations
The policy lint is English-only and cannot read text baked into images. Layouts are optimized for macOS system fonts; Windows and Linux users must manually install specific Noto fonts for identical results.

## Requires

- Playwright
- Node.js
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AdSmith: Batch Meta Static Ads from YAML skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does AdSmith speed up the creative testing process compared to traditional design tools?

You write the copy once in a YAML batch and render it in up to six looks, across as many angles as you list. Changing a headline means re-running the batch, not redesigning cards, and every render records its provenance in manifest.json.

### What specific files and assets are included in this skill purchase?

The Node.js renderer (Playwright), six layout styles, an editable policy.yaml for the copy lint, references for the YAML schema and the scene-led style, five example batches (including the full Northbeam showcase from the demo, with its six Gemini backgrounds bundled so it renders with no key), and six optional Python QA scripts.

### Can I use my own custom product photos, or am I limited to using AI-generated backgrounds?

While AdSmith can generate its own backgrounds via OpenRouter or Pexels, you can also use your own local product photography or existing brand assets by referencing them in the YAML configuration.

### Does AdSmith support non-English languages for ad copy?

Copy renders in any language your fonts cover, but the layouts are tuned and tested for English, and the policy lint reads English only. Have a native speaker check any other language before it ships.

### What are the technical requirements for running the AdSmith generator locally?

AdSmith requires Node.js for the core rendering engine and Playwright for headless browser compositing; an OpenRouter or Pexels API key is necessary only if you wish to use their specific background generation features.

### How does the policy linting feature help protect my Meta Ad account?

Before anything renders, every copy string is checked against phrase lists that commonly trigger Meta rejections: insurance and eligibility wording, credit and income promises, and health or body claims. A hit stops the run and names the phrase; lint_allow lets you approve a deliberate exception. An optional second-person rule covers the personal-attributes policy. It reduces risk; it does not guarantee approval.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
