Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
fix(ad-creative): validate review data shape, use aria-pressed concept buttons, make likes data-driven
Corey Hainesab24d206abbb
diff --git a/skills/ad-creative/SKILL.md b/skills/ad-creative/SKILL.mdindex c563acd..350ed1e 100644--- a/skills/ad-creative/SKILL.md+++ b/skills/ad-creative/SKILL.md@@ -2,7 +2,7 @@name: ad-creativedescription: "When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' 'static ads,' 'ad templates,' 'iMessage ad,' 'chat reveal ad,' 'ChatGPT ad,' 'Apple Notes ad,' 'AirDrop ad,' 'creative strategy,' 'creative roadmap,' 'creative retro,' 'hook writing,' 'creative review page,' 'present ad creative for approval,' 'motion video ad,' 'faceless video ad,' 'UGC ad,' 'greenscreen ad,' 'TikTok/Reels ad format,' 'which ad format to make,' 'Meta ad format tier list,' or 'creative format taxonomy.' Use it to produce or iterate ad copy at scale. Copy avoids AI tells like 'it's not X, it's Y' reveals. For campaign strategy and targeting, see ads. For landing page copy, see copywriting."metadata:- version: 2.9.2+ version: 2.9.3---# Ad Creativediff --git a/skills/ad-creative/assets/creative-review-template.html b/skills/ad-creative/assets/creative-review-template.htmlindex 6a2c913..7866040 100644--- a/skills/ad-creative/assets/creative-review-template.html+++ b/skills/ad-creative/assets/creative-review-template.html@@ -47,7 +47,7 @@.concept { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);padding: 14px 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s; font: inherit; color: inherit; }.concept:hover { border-color: #cfcdc6; }- .concept[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }+ .concept[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }.concept .row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }.concept .num { font-size: 11px; font-weight: 700; color: var(--muted); }.concept .frames { font-size: 11px; color: var(--muted); }@@ -175,6 +175,7 @@"We tested our protein for heavy metals. Here's what an independent lab found.","Most protein powders are never tested for heavy metals. Ours is."],+ "likes": "6,240","primaryText": "We tested our Plant-Based Protein for the heavy metals that hide in “clean” powders — lead, arsenic and cadmium. Here's exactly what an independent lab measured.","destination": { "url": "shop.truvani.com", "cta": "Shop now", "offer": "72% OFF Protein Starter Kit" },"rollout": {@@ -214,7 +215,7 @@<div class="wrap"><header class="project" id="project"></header><div class="eyebrow">Creative concept · toggle between ideas</div>- <div class="concepts" id="concepts" role="tablist"></div>+ <div class="concepts" id="concepts"></div><div class="grid"><section><div class="eyebrow col-label" id="preview-label">In-feed preview</div>@@ -249,6 +250,18 @@ try {throw e;}+function invalid(msg) {+ document.querySelector(".wrap").innerHTML =+ '<div class="err"><b>The review data is missing something.</b><br/>' + esc(msg) + '</div>';+ throw new Error(msg);+}+if (!DATA || !Array.isArray(DATA.concepts) || !DATA.concepts.length)+ invalid('"concepts" must be a non-empty array.');+DATA.concepts.forEach((c, i) => {+ if (!c || typeof c !== "object") invalid(`concepts[${i}] must be an object.`);+ if (!Array.isArray(c.frames) || !c.frames.length) invalid(`concepts[${i}].frames must be a non-empty array.`);+});+const state = { concept: 0, frame: 0, platform: null, handle: 0, headline: 0 };const concept = () => DATA.concepts[state.concept];@@ -273,7 +286,7 @@ function renderProject() {function renderConcepts() {document.getElementById("concepts").innerHTML = DATA.concepts.map((c, i) => `- <button class="concept" role="tab" aria-selected="${i === state.concept}" data-i="${i}">+ <button class="concept" aria-pressed="${i === state.concept}" data-i="${i}"><div class="row1"><span class="num">${String(i + 1).padStart(2, "0")}</span><span class="frames">${c.frames.length} frame${c.frames.length === 1 ? "" : "s"}</span></div><div class="name">${esc(c.name)}</div>@@ -350,7 +363,7 @@ function renderPost() {} else {chrome = `<div class="ig-cta"><span>${esc(dest.cta || "Learn more")}</span><span class="chev">›</span></div><div class="ig-actions">${heart}${comment}${share}<span class="save">${bookmark}</span></div>- <div class="likes">6,240 likes</div>+ ${c.likes ? `<div class="likes">${esc(c.likes)} likes</div>` : ""}<div class="caption"><span class="h">${esc(h.name)}</span> ${esc((c.primaryText || "").slice(0, 90))}<span class="more"> … more</span></div>`;}diff --git a/skills/ad-creative/references/creative-review-page.md b/skills/ad-creative/references/creative-review-page.mdindex e6842cc..6b8b2f8 100644--- a/skills/ad-creative/references/creative-review-page.md+++ b/skills/ad-creative/references/creative-review-page.md@@ -51,6 +51,7 @@ The template renders entirely from a JSON block near the top of the file — `<s"Most protein powders are never tested for heavy metals. Ours is."],primaryText: "The caption / body copy.",+ likes: "6,240", // optional — Instagram like count; omit and no count is showndestination: { url: "shop.truvani.com", cta: "Shop now", offer: "72% OFF Protein Starter Kit" },rollout: { // optional — the mechanics of how this runs (whitelist, launch plan)title: "How the whitelist runs",