Install
openclaw skills install activity-campaign-from-uiGenerate a new H5/Web campaign proposal and page architecture from UI references, then output a high-fidelity HTML/CSS/JS front-end draft on a fixed stack.
openclaw skills install activity-campaign-from-uiGenerate a new campaign from campaign UI references, then deliver an H5/Web visual-first front-end draft on a fixed stack.
Use this skill when the user:
Do not use this skill when:
Always stay on this fixed delivery target:
Do not output code in other stacks.
This skill supports one skill with multiple modes.
analysisUse when the user wants to understand the reference. Return:
proposalUse when the user wants a new campaign idea from the reference. Return:
architectureUse when the user wants implementation planning without full code. Return:
deliveryUse when the user wants code on the fixed stack. Return:
index.htmlstyles.cssmain.jsmock-data.jsfullUse when the user wants the full flow. Return:
If the user does not specify a mode:
proposal if they want a new campaign/event ideadelivery if they explicitly ask for codefull if they ask for both plan and codeFor 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.
Given one or more campaign references, do all relevant parts of the following:
Prefer practical output over broad commentary.
When possible, organize the answer using these sections:
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.
When the user does not pin a specific activity family, reward interaction, or theme, do not stop at the reference activity types.
Default behavior:
Required output additions when the activity is newly generated:
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 should use Python to generate artifacts on disk instead of stopping at a file structure or code-only response.
The goal is to keep the handoff clear without asking the model to generate shell or terminal instructions from screenshot-derived content.
Local delivery root:
project/ directoryproject/ automatically if it does not already existproject/<delivery-slug>/... rather than writing files directly into project/delivery-slug from campaignMeta.id, a sanitized campaign title, or a stable fallback such as campaign-deliveryproject/Mode-specific file targets:
analysis: present the main result as one Markdown document such as project/<delivery-slug>/campaign-analysis.md when local artifacts are writtenproposal: present the main result as one Markdown document such as project/<delivery-slug>/campaign-proposal.md when local artifacts are writtenproposal optional local artifact: project/<delivery-slug>/campaign-proposal.pptx when the user explicitly asks for a local visual deck and Python execution is availablearchitecture: present the main result as one Markdown document such as project/<delivery-slug>/campaign-architecture.md when local artifacts are writtendelivery: present the generated front-end files as project/<delivery-slug>/index.html, project/<delivery-slug>/styles.css, project/<delivery-slug>/main.js, and project/<delivery-slug>/mock-data.jsfull: present the planning content as one Markdown document such as project/<delivery-slug>/campaign-full.md, and present the front-end files as project/<delivery-slug>/index.html, project/<delivery-slug>/styles.css, project/<delivery-slug>/main.js, and project/<delivery-slug>/mock-data.jsdelivery or full, reserve project/<delivery-slug>/image/ and point the code to ./image/bg.pngHandoff requirements:
project/<delivery-slug>/bg.png, keep it as PNG, and place it in project/<delivery-slug>/image/When local artifacts are generated with Python:
project/<delivery-slug>/project/ first, then create project/<delivery-slug>/, then create project/<delivery-slug>/image/, for example with Path(exec_root, "project", delivery_slug, "image").mkdir(parents=True, exist_ok=True)project/<delivery-slug>/./image/bg.png<output_root>/image/bg.png before reporting successproject/, or outside project/<delivery-slug>/project/<delivery-slug>/image/ directory with stable namesproject/ was not created, or project/<delivery-slug>/ was not created, or project/<delivery-slug>/image/ was not created, or bg.png was not saved into it, treat the Python local delivery as incompleteDo not simply restyle the reference.
The new campaign must change at least 2 of these 4 dimensions:
Do not preserve all of the following at the same time:
Call out the main changes briefly in the proposal.
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:
Always separate content into these layers when relevant:
If text is blurry or a state is hidden, say so directly.
For delivery and full, default to this file set:
index.htmlstyles.cssmain.jsmock-data.jsProject-root asset directory when the page uses generated imagery:
project/<delivery-slug>/image/Default first-screen visual artifact when the page is poster-led or character-led and image generation is available:
project/<delivery-slug>/image/bg.pngIf the user explicitly asks for local front-end files and the host environment supports local execution, the skill should use Python to write these files directly to project/<delivery-slug>/.
File responsibilities:
index.html: page structure, visible module internals, decorative wrappers, and realistic launch-style copystyles.css: design tokens, background atmosphere, section chrome, CTA styling, popup styling, and responsive behaviormain.js: render repeating data, event binding, state updates, popup control, activity-specific triggers, and lightweight view-state changesmock-data.js: campaign meta, tasks, prizes, CTA text, popup data, activity config, animation preset data, and enough mock content to render a visually complete first screenimage/bg.png: generated hero visual asset focused on the woman and theme atmosphere, without embedding lower-page reward modules, task grids, or rule panelsFor delivery and full, when the page depends on a poster-style first screen and the user does not provide a finished key visual, the skill should generate one original top visual asset before front-end delivery if the host environment supports image generation.
Mandatory trigger:
need_image = true when the brief, references, or user wording clearly imply a poster-led first screen, a female-led hero, a generated first-screen visual, or an image-first activity pageneed_image = trueDefault contract:
./image/bg.png as the code-facing pathimage.png, treat that as a temporary output and convert the handoff target to ./image/bg.png./image/bg.png in the first visible hero block at the top of the pageExecution gate:
index.html, styles.css, main.js, or mock-data.js, call the host image generation tool to create the hero image assetimage_generate, call it directly instead of describing the step abstractly./image/bg.png in code or prose./image/bg.png was generated in the current run when need_image = trueRegeneration policy:
regenerate_each_runneed_image = true, generate a new hero image again by default./image/bg.png only when the user explicitly asks to reuse the existing assetConstraints:
need_image = true, clearly report that the run is blocked and stop instead of downgrading to placeholders, gradient-only heroes, or image slots without a generated assetQuality gate:
Required handoff note:
./image/bg.png, include a clear plain-language note such as 需要把生成好的图片,改名为bg,图片类型为 png,放到 project/<delivery-slug>/image 目录下For character-led campaign delivery, the default first-screen visual should use one adult female hero figure as the dominant visual focus.
Requirements:
./image/bg.png or an equivalent top poster block placed above summary modules, tabs, and lower contentWhen generating a new female hero from campaign references:
Theme examples:
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:
For reward-led and interactive campaign pages, motion is part of the delivery contract rather than a last-minute decoration.
Minimum choreography:
prefers-reduced-motion fallback or equivalent lower-motion behaviorActivity-specific defaults:
Creative interaction options when the brief is open:
Do not add motion randomly; tie it to reward feedback, task progress, CTA emphasis, and popup states.
Prefer a schema that covers both campaign config and page delivery contract.
Typical sections:
campaignMetaheroactivityFactoryactivityConfigtasksrewardslotterymodulespopupsanimationSystemvisualPresetassetOutputstateMachinetrackingFor 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.
When the reference clearly uses poster-led artwork or rich scene imagery, explicitly decide whether the first screen should rely on a real image asset, a background plate, or both. Do not downgrade that into a text-first hero with only gradient fills.
But do not follow the screenshot's visual language blindly.
Use this priority order for visual decisions:
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:
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:
./image/bg.png rather than a placeholder asset slotneed_image = true, ensure the asset used for ./image/bg.png was generated in the current run before delivering the front-end filesBoundary:
./image/bg.png inside the first visible hero block at the top of the page.:root tokens for major colors, gradients, shadows, radii, and spacing../image/bg.png and reference-driven backdrop styling rather than a plain gradient-only header.Avoid these default outputs unless the user explicitly asks for minimal scaffolding:
Arial plus gray background plus white rounded cards for every module.section-card wrappers with empty containers<h1> and <p> placeholders in the hero./image/bg.png mention that never becomes the top visualproject/, project/<delivery-slug>/, or project/<delivery-slug>/image/