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/mode-architecture-example.md

View on GitHub
# Mode example — architecture

## User input
The user sends a campaign reference and asks:

> 不要代码,帮我把这个新活动拆成页面模块、弹窗、状态流转和埋点方案,按 architecture mode 输出。

## Expected response shape

### Mode
architecture

### Page module plan
1. hero banner
2. campaign info bar
3. checkpoint progress strip
4. daily task section
5. reward exchange / draw zone
6. reward pool section
7. rule section
8. record entry

### Module notes
- `hero banner`: communicates theme, date, and primary CTA
- `campaign info bar`: shows time range, eligibility, and shortcut actions
- `checkpoint progress strip`: visualizes progress and unlock milestones
- `daily task section`: lists task items and task states
- `reward exchange / draw zone`: handles the main reward action
- `reward pool section`: previews available rewards
- `rule section`: contains visible summary rules and entry to full rules popup
- `record entry`: links to user history or reward records

### Popup system
- `rulePopup`
- `rewardResultPopup`
- `insufficientChancePopup`
- `checkpointUnlockPopup`

### State flow
`init -> taskUpdated -> checkpointUnlocked -> chanceReady -> actionStarted -> resultShown`

### Tracking suggestions
- `hero_cta_click`
- `task_action_click`
- `checkpoint_reward_view`
- `draw_start_click`
- `draw_result_view`
- `rules_open`

### Delivery contract hint
Suggested file layout for later delivery mode:
- `index.html`
- `styles.css`
- `main.js`
- `mock-data.js`

## What this mode should not do
- do not write large HTML/CSS/JS code blocks
- do not claim backend or API details unless the user provided them
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