Logotipo de Kai Ad Campaign

Kai Ad Campaign

Comunidad
cgallic
kai-ad-campaign

Planifica, evalúa y crea campañas de publicidad de pago en distintas plataformas (Meta, Google, LinkedIn, TikTok, Microsoft, Pinterest, Snapchat, Amazon, X). Evalúa anuncios existentes, asigna etapas del embudo (TOF/MOF/BOF), crea variantes para cada plataforma que cumplan sus políticas y genera textos listos para subir. Úsala cuando se mencione «ad campaign», «create ads», «run ads for», «paid campaign», «media plan», «launch ads», «Meta campaign», «Google Ads campaign», «multi-platform ads», «evaluate my ads», «how are my ads doing», «audit my ads», «ad performance» o «analyze ads», o ante cualquier solicitud para evaluar anuncios existentes o crear publicidad nueva.

Add to TypingMind

Descripción general

Editorcgallic
Repositoriokai-cmo-harness
Nombre de la habilidadkai-ad-campaign
Estrellas
61
Forks
8
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por cgallic en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Kai Ad Campaign en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/cgallic/kai-cmo-harness/tree/main/harness/skills-v2/kai-ad-campaign
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cgallic/kai-cmo-harness.git /tmp/kai-cmo-harness
mkdir -p .claude/skills
cp -r /tmp/kai-cmo-harness/harness/skills-v2/kai-ad-campaign .claude/skills/kai-ad-campaign
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Kai Ad Campaign en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Kai Ad Campaign automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Kai Ad Campaign no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Kai root note: knowledge/, harness/, and scripts/ paths in this skill live in the Kai install, not the user's project. Resolve them against the first ancestor directory of this SKILL.md that contains a knowledge/ folder (the Kai plugin root, ~/.claude/kai, or the kai-cmo-harness repo). MARKETING.md, memory/, and any output files live in the current project. If a referenced scripts/ command is not available in this install, say so, skip it, and continue with the file-based guidance — never fabricate its output.

/kai-ad-campaign — Ads That Clear Policy And Earn Their Spend

Objective

Either a verdict on the ads already running, or a ready-to-upload campaign across the platforms that fit the product — funnel stages mapped, variants written to each platform's character specs, every ad checked against that platform's policy reference before it was written, and an execution plan that never activates spend in the same action that creates it.

Two modes, and the mode changes what is permitted:

ModeTriggered byPermission
Evaluation"evaluate", "analyze", "audit", "how are my ads doing", "ad performance", "review my ads"Read-only. No creating, pausing, activating, bid changes, budget changes, asset uploads, keyword additions, or targeting mutations while evaluating.
Creation"create", "launch", "build", "new campaign", "run ads"Produce copy and structure; live writes stay approval-gated.
BothEvaluation findings become the input to creationRead-only until the evaluation is delivered.

Evaluation mode does not require MARKETING.md. Creation mode does.

Done when

Work type paid-ad-campaign — floor E5/C4/O4 (harness/eco-floors.yaml), spend_authority: true.

  • E5 — the platform returned ad object ids and a read-back of the live entity confirms targeting, budget, schedule, and creative match the approved bundle field-for-field. A successful API call is not E5. Hard stop: live-account mutation without recorded human approval is never SHIPPED, whatever else the evidence shows.
  • C4 — the platform policy reference was loaded and the ad checked against it before submission; plus four_us_score ≥ 10/16, banned_word_check clean, and mutation_risk_lint clean. C4 is the field standard, not a lint pass.
  • O4 — CAC, ROAS, CPL, or qualified lead rate read from the ads connector no earlier than the conversion window plus learning phase, against a threshold declared before launch. Platform-reported ROAS is not O5; O5 needs a holdout, geo-split, or incrementality design.

Evaluation-only runs are graded as audit-report instead — E3/C4/O1, with every number resolving to a pulled source and each P0 recommendation naming the metric it targets.

Constraints

Always

  • Read MARKETING.md from the project root before creation work. If it does not exist, build it from the codebase — CLAUDE.md, README.md, PROJECT.md, package.json, landing pages, email/ad/analytics config — using the template from /kai-email-system, and confirm the draft. Do not ask the user what the product is.
  • Five things must be known before writing creation-mode ads: which platforms, budget range, the goal (leads, conversions, traffic, awareness, installs), the landing page traffic goes to, and what creative assets already exist.
  • Load the platform's policy reference and skill contract before writing a single line of that platform's copy. The table under Context is the lookup. harness/references/advertising-compliance.md (FTC, GDPR, CAN-SPAM) applies to every platform on top of the platform's own rules.
  • Credentials come out of .env.local by grep, never source. Extracting a variable is not the same as executing the file.
  • Approval gate before production. Present the campaign map — platform selection, funnel stages, variants per stage, and any regulated-industry compliance concern — and get confirmation before producing ads.
  • No numbers without a pull. Spend, CTR, CPC, CPL, and retention figures come from the platform API or the analytics source, cited with the date range. Model memory is not a data source.

