schedule-ads
БесплатноБез исполняемых скриптовНе проверенManage paid ads on AdManage.ai from declarative config - default schedules launches across Meta/TikTok/Snapchat/Pinterest/LinkedIn (always PAUSED); create…
от aeonfun★ 801 звезда на GitHubОб этом скилле
${var} selects the flow. Empty/unset = 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./secretcurl(the{ADMANAGE_API_KEY}placeholder keeps the key off the command line), behind fail-closed spend guardrails.
Reads a declarative config, computes what to do, and makes the AdManage.ai API calls in-run via ./secretcurl. 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).
Preamble (both branches)
- Read
memory/MEMORY.mdfor context. Read the last ~3 days ofmemory/logs/for recent launch / provisioning activity — don't re-report a signal already logged. - Parse
${var}:- empty / unset → run the Schedule branch below.
create→ run the Create branch below.- anything else → log
SCHEDULE_ADS_UNKNOWN_SELECTOR: <value>and exit cleanly (no notify).
- Both branches spend real money on ad platforms. The shared safety posture (see each branch) is: PAUSED by default, config-only (never invent campaigns/creative/targeting), dry-run available, and exit silently when there's nothing to do.
Schedule branch (default — empty ${var})
Reads skills/schedule-ads/config.yaml, picks schedule entries matching today, and launches those ads in-run via AdManage.ai (POST /v1/launch through ./secretcurl), behind the spend guardrails below.
Safety defaults (schedule)
This branch spends real money on ad platforms. Guardrails, in priority order:
- 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: falsein config is the explicit opt-out. - Daily spend cap. Before launching, the branch checks
GET /v1/spend/dailyfor today. If spend ≥dailySpendCapin the config, all launches are skipped and a warning is notified. If the spend figure can't be verified (malformed / empty response), fail closed — skip and notify, don't launch. This is a circuit breaker, not a budget enforcer — platform budgets still apply. - Dry-run mode. If
DRY_RUN=truein env ordryRun: truein config, the branch builds the payloads, writes them to.pending-admanage/dryrun/, notifies what would launch, and exits without calling the API. - 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.
- Single source of truth. All ads/campaigns/targeting live in
config.yaml. The branch never generates new creative on the fly.
Network note (schedule)
Launching 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:
- Auth'd calls go through
./secretcurlwith the{ADMANAGE_API_KEY}placeholder — never a bare$ADMANAGE_API_KEY(the Bash permission layer refuses that).ADMANAGE_API_KEYis injected in-run viarequires:. - The branch checks the daily spend cap (
GET /v1/spend/daily), then per batch callsPOST /v1/launch, pollsGET /v1/batch-status/{id}to a terminal state, and reports via./notify. - If
ADMANAGE_API_KEYis unset, or the launch/spend call fails, skip the launch and notify — do not retry blindly. There is no deferred postprocess fallback. - Shell shape (both branches). Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (
SPEND=$(./secretcurl ...),RESP=$(./secretcurl ...)), usesif/for/whileor[ ... ]tests, callssleep, or joins commands with;,&&or||(includingcmd || { ...; 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<TODAY>,<SPEND>,<CAP>,<BATCH_ID>style placeholders in the snippets); turn each guard into a prose decision on what the call printed; write each request body to a/tmpfile with Write and send it with-d @fileinstead of-d "$PAYLOAD"; make one call per batch, campaign or ad set instead of a loop; wait between polls with a one-linepython3 -c "import time; time.sleep(5)"call.
Steps (schedule)
Load config. Read
skills/schedule-ads/config.yaml. If the file doesn't exist, logSCHEDULE_ADS_NOT_CONFIGUREDand exit cleanly (no notify, no error). The example template lives next to this file asconfig.example.yaml.Validate config shape. Required top-level keys:
defaults(with
Установить schedule-ads в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл schedule-ads?
Manage paid ads on AdManage.ai from declarative config - default schedules launches across Meta/TikTok/Snapchat/Pinterest/LinkedIn (always PAUSED); create provisions Meta campaigns and ad sets.
Как установить скилл schedule-ads?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schedule-ads запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic