← Back to Skills Marketplace
lanbowai

lanbow-claw-skill

by LanbowAI · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ Security Clean
375
Downloads
2
Stars
1
Active Installs
6
Versions
Install in OpenClaw
/install lanbow-claw-skill
Description
End-to-end Meta (Facebook/Instagram) advertising system orchestrator covering the full ad lifecycle: strategy research, creative generation, campaign deliver...
README (SKILL.md)

Lanbow Ads Skills

End-to-end Meta Ads lifecycle management across 4 features: Strategy → Creative → Delivery → Review, forming a continuous optimization loop. Built by Lanbow — see the detailed guide for more information.

Feature Map

# Feature Skill What It Does Key Dependency
1 Strategy Research ads-strategy-researcher Market analysis, competitive intelligence, messaging strategy WebSearch / WebFetch
2 Creative Generation creative_gen AI-generated ad images from strategy inputs User's Gemini API Key
3 Ad Delivery lanbow-ads Campaign creation and management via Meta Ads CLI User's Meta Access Token
4 Post-Campaign Review post-campaign-review Performance diagnosis and optimization plan Campaign delivery data

System Decision Tree

Starting a new campaign from scratch? → Start at Feature 1 (Strategy) → Feature 2 (Creative) → Feature 3 (Delivery)

Have strategy, need creatives? → Start at Feature 2 (Creative) → Feature 3 (Delivery)

Have creatives, need to launch? → Start at Feature 3 (Delivery)

Campaign already running, need to optimize? → Start at Feature 4 (Review) → loop back to Features 1-3 as needed

Quick ad hoc task? (list campaigns, check performance, upload image, etc.) → Use Feature 3 (Delivery / lanbow-ads CLI) directly

Full Lifecycle Loop

┌─────────────────────────────────────────────────────────┐
│                                                         │
│  Feature 1: Strategy Research                           │
│  ┌──────────────────────────────────┐                   │
│  │ Input: URL, objectives, audience │                   │
│  │ Output: insights report          │                   │
│  │   • key message                  │                   │
│  │   • key look                     │                   │
│  │   • ad angles + CTAs             │                   │
│  │   • audience segments            │                   │
│  └──────────┬───────────────────────┘                   │
│             │                                           │
│             ▼                                           │
│  Feature 2: Creative Generation                         │
│  ┌──────────────────────────────────┐                   │
│  │ Input: key message, key look,    │                   │
│  │        product info, audiences   │                   │
│  │ Output: ad images + prompts      │                   │
│  └──────────┬───────────────────────┘                   │
│             │                                           │
│             ▼                                           │
│  Feature 3: Ad Delivery                                 │
│  ┌──────────────────────────────────┐                   │
│  │ Input: creatives, targeting,     │                   │
│  │        budget, account           │                   │
│  │ Output: live campaign            │                   │
│  └──────────┬───────────────────────┘                   │
│             │                                           │
│             ▼                                           │
│  Feature 4: Post-Campaign Review                        │
│  ┌──────────────────────────────────┐                   │
│  │ Input: performance data          │                   │
│  │ Output: diagnosis + next actions │──── loop back ────┘
│  └──────────────────────────────────┘

Feature 1: Strategy Research

Skill: ads-strategy-researcher | Details: strategy-research.md

Perform pre-campaign market analysis using WebSearch + WebFetch. Produces a structured strategy report.

Trigger phrases: "ads strategy", "marketing plan", "competitor research", "market research"

Inputs: product URL, business objectives, campaign context, audience info, competitors

Key outputs that feed Feature 2:

Output Used By
Key Message (primary promise + reasons) product_info / requirements in creative gen
Key Look (visual cues, composition) requirements in creative gen
Ad Angles (hooks, CTAs) input_cta in creative gen
Audience Segments audience_descriptions in creative gen

Strategy types: Omni-Channel (Amazon + TikTok + Meta) or Meta-Only

Feature 2: Creative Generation

Skill: creative_gen | Details: creative-generation.md

Generate ad creative images via 2-step Gemini pipeline: proposals (gemini-2.5-flash) → images (gemini-3.1-flash-image-preview).

Trigger phrases: "generate ad", "create ad image", "ad creative", "generate creatives"