Per ad, before it ships

  1. Four U's ≥ 10/16.
  2. Zero banned words, zero AI slop.
  3. Platform character limits respected — headlines, descriptions, primary text.
  4. A specific number or stat anchors the claim.
  5. No policy violation against the loaded reference.
  6. No superlatives without proof.
  7. One clear CTA.

Creative diversity

Across the three variants per funnel stage, rotate the hook type — variant A pain/agitate, variant B social proof or stat-led, variant C pattern interrupt or story — and rotate the concrete creative format. Three ads sharing a production format with different opening lines are not three creatives.

Every variant declares both a hook_type (pattern_interrupt | social_proof | pain_agitate | direct_offer | story) and a concrete creative_format. Example pairings: problem_agitation + founder, social_proof + testimonial_mashup, pattern_interrupt + ugly_ad.

Formats are selected by select_creative_formats(...) in kai/paid_media/creative_formats.py, keyed on platform, funnel stage, available assets, and regulated-industry risk. Each selected format carries its check results — platform fit, funnel fit, asset feasibility, compliance status, missing assets, compliance flags. When the selector returns NEEDS_ASSET or REVIEW, the format stays in the plan only if the missing asset or the review step is stated explicitly.

API execution (Meta)

  • Load harness/references/ad-write-guardrails.md before any write path. Default to read-only reports, dry-run previews, upload validation, and recommendations. Live write access is approval-gated and never auto-approved.
  • Verify video ids against the live library before creating a video ad. A single digit difference is a different or nonexistent video. Never trust an id from logs or docs.
  • Verify the Instagram account id; pull from Page settings when it is not in .env.local. Use instagram_user_id, not instagram_actor_id.
  • Create everything PAUSED first. Activation is a separate high-risk action — never activate in the same action that creates entities or uploads assets.
  • The write guardrail packet carries: account allowlist, target campaign/ad set ids, dry-run payload, before/after diff, evidence source, platform policy result, rollback reference, and the human approval note.
  • Bid and budget writes are blocked unless capped: current value, proposed value, percent change, daily cap, per-change cap, and rollback path all stated. Never auto-approve a bid or budget change.
  • Strip organic-only captions, hashtags, and comment-keyword CTAs from paid copy.
  • Entity order: campaign (paused) → ad set(s) with targeting and budget → ads with inline creative (object_story_spec) → review in Ads Manager → activate as its own approved action.

Launch decision gate

Load knowledge/playbooks/meta-creative-testing-decision-framework.md when any of these hold: 10 or more ads/creatives will be created; ad set daily budget sits below recent or target CPA; existing winners are already producing leads, purchases, or qualified calls; or the user is asking whether to push all, push a subset, pause all, or find the best launch structure. Write the decision memo before execution. Defaults for large batches: create all requested ads PAUSED when staging helps, activate only the recommended subset when budget is tight, keep proven winner ad sets separate from exploratory batches, and protect existing winners unless the user explicitly wants a refresh test. Separate "create paused for review" from "activate for spend" in every recommendation.

New-brand or first-paid-test launches

Load knowledge/playbooks/paid-media-launch-playbook.md and apply its defaults before writing ads: minimum test budget of target CPA × 50; build the measurement checklist before campaign copy; Meta starts with one campaign per product plus simple retargeting; Google starts with branded search, non-branded search per product or problem, and shopping only once feed quality is ready; avoid Performance Max until the account has baseline data. Produce workspace/ads/_launch-brief.md and workspace/ads/_measurement-checklist.md.

Context

