Activity campaign from ui

From LeoYeAI/openclaw-master-skills · View interactive version

Activity campaign from ui is an AI agent skill from the GitHub repository LeoYeAI/openclaw-master-skills. 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.

How to use this skill

Skill file

activity-campaign-from-ui

Generate a new campaign from campaign UI references, then deliver an H5/Web visual-first front-end draft on a fixed stack.

Use when

Use this skill when the user:

Do not use when

Do not use this skill when:

Fixed platform and stack

Always stay on this fixed delivery target:

Do not output code in other stacks.

Modes

This skill supports one skill with multiple modes.

`analysis`

Use when the user wants to understand the reference.

Return:

`proposal`

Use when the user wants a new campaign idea from the reference.

Return:

`architecture`

Use when the user wants implementation planning without full code.

Return:

`delivery`

Use when the user wants code on the fixed stack.

Return:

`full`

Use when the user wants the full flow.

Return:

  1. reference analysis
  2. gameplay abstraction
  3. new campaign proposal
  4. page architecture
  5. delivery schema
  6. visual direction
  7. H5/Web high-fidelity draft code

Default mode rules

If the user does not specify a mode:

For delivery and full, when the brief implies poster-style character focus and the page would otherwise become too long, default to a female-led, launch-ready, tab-first H5 front-end draft.

Core job

Given one or more campaign references, do all relevant parts of the following:

  1. Identify observable UI patterns
  2. Separate what is observed vs inferred vs assumed
  3. Abstract the gameplay and module patterns
  4. Propose a new campaign instead of copying the reference
  5. Design a buildable H5/Web page architecture
  6. Output fixed-stack high-fidelity draft code when requested

Output rules

Prefer practical output over broad commentary.

When possible, organize the answer using these sections:

Proposal presentation rule

For proposal, the result should feel closer to an operations campaign visual deck than a plain strategy memo.

Preferred structure:

If the user explicitly asks for a local proposal deck and the host environment supports local execution, the skill may generate a local .pptx file with Python.

File handoff rules

Do not append executable local file-write commands.

If the user explicitly asks for local files and the host environment supports local execution, the skill may use Python to generate artifacts directly in the workspace instead of only presenting them inline.

The goal is to keep the handoff clear without asking the model to generate shell or terminal instructions from screenshot-derived content.

Mode-specific file targets:

Handoff requirements:

Anti-copy rules

Do not simply restyle the reference.

The new campaign must change at least 2 of these 4 dimensions:

  1. campaign theme
  2. reward design
  3. task structure
  4. module order or core interaction

Do not preserve all of the following at the same time:

Call out the main changes briefly in the proposal.

Reference-to-theme translation rules

Treat the reference as a source for structure, interaction pattern, density, and campaign rhythm first, and as a source for visual style only when it fits the user's target theme.

Use this decision rule:

When the target theme and reference theme conflict:

Example:

Confidence rules

Always separate content into these layers when relevant:

If text is blurry or a state is hidden, say so directly.

Delivery file rules

For delivery and full, default to this file set:

Optional when a character-led hero is requested and image generation is available:

If the user explicitly asks for local front-end files and the host environment supports local execution, the skill may use Python to write these files directly to the workspace or user-specified directory.

File responsibilities:

Optional hero asset generation

When the user wants a character-led campaign page but does not provide a source image, the skill may generate one original hero asset before front-end delivery if the host environment supports image generation.

Constraints:

Female-led hero default

For character-led campaign delivery, the default first-screen visual should use one adult female hero figure as the dominant visual focus.

Requirements:

Theme examples:

H5 length control rule

Do not default to a full top-to-bottom stack for every module.

Prefer a tab-first H5 layout when any of the following is true:

In these cases:

Delivery schema guidance

Prefer a schema that covers both campaign config and page delivery contract.

Typical sections:

Important constraints

Visual fidelity rules

For delivery and full, default to a high-fidelity visual draft, not a low-fidelity wireframe.

Before writing code, extract the screenshot's likely visual language in 4 to 8 short bullets:

Then make the code reflect that visual language directly.

But do not follow the screenshot's visual language blindly.

Use this priority order for visual decisions:

  1. explicit user brief and target campaign theme
  2. target holiday/season/brand tone
  3. reference layout and interaction cues
  4. reference palette and decorative styling

If the reference palette conflicts with the new campaign brief, say so briefly and switch to a target-appropriate palette.

In that case, the visual extraction summary should separate:

Launch-ready front-end quality rule

For delivery and full, the generated result should feel like a launch-ready H5 front-end deliverable rather than a starter scaffold, plain wireframe, or demo shell.

Requirements:

Boundary:

HTML expectations

CSS expectations

JavaScript expectations

Mock data expectations

Delivery anti-patterns

Avoid these default outputs unless the user explicitly asks for minimal scaffolding:

Example user requests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.