Skip to content

LeoYeAI/agent-master-skills / skills/activity-campaign-from-ui

activity-campaign-from-ui

Verified

Turn campaign UI references into a new H5/Web campaign proposal, page architecture, and HTML/CSS/JavaScript high-fidelity front-end draft. Supports mode-based responses: analysis, proposal, architecture, delivery, and full.

examples/campaign-schema-example.json

View on GitHub
{
  "mode": "full",
  "campaignMeta": {
    "id": "spring-benefit-relay-2026",
    "title": "Spring Benefit Relay",
    "subtitle": "Complete daily tasks and unlock final draw chances",
    "dateRange": {
      "start": "2026-01-20",
      "end": "2026-02-05",
      "display": "01/20 - 02/05"
    }
  },
  "hero": {
    "headline": "Spring Benefit Relay",
    "subheadline": "Daily tasks unlock milestone rewards",
    "primaryCta": {
      "text": "Start Today",
      "action": "scrollToTasks"
    }
  },
  "tasks": [
    {
      "id": "daily-checkin",
      "title": "Daily check-in",
      "reward": "1 milestone point",
      "state": "todo"
    },
    {
      "id": "read-guide",
      "title": "Read the campaign guide",
      "reward": "1 draw chance",
      "state": "done"
    }
  ],
  "rewards": [
    {
      "id": "coupon-10",
      "title": "$10 Coupon",
      "type": "coupon"
    },
    {
      "id": "vip-7d",
      "title": "VIP 7 Days",
      "type": "membership"
    }
  ],
  "lottery": {
    "enabled": true,
    "type": "final-draw",
    "cta": {
      "text": "Draw Now",
      "action": "startDraw"
    }
  },
  "modules": [
    { "id": "hero", "type": "hero-banner", "dataSource": "hero" },
    { "id": "meta", "type": "campaign-meta", "dataSource": "campaignMeta" },
    { "id": "tasks", "type": "task-list", "dataSource": "tasks" },
    { "id": "draw", "type": "draw-panel", "dataSource": "lottery" },
    { "id": "rewards", "type": "reward-list", "dataSource": "rewards" }
  ],
  "popups": [
    {
      "id": "rulePopup",
      "trigger": "openRules"
    },
    {
      "id": "rewardResultPopup",
      "trigger": "drawSuccess"
    }
  ],
  "stateMachine": {
    "states": ["init", "taskUpdated", "chanceReady", "drawing", "resultShown"]
  },
  "tracking": [
    { "event": "task_claim_click", "trigger": "click task claim button" },
    { "event": "draw_start_click", "trigger": "click draw CTA" }
  ]
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall