/marketing-skills:static-ads <brand url> [ad library url or page id]from marketing-skills
Pulls a brand's current Meta ads and website style via the Graphed CLI, generates a style guide, and creates 5 static image ads with GPT Image 2 targeting gaps in their ad strategy.
Ships in marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Brand URL → Ad Library page → style guide → 5 ideas → GPT Image 2 → crop to 1080×1350 → ~/Downloads/<slug>-ads/ and the Graphed project.
Use the person logged into the Graphed CLI. Do not hardcode an account id or a project slug.
--account.--project.generate.sh remembers the last account and project in ~/.config/graphed/static-ads.json and uses them next time.--account and --project, or set GRAPHED_ACCOUNT and GRAPHED_PROJECT. Those beat the saved choice. A real run prints the account and project it is using.You need a Facebook page id. Do not look up another way to pull the Ad Library.
If the user pasted an Ad Library URL, read view_all_page_id=.
If they only gave a brand URL or name, search the Ad Library for the page:
graphed tools run scrapecreators:v1/facebook/adLibrary/search/companies --wait --timeout 120 \
--account <account> --project <project> \
--out data/ad-library/company-search.json \
--body '{"query":"<brand name>"}'
Costs 1 credit. Read the results before pulling ads. Match page_alias or ig_username to the brand domain. A name that only contains the brand is a different page. If more than one result fits, ask. Use that result's page_id.
Then pull that page's ads:
graphed tools run scrapecreators:v1/facebook/adLibrary/company/ads --wait --timeout 120 \
--account <account> --project <project> \
--out data/ad-library/<pageId>/raw-1.json \
--body '{"pageId":"<pageId>","country":"US","status":"ALL"}'
cursor, call again with "cursor" and write raw-2.json, then raw-3.json. Stop after 3 pages. Each page costs another credit. Combine the files into ads.csv. Reusing one output path replaces the previous page.ads.csv with these columns: id, active, start, end, format, title, body, cta, link, media URL.scrapecreators:v1/facebook/adLibrary/ad/transcript with {"id":"<ad_archive_id>"}. It costs 1 credit per ad.Use curl only, never the browser.
curl -sL <url> to fetch the page. Then grep the HTML for:
--token-* valuesfont-family, and the size/weight/letter-spacing combos<h1>–<h3> textog:imageog:image URL is the style reference for every render.clients/<slug>/ad-style-guide.md. Keep it short: colors, fonts, layout, copy rules and imagery, about 40 lines.Use one line each: the visual, the headline (3–8 words, caps), the sub-line and the CTA. Aim each one at a pain their current ads don't cover. Show the user the list before generating unless they already said to make them.
Write one clients/<slug>/ads/<n>-<name>.req.json per ad:
{
"prompt": "<scene: layout, UI elements, exact headline/sub/CTA text> <style block>",
"aspect_ratio": "3:4",
"resolution": "2K",
"input_urls": ["<og:image url>"]
}
The style block, filled from the guide:
Then run:
<skill-dir>/generate.sh clients/<slug>/ads <slug>-ads --dry-run # local check, no Graphed call
<skill-dir>/generate.sh clients/<slug>/ads <slug>-ads # ~3.45+ credits/ad at 2K
<skill-dir> is the folder this SKILL.md is in.
--dry-run reads the request files and prints each ad's aspect ratio, resolution, prompt length, and reference count. It does not call Graphed and does not spend credits. That is the point: catch a bad request before the image run.
The real run generates every ad in parallel and polls any run that is still going after --wait. A run whose status is failed stops immediately, and that ad prints FAILED, so the rest of the batch can finish. It center-crops each PNG to 1080×1350, copies those files to ~/Downloads/<slug>-ads/, and uploads them to the project at static-ads/<slug>-ads/<name>.png. It skips an ad that already has a PNG. Then record each uploaded file so it can be found later. See Find them later.
View every PNG at reduced size: sips -Z 900 <png> --out <scratchpad>/prev-<png>. On Windows, use the file viewer you have. Check for:
@brand or shop.brand.ai. Flag those to the user.Read the script output for FAILED. A failed ad or a failed project upload can still leave the script looking finished.
The script treats any existing PNG as done and skips generation. If a PNG is not 1080×1350, replace it with a cropped file, or delete the .png and .res.json to generate that ad again.
Project storage does not list files. A later system on this project can open an ad only if the project's Postgres has the storage key.
After the upload:
graphed databases list --account <account> --project <project>.graphed.yaml, tell the user, then deploy so the database is created. If you do not have the project files, stop and give them the storage key.databases:
primary:
env: DATABASE_URL
graphed databases query is read-only:select table_name, column_name
from information_schema.columns
where table_schema = 'public'
order by table_name, ordinal_position
Use the table that has storage_key. That column is the file name in project storage. If more than one table has it, ask which one holds ad creatives. Insert each PNG into that table, filling the columns it already has, including storage_key (static-ads/<slug>-ads/<name>.png) and the filename. Do not create a second table.
skill_asset and insert there. Create and insert with graphed exec after the project has a successful deploy (DATABASE_URL is set there). graphed databases query cannot write.create table if not exists skill_asset (
storage_key text primary key,
kind text not null,
filename text not null,
content_type text,
created_at timestamptz not null default now()
);
One row per finished PNG. kind is static-ad. filename is the PNG name. content_type is image/png. Skip a key that is already stored.
A later system reads the row and downloads that key. It does not scan the file store.
generate.sh uses kie:gpt-image-2-image-to-image. ChatGPT Images 2.5 is in the catalog as GPT Image 2.5 Flare (kie:gpt-image-2-5-flare-image-to-image) and Sunburst (kie:gpt-image-2-5-sunburst-image-to-image). Use Sunburst when the user asks for 2.5.4:5 is rejected. Generate at 3:4. generate.sh center-crops the file to 1080×1350, which is the Meta 4:5 size. The crop uses sips, which is on Mac. On Windows, sips is missing and that ad prints FAILED. The uncropped PNG may already be on disk. Replace it with a 1080×1350 crop from ImageMagick (magick) or ffmpeg, then rerun. The script skips generation for an existing PNG and still uploads it.--wait timeout does not kill the run. Get the result with graphed tools get <trn_id> --account <account> --project <project> --out. Never re-run, because that pays twice. If that get shows status failed, the run is finished. generate.sh stops polling that ad and prints FAILED.graphed tools catalog needs both --account and --project for the logged-in user.Graphed is a marketing cloud. It includes the infrastructure for an agent to do marketing: a data warehouse, data pipelines, a Postgres database, cron jobs, runtime servers, a tool catalog, custom domains, and internal app tooling.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub graphed-inc/marketing-skills --plugin marketing-skills20 skills in this plugin
/ad-spyWhen the user wants to track competitors' ads, or asks what ads a rival is running, which hooks and angles they test, or where their own messaging has gaps: a Foreplay-style ad spy, competitor ad research, an ad swipe file, positioning gaps. Deploys a hosted Ad Spy app on Graphed that pulls Meta, Google and LinkedIn ads every day, has Gemini watch, transcribe and tag each creative, and maps what buyers say on Reddit, YouTube, LinkedIn and review sites against what competitor ads say, with ad ideas for each open gap. By default ask for the user's website and 2-4 competitors and set both up from the terminal. To make the ads, see static-ads or ugc-studio. Also /graphed:ad-spy./ai-marketing-agentWhen the user wants an AI teammate in Slack, or asks for a Slack bot that pulls their numbers, does research and makes files with their Graphed data and tools: an AI employee, '@graphed in Slack', an AI marketing agent. Deploys a Slack app (handle @graphed) that runs Claude Code with the full graphed CLI in a private sandbox, shows each step in plain English while it works, answers in the thread with text, files, tables, charts and next-step buttons, keeps a shared company memory, shows the credits each request used, and refuses guests and other workspaces by default. Also /graphed:ai-marketing-agent./ai-searchWhen the user wants to be named and cited in AI answers, or asks whether ChatGPT, Google AI Overviews, AI Mode, Gemini, Copilot, Perplexity or Claude recommend them, who AI names instead, or which pages AI cites: AI search visibility, GEO / AEO, AI share of voice, AI referral traffic, a Profound / Peec / Otterly alternative. Deploys a hosted AI Search app on Graphed (plus an MCP server) that runs real buyer prompts on every engine, reads each answer for mentions, position, sentiment, citations and wrong facts, joins GA4 and Search Console, checks the site and AI crawlers, and turns it into a ranked action plan with drafted fixes, outreach and a recheck. By default ask for the domain and competitors, deploy, say the cost, and run the first check. For classic keyword and backlink research, see ai-seo-tool. Also /graphed:ai-search./ai-seo-toolWhen the user wants keyword research, backlinks, rank tracking or an SEO audit, or asks what a competitor ranks for, which keywords or links they are missing, or why a page won't rank: an Ahrefs / Semrush alternative, keyword gap, link gap, local rank grid, an SEO MCP server for their agent. Deploys a hosted AI SEO Tool on Graphed with Site Explorer, Keywords Explorer, a SERP checker, backlinks, AI mentions, daily rank tracking, a weekly site audit with Lighthouse, and Search Console + GA4 from the warehouse. By default ask for the domain and 2-4 competitors, run a site overview and the keyword gap, and give the shortlist. Say the cost before any run over 10 credits. For AI answer tracking in depth, see ai-search. Also /graphed:ai-seo-tool./ai-story-shortsWhen the user wants a short animated story video, or asks to turn a true story, a legend or a 'crazy facts about…' topic into a 30–60 second vertical cartoon: faceless story shorts, animated history, this hand-inked cel style. Fact-checks the story, writes a fast narrated script, designs an original cast, makes one GPT Image 2.5 still per shot, animates each with Seedance 2.5, and edits it with a narrator voice, word-timed captions, whip transitions, music and a few sound effects. Every vendor call goes through Graphed Tools. For talking-head ads, see ugc-video. Also /graphed:ai-story-shorts./ai-video-editorWhen the user wants to edit a podcast or multi-camera video with an agent, or asks to cut a long recording down, apply review notes, or share a review link: a Frame.io / Descript alternative. Deploys a hosted AI Video Editor on Graphed: upload cameras, mics and screen recordings, every file is transcribed word by word, the agent writes the edit (which camera, which takes, what to cut) and the cloud renders it in minutes; reviewers comment on frames, draw on the picture and delete words to cut them, and @agent comments become tasks the agent works. By default ask what the video is for and where the files are. Never upload before the user approves the transcription cost. Also /graphed:ai-video-editor.Other plugins' skills for the same job