Requires: GEMINI_API_KEY (optional env var — only needed when using this feature; not required for Features 1, 3, or 4)

Inputs: product info, audience descriptions, requirements, CTA, aspect ratio, optional product image

Outputs: creative-proposals.json + ad-*.png images + reusable prompt templates

Connection to Feature 3: Upload generated images via lanbow-ads images upload, then reference image_hash in lanbow-ads creatives create.

Feature 3: Ad Delivery

Skill: lanbow-ads | Details: ad-delivery.md

Execute campaign setup and management via the lanbow-ads CLI.

Trigger phrases: "create campaign", "launch ads", "upload image", "show campaigns", "投放广告"

Requires: Meta Access Token, App ID, Ad Account ID (declared in requires.env). App Secret is optional — only needed for exchanging short-lived tokens to long-lived tokens via lanbow-ads auth exchange.

Credential setup (try in order):

  1. Environment variables or platform secret fields (best): If META_ACCESS_TOKEN, META_APP_ID, and META_AD_ACCOUNT_ID are already set as environment variables (or via your platform's secret/credential fields), configure the CLI automatically:

    lanbow-ads config set --app-id "$META_APP_ID"
    lanbow-ads auth set-token "$META_ACCESS_TOKEN"
    lanbow-ads config set --account "$META_AD_ACCOUNT_ID"
    # Only if META_APP_SECRET is set (optional — needed only for token exchange):
    [ -n "$META_APP_SECRET" ] && lanbow-ads config set --app-secret "$META_APP_SECRET"
    
  2. Ask the user to provide credentials directly (most common): If env vars are not set, tell the user exactly how to get each credential from Meta's web interface. Recommend the user use their platform's secret fields or environment variables rather than pasting credentials directly into chat. If direct input is the only option, only request the minimum credentials needed for the current task:

    Then run the CLI commands on their behalf. For a full walkthrough, see meta-account-setup.md.

  3. lanbow-ads auth login (last resort): This opens a browser on the agent's machine for OAuth. It only works when you and the user are on the same machine. Do NOT attempt this by default. If the user can't open the auth URL or auth login fails, fall back to method 2 immediately — ask for credentials directly. Do NOT retry or keep sending OAuth URLs.

Credential scope limits: The agent must ONLY use provided credentials for lanbow-ads CLI commands. The agent must NOT log, echo, or store credentials in any file other than via the lanbow-ads config set and lanbow-ads auth set-token commands. The agent must NOT transmit credentials to any endpoint other than the Meta Marketing API (via the CLI).

Campaign creation sequence:

  1. lanbow-ads campaigns create — create campaign (PAUSED)
  2. lanbow-ads images upload / lanbow-ads videos upload — upload media
  3. lanbow-ads creatives create — create creative with media
  4. lanbow-ads adsets create — create ad set with targeting + budget
  5. lanbow-ads ads create — create ad linking ad set + creative
  6. Verify with lanbow-ads campaigns get / lanbow-ads ads get

Key rules:

  • Budgets in cents (5000 = $50.00)
  • Always create in PAUSED status, activate after review
  • Use --json flag when output feeds into another step
  • For OUTCOME_SALES: must include --promoted-object with pixel_id

Feature 4: Post-Campaign Review

Skill: post-campaign-review | Details: post-campaign-review.md

Analyze delivery data, diagnose performance issues, generate optimization recommendations.

Trigger phrases: "review campaign", "campaign diagnosis", "optimize ads", "复盘", "投后分析"

Data collection: Fetch via lanbow-ads insights get --json at multiple dimensions (campaign, ad set, ad, audience breakdowns, daily trends).

Diagnostic framework:

  • Metric health check against benchmarks (CTR, CPC, CPM, frequency, ROAS)
  • Root cause patterns: creative fatigue, audience saturation, targeting mismatch, budget issues, landing page problems

Output: Prioritized optimization plan (P0 immediate → P1 creative → P2 targeting → P3 strategic)

Feedback loop: Review findings feed back into:

  • Feature 1 (new strategy if targeting mismatch or new opportunity found)
  • Feature 2 (creative refresh if fatigue diagnosed)
  • Feature 3 (budget/targeting adjustments, pause/activate ads)

Cross-Feature Data Flow

Strategy Report ──→ key message, key look, audiences ──→ Creative Gen
Creative Gen   ──→ ad images, proposals             ──→ Ad Delivery (upload + create)
Ad Delivery    ──→ live campaign + performance data  ──→ Post-Campaign Review
Review         ──→ optimization actions              ──→ Ad Delivery (adjust)
Review         ──→ creative refresh needs            ──→ Creative Gen (new round)
Review         ──→ strategy refinement needs         ──→ Strategy Research (re-analyze)

Security & Privacy

Credentials

Required (declared in metadata.openclaw.requires.env — needed for ad delivery):

Env Var Sensitivity Used By Storage Location
META_ACCESS_TOKEN High — grants ad account access Feature 3 (Ad Delivery) lanbow-ads CLI config dir (~/.config/lanbow-ads/)
META_APP_ID Medium — app identifier Feature 3 (Ad Delivery) lanbow-ads CLI config dir
META_AD_ACCOUNT_ID Low — account identifier Feature 3 (Ad Delivery) lanbow-ads CLI config dir

Optional (only request when the specific feature is needed):

Env Var Sensitivity When Needed Storage Location
META_APP_SECRET High — can generate long-lived tokens Only for lanbow-ads auth exchange (short→long-lived token swap) lanbow-ads CLI config dir
GEMINI_API_KEY High — API access Only for Feature 2 (Creative Generation via Gemini) User's environment only; never persisted by this skill

Do NOT request optional credentials unless the user's task specifically requires them. For example, listing campaigns or checking insights needs only META_ACCESS_TOKEN, META_APP_ID, and META_AD_ACCOUNT_ID.

Secure Credential Delivery

Prefer environment variables or your platform's secret/credential fields over pasting credentials into chat. If the user must provide credentials in conversation, only request the minimum set needed for the current task. Never ask for META_APP_SECRET or GEMINI_API_KEY unless the user explicitly needs token exchange or creative generation.

Required Runtime Dependencies

Dependency Source Purpose
lanbow-ads CLI Install via npm i -g lanbow-ads (npm registry) Campaign management and performance data retrieval via Meta Marketing API
WebSearch / WebFetch Built-in agent tools Market research and competitive intelligence gathering

Credential Scope Restrictions

The agent is restricted to the following credential operations only:

  • lanbow-ads config set --app-id / --app-secret / --account — configure CLI
  • lanbow-ads auth set-token — set access token
  • lanbow-ads auth exchange — exchange short-lived token for long-lived token
  • lanbow-ads auth status — verify token validity

The agent must NOT:

  • Log, echo, or print credentials in plain text
  • Store credentials in any file other than via lanbow-ads CLI commands
  • Transmit credentials to any endpoint other than the Meta Marketing API (via CLI)
  • Use credentials for purposes outside ad campaign management

Data Flow & Privacy

  • What leaves the machine: API calls to Meta Marketing API (via lanbow-ads CLI), API calls to Google Gemini (for image generation), web searches (for strategy research)
  • What stays local: Strategy reports, generated creative images, campaign review documents, CLI configuration files
  • Credential handling: Credentials are configured via the lanbow-ads CLI and stored in its config directory (~/.config/lanbow-ads/). This skill itself does not persist or transmit credentials beyond passing them to the CLI.

Token Lifetime & Cleanup

Token Type Lifetime When to Use
User Access Token (Graph API Explorer) ~1-2 hours Quick tests, one-off campaigns
Long-lived User Token (via auth exchange) ~60 days Short-term automation
System User Token Never expires Production/agency use only

After use, always clean up stored credentials:

lanbow-ads auth logout          # Remove stored access token
lanbow-ads config unset --app-secret  # Remove stored app secret
lanbow-ads config list          # Verify no secrets remain

Security Recommendations

  1. Use env vars or secret fields, not chat — provide credentials via environment variables or your platform's secret/credential input fields. Avoid pasting App Secret or long-lived tokens directly into an open conversation
  2. Only supply what's neededGEMINI_API_KEY is only needed for creative generation, META_APP_SECRET is only needed for token exchange. Do not provide them if your task doesn't require those features
  3. Prefer short-lived tokens — start with a User Access Token from Graph API Explorer (~1-2 hours). Only use System User Tokens for production automation where you control the runtime
  4. Verify your runtime environment — only provide credentials if the agent runs on a machine you trust. Do NOT paste secrets into hosted/shared agent environments
  5. Use a dedicated test Ad Account — create a separate Ad Account with minimal budget for agent-managed campaigns; do not use your primary production account
  6. Least privilege scopes — when generating tokens, grant only ads_management and ads_read unless additional permissions are explicitly needed
  7. Rotate after use — revoke tokens in Meta Business Settings after your session ends, especially if you used long-lived tokens or App Secret
  8. Verify lanbow-ads provenance — install from the official npm registry and verify the package before use

Resources

All sub-skill instructions and reference materials are self-contained in references/.

Feature 1: Strategy Research

Feature 2: Creative Generation

  • creative-generation.md — Full Gemini 2-step pipeline: proposals → image generation, API calls, prompt templates

Feature 3: Ad Delivery

  • ad-delivery.md — Full lanbow-ads CLI guide: campaign creation, targeting, insights, configuration
  • ad-delivery-commands.md — Complete command reference with all flags, types, and descriptions
  • meta-account-setup.md — Step-by-step Meta developer registration, app creation, OAuth setup, and ad account configuration

Feature 4: Post-Campaign Review

  • post-campaign-review.md — Full diagnostic framework, metric benchmarks, optimization plan template, feedback loop
Usage Guidance
This skill appears to do what it says, but before you install/use it: (1) Do NOT paste long-lived or production Meta access tokens into chat if you can avoid it — prefer setting META_ACCESS_TOKEN, META_APP_ID, and META_AD_ACCOUNT_ID in your platform's secret store or environment variables. (2) If you must provide credentials interactively, prefer short‑lived tokens and rotate them after use; consider using a System User token for automation and grant only the minimum scopes required (ads_read/ads_management). (3) Confirm the lanbow-ads CLI binary that will run these commands is from a trusted source in your environment — the skill assumes it exists and will execute it. (4) Be aware the skill will create/update campaigns and can read campaign insights; review and monitor activity in Meta Business Manager and limit permissions if necessary. (5) Note the SKILL.md references a Gemini API key for creative generation but that variable isn’t declared in the registry metadata — if you plan to use creative generation, ask the skill author how that key should be provided and where it will be stored. (6) If you are uncomfortable with the agent taking autonomous actions that modify live campaigns, restrict or disable autonomous invocation for this skill and require explicit confirmations for deployment steps.
Capability Analysis
Type: OpenClaw Skill Name: lanbow-claw-skill Version: 1.0.5 The skill bundle is a comprehensive and professionally documented orchestrator for Meta (Facebook/Instagram) advertising campaigns. It utilizes a dedicated CLI tool (lanbow-ads) and Google Gemini APIs for creative generation. While it handles highly sensitive credentials such as Meta Access Tokens and Gemini API keys, the instructions (SKILL.md and meta-account-setup.md) include explicit security guardrails for the AI agent, strictly forbidding the logging, echoing, or unauthorized transmission of these secrets. The use of standard utilities like curl for API interaction and npm for package management is consistent with the stated purpose, and no evidence of malicious intent, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
The skill is an end-to-end Meta ads orchestrator and appropriately requires the lanbow-ads CLI and Meta credentials (META_ACCESS_TOKEN, META_APP_ID, META_AD_ACCOUNT_ID). However, the documentation references additional dependencies (e.g., a 'Gemini API Key' for creative generation) that are not declared in the skill's requires.env. That mismatch means the SKILL.md expects at least one more credential than the registry metadata lists.
Instruction Scope
SKILL.md instructs the agent to call the lanbow-ads CLI, fetch web data (WebSearch/WebFetch), generate creatives (external model key), collect campaign insights, and write structured report files. Those actions are consistent with the stated purpose. Flags: the skill explicitly instructs the agent to request and accept user-provided access tokens (and optionally app secret) and to save intermediate/output files to project directories — both are reasonable for this use-case but increase the surface where secrets or sensitive outputs might be exposed or persisted.
Install Mechanism
This is an instruction-only skill with no install spec; it expects the lanbow-ads binary to already exist. No third-party downloads or installers are used by the skill itself, which keeps install risk low. You should confirm the provenance of the lanbow-ads binary in your execution environment separately.
Credentials
Requested environment variables (META_ACCESS_TOKEN, META_APP_ID, META_AD_ACCOUNT_ID) are proportionate to an ad-delivery/orchestration skill. Caveat: SKILL.md also refers to other secrets (Gemini API key for creative generation, optional META_APP_SECRET for token exchange) but these are not listed in the required env metadata — an inconsistency. Also the instructions encourage pasting tokens if env/secret fields aren't available, which is functionally necessary but increases risk if done in chat.
Persistence & Privilege
always:false (good). The skill writes output and intermediate artifacts (report chapters, intermediate/) as part of its workflow which is normal for report generation. Be aware that persistent tokens configured into the agent's environment or CLI config will allow ongoing programmatic access to your ad account; paired with autonomous invocation (the platform default), that could let the agent act without repeated user confirmation. That is expected for an automation skill but worth conscious control.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lanbow-claw-skill
  3. After installation, invoke the skill by name or use /lanbow-claw-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
lanbow-claw-skill v1.0.5 - Updated environment variable requirements: META_APP_SECRET is now optional, not required. - Documentation improved to clarify that GEMINI_API_KEY is only needed for creative generation, not for other features. - Metadata and setup instructions adjusted to reflect new credential requirements for Meta integration. - App Secret is only necessary when performing access token exchanges, streamlining general usage.
v1.0.4
- Updated project homepage link from GitHub to https://lanbow.com/ - Added branding and documentation links to reference Lanbow and its detailed skill guide. - Expanded credential setup instructions for ad delivery, clarifying user guidance and credential collection methods. - No file or logic changes detected, only documentation improvements and clarifications.
v1.0.3
lanbow-claw-skill v1.0.3 - Updated required environment variables for Meta Ads delivery: now explicitly requires META_ACCESS_TOKEN, META_APP_SECRET, META_APP_ID, and META_AD_ACCOUNT_ID. - Enhanced credential setup instructions: supports automatic CLI configuration using environment variables, or an interactive setup fallback if not set. - Added strict agent rules: credentials must only be used for CLI commands, not logged or stored elsewhere. - No functional changes to the user workflow or skill orchestration.
v1.0.2
lanbow-claw-skill 1.0.0 - Added homepage URL and metadata fields to the skill configuration. - Specified required binaries (`lanbow-ads`) and environment variables (`GEMINI_API_KEY`) for the skill. - Minor metadata enhancements to improve compatibility and discoverability. - No changes to core functionality or major documentation content.
v1.0.1
lanbow-claw-skill 1.0.1 - Updated references to "workflow orchestrator" to "system orchestrator" in the skill description for clarity. - Changed the suggested trigger phrase from "full ads workflow" to "full ads system" for consistency. - No functional changes; documentation and terminology only.
v1.0.0
Lanbow Ads Skills 1.0.0 – Initial Release - Introduces a comprehensive end-to-end Meta (Facebook/Instagram) advertising workflow, orchestrating four phases: strategy, creative generation, campaign delivery, and post-campaign optimization. - Integrates four modular sub-skills: ads-strategy-researcher, creative_gen, lanbow-ads (delivery), and post-campaign-review, each usable independently or as part of a full pipeline. - Provides guidance on workflow routing, setup requirements (including token/API needs), and when each skill should be used. - Features CLI-based automation for Meta Ads creation, management, and analytics, with setup walkthrough and proactive user assistance. - Includes a post-campaign diagnostic and optimization loop to drive continual improvement of ad performance.
Metadata
Slug lanbow-claw-skill
Version 1.0.5
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 6
Frequently Asked Questions

What is lanbow-claw-skill?

End-to-end Meta (Facebook/Instagram) advertising system orchestrator covering the full ad lifecycle: strategy research, creative generation, campaign deliver... It is an AI Agent Skill for Claude Code / OpenClaw, with 375 downloads so far.

How do I install lanbow-claw-skill?

Run "/install lanbow-claw-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is lanbow-claw-skill free?

Yes, lanbow-claw-skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does lanbow-claw-skill support?

lanbow-claw-skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created lanbow-claw-skill?

It is built and maintained by LanbowAI (@lanbowai); the current version is v1.0.5.

💬 Comments