Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

clix-api-triggered-campaignsclix API triggered campaigns 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

392

周安装

16

GitHub Stars

5

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:clix-api-triggered-campaigns(clix API triggered campaigns 搜索)
来源仓库:https://github.com/clix-so/skills
仓库路径:skills/clix-api-triggered-campaigns
安装命令:
npx skills add https://github.com/clix-so/skills --skill clix-api-triggered-campaigns
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/clix-so/skills --skill clix-api-triggered-campaigns

简介

Clix 营销自动化接口管理,支持事务型通知和工作流消息的程序化触发。

  • 适用于订单确认、密码重置等需要后端系统集成的主动推送场景。
  • 通过 POST /api/v1/campaigns/{id}:trigger 接口触发,支持动态变量替换。
  • 必须先在 Clix 控制台配置活动模板,并确保 API 密钥具有 campaign:trigger 权限。
  • clix-api-triggered-campaigns 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

API-Triggered Campaigns (Backend → Clix)

Use this skill to set up API-triggered campaigns in the Clix console and trigger them from your backend with dynamic data (trigger.*) for:

  • Transactional notifications (orders, password reset, receipts)
  • Workflow messages (assignments, approvals)
  • System alerts (moderation, support tickets)
  • Programmatic sends where marketers/ops should control content + targeting

What the official docs guarantee (high-signal)

  • API-triggered campaigns are configured in the console, then triggered via: POST /api/v1/campaigns/{campaign_id}:trigger
  • Authentication uses secret headers:

- X-Clix-Project-ID - X-Clix-API-Key

  • Request properties become **trigger.*** for:

- Dynamic audience filtering (console audience rules) - Personalization in templates (title/body/deep links)

  • audience.broadcast=true sends to all users eligible under the campaign’s segment definition; audience.targets narrows to specific users/devices (still filtered by the segment definition).
  • Dynamic audience filters are intentionally constrained for performance: max 3 attributes in the audience definition.

MCP-first (source of truth)

If Clix MCP tools are available, treat them as the source of truth:

  • Use clix-mcp-server:search_docs to confirm the latest API contract + limits:

- query examples: - "API-triggered campaign trigger endpoint" - "campaigns/{campaign_id}:trigger audience targets broadcast" - "trigger.* dynamic audience filters limitations"

If MCP tools are not available, use the bundled references:

  • API contract → references/api-contract.md
  • Console setup + dynamic filters → references/console-setup.md
  • Backend patterns (auth, retries, timeouts) → references/backend-patterns.md
  • Security/key handling → references/security-and-keys.md
  • Personalization + dynamic filters → references/personalization-and-dynamic-filters.md
  • Debugging checklist → references/debugging.md

Workflow (copy + check off)

API-triggered campaign progress:
- [ ] 1) Confirm goals + trigger source (what backend event sends the message?)
- [ ] 2) Define campaign contract (properties keys/types; PII policy)
- [ ] 3) Configure campaign in console (API-triggered + audience rules + templates)
- [ ] 4) Implement backend trigger wrapper (auth, timeout, retries, logging)
- [ ] 5) Validate trigger plan JSON (schema + naming + safety)
- [ ] 6) Verify in Clix (test payloads, Message Logs, segment matching)

1) Confirm the minimum inputs

Ask only what’s needed:

  • Campaign: where is it in the console? do you already have campaign_id?
  • Channel: push / in-app / email / etc. (affects message template fields)
  • Audience mode: broadcast vs explicit targets
  • Dynamic filter keys: which trigger.* keys are used in audience rules
  • Properties: list of keys + types + example values (avoid PII by default)
  • Backend: runtime and HTTP client (Node/Fetch, Axios, Python, Go, etc.)

2) Create a “Trigger Plan” (before touching backend code)

Create api-trigger-plan.json in .clix/ (recommended) or project root.

Recommended location: .clix/api-trigger-plan.json

Plan schema (high-level):

  • campaign_id (string)
  • audience.mode: "broadcast" | "targets" | "default"
  • audience.targets (if mode is "targets")
  • dynamic_filter_keys (array of up to 3 snake_case keys)
  • properties (map of snake_case keys → {type, required?, example?, pii?})

Example:

{
  "campaign_id": "019aa002-1d0e-7407-a0c5-5bfa8dd2be30",
  "audience": {
    "mode": "broadcast"
  },
  "dynamic_filter_keys": ["store_location"],
  "properties": {
    "store_location": {
      "type": "string",
      "required": true,
      "example": "San Francisco"
    },
    "order_id": { "type": "string", "required": true, "example": "ORD-12345" },
    "item_count": { "type": "number", "required": true, "example": 3 },
    "pickup_time": { "type": "string", "required": false, "example": "2:30 PM" }
  }
}

3) Configure campaign in the console (API-triggered)

  • Set the campaign type to API-Triggered.
  • Build audience rules using {{trigger.*}} for dynamic filters.
  • Use {{trigger.*}} in message templates + deep links.

See: references/console-setup.md for exact guidance and limitations.

4) Implement backend trigger wrapper (best practices)

Backend wrapper responsibilities:

  • Auth: load X-Clix-Project-ID and X-Clix-API-Key from environment/secret store (never commit).
  • Timeout: set a short timeout (e.g., 3–10s) and fail fast.
  • Retries: retry only on transient failures (network/5xx), with backoff; do not retry blindly on 4xx.
  • Dedupe: prevent double-sends in your system (e.g., unique key per order event) since the API call is “send-like”.
  • Logging: log campaign_id, your correlation id (order id), and the Clix response (e.g., trigger_id).

Copy/paste examples:

  • Node: examples/trigger-campaign-node.js
  • Python: examples/trigger-campaign-python.py

5) Validate the plan (fast feedback loop)

Run:

bash <skill-dir>/scripts/validate-api-trigger-plan.sh .clix/api-trigger-plan.json

This validator checks:

  • valid JSON
  • campaign_id present
  • dynamic_filter_keys is ≤ 3 and snake_case
  • properties keys are snake_case and have valid types
  • example values match declared types
  • targets entries specify exactly one of project_user_id or device_id

6) Verify (Clix + end-to-end)

Minimum verification:

  • Campaign is API-Triggered and campaign_id matches.
  • If using dynamic audience filters, the trigger.* keys exist in the API call and match audience rules exactly.
  • Trigger once with a known-good payload; confirm delivery + inspect Message Logs for rendering errors.

See references/debugging.md.

Progressive Disclosure

  • Level 1: This SKILL.md (always loaded)
  • Level 2: references/ (load when implementing details)
  • Level 3: examples/ (load when copy/pasting backend code)
  • Level 4: scripts/ (execute directly; do not load into context)

References

  • references/api-contract.md
  • references/console-setup.md
  • references/backend-patterns.md
  • references/security-and-keys.md
  • references/personalization-and-dynamic-filters.md
  • references/debugging.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.41%
按下载量换算34

Codex

25.15%
按下载量换算31

Antigravity

19.42%
按下载量换算24

Gemini CLI

14.19%
按下载量换算18

windsurf

7.79%
按下载量换算10

trae

3.83%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills