/flora-mcp-skills:flora-brand-ad-pipelinefrom FLORA
Orchestrates a multi-stage ad pipeline: FLORA generation under a locked brand treatment, Google Drive archive, Supabase hosting, and paused Meta Ads creatives for human review.
Ships in FLORA. 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.
Use dedicated tools for this workflow, including batches. SDK examples below describe orchestration: use the corresponding dedicated tools, issue independent calls concurrently, retain every run id, and poll in later calls.
Attribution. Pass
skill: "flora-brand-ad-pipeline"on every FLORA call you make while running this skill, along with askill_run_idyou invent once when the run starts and reuse for the rest of it. Both are reporting only: they change nothing about the call or its result.
Not a creative assistant. A conveyor. A product line goes in one end; paused ads, an archived master and a hosted CDN copy come out the other, with one record tying every ad back to the generation that made it.
FLORA is one stage of four. Most of what makes this reliable is not the generation — it is refusing to advance a stage that has not been proven, and keeping enough state on disk that a re-run repairs the pipeline instead of duplicating it.
The brand is an input, not an instruction.
Fixed colours, a price that must always be visible, product reference shots: these decay the moment they are carried as prose an agent retypes each run. Agents paraphrase. A paraphrased brand drifts, and it drifts silently across every item in a batch — nobody sees it until a human opens the ads.
So the brand never lives in this file, and never lives in a prompt you compose:
brand.json. Colours, price format, placement sizes, product
reference ids. See reference/brand.md. Read it; do not inline it.Pipeline state lives in the manifest, not in the conversation.
One JSON record per campaign, written after every stage and read before every stage.
Every row carries one asset_key that travels the whole way — FLORA run, Drive file,
Supabase object, Meta creative. Contract in reference/manifest.md.
Two things this buys, neither optional:
CAMPAIGN what is launching — the line, the store, the season required
PRODUCTS the SKUs, with a reference shot for each required
BRAND path to brand.json required
PLACEMENTS which sizes to produce optional, brand.json default
MANIFEST path to an existing campaign manifest optional, resumes if present
If BRAND is missing, stop. Do not improvise a palette or a price treatment from the
campaign description — that is exactly the failure the law exists to prevent.
Each stage ends in something a human could reject. Keep them as separate calls; do not build a loop that must outlive the sandbox.
Nothing here spends.
brand.json. Confirm the palette, the price format and the placement list back
to the user in their own vocabulary.flora_list_workspaces; more than one, ask which to bill.flora_get_technique. Its declared input ids are the keys
the run expects — never guess them from the name.One reference photo yields one good plate, not four. Measured on
flora-pdp-deck: four angles requested from a single reference came back near-identical — three-quarter against rear-180 differed by 3.21 mean absolute grey, less than each differed from its own source image. Spend the budget on placements and context frames, where the composition genuinely changes. Say this before the customer budgets a four-angle set.
Hand the fan-out to flora-batch-generate. It already owns the parts that go wrong:
fire every item before polling any item, per-entry isolation so one rejection does not
discard billed run ids, limit: 100 explicit on the poll, status-only completion
checks, and the run-time error taxonomy.
This skill adds two things on top of it:
flora_run_technique per item
instead — the technique's run_cost prices the batch.flora_run_id into the manifest at fire time, not at completion. A run you
fired and lost is billing right now and is unidentifiable.The generated frame is not the deliverable. The deliverable is the frame plus the deterministic layers.
brand.json. A FLORA action does this at
$0 — the composite actions measured at ~9 seconds on flora-pdp-deck — or do
it in your own code if you already have an image pipeline.dimensions and aspect ratio match the placement spec
the price layer is present and above the minimum size
the palette check passes against brand.json
the file opens and is non-trivial in size
You cannot see any image. Every check above is structural. Nothing here tells you the creative is good, on-brand, or appetising. Never say that it is. Report the URLs and the checks that passed, and let the contact sheet and the paused ads do the rest.
Build one contact sheet — a single grid of the whole campaign, one URL — and put it in front of the user before anything leaves FLORA.
Order matters. Archive before hosting, host before advertising. Each stage should only ever read from the stage before it, so a failure is always a resume point rather than a fork.
drive_file_id.FLORA media URLs are public, unsigned and permanent. That is the real argument for the
Supabase copy — a live ad must not depend on a URL you do not control. It is also worth
a word to the user on an unreleased launch: pasting a media.flora.ai URL into a shared
transcript publishes that asset to anyone who reads it.
See reference/meta-ads.md for the creative path and the error codes.
Paused is an invariant, not a default. Never unpause. Never set or raise a budget. Never create a campaign object the user did not ask for. If the user asks you to publish, say plainly that this skill stops at paused and let them do it themselves.
Record meta_creative_id and meta_ad_id in the manifest as each is created, one row
at a time. A batch write at the end loses everything if the last call fails.
1 cost before firing state the USD total, wait for a yes
2 structural QC before upload dimensions, price layer, palette
3 contact sheet before Meta one grid, one URL, for a human
4 paused in Meta the human publishes, never the agent
A gate the user has not answered is not a gate. Do not proceed on silence.
The pipeline is not a transaction, and each boundary fails into a different sentence. Never abort a paid batch partway — generations already running will finish and bill regardless, so abandoning them loses their URLs and saves nothing.
FLORA ok, composite failed the generation is paid and archivable. Archive it,
mark the row blocked at finish, do not re-generate.
composite ok, Drive failed retry Drive. Nothing downstream has happened.
Drive ok, Supabase failed retry Supabase. The master is safe.
Supabase ok, Meta failed the asset is live and hosted and no ad exists. This is
the safe failure. Report it and stop; do not retry
blind, because a partially-created ad may already exist.
Meta creative ok, ad failed TODO(measure): confirm whether the orphaned creative is
reusable on retry or must be recreated.
Every one of these ends in the same action: write the row's state to the manifest, then report. A failure that is not in the manifest will be re-run from the start.
BRAND
prose brand the drift is silent and only visible to a human at the end.
Technique + reference image + brand.json, never a retyped prompt.
generated price models render price strings unreliably. Composite it.
one reference cannot be rotated by asking. 3.21 mean grey between opposite
faces requested from the same source. One plate per reference.
FLORA
params not validated an unknown param VALUE is accepted, runs, completes and bills at
the default. Only an unknown MODEL is a clean 400. Validate
against flora_list_models({ model_id }) params before firing.
charged_cost a quote at create, eventually consistent on list. Re-read after
the batch is terminal or report the total as a floor.
retry safely read flora_list_generations before re-firing a possibly-started
item — a duplicate create is billed, not deduped.
media urls public, unsigned, permanent.
PIPELINE
no manifest write a stage whose result is not written is a stage that will be
re-run. Write after every stage, not at the end.
batch the final write and one failure loses every id in the batch.
call window a single call cannot hold a long batch. Fire
and poll are separate calls. So are the four stages.
META
TODO(measure) creative ingest path, rate limits, and the real error strings.
See reference/meta-ads.md.
One row per asset, keyed on the thing the customer thinks in — the SKU and the
placement, never the run_id.
ASSET PLACEMENT COST STATE META
straw-hero-1x1 1:1 $0.004 paused ad 1203…
straw-hero-9x16 9:16 $0.004 paused ad 1204…
straw-punnet-4x5 4:5 — blocked composite failed, price layer absent
Then four lines and stop:
charged_cost was missing.Say plainly that nothing is live and that no creative has been visually reviewed.
This skill does not:
brand.json. Generating ad copy is a different job with a different reviewer.flora-batch-generate, or flora-run-technique if a technique already fits.flora-mockup-deck.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/flora-action-studioOpen FLORA's live action studio: run a prebuilt action, a workspace's own custom action, or a technique (custom action flow) so the result shows inline with the action's declared parameters as live controls the user adjusts themselves. Use when the user wants to tweak, tune or iterate on a transform rather than describe it — "let me adjust the colour grade", "give me sliders for this", "I want to play with the settings", "quantize this logo to a few colours and let me pick how many", "run my custom action on this", "turn my own code into an action I can tune" — or names an action or technique and wants to see and refine its output. Also use when the user wants to create, write or fix their own action ("can we create our own action", "make me a pixelate action", "turn this into an action", "my action failed, fix it") and when they name a transform to apply ("color grade it", "pixelate this", "quantize the logo"). Do not use for a plain generation with no source media (flora_create_generations), to inspect existing work (flora-canvas-iterate), or when the user wants one fixed result with no adjustment.
/flora-batch-generateTurn a structured list — products, campaign variants, SKUs, scenes, localisations — into one parallel batch of FLORA generations under a single consistent style. Fires every item at once through flora_create_generations, polls the whole batch with one flora_list_generations call, and settles cost and failures per item. Use when the input is a list, spreadsheet, folder, or set of variants and the output is one asset per row. Also use when someone asks for "a bunch of", "one for each", "all our", or hands over a CSV. Do not use for a single item, and do not use when each item needs a genuinely different treatment.
npx claudepluginhub florafauna-ai/flora-mcp-skills --plugin flora-mcp-skillsOther plugins' skills for the same job