[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J4701X81HFS53DCHJ0NP6S":3,"skill-same:01M6J4701X81HFS53DCHJ0NP6S":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":79},"01M6J4701X81HFS53DCHJ0NP6S","schedule-ads",null,"Manage paid ads on AdManage.ai from declarative config - default schedules launches across Meta\u002FTikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn (always PAUSED); create provisions Meta campaigns and ad sets.","aeonfun\u002Faeon-agent","aeonfun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287715280?v=4","01M6CZ23C6MXGMF4N0V1DZ1247","aeon","01M6J3TN6FHJPWGPAR9ZVJY6FP",12,"MIT","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fschedule-ads\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"schedule ads","ads","schedule","auto","paid","parse","which","circuit-breaker","across","back","tiktok","default","never","create","read","branch","pick","api","ids","paid ads","Meta","run","2026-11-10 10:12:30",false,"---\nname: schedule-ads\ndescription: Manage paid ads on AdManage.ai from declarative config - default schedules launches across Meta\u002FTikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn (always PAUSED); create provisions Meta campaigns and ad sets.\nmetadata:\n  title: Schedule Ads\n  category: productivity\n  var: |\n    Selects which flow runs (parse from ${var}):\n    - empty \u002F unset (default) → SCHEDULE branch: read config.yaml, pick schedule\n      entries matching today, and launch those ads in-run via AdManage.ai.\n      Launches PAUSED by default; dailySpendCap circuit-breaker; never auto-activates\n      live spend.\n    - \"create\" → CREATE branch: read config.create.yaml, diff against\n      .admanage-state\u002Fcampaigns.json, and create the missing Meta campaigns + ad sets\n      in-run. On-demand; creates entities PAUSED; returned IDs are written back into\n      state so the schedule branch can launch into them.\n  commits: true\n  permissions:\n    - contents:write\n  tags:\n    - growth\n    - ads\n  requires:\n    - ADMANAGE_API_KEY\n---\n\n> **${var}** selects the flow. Empty\u002Funset = **schedule** (launch ads into existing ad sets). `create` = **create-campaign** (provision Meta campaigns + ad sets). Both are config-driven, PAUSED-by-default, and make the AdManage API calls **in-run** via `.\u002Fsecretcurl` (the `{ADMANAGE_API_KEY}` placeholder keeps the key off the command line), behind fail-closed spend guardrails.\n\nReads a declarative config, computes what to do, and makes the AdManage.ai API calls **in-run** via `.\u002Fsecretcurl`. The calls are an irreversible outbound side-effect (real ad spend), so they are each branch's **final** actions and run only behind the guardrails below (PAUSED-by-default, `dailySpendCap` circuit-breaker, dry-run). `ADMANAGE_API_KEY` is injected in-run via this skill's `requires:` — always write it as the `{ADMANAGE_API_KEY}` placeholder, never a bare `$ADMANAGE_API_KEY` (the Bash permission layer refuses that).\n\n## Preamble (both branches)\n\n1. Read `memory\u002FMEMORY.md` for context. Read the last ~3 days of `memory\u002Flogs\u002F` for recent launch \u002F provisioning activity — don't re-report a signal already logged.\n2. Parse `${var}`:\n   - empty \u002F unset → run the **Schedule branch** below.\n   - `create` → run the **Create branch** below.\n   - anything else → log `SCHEDULE_ADS_UNKNOWN_SELECTOR: \u003Cvalue>` and exit cleanly (no notify).\n3. Both branches spend real money on ad platforms. The shared safety posture (see each branch) is: PAUSED by default, config-only (never invent campaigns\u002Fcreative\u002Ftargeting), dry-run available, and exit silently when there's nothing to do.\n\n---\n\n# Schedule branch (default — empty `${var}`)\n\nReads `skills\u002Fschedule-ads\u002Fconfig.yaml`, picks schedule entries matching today, and launches those ads **in-run** via AdManage.ai (`POST \u002Fv1\u002Flaunch` through `.\u002Fsecretcurl`), behind the spend guardrails below.\n\n## Safety defaults (schedule)\n\nThis branch **spends real money on ad platforms**. Guardrails, in priority order:\n\n1. **PAUSED by default.** Every launch request sets the entity to PAUSED. The operator has to resume manually in the AdManage dashboard before spend starts. `launchPaused: false` in config is the explicit opt-out.\n2. **Daily spend cap.** Before launching, the branch checks `GET \u002Fv1\u002Fspend\u002Fdaily` for today. If spend ≥ `dailySpendCap` in the config, all launches are skipped and a warning is notified. If the spend figure can't be verified (malformed \u002F empty response), **fail closed** — skip and notify, don't launch. This is a circuit breaker, not a budget enforcer — platform budgets still apply.\n3. **Dry-run mode.** If `DRY_RUN=true` in env or `dryRun: true` in config, the branch builds the payloads, writes them to `.pending-admanage\u002Fdryrun\u002F`, notifies what *would* launch, and exits without calling the API.\n4. **Config-only.** The branch does not invent campaigns, creative, or targeting. If there's no schedule for today, it exits cleanly with no API calls.\n5. **Single source of truth.** All ads\u002Fcampaigns\u002Ftargeting live in `config.yaml`. The branch never generates new creative on the fly.\n\n## Network note (schedule)\n\nLaunching ads is an irreversible outbound side-effect (real ad spend), so it is the branch's **final** action and runs only after the guardrails above pass:\n\n- Auth'd calls go through `.\u002Fsecretcurl` with the `{ADMANAGE_API_KEY}` placeholder — never a bare `$ADMANAGE_API_KEY` (the Bash permission layer refuses that). `ADMANAGE_API_KEY` is injected in-run via `requires:`.\n- The branch checks the daily spend cap (`GET \u002Fv1\u002Fspend\u002Fdaily`), then per batch calls `POST \u002Fv1\u002Flaunch`, polls `GET \u002Fv1\u002Fbatch-status\u002F{id}` to a terminal state, and reports via `.\u002Fnotify`.\n- If `ADMANAGE_API_KEY` is unset, or the launch\u002Fspend call fails, skip the launch and notify — do not retry blindly. There is no deferred postprocess fallback.\n- **Shell shape (both branches).** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`SPEND=$(.\u002Fsecretcurl ...)`, `RESP=$(.\u002Fsecretcurl ...)`), uses `if` \u002F `for` \u002F `while` or `[ ... ]` tests, calls `sleep`, or joins commands with `;`, `&&` or `||` (including `cmd || { ...; exit 0; }` guards), and each refusal costs a model turn. So run each lookup as its own call and write the printed value into later commands literally (the `\u003CTODAY>`, `\u003CSPEND>`, `\u003CCAP>`, `\u003CBATCH_ID>` style placeholders in the snippets); turn each guard into a prose decision on what the call printed; write each request body to a `\u002Ftmp` file with Write and send it with `-d @file` instead of `-d \"$PAYLOAD\"`; make one call per batch, campaign or ad set instead of a loop; wait between polls with a one-line `python3 -c \"import time; time.sleep(5)\"` call.\n\n## Steps (schedule)\n\n1. **Load config.** Read `skills\u002Fschedule-ads\u002Fconfig.yaml`. If the file doesn't exist, log `SCHEDULE_ADS_NOT_CONFIGURED` and exit cleanly (no notify, no error). The example template lives next to this file as `config.example.yaml`.\n\n2. **Validate config shape.** Required top-level keys: `defaults` (with `adAccountId`, `workspaceId`, `page`), and `schedules` (array). If either is missing, file an issue in `memory\u002Fissues\u002F` per the CLAUDE.md issue tracker convention, notify once, and exit.\n\n3. **Pick today's schedule entries.** For each entry in `schedules`, match against today's date:\n   - `when.everyDay: true` → always matches.\n   - `when.dayOfWeek: monday` (or any weekday name, lowercase) → matches if today is that weekday (UTC).\n   - `when.date: \"2026-04-25\"` → matches only on that exact date.\n   - `when.dates: [\"2026-04-25\", \"2026-05-02\"]` → matches if today is in the list.\n   - `when.cron: \"0 8 * * 1\"` → (advanced) matches if today satisfies the cron. Optional — skip if it's too much parsing effort.\n\n   If no entries match today, log `SCHEDULE_ADS_NOTHING_TODAY` and exit cleanly (no notify).\n\n4. **Build launch payloads.** For each matching schedule entry, construct the AdManage `POST \u002Fv1\u002Flaunch` body:\n   ```json\n   {\n     \"ads\": [\n       {\n         \"adName\": \"\u003Ctemplated from ad.adName, {date} replaced>\",\n         \"adAccountId\": \"\u003Cfrom defaults or entry override>\",\n         \"workspaceId\": \"\u003Cfrom defaults or entry override>\",\n         \"title\": \"\u003Cfrom ad>\",\n         \"description\": \"\u003Cfrom ad>\",\n         \"cta\": \"\u003Cfrom ad or defaults.cta>\",\n         \"link\": \"\u003Cfrom ad>\",\n         \"page\": \"\u003Cfrom defaults>\",\n         \"insta\": \"\u003Cfrom defaults, Meta only>\",\n         \"adSets\": [ { \"value\": \"\u003Cid>\", \"label\": \"\u003Cname>\" } ],\n         \"media\": [ { \"url\": \"\u003Cmedia url>\" } ],\n         \"status\": \"PAUSED\"\n       }\n     ]\n   }\n   ```\n   Enforce `status: PAUSED` on every ad unless `defaults.launchPaused` is explicitly `false`. Never strip it silently.\n\n   Template substitutions inside string fields:\n   - `{date}` → today's ISO date (YYYY-MM-DD)\n   - `{dateHuman}` → \"April 21, 2026\" style\n\n5. **Pre-flight validation.** For each payload:\n   - `media[*].url` must be an absolute `https:\u002F\u002F` URL. Reject entries with local paths or obviously broken URLs.\n   - `adSets[*].value` must be a non-empty string. If missing, skip the entry with a warning in the log.\n   - For Meta entries (`adAccountId` starts with `act_`): `page` and `insta` must be set. TikTok\u002FSnapchat\u002Fetc. have their own requirements — don't block on Meta-specific fields for other platforms.\n   - `title` and `description` must be non-empty.\n\n   Drop invalid entries, keep going. Log which ones were skipped and why.\n\n6. **Handle dry-run.** If `DRY_RUN=true` or `config.dryRun: true`:\n   - Write payloads to `.pending-admanage\u002Fdryrun\u002F{schedule-name}-{timestamp}.json`.\n   - Notify a preview (see step 9) but with `[DRY RUN]` prefix.\n   - Skip step 7.\n   - This mode exists for the operator to sanity-check before arming real launches.\n\n7. **Launch in-run.** This is the branch's final action — spends real money, so run the guardrails first. Only `.\u002Fsecretcurl`, `jq`, `date`, `echo`, `mkdir`, `grep`, `python3`, and the `Write` tool are available.\n\n   a. **Config check.** Read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `ADMANAGE_API_KEY` is not on that line → notify \"ads computed but ADMANAGE_API_KEY missing — nothing launched\" and stop.\n\n   b. **Daily spend circuit-breaker (once).** Take the strictest `dailySpendCap` (`CAP`) across today's payloads. If set, read today's spend and **fail closed** unless it's a clean number *below* the cap. Each step is its own Bash call:\n      ```bash\n      date -u +%Y-%m-%d\n      ```\n      It prints `TODAY`. Then, with `TODAY` written in literally:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 30 -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" \\\n        \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fspend\u002Fdaily?startDate=\u003CTODAY>&endDate=\u003CTODAY>\" | jq -r '.metadata.totalSpend \u002F\u002F \"\"'\n      ```\n      It prints `SPEND`. Check that it is a clean number:\n      ```bash\n      echo \"\u003CSPEND>\" | grep -E '^[0-9]+(\\.[0-9]+)?$'\n      ```\n      If that prints nothing, say \"spend unverifiable - fail closed\" and stop (launch nothing). Check `CAP` the same way:\n      ```bash\n      echo \"\u003CCAP>\" | grep -E '^[0-9]+(\\.[0-9]+)?$'\n      ```\n      If that prints nothing, say \"dailySpendCap not numeric - fail closed\" and stop. Then compare:\n      ```bash\n      python3 -c \"import sys; print('TRIPPED' if float(sys.argv[1])>=float(sys.argv[2]) else 'UNDER_CAP')\" \"\u003CSPEND>\" \"\u003CCAP>\"\n      ```\n      If it prints `TRIPPED`, say \"daily spend cap tripped (today=\u003CSPEND> cap=\u003CCAP>) - launching nothing\" and stop. Only `UNDER_CAP` goes on to step c.\n   c. **Per batch: launch, then poll.** For each payload `{ ads: [ ... ] }`, write it with Write to `\u002Ftmp\u002Fschedule-ads-launch.json` (overwrite per batch), then one call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 60 -w 'http=%{http_code}\\n' -X POST \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Flaunch\" \\\n        -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" -H \"Content-Type: application\u002Fjson\" -d @\u002Ftmp\u002Fschedule-ads-launch.json\n      ```\n      It prints the response (`RESP`) and an `http=` line. Success => `.success==true` and `.adBatchId` set; else record FAILED (`.message`\u002F`.error`) and continue. Then poll the batch (~90s, 5s interval): repeat this one call, with `BATCH_ID` written in literally, until `.summaryStatus` is `success` or `error`, **at most 18 times**, waiting 5 s between calls with one `python3 -c \"import time; time.sleep(5)\"` call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 30 -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fbatch-status\u002F\u003CBATCH_ID>\"\n      ```\n      Record each batch's outcome (ok \u002F error \u002F still-running-after-timeout) for the notify. Ads launch **PAUSED** (the payload sets it) unless `launchPaused: false`.\n\n8. **Write artifact to `output\u002F.chains\u002Fschedule-ads.md`** so downstream chain consumers can read what was queued. Format:\n   ```markdown\n   # Schedule Ads - ${today}\n\n   Queued: N launches across M schedules.\n   Dry-run: yes|no.\n\n   ## Entries\n   - \u003Cschedule name>: \u003Cad count> ads, platform=\u003Cmeta|tiktok|…>, paused=\u003Cbool>\n     - \u003CadName> - \u003Ctitle>\n   ```\n\n9. **Notify** via `.\u002Fnotify`. Keep it tight:\n   ```\n   *Ads queued - ${today}${dryRunSuffix}*\n\n   \u003CN> launches queued from \u003CM> schedules.\n\n   - \u003Cschedule name> → \u003Cad count> ads \u003Cplatform> \u003Cpaused|LIVE>\n     \"\u003Cfirst adName>\"\n   - ...\n\n   \u003Cif dry-run>\n   no API calls made - remove DRY_RUN to arm.\n   \u003Celse>\n   launched via AdManage (PAUSED) - resume in the dashboard to start delivery.\n   ```\n   If nothing matched today (no launches), don't notify at all.\n\n10. **Log** — see the shared **Log** section below (discriminator: `schedule`).\n\n## Config schema (schedule)\n\nSee `skills\u002Fschedule-ads\u002Fconfig.example.yaml` for a filled-in template. Minimum viable config:\n\n```yaml\ndefaults:\n  adAccountId: act_XXXXXXXXXX\n  workspaceId: XXXXXXXXXXXX\n  page: XXXXXXXXXXXX         # Meta Page ID\n  insta: XXXXXXXXXXXX        # Instagram user ID\n  cta: LEARN_MORE\n  launchPaused: true         # NEVER change this without thought\n  dailySpendCap: 50          # USD. Circuit breaker.\n  dryRun: false\n\nschedules:\n  - name: weekly-promo\n    platform: meta\n    when: { dayOfWeek: monday }\n    adSets:\n      - { value: \"120xxxxxxxxxxxxx\", label: \"US Broad 25-55\" }\n    ads:\n      - adName: \"Weekly promo — {date}\"\n        title: \"Headline copy here\"\n        description: \"Supporting copy in a sentence or two.\"\n        cta: LEARN_MORE\n        link: https:\u002F\u002Fexample.com\n        media:\n          - url: https:\u002F\u002Fmedia.admanage.ai\u002Fyour-account\u002Fhero.mp4\n```\n\n## What the schedule branch does NOT do\n\n- **Does not create campaigns or ad sets.** Those must pre-exist in AdManage — use the **`create` branch** (`${var}=create`), the dashboard, or `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` separately. This branch only launches *ads into existing ad sets*.\n- **Does not upload creative.** Media URLs must be hosted somewhere accessible (AdManage CDN, your own CDN, Supabase, wherever). If you need upload, add a separate `upload-ad-media` skill that calls `POST \u002Fv1\u002Fmedia\u002Fupload\u002Furl`.\n- **Does not generate copy.** Titles\u002Fdescriptions come from config. If the operator wants AI-written variants, a separate skill can write them into `config.yaml` and commit — keeps the launch path boring and auditable.\n- **Does not manage budgets, bids, or targeting.** Everything downstream of launch (scaling, pausing losers, budget shifts) lives in follow-up skills or the dashboard.\n- **Does not launch to Google Ads, Axon, or Taboola** in v1. Config schema is deliberately Meta\u002FTikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn-shaped. Adding Google\u002FAxon later is straightforward but their launch shapes differ enough to need their own validation.\n\n---\n\n# Create branch (`${var}=create`)\n\nReads `skills\u002Fschedule-ads\u002Fconfig.create.yaml`, figures out which campaigns\u002Fad sets don't exist yet, and creates them **in-run** via AdManage.ai (`\u002Fv1\u002Fmanage\u002Fcreate-*` through `.\u002Fsecretcurl`) — campaigns first, then ad sets referencing the returned campaign IDs — writing the new IDs back to `.admanage-state\u002Fcampaigns.json`.\n\nThis branch is **on-demand** — invoke it manually when you want to provision new campaigns, then reference the returned IDs in `skills\u002Fschedule-ads\u002Fconfig.yaml` (schedule branch) to launch creatives into them.\n\nRead `.admanage-state\u002Fcampaigns.json` (if it exists) to see what's already created.\n\n## What this branch provisions\n\nTwo entity types only:\n1. **Meta campaigns** — name, objective, budget, bid strategy, promoted object.\n2. **Meta ad sets** — name, budget, optimization goal, targeting (geo\u002Fage\u002Fplatforms), destination.\n\nEverything else (TikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn campaigns, advanced Meta fields like valueRuleSetId or Advantage+ catalog) is v2+. The shape below is intentionally minimal.\n\n## Safety defaults (create)\n\nSame posture as the schedule branch:\n\n1. **PAUSED by default.** Every campaign + ad set is created with `status: PAUSED`. No surprise spend.\n2. **Idempotent.** The branch tracks created entities in `.admanage-state\u002Fcampaigns.json`. If a campaign name already exists in state, it's skipped. Run it twice → no duplicates.\n3. **Dry-run mode.** `DRY_RUN=true` or `config.dryRun: true` → payloads written to `.pending-admanage\u002Fdryrun-create\u002F`, notified, no API calls.\n4. **Config-only.** No config file → exit silently. No invented campaigns, no autonomous provisioning.\n\n## Network note (create)\n\nProvisioning campaigns and ad sets is an irreversible outbound side-effect, so it is the branch's **final** action and runs in-run only after the diff + validation pass:\n\n- Auth'd calls go through `.\u002Fsecretcurl` with the `{ADMANAGE_API_KEY}` placeholder — never a bare `$ADMANAGE_API_KEY`. The key is injected in-run via `requires:`.\n- **Order matters:** create all campaigns first (`POST \u002Fv1\u002Fmanage\u002Fcreate-campaign`), keep a config-name → campaignId map, then create ad sets (`POST \u002Fv1\u002Fmanage\u002Fcreate-adset`) substituting each parent's real campaign ID. Write every new ID back to `.admanage-state\u002Fcampaigns.json` as you go (the workflow's Commit step persists it).\n- If `ADMANAGE_API_KEY` is unset, or a create call fails, record the failure and continue with the rest — never retry blindly, never invent IDs. An ad set whose parent campaign failed to create is skipped. There is no deferred postprocess fallback.\n\n## Steps (create)\n\n1. **Load config.** Read `skills\u002Fschedule-ads\u002Fconfig.create.yaml`. If it doesn't exist, log `CREATE_CAMPAIGN_NOT_CONFIGURED` and exit cleanly (no notify). The example template lives next to this file as `config.create.example.yaml`.\n\n2. **Load state.** Read `.admanage-state\u002Fcampaigns.json`. If it doesn't exist, treat as empty. Shape:\n   ```json\n   {\n     \"campaigns\": [\n       {\n         \"configName\": \"Prospecting — Q2 2026\",\n         \"campaignId\": \"120251616228380456\",\n         \"adAccountId\": \"act_xxx\",\n         \"createdAt\": \"2026-04-21T08:00:00Z\",\n         \"adSets\": [\n           {\n             \"configName\": \"US Broad 25-54\",\n             \"adSetId\": \"120251616242460456\",\n             \"createdAt\": \"2026-04-21T08:00:04Z\"\n           }\n         ]\n       }\n     ]\n   }\n   ```\n\n3. **Validate config shape.** Required: `defaults.adAccountId`, `defaults.workspaceId`, `campaigns[]`. Each campaign needs `name` and `objective`. Each ad set needs `name`, and either `optimizationGoal` (explicit) or a compatible parent objective. If validation fails, file an issue in `memory\u002Fissues\u002F` and exit.\n\n4. **Compute diff.** For each campaign in config:\n   - Match against state by exact `name`. If present, mark as `existing`.\n   - If missing, mark as `new` and queue a campaign create.\n   - For each ad set under the campaign, match against the parent's `adSets[]` in state by name. If missing, mark it for creation (carrying a `parentCampaignConfigName` reference you resolve to a real campaign ID in-run, once the parent campaign create returns).\n\n   If nothing is new, log `CREATE_CAMPAIGN_ALL_EXIST` and exit without notify.\n\n5. **Build campaign create payloads.** Per the AdManage `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` shape:\n   ```json\n   {\n     \"businessId\": \"\u003CadAccountId>\",\n     \"workspaceId\": \"\u003CworkspaceId>\",\n     \"name\": \"\u003Ccampaign.name>\",\n     \"objective\": \"\u003Ccampaign.objective>\",\n     \"status\": \"PAUSED\",\n     \"buyingType\": \"AUCTION\",\n     \"specialAdCategories\": [],\n     \"dailyBudget\": \u003Cnumber>,\n     \"bidStrategy\": \"\u003CLOWEST_COST_WITHOUT_CAP | LOWEST_COST_WITH_BID_CAP | COST_CAP | ...>\",\n     \"promotedObject\": { ... }\n   }\n   ```\n   Skip keys that are `null`\u002Fabsent in config — don't send empty strings. Always force `status: PAUSED` unless `defaults.launchPaused: false` is set explicitly.\n\n6. **Build ad-set create payloads.** Per `POST \u002Fv1\u002Fmanage\u002Fcreate-adset`:\n   ```json\n   {\n     \"businessId\": \"\u003CadAccountId>\",\n     \"workspaceId\": \"\u003CworkspaceId>\",\n     \"campaignId\": \"__RESOLVE_FROM_PARENT__\",\n     \"parentCampaignConfigName\": \"\u003Ccampaign.name>\",\n     \"name\": \"\u003CadSet.name>\",\n     \"status\": \"PAUSED\",\n     \"dailyBudget\": \u003Cnumber>,\n     \"billingEvent\": \"IMPRESSIONS\",\n     \"optimizationGoal\": \"\u003CLANDING_PAGE_VIEWS | OFFSITE_CONVERSIONS | ...>\",\n     \"destinationType\": \"\u003CWEBSITE | PHONE_CALL | MESSAGING_... | ...>\",\n     \"targeting\": { ... },\n     \"promotedObject\": { ... }\n   }\n   ```\n\n   The `__RESOLVE_FROM_PARENT__` sentinel + `parentCampaignConfigName` marks an ad set whose `campaignId` you fill in-run, from the map built as each campaign create returns (step 9b). If the parent campaign was *existing* (already in state), write the real campaign ID directly and drop the sentinel.\n\n7. **Pre-flight validation.**\n   - `adAccountId` must start with `act_` (this branch is Meta-only in v1).\n   - `dailyBudget` must be a positive number in dollars (not cents).\n   - `objective` must be one of the documented Meta objectives: `OUTCOME_TRAFFIC`, `OUTCOME_ENGAGEMENT`, `OUTCOME_LEADS`, `OUTCOME_AWARENESS`, `OUTCOME_SALES`, `OUTCOME_APP_PROMOTION`.\n   - Targeting `geo_locations.countries` must be a non-empty array.\n   Drop invalid entries, keep going, log what was skipped and why.\n\n8. **Handle dry-run.** If `DRY_RUN=true` or `config.dryRun: true`: write payloads to `.pending-admanage\u002Fdryrun-create\u002F` instead, notify with a `[DRY RUN]` prefix, skip step 9.\n\n9. **Create in-run.** This is the branch's final action — provisions real entities, so run only after the diff + pre-flight pass. Only `.\u002Fsecretcurl`, `jq`, `date`, `echo`, `python3`, and the `Write` tool are available (no `mv`). Seed `.admanage-state\u002Fcampaigns.json` to `{\"campaigns\":[]}` if missing.\n\n   a. **Config check.** Read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `ADMANAGE_API_KEY` is not on that line, notify \"campaigns computed but ADMANAGE_API_KEY missing — nothing created\" and stop (state unchanged).\n\n   b. **Campaigns first.** For each *new* campaign, write its payload with Write to `\u002Ftmp\u002Fschedule-ads-create.json` (overwrite per campaign), then one `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 60 -w 'http=%{http_code}\\n' -X POST \\\n        \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fmanage\u002Fcreate-campaign\" \\\n        -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" -H \"Content-Type: application\u002Fjson\" -d @\u002Ftmp\u002Fschedule-ads-create.json\n      ```\n      It prints the response (`RESP`) and an `http=` line. Success => `.success==true` and `.campaignId` set. On success: remember `configName → campaignId` (for step 9c) and append `{configName, campaignId, adAccountId, createdAt, adSets:[]}` to `.admanage-state\u002Fcampaigns.json`. On failure: record the error, skip this campaign's ad sets.\n\n   c. **Then ad sets.** For each new ad set, resolve `campaignId`: if it's `__RESOLVE_FROM_PARENT__`, look it up by `parentCampaignConfigName` in the map from 9b **or** existing state - if the parent isn't found (its create failed), skip the ad set with a warning. Then `POST \u002Fv1\u002Fmanage\u002Fcreate-adset` (same `.\u002Fsecretcurl` shape: payload written to `\u002Ftmp\u002Fschedule-ads-create.json` with Write, sent with `-d @\u002Ftmp\u002Fschedule-ads-create.json`, one call per ad set). On success: append `{configName, adSetId, createdAt}` under the parent campaign in `.admanage-state\u002Fcampaigns.json` (via `python3`\u002F`Write` - no `mv`).\n\n   Ordering is explicit here (campaigns loop fully before the ad-sets loop), so children always reference a resolved parent ID.\n\n10. **Write artifact to `output\u002F.chains\u002Fcreate-campaign.md`** so chain consumers can see what was queued:\n    ```markdown\n    # Create Campaign - ${today}\n\n    New campaigns: N.\n    New ad sets: M.\n    Dry-run: yes|no.\n\n    ## Campaigns\n    - \u003Cname> - \u003Cobjective>, $\u003CdailyBudget>\u002Fday\n      - ad set: \u003Cname> - \u003CoptimizationGoal>, $\u003CdailyBudget>\u002Fday, \u003Ccountries>\n\n    ## Skipped (already exist)\n    - \u003Cname>\n    ```\n\n11. **Notify via `.\u002Fnotify`.** Tight format:\n    ```\n    *Campaigns queued - ${today}${dryRunSuffix}*\n\n    \u003CN> campaigns, \u003CM> ad sets queued for creation.\n\n    - \u003Ccampaign name>\n      - adset: \u003Cadset name> - \u003Ccountry>, $\u003Cbudget>\u002Fday\n\n    \u003Cif dry-run>\n    no API calls made - remove DRY_RUN to arm.\n    \u003Celse>\n    created via AdManage (PAUSED); new IDs written to .admanage-state\u002Fcampaigns.json.\n    ```\n    If nothing is new, don't notify at all.\n\n12. **Log** — see the shared **Log** section below (discriminator: `create`).\n\n## Config schema (create)\n\nSee `skills\u002Fschedule-ads\u002Fconfig.create.example.yaml` for a filled-in template. Minimum viable config:\n\n```yaml\ndefaults:\n  adAccountId: act_XXXXXXXXXX\n  workspaceId: XXXXXXXXXXXX\n  launchPaused: true               # never flip without a reason\n  dryRun: false                    # true = build, don't call\n\ncampaigns:\n  - name: \"Prospecting — Q2 2026\"\n    objective: OUTCOME_TRAFFIC\n    dailyBudget: 50\n    bidStrategy: LOWEST_COST_WITHOUT_CAP\n    promotedObject:\n      pixel_id: \"123456789012345\"\n    adSets:\n      - name: \"US Broad 25-54\"\n        dailyBudget: 15\n        optimizationGoal: LANDING_PAGE_VIEWS\n        destinationType: WEBSITE\n        targeting:\n          geo_locations: { countries: [\"US\"] }\n          age_min: 25\n          age_max: 54\n          publisher_platforms: [facebook, instagram]\n```\n\n## Interaction with the schedule branch\n\nThe create branch writes new IDs to `.admanage-state\u002Fcampaigns.json` **within the same run**; from there they're yours to reference in `skills\u002Fschedule-ads\u002Fconfig.yaml` (schedule branch) under `adSets[].value`. The two flows are intentionally decoupled:\n\n- **create branch** provisions structure (container).\n- **schedule branch** launches creative into that structure (contents).\n\nThey still don't auto-chain — the schedule branch reads `config.yaml`, which you edit by hand. Pattern is: run `${var}=create` (provisions + writes IDs in-run) → read the new IDs from `.admanage-state\u002Fcampaigns.json` \u002F the create-run notify → copy them into `config.yaml` → next default (schedule) run launches into them.\n\n## What the create branch does NOT do\n\n- **Doesn't touch existing campaigns.** Once a campaign is in state, this branch leaves it alone. Budget changes, bid changes, status flips, renames — all handled elsewhere (dashboard or a separate skill).\n- **Doesn't delete or archive.** No destructive paths.\n- **Doesn't provision media, pages, or pixels.** Pixel IDs must already exist in AdManage. Use `GET \u002Fv1\u002Fconversions\u002Fpixels` to discover them.\n- **Doesn't create TikTok \u002F Snapchat \u002F Pinterest \u002F LinkedIn** structures. Those have different payload shapes and live in v2.\n- **Doesn't resume paused campaigns.** PAUSED is the end state; the operator unpauses manually when ready.\n\n---\n\n## Log (both branches)\n\nAppend to `memory\u002Flogs\u002F${today}.md` under ONE `### schedule-ads` heading. First bullet is a discriminator naming which branch ran.\n\n**Schedule branch:**\n```\n### schedule-ads\n- Branch: schedule\n- Schedules matching today: \u003Cnames>\n- Launches: \u003Ccount> (dry-run: \u003Cbool>)\n- Batch results: \u003Cok\u002Ferror\u002Ftimeout summary> (live) | dry-run preview in .pending-admanage\u002Fdryrun\u002F\n```\n\n**Create branch:**\n```\n### schedule-ads\n- Branch: create\n- New campaigns created: \u003Ccount> (ok\u002Ffail)\n- New ad sets created: \u003Ccount> (ok\u002Ffail)\n- State: new IDs written to .admanage-state\u002Fcampaigns.json (live) | dry-run preview in .pending-admanage\u002Fdryrun-create\u002F\n```\n\n## Environment Variables\n\n- `ADMANAGE_API_KEY` — the AdManage.ai API key, injected in-run via this skill's `requires:` and used by both branches for the `\u002Fv1\u002F*` calls. Always pass it as the `{ADMANAGE_API_KEY}` placeholder to `.\u002Fsecretcurl`, never a bare `$ADMANAGE_API_KEY` on the command line.\n- `DRY_RUN` — optional. If `true`, forces dry-run mode regardless of config, in whichever branch runs.\n- Notification channels configured via repo secrets (see CLAUDE.md).\n\n## Output\n\nEnd with a `## Summary` block naming the branch that ran:\n- **schedule:** schedules matched today, payload count, dry-run yes\u002Fno, files written.\n- **create:** new campaigns queued, new ad sets queued, skipped (already-exist) count, dry-run yes\u002Fno, files written.\n","> **${var}** selects the flow. Empty\u002Funset = **schedule** (launch ads into existing ad sets). `create` = **create-campaign** (provision Meta campaigns + ad sets). Both are config-driven, PAUSED-by-default, and make the AdManage API calls **in-run** via `.\u002Fsecretcurl` (the `{ADMANAGE_API_KEY}` placeholder keeps the key off the command line), behind fail-closed spend guardrails.\n\nReads a declarative config, computes what to do, and makes the AdManage.ai API calls **in-run** via `.\u002Fsecretcurl`. The calls are an irreversible outbound side-effect (real ad spend), so they are each branch's **final** actions and run only behind the guardrails below (PAUSED-by-default, `dailySpendCap` circuit-breaker, dry-run). `ADMANAGE_API_KEY` is injected in-run via this skill's `requires:` — always write it as the `{ADMANAGE_API_KEY}` placeholder, never a bare `$ADMANAGE_API_KEY` (the Bash permission layer refuses that).\n\n## Preamble (both branches)\n\n1. Read `memory\u002FMEMORY.md` for context. Read the last ~3 days of `memory\u002Flogs\u002F` for recent launch \u002F provisioning activity — don't re-report a signal already logged.\n2. Parse `${var}`:\n   - empty \u002F unset → run the **Schedule branch** below.\n   - `create` → run the **Create branch** below.\n   - anything else → log `SCHEDULE_ADS_UNKNOWN_SELECTOR: \u003Cvalue>` and exit cleanly (no notify).\n3. Both branches spend real money on ad platforms. The shared safety posture (see each branch) is: PAUSED by default, config-only (never invent campaigns\u002Fcreative\u002Ftargeting), dry-run available, and exit silently when there's nothing to do.\n\n---\n\n# Schedule branch (default — empty `${var}`)\n\nReads `skills\u002Fschedule-ads\u002Fconfig.yaml`, picks schedule entries matching today, and launches those ads **in-run** via AdManage.ai (`POST \u002Fv1\u002Flaunch` through `.\u002Fsecretcurl`), behind the spend guardrails below.\n\n## Safety defaults (schedule)\n\nThis branch **spends real money on ad platforms**. Guardrails, in priority order:\n\n1. **PAUSED by default.** Every launch request sets the entity to PAUSED. The operator has to resume manually in the AdManage dashboard before spend starts. `launchPaused: false` in config is the explicit opt-out.\n2. **Daily spend cap.** Before launching, the branch checks `GET \u002Fv1\u002Fspend\u002Fdaily` for today. If spend ≥ `dailySpendCap` in the config, all launches are skipped and a warning is notified. If the spend figure can't be verified (malformed \u002F empty response), **fail closed** — skip and notify, don't launch. This is a circuit breaker, not a budget enforcer — platform budgets still apply.\n3. **Dry-run mode.** If `DRY_RUN=true` in env or `dryRun: true` in config, the branch builds the payloads, writes them to `.pending-admanage\u002Fdryrun\u002F`, notifies what *would* launch, and exits without calling the API.\n4. **Config-only.** The branch does not invent campaigns, creative, or targeting. If there's no schedule for today, it exits cleanly with no API calls.\n5. **Single source of truth.** All ads\u002Fcampaigns\u002Ftargeting live in `config.yaml`. The branch never generates new creative on the fly.\n\n## Network note (schedule)\n\nLaunching ads is an irreversible outbound side-effect (real ad spend), so it is the branch's **final** action and runs only after the guardrails above pass:\n\n- Auth'd calls go through `.\u002Fsecretcurl` with the `{ADMANAGE_API_KEY}` placeholder — never a bare `$ADMANAGE_API_KEY` (the Bash permission layer refuses that). `ADMANAGE_API_KEY` is injected in-run via `requires:`.\n- The branch checks the daily spend cap (`GET \u002Fv1\u002Fspend\u002Fdaily`), then per batch calls `POST \u002Fv1\u002Flaunch`, polls `GET \u002Fv1\u002Fbatch-status\u002F{id}` to a terminal state, and reports via `.\u002Fnotify`.\n- If `ADMANAGE_API_KEY` is unset, or the launch\u002Fspend call fails, skip the launch and notify — do not retry blindly. There is no deferred postprocess fallback.\n- **Shell shape (both branches).** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`SPEND=$(.\u002Fsecretcurl ...)`, `RESP=$(.\u002Fsecretcurl ...)`), uses `if` \u002F `for` \u002F `while` or `[ ... ]` tests, calls `sleep`, or joins commands with `;`, `&&` or `||` (including `cmd || { ...; exit 0; }` guards), and each refusal costs a model turn. So run each lookup as its own call and write the printed value into later commands literally (the `\u003CTODAY>`, `\u003CSPEND>`, `\u003CCAP>`, `\u003CBATCH_ID>` style placeholders in the snippets); turn each guard into a prose decision on what the call printed; write each request body to a `\u002Ftmp` file with Write and send it with `-d @file` instead of `-d \"$PAYLOAD\"`; make one call per batch, campaign or ad set instead of a loop; wait between polls with a one-line `python3 -c \"import time; time.sleep(5)\"` call.\n\n## Steps (schedule)\n\n1. **Load config.** Read `skills\u002Fschedule-ads\u002Fconfig.yaml`. If the file doesn't exist, log `SCHEDULE_ADS_NOT_CONFIGURED` and exit cleanly (no notify, no error). The example template lives next to this file as `config.example.yaml`.\n\n2. **Validate config shape.** Required top-level keys: `defaults` (with `adAccountId`, `workspaceId`, `page`), and `schedules` (array). If either is missing, file an issue in `memory\u002Fissues\u002F` per the CLAUDE.md issue tracker convention, notify once, and exit.\n\n3. **Pick today's schedule entries.** For each entry in `schedules`, match against today's date:\n   - `when.everyDay: true` → always matches.\n   - `when.dayOfWeek: monday` (or any weekday name, lowercase) → matches if today is that weekday (UTC).\n   - `when.date: \"2026-04-25\"` → matches only on that exact date.\n   - `when.dates: [\"2026-04-25\", \"2026-05-02\"]` → matches if today is in the list.\n   - `when.cron: \"0 8 * * 1\"` → (advanced) matches if today satisfies the cron. Optional — skip if it's too much parsing effort.\n\n   If no entries match today, log `SCHEDULE_ADS_NOTHING_TODAY` and exit cleanly (no notify).\n\n4. **Build launch payloads.** For each matching schedule entry, construct the AdManage `POST \u002Fv1\u002Flaunch` body:\n   ```json\n   {\n     \"ads\": [\n       {\n         \"adName\": \"\u003Ctemplated from ad.adName, {date} replaced>\",\n         \"adAccountId\": \"\u003Cfrom defaults or entry override>\",\n         \"workspaceId\": \"\u003Cfrom defaults or entry override>\",\n         \"title\": \"\u003Cfrom ad>\",\n         \"description\": \"\u003Cfrom ad>\",\n         \"cta\": \"\u003Cfrom ad or defaults.cta>\",\n         \"link\": \"\u003Cfrom ad>\",\n         \"page\": \"\u003Cfrom defaults>\",\n         \"insta\": \"\u003Cfrom defaults, Meta only>\",\n         \"adSets\": [ { \"value\": \"\u003Cid>\", \"label\": \"\u003Cname>\" } ],\n         \"media\": [ { \"url\": \"\u003Cmedia url>\" } ],\n         \"status\": \"PAUSED\"\n       }\n     ]\n   }\n   ```\n   Enforce `status: PAUSED` on every ad unless `defaults.launchPaused` is explicitly `false`. Never strip it silently.\n\n   Template substitutions inside string fields:\n   - `{date}` → today's ISO date (YYYY-MM-DD)\n   - `{dateHuman}` → \"April 21, 2026\" style\n\n5. **Pre-flight validation.** For each payload:\n   - `media[*].url` must be an absolute `https:\u002F\u002F` URL. Reject entries with local paths or obviously broken URLs.\n   - `adSets[*].value` must be a non-empty string. If missing, skip the entry with a warning in the log.\n   - For Meta entries (`adAccountId` starts with `act_`): `page` and `insta` must be set. TikTok\u002FSnapchat\u002Fetc. have their own requirements — don't block on Meta-specific fields for other platforms.\n   - `title` and `description` must be non-empty.\n\n   Drop invalid entries, keep going. Log which ones were skipped and why.\n\n6. **Handle dry-run.** If `DRY_RUN=true` or `config.dryRun: true`:\n   - Write payloads to `.pending-admanage\u002Fdryrun\u002F{schedule-name}-{timestamp}.json`.\n   - Notify a preview (see step 9) but with `[DRY RUN]` prefix.\n   - Skip step 7.\n   - This mode exists for the operator to sanity-check before arming real launches.\n\n7. **Launch in-run.** This is the branch's final action — spends real money, so run the guardrails first. Only `.\u002Fsecretcurl`, `jq`, `date`, `echo`, `mkdir`, `grep`, `python3`, and the `Write` tool are available.\n\n   a. **Config check.** Read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `ADMANAGE_API_KEY` is not on that line → notify \"ads computed but ADMANAGE_API_KEY missing — nothing launched\" and stop.\n\n   b. **Daily spend circuit-breaker (once).** Take the strictest `dailySpendCap` (`CAP`) across today's payloads. If set, read today's spend and **fail closed** unless it's a clean number *below* the cap. Each step is its own Bash call:\n      ```bash\n      date -u +%Y-%m-%d\n      ```\n      It prints `TODAY`. Then, with `TODAY` written in literally:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 30 -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" \\\n        \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fspend\u002Fdaily?startDate=\u003CTODAY>&endDate=\u003CTODAY>\" | jq -r '.metadata.totalSpend \u002F\u002F \"\"'\n      ```\n      It prints `SPEND`. Check that it is a clean number:\n      ```bash\n      echo \"\u003CSPEND>\" | grep -E '^[0-9]+(\\.[0-9]+)?$'\n      ```\n      If that prints nothing, say \"spend unverifiable - fail closed\" and stop (launch nothing). Check `CAP` the same way:\n      ```bash\n      echo \"\u003CCAP>\" | grep -E '^[0-9]+(\\.[0-9]+)?$'\n      ```\n      If that prints nothing, say \"dailySpendCap not numeric - fail closed\" and stop. Then compare:\n      ```bash\n      python3 -c \"import sys; print('TRIPPED' if float(sys.argv[1])>=float(sys.argv[2]) else 'UNDER_CAP')\" \"\u003CSPEND>\" \"\u003CCAP>\"\n      ```\n      If it prints `TRIPPED`, say \"daily spend cap tripped (today=\u003CSPEND> cap=\u003CCAP>) - launching nothing\" and stop. Only `UNDER_CAP` goes on to step c.\n   c. **Per batch: launch, then poll.** For each payload `{ ads: [ ... ] }`, write it with Write to `\u002Ftmp\u002Fschedule-ads-launch.json` (overwrite per batch), then one call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 60 -w 'http=%{http_code}\\n' -X POST \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Flaunch\" \\\n        -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" -H \"Content-Type: application\u002Fjson\" -d @\u002Ftmp\u002Fschedule-ads-launch.json\n      ```\n      It prints the response (`RESP`) and an `http=` line. Success => `.success==true` and `.adBatchId` set; else record FAILED (`.message`\u002F`.error`) and continue. Then poll the batch (~90s, 5s interval): repeat this one call, with `BATCH_ID` written in literally, until `.summaryStatus` is `success` or `error`, **at most 18 times**, waiting 5 s between calls with one `python3 -c \"import time; time.sleep(5)\"` call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 30 -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fbatch-status\u002F\u003CBATCH_ID>\"\n      ```\n      Record each batch's outcome (ok \u002F error \u002F still-running-after-timeout) for the notify. Ads launch **PAUSED** (the payload sets it) unless `launchPaused: false`.\n\n8. **Write artifact to `output\u002F.chains\u002Fschedule-ads.md`** so downstream chain consumers can read what was queued. Format:\n   ```markdown\n   # Schedule Ads - ${today}\n\n   Queued: N launches across M schedules.\n   Dry-run: yes|no.\n\n   ## Entries\n   - \u003Cschedule name>: \u003Cad count> ads, platform=\u003Cmeta|tiktok|…>, paused=\u003Cbool>\n     - \u003CadName> - \u003Ctitle>\n   ```\n\n9. **Notify** via `.\u002Fnotify`. Keep it tight:\n   ```\n   *Ads queued - ${today}${dryRunSuffix}*\n\n   \u003CN> launches queued from \u003CM> schedules.\n\n   - \u003Cschedule name> → \u003Cad count> ads \u003Cplatform> \u003Cpaused|LIVE>\n     \"\u003Cfirst adName>\"\n   - ...\n\n   \u003Cif dry-run>\n   no API calls made - remove DRY_RUN to arm.\n   \u003Celse>\n   launched via AdManage (PAUSED) - resume in the dashboard to start delivery.\n   ```\n   If nothing matched today (no launches), don't notify at all.\n\n10. **Log** — see the shared **Log** section below (discriminator: `schedule`).\n\n## Config schema (schedule)\n\nSee `skills\u002Fschedule-ads\u002Fconfig.example.yaml` for a filled-in template. Minimum viable config:\n\n```yaml\ndefaults:\n  adAccountId: act_XXXXXXXXXX\n  workspaceId: XXXXXXXXXXXX\n  page: XXXXXXXXXXXX         # Meta Page ID\n  insta: XXXXXXXXXXXX        # Instagram user ID\n  cta: LEARN_MORE\n  launchPaused: true         # NEVER change this without thought\n  dailySpendCap: 50          # USD. Circuit breaker.\n  dryRun: false\n\nschedules:\n  - name: weekly-promo\n    platform: meta\n    when: { dayOfWeek: monday }\n    adSets:\n      - { value: \"120xxxxxxxxxxxxx\", label: \"US Broad 25-55\" }\n    ads:\n      - adName: \"Weekly promo — {date}\"\n        title: \"Headline copy here\"\n        description: \"Supporting copy in a sentence or two.\"\n        cta: LEARN_MORE\n        link: https:\u002F\u002Fexample.com\n        media:\n          - url: https:\u002F\u002Fmedia.admanage.ai\u002Fyour-account\u002Fhero.mp4\n```\n\n## What the schedule branch does NOT do\n\n- **Does not create campaigns or ad sets.** Those must pre-exist in AdManage — use the **`create` branch** (`${var}=create`), the dashboard, or `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` separately. This branch only launches *ads into existing ad sets*.\n- **Does not upload creative.** Media URLs must be hosted somewhere accessible (AdManage CDN, your own CDN, Supabase, wherever). If you need upload, add a separate `upload-ad-media` skill that calls `POST \u002Fv1\u002Fmedia\u002Fupload\u002Furl`.\n- **Does not generate copy.** Titles\u002Fdescriptions come from config. If the operator wants AI-written variants, a separate skill can write them into `config.yaml` and commit — keeps the launch path boring and auditable.\n- **Does not manage budgets, bids, or targeting.** Everything downstream of launch (scaling, pausing losers, budget shifts) lives in follow-up skills or the dashboard.\n- **Does not launch to Google Ads, Axon, or Taboola** in v1. Config schema is deliberately Meta\u002FTikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn-shaped. Adding Google\u002FAxon later is straightforward but their launch shapes differ enough to need their own validation.\n\n---\n\n# Create branch (`${var}=create`)\n\nReads `skills\u002Fschedule-ads\u002Fconfig.create.yaml`, figures out which campaigns\u002Fad sets don't exist yet, and creates them **in-run** via AdManage.ai (`\u002Fv1\u002Fmanage\u002Fcreate-*` through `.\u002Fsecretcurl`) — campaigns first, then ad sets referencing the returned campaign IDs — writing the new IDs back to `.admanage-state\u002Fcampaigns.json`.\n\nThis branch is **on-demand** — invoke it manually when you want to provision new campaigns, then reference the returned IDs in `skills\u002Fschedule-ads\u002Fconfig.yaml` (schedule branch) to launch creatives into them.\n\nRead `.admanage-state\u002Fcampaigns.json` (if it exists) to see what's already created.\n\n## What this branch provisions\n\nTwo entity types only:\n1. **Meta campaigns** — name, objective, budget, bid strategy, promoted object.\n2. **Meta ad sets** — name, budget, optimization goal, targeting (geo\u002Fage\u002Fplatforms), destination.\n\nEverything else (TikTok\u002FSnapchat\u002FPinterest\u002FLinkedIn campaigns, advanced Meta fields like valueRuleSetId or Advantage+ catalog) is v2+. The shape below is intentionally minimal.\n\n## Safety defaults (create)\n\nSame posture as the schedule branch:\n\n1. **PAUSED by default.** Every campaign + ad set is created with `status: PAUSED`. No surprise spend.\n2. **Idempotent.** The branch tracks created entities in `.admanage-state\u002Fcampaigns.json`. If a campaign name already exists in state, it's skipped. Run it twice → no duplicates.\n3. **Dry-run mode.** `DRY_RUN=true` or `config.dryRun: true` → payloads written to `.pending-admanage\u002Fdryrun-create\u002F`, notified, no API calls.\n4. **Config-only.** No config file → exit silently. No invented campaigns, no autonomous provisioning.\n\n## Network note (create)\n\nProvisioning campaigns and ad sets is an irreversible outbound side-effect, so it is the branch's **final** action and runs in-run only after the diff + validation pass:\n\n- Auth'd calls go through `.\u002Fsecretcurl` with the `{ADMANAGE_API_KEY}` placeholder — never a bare `$ADMANAGE_API_KEY`. The key is injected in-run via `requires:`.\n- **Order matters:** create all campaigns first (`POST \u002Fv1\u002Fmanage\u002Fcreate-campaign`), keep a config-name → campaignId map, then create ad sets (`POST \u002Fv1\u002Fmanage\u002Fcreate-adset`) substituting each parent's real campaign ID. Write every new ID back to `.admanage-state\u002Fcampaigns.json` as you go (the workflow's Commit step persists it).\n- If `ADMANAGE_API_KEY` is unset, or a create call fails, record the failure and continue with the rest — never retry blindly, never invent IDs. An ad set whose parent campaign failed to create is skipped. There is no deferred postprocess fallback.\n\n## Steps (create)\n\n1. **Load config.** Read `skills\u002Fschedule-ads\u002Fconfig.create.yaml`. If it doesn't exist, log `CREATE_CAMPAIGN_NOT_CONFIGURED` and exit cleanly (no notify). The example template lives next to this file as `config.create.example.yaml`.\n\n2. **Load state.** Read `.admanage-state\u002Fcampaigns.json`. If it doesn't exist, treat as empty. Shape:\n   ```json\n   {\n     \"campaigns\": [\n       {\n         \"configName\": \"Prospecting — Q2 2026\",\n         \"campaignId\": \"120251616228380456\",\n         \"adAccountId\": \"act_xxx\",\n         \"createdAt\": \"2026-04-21T08:00:00Z\",\n         \"adSets\": [\n           {\n             \"configName\": \"US Broad 25-54\",\n             \"adSetId\": \"120251616242460456\",\n             \"createdAt\": \"2026-04-21T08:00:04Z\"\n           }\n         ]\n       }\n     ]\n   }\n   ```\n\n3. **Validate config shape.** Required: `defaults.adAccountId`, `defaults.workspaceId`, `campaigns[]`. Each campaign needs `name` and `objective`. Each ad set needs `name`, and either `optimizationGoal` (explicit) or a compatible parent objective. If validation fails, file an issue in `memory\u002Fissues\u002F` and exit.\n\n4. **Compute diff.** For each campaign in config:\n   - Match against state by exact `name`. If present, mark as `existing`.\n   - If missing, mark as `new` and queue a campaign create.\n   - For each ad set under the campaign, match against the parent's `adSets[]` in state by name. If missing, mark it for creation (carrying a `parentCampaignConfigName` reference you resolve to a real campaign ID in-run, once the parent campaign create returns).\n\n   If nothing is new, log `CREATE_CAMPAIGN_ALL_EXIST` and exit without notify.\n\n5. **Build campaign create payloads.** Per the AdManage `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` shape:\n   ```json\n   {\n     \"businessId\": \"\u003CadAccountId>\",\n     \"workspaceId\": \"\u003CworkspaceId>\",\n     \"name\": \"\u003Ccampaign.name>\",\n     \"objective\": \"\u003Ccampaign.objective>\",\n     \"status\": \"PAUSED\",\n     \"buyingType\": \"AUCTION\",\n     \"specialAdCategories\": [],\n     \"dailyBudget\": \u003Cnumber>,\n     \"bidStrategy\": \"\u003CLOWEST_COST_WITHOUT_CAP | LOWEST_COST_WITH_BID_CAP | COST_CAP | ...>\",\n     \"promotedObject\": { ... }\n   }\n   ```\n   Skip keys that are `null`\u002Fabsent in config — don't send empty strings. Always force `status: PAUSED` unless `defaults.launchPaused: false` is set explicitly.\n\n6. **Build ad-set create payloads.** Per `POST \u002Fv1\u002Fmanage\u002Fcreate-adset`:\n   ```json\n   {\n     \"businessId\": \"\u003CadAccountId>\",\n     \"workspaceId\": \"\u003CworkspaceId>\",\n     \"campaignId\": \"__RESOLVE_FROM_PARENT__\",\n     \"parentCampaignConfigName\": \"\u003Ccampaign.name>\",\n     \"name\": \"\u003CadSet.name>\",\n     \"status\": \"PAUSED\",\n     \"dailyBudget\": \u003Cnumber>,\n     \"billingEvent\": \"IMPRESSIONS\",\n     \"optimizationGoal\": \"\u003CLANDING_PAGE_VIEWS | OFFSITE_CONVERSIONS | ...>\",\n     \"destinationType\": \"\u003CWEBSITE | PHONE_CALL | MESSAGING_... | ...>\",\n     \"targeting\": { ... },\n     \"promotedObject\": { ... }\n   }\n   ```\n\n   The `__RESOLVE_FROM_PARENT__` sentinel + `parentCampaignConfigName` marks an ad set whose `campaignId` you fill in-run, from the map built as each campaign create returns (step 9b). If the parent campaign was *existing* (already in state), write the real campaign ID directly and drop the sentinel.\n\n7. **Pre-flight validation.**\n   - `adAccountId` must start with `act_` (this branch is Meta-only in v1).\n   - `dailyBudget` must be a positive number in dollars (not cents).\n   - `objective` must be one of the documented Meta objectives: `OUTCOME_TRAFFIC`, `OUTCOME_ENGAGEMENT`, `OUTCOME_LEADS`, `OUTCOME_AWARENESS`, `OUTCOME_SALES`, `OUTCOME_APP_PROMOTION`.\n   - Targeting `geo_locations.countries` must be a non-empty array.\n   Drop invalid entries, keep going, log what was skipped and why.\n\n8. **Handle dry-run.** If `DRY_RUN=true` or `config.dryRun: true`: write payloads to `.pending-admanage\u002Fdryrun-create\u002F` instead, notify with a `[DRY RUN]` prefix, skip step 9.\n\n9. **Create in-run.** This is the branch's final action — provisions real entities, so run only after the diff + pre-flight pass. Only `.\u002Fsecretcurl`, `jq`, `date`, `echo`, `python3`, and the `Write` tool are available (no `mv`). Seed `.admanage-state\u002Fcampaigns.json` to `{\"campaigns\":[]}` if missing.\n\n   a. **Config check.** Read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `ADMANAGE_API_KEY` is not on that line, notify \"campaigns computed but ADMANAGE_API_KEY missing — nothing created\" and stop (state unchanged).\n\n   b. **Campaigns first.** For each *new* campaign, write its payload with Write to `\u002Ftmp\u002Fschedule-ads-create.json` (overwrite per campaign), then one `POST \u002Fv1\u002Fmanage\u002Fcreate-campaign` call:\n      ```bash\n      .\u002Fsecretcurl -sS --max-time 60 -w 'http=%{http_code}\\n' -X POST \\\n        \"https:\u002F\u002Fapi.admanage.ai\u002Fv1\u002Fmanage\u002Fcreate-campaign\" \\\n        -H \"Authorization: Bearer {ADMANAGE_API_KEY}\" -H \"Content-Type: application\u002Fjson\" -d @\u002Ftmp\u002Fschedule-ads-create.json\n      ```\n      It prints the response (`RESP`) and an `http=` line. Success => `.success==true` and `.campaignId` set. On success: remember `configName → campaignId` (for step 9c) and append `{configName, campaignId, adAccountId, createdAt, adSets:[]}` to `.admanage-state\u002Fcampaigns.json`. On failure: record the error, skip this campaign's ad sets.\n\n   c. **Then ad sets.** For each new ad set, resolve `campaignId`: if it's `__RESOLVE_FROM_PARENT__`, look it up by `parentCampaignConfigName` in the map from 9b **or** existing state - if the parent isn't found (its create failed), skip the ad set with a warning. Then `POST \u002Fv1\u002Fmanage\u002Fcreate-adset` (same `.\u002Fsecretcurl` shape: payload written to `\u002Ftmp\u002Fschedule-ads-create.json` with Write, sent with `-d @\u002Ftmp\u002Fschedule-ads-create.json`, one call per ad set). On success: append `{configName, adSetId, createdAt}` under the parent campaign in `.admanage-state\u002Fcampaigns.json` (via `python3`\u002F`Write` - no `mv`).\n\n   Ordering is explicit here (campaigns loop fully before the ad-sets loop), so children always reference a resolved parent ID.\n\n10. **Write artifact to `output\u002F.chains\u002Fcreate-campaign.md`** so chain consumers can see what was queued:\n    ```markdown\n    # Create Campaign - ${today}\n\n    New campaigns: N.\n    New ad sets: M.\n    Dry-run: yes|no.\n\n    ## Campaigns\n    - \u003Cname> - \u003Cobjective>, $\u003CdailyBudget>\u002Fday\n      - ad set: \u003Cname> - \u003CoptimizationGoal>, $\u003CdailyBudget>\u002Fday, \u003Ccountries>\n\n    ## Skipped (already exist)\n    - \u003Cname>\n    ```\n\n11. **Notify via `.\u002Fnotify`.** Tight format:\n    ```\n    *Campaigns queued - ${today}${dryRunSuffix}*\n\n    \u003CN> campaigns, \u003CM> ad sets queued for creation.\n\n    - \u003Ccampaign name>\n      - adset: \u003Cadset name> - \u003Ccountry>, $\u003Cbudget>\u002Fday\n\n    \u003Cif dry-run>\n    no API calls made - remove DRY_RUN to arm.\n    \u003Celse>\n    created via AdManage (PAUSED); new IDs written to .admanage-state\u002Fcampaigns.json.\n    ```\n    If nothing is new, don't notify at all.\n\n12. **Log** — see the shared **Log** section below (discriminator: `create`).\n\n## Config schema (create)\n\nSee `skills\u002Fschedule-ads\u002Fconfig.create.example.yaml` for a filled-in template. Minimum viable config:\n\n```yaml\ndefaults:\n  adAccountId: act_XXXXXXXXXX\n  workspaceId: XXXXXXXXXXXX\n  launchPaused: true               # never flip without a reason\n  dryRun: false                    # true = build, don't call\n\ncampaigns:\n  - name: \"Prospecting — Q2 2026\"\n    objective: OUTCOME_TRAFFIC\n    dailyBudget: 50\n    bidStrategy: LOWEST_COST_WITHOUT_CAP\n    promotedObject:\n      pixel_id: \"123456789012345\"\n    adSets:\n      - name: \"US Broad 25-54\"\n        dailyBudget: 15\n        optimizationGoal: LANDING_PAGE_VIEWS\n        destinationType: WEBSITE\n        targeting:\n          geo_locations: { countries: [\"US\"] }\n          age_min: 25\n          age_max: 54\n          publisher_platforms: [facebook, instagram]\n```\n\n## Interaction with the schedule branch\n\nThe create branch writes new IDs to `.admanage-state\u002Fcampaigns.json` **within the same run**; from there they're yours to reference in `skills\u002Fschedule-ads\u002Fconfig.yaml` (schedule branch) under `adSets[].value`. The two flows are intentionally decoupled:\n\n- **create branch** provisions structure (container).\n- **schedule branch** launches creative into that structure (contents).\n\nThey still don't auto-chain — the schedule branch reads `config.yaml`, which you edit by hand. Pattern is: run `${var}=create` (provisions + writes IDs in-run) → read the new IDs from `.admanage-state\u002Fcampaigns.json` \u002F the create-run notify → copy them into `config.yaml` → next default (schedule) run launches into them.\n\n## What the create branch does NOT do\n\n- **Doesn't touch existing campaigns.** Once a campaign is in state, this branch leaves it alone. Budget changes, bid changes, status flips, renames — all handled elsewhere (dashboard or a separate skill).\n- **Doesn't delete or archive.** No destructive paths.\n- **Doesn't provision media, pages, or pixels.** Pixel IDs must already exist in AdManage. Use `GET \u002Fv1\u002Fconversions\u002Fpixels` to discover them.\n- **Doesn't create TikTok \u002F Snapchat \u002F Pinterest \u002F LinkedIn** structures. Those have different payload shapes and live in v2.\n- **Doesn't resume paused campaigns.** PAUSED is the end state; the operator unpauses manually when ready.\n\n---\n\n## Log (both branches)\n\nAppend to `memory\u002Flogs\u002F${today}.md` under ONE `### schedule-ads` heading. First bullet is a discriminator naming which branch ran.\n\n**Schedule branch:**\n```\n### schedule-ads\n- Branch: schedule\n- Schedules matching today: \u003Cnames>\n- Launches: \u003Ccount> (dry-run: \u003Cbool>)\n- Batch results: \u003Cok\u002Ferror\u002Ftimeout summary> (live) | dry-run preview in .pending-admanage\u002Fdryrun\u002F\n```\n\n**Create branch:**\n```\n### schedule-ads\n- Branch: create\n- New campaigns created: \u003Ccount> (ok\u002Ffail)\n- New ad sets created: \u003Ccount> (ok\u002Ffail)\n- State: new IDs written to .admanage-state\u002Fcampaigns.json (live) | dry-run preview in .pending-admanage\u002Fdryrun-create\u002F\n```\n\n## Environment Variables\n\n- `ADMANAGE_API_KEY` — the AdManage.ai API key, injected in-run via this skill's `requires:` and used by both branches for the `\u002Fv1\u002F*` calls. Always pass it as the `{ADMANAGE_API_KEY}` placeholder to `.\u002Fsecretcurl`, never a bare `$ADMANAGE_API_KEY` on the command line.\n- `DRY_RUN` — optional. If `true`, forces dry-run mode regardless of config, in whichever branch runs.\n- Notification channels configured via repo secrets (see CLAUDE.md).\n\n## Output\n\nEnd with a `## Summary` block naming the branch that ran:\n- **schedule:** schedules matched today, payload count, dry-run yes\u002Fno, files written.\n- **create:** new campaigns queued, new ad sets queued, skipped (already-exist) count, dry-run yes\u002Fno, files written.\n",{"name":5,"metadata":46,"description":7},{"var":47,"tags":48,"title":50,"commits":51,"category":52,"requires":53,"permissions":55},"Selects which flow runs (parse from ${var}):\n- empty \u002F unset (default) → SCHEDULE branch: read config.yaml, pick schedule\n  entries matching today, and launch those ads in-run via AdManage.ai.\n  Launches PAUSED by default; dailySpendCap circuit-breaker; never auto-activates\n  live spend.\n- \"create\" → CREATE branch: read config.create.yaml, diff against\n  .admanage-state\u002Fcampaigns.json, and create the missing Meta campaigns + ad sets\n  in-run. On-demand; creates entities PAUSED; returned IDs are written back into\n  state so the schedule branch can launch into them.\n",[49,20],"growth","Schedule Ads",true,"productivity",[54],"ADMANAGE_API_KEY",[56],"contents:write","main","ba8ac7e88c8ff955526557369fadc27eca9c1037","skills\u002Fschedule-ads",4,"https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent","https:\u002F\u002Ft.me\u002Faeon_agent","https:\u002F\u002Fgithub.com\u002Faeonfun","https:\u002F\u002Fwww.aeon.fun\u002F","The most autonomous agent framework.","2026-11-14 00:38:03",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":51},[69,72,75],{"tool":70,"command":71},"npx","npx skills add aeonfun\u002Faeon-agent --skill schedule-ads",{"tool":73,"command":74},"bunx","bunx skills add aeonfun\u002Faeon-agent --skill schedule-ads",{"tool":76,"command":77},"pnpm","pnpm dlx skills add aeonfun\u002Faeon-agent --skill schedule-ads","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fschedule-ads\u002FSKILL.md",[80,86],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"config.create.example.yaml","REFERENCE","参考文档",3618,"https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fschedule-ads\u002Fconfig.create.example.yaml",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"config.example.yaml",4063,"https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fschedule-ads\u002Fconfig.example.yaml",[91,99,106,113,139,161],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"01M7467046NWTJ9PY4YX47X3RW","sns-digest","Digest Internet Computer governance - new and open NNS proposals and SNS DAO proposals - so the operator sees what is up for a vote without watching the dashboard. Fully public, no secret; fires only when there is something new to report.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fsns-digest\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":98},"01M7463X1TY72K86R54BTV6Y2A","icp-deploy-check","Pre-deploy safety checklist for an Internet Computer Rust canister - read a local\u002Fcloned canister repo and verify the deploy-time footguns from the canister-security checklist (controller backup, anonymous-principal rejection, no mainnet fetch_root_key, upgrade safety) before it ships. Static, read-only, no network and no mainnet action.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Ficp-deploy-check\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":98},"01M746256ZDPR56E3S5W8G7M75","canister-status","Monitor Internet Computer canisters for control-plane changes - a new controller, a module-hash change (upgrade), or a canister going missing from the public index - and alert the moment one happens. Uses only the public IC dashboard API.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fcanister-status\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":41},"01M6J4ASEHAQYBZ5TZT4RVAM1Z","you-web-search","Web search using You.com Search API with high-quality, cited results — runs keyless out of the box; YDC_API_KEY unlocks higher limits and real-time web crawling","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fyou-web-search\u002FSKILL.md",[],[120,121,122,123,124,125,126,127,36,128,33,129,130,131,132,133,134,135,136,137,138],"web","you web search","you","web search","search","time","limits","only","web crawling","read-only","real-time","basics","keyless","with","research","results","high","quality","box",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":41},"01M6J4AK1ZAR1HS398K0CWWBFX","write-tweet","Multi-format tweet studio - standalone drafts (10 across 5 size tiers), a 5-10 tweet thread, or 10 remixes of past tweets, selected via ${var}","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tweet\u002FSKILL.md",[],[146,147,148,149,150,151,152,153,154,155,156,157,36,27,158,159,160,131],"write","write tweet","thread","content","format","via","size","multi","twitter","standalone","social","studio","xai","past","drafts",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":41},"01M6J4AFYF6ZHHNQV6H7N92S8K","weekly-aeoncard","Build a weekly token-consumption recap image from memory\u002Ftoken-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-aeoncard\u002FSKILL.md",[],[168,169,170,171,172,173,174,175,125,39,176,177,178,179,180,52,181,146,182,12],"weekly aeoncard","weekly","top","as","usage","SVG","memory","card","image","recap","csv","monitoring","notifications","build","token"]