NeedLoad
Meta policy · API execution · contractharness/references/meta-ads-rules.md · harness/references/meta-ads-api-reference.md · harness/skill-contracts/meta-ads.yaml
Google policy · contractharness/references/google-ads-policy-reference.md · harness/skill-contracts/google-ads.yaml
LinkedIn policyharness/references/linkedin-ads-rules.md
TikTok policyharness/references/tiktok-ads-policy-reference.md
Microsoft policyharness/references/microsoft-ads-rules.md
Pinterest policyharness/references/pinterest-ads-rules.md
Snapchat policyharness/references/snapchat-ads-policy-reference.md
Amazon policyharness/references/amazon-ads-policy-reference.md
X/Twitter policyharness/references/x-ads-policy-reference.md
Law that applies to every platformharness/references/advertising-compliance.md
Any workflow that uploads, creates, activates, pauses, or changes bids/budgetsharness/references/ad-write-guardrails.md
First paid test or new brandknowledge/playbooks/paid-media-launch-playbook.md
Batch creative testing, budget-vs-CPA callsknowledge/playbooks/meta-creative-testing-decision-framework.md
Format selection by platform, stage, assets, riskkai/paid_media/creative_formats.py (select_creative_formats)
On-site behavior behind ad trafficharness/references/posthog-marketing-queries.md (UTM pageviews #2, ad visitor journeys #5, campaign attribution #8)

Platform constraints worth carrying inline — the policy reference still loads before writing:

PlatformKey constraints
MetaHeadline 27 chars, primary text 125 chars visible. Special Ad Categories, no before/after imagery, personal-attributes ban
Google15 headlines at 30 chars, 4 descriptions at 90 chars. No superlatives without proof
LinkedInProfessional context required, B2B claim substantiation
TikTokNo political ads, weight-management restrictions, AI-content disclosure required
MicrosoftMirrors Google's RSA format; country-level gambling bans, clinical trials ban
PinterestAll weight-loss ads banned, strict body-image rules
SnapchatYoung-audience protections, EU political ad ban
Amazon18-month claim evidence rule, no competitor disparagement
X/TwitterVerification tier affects ad access; political ad certification by country

Funnel structure — adapt to the product; not every product needs every stage. Three variants per stage per platform is the default:

StageObjectiveAudienceTypical platforms
TOF (awareness)ReachCold — lookalikes, interest-basedMeta, TikTok, Google Display
MOF (consideration)Traffic, engagementWarm — site visitors, engagersMeta, Google Search, LinkedIn
BOF (conversion)Leads, salesHot — cart abandoners, demo requestersMeta retargeting, Google Search (brand), email

Evaluation scoring benchmarks — adjust to the vertical (B2B SaaS, local service, ecommerce):

MetricPoorOKGoodGreat
CTR< 0.5%0.5–1%1–2%> 2%
CPC> $5$3–5$1.50–3< $1.50
CPL> $50$30–50$15–30< $15
Video 25% retained< 30%30–50%50–70%> 70%
Video 75% retained< 5%5–10%10–20%> 20%
Landing page bounce> 80%60–80%40–60%< 40%

Every evaluated ad gets one of four verdicts: keep, optimize (with the specific fix — copy, creative, or targeting), pause, or create new (a gap: missing funnel stage, untested hook, unserved segment). The evaluation report carries account-level totals (active campaigns, active ads, 30-day spend, average CTR/CPC/CPL), campaign-level and ad-level performance, and those verdicts.

Output goes to workspace/ads/:

  • _evaluation-report.md — evaluation mode only.
  • _campaign-map.md — funnel structure, platform mix, variant counts. Presented for approval before production.
  • One folder per platform holding the variant files: meta/tof-variant-a.md, google/search-rsa-branded.md, linkedin/….
  • _quality-report.md — per-ad Four U's score, character-limit result, policy result, and status; the policy flags needing legal review or carrying borderline claims; and which variants to test first based on hook diversity.
  • _platform-setup.md — campaign structure per platform, audience targeting, budget allocation across platforms and stages, bid strategy, and UTM conventions.
  • _launch-brief.md, _measurement-checklist.md, and _meta-creative-testing-decision.md when their trigger conditions fire.

Escalate when

  • Any live write is requested — creating, activating, pausing, uploading, or changing a bid or budget. These go to human approval every time.
  • Budget cannot fairly test the requested batch; propose a staged subset rather than splitting spend across everything.
  • The product sits in a regulated category (health, finance, housing, employment, credit) where the loaded policy reference flags the intended claim or targeting.
  • Platform data cannot be pulled and the user wants performance conclusions anyway.
  • Existing winners would be disturbed by the proposed test and the user has not asked for a refresh.
  • A claim in the copy has no substantiation and the platform requires proof.

Preguntas frecuentes

¿Qué hace la habilidad de IA Kai Ad Campaign?

Planifica, evalúa y crea campañas de publicidad de pago en distintas plataformas (Meta, Google, LinkedIn, TikTok, Microsoft, Pinterest, Snapchat, Amazon, X). Evalúa anuncios existentes, asigna etapas del embudo (TOF/MOF/BOF), crea variantes para cada plataforma que cumplan sus políticas y genera textos listos para subir. Úsala cuando se mencione «ad campaign», «create ads», «run ads for», «paid campaign», «media plan», «launch ads», «Meta campaign», «Google Ads campaign», «multi-platform ads», «evaluate my ads», «how are my ads doing», «audit my ads», «ad performance» o «analyze ads», o ant...

¿Por qué usar Kai Ad Campaign en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Kai Ad Campaign está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Kai Ad Campaign en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/cgallic/kai-cmo-harness/tree/main/harness/skills-v2/kai-ad-campaign. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Kai Ad Campaign?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Kai Ad Campaign?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Kai Ad Campaign con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Kai Ad Campaign?

cgallic la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