Skip to content
Agentmart
Submit a tool

ui-design-to-image

Generate or edit UI concept images and frontend raster assets from a scoped design brief, using native imagegen or an explicitly chosen baoyu-image-gen backend.

Skill by full-stack-skills

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/full-stack-skills-ui-design-to-image

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate or edit UI concept images and frontend raster assets from a scoped design brief, using native imagegen or an explicitly chosen baoyu-image-gen backend. Use for screen mockups, visual variants, hero art and scoped image corrections; exact UI screenshots come from rendering the real frontend.

Use cases: design, frontend, backend, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ui-design-to-image

What's inside

Skill name
ui-design-to-image
Description
Generate or edit UI concept images and frontend raster assets from a scoped design brief, using native imagegen or an explicitly chosen baoyu-image-gen backend. Use for screen mockups, visual variants, hero art and scoped image corrections; exact UI screenshots come from rendering the real frontend.
License
Apache-2.0
Compatibility
Requires an available image-generation tool or an explicitly configured image-generation skill. API and CLI paths have provider-specific credentials and dependencies; design briefing alone has no image-provider dependency.
Instructions
85 lines in SKILL.md · view on GitHub

Files (7)

  • LICENSE.txt
  • SKILL.md
  • openai.yaml · agents/
  • ui-image-prompt.md · assets/
  • backends.md · references/
  • image-contract.md · references/
  • sources.md · references/

SKILL.md (first lines)

# UI Design to Image

## When to use this skill

Create UI concept bitmaps, page-direction images, illustrations, hero assets or edits from an existing design contract. This skill owns the image production step, not product behavior, navigation, theme selection, user approval or frontend implementation.

For exact screenshots, editable layouts, semantic controls or functioning pages, render the actual HTML/CSS/application through the existing frontend workflow. Do not substitute a generated screenshot for runtime evidence. For an established SVG/icon system, prefer its editable source unless a generated bitmap is explicitly requested.

## How to use this skill

### 1. Resolve the brief

Read the existing page/task, feature and navigation contracts, selected theme and continuity brief. Preserve their IDs, versions and authority. A clear standalone visual request may use a compact brief without starting Harness or a specification package.

Identify:
- intent: new concept, reference-guided concept, image edit, or project raster asset;
- target page/Surface or asset role, requested count and destination;
- exact visible text, hierarchy, component regions and design tokens;
- requested viewport and the provider's actual output dimensions;
- reference roles: edit target, approved visual baseline, style reference or supporting insert;
- mutable regions, frozen decisions and known limits.

Default project viewports, unless the existing contract differs: Mobile 390×884, Tablet 768×1024, Desktop 1280×1024. These are frontend logical viewports, not a claim that an image tool accepts those exact raster sizes. State any size or aspect-ratio approximation; never stretch an image or invent CSS-pixel verification.

For inherited or correction work, inspect the actual reference image and verify its approved scope. A screenshot cannot override the product or navigation contract. Missing required references block that edit; do not silently reconstruct them from prose.

Use [references/image-contract.md](references/image-contract.md) when a structured handoff or recorded receipt is needed.

### 2. Select an available backend

Discover capabilities in the current runtime; a model name, installed skill name or login alone does not prove an image tool is callable.

- In Codex, use the available native image-generation tool and current `imagegen` instructions by default. Do not require an OpenAI API key for this path.
- A user-selected provider, API, CLI or baoyu workflow routes to the actually available `baoyu-image-gen` or approved imagegen CLI. Resolve its installed directory; read its current instructions and use its maintained scripts.
- If native image generation fails or is absent, describe the available alternative. Switch to a paid API, another provider or model only when that route is already authorized or the user chooses it.
- For text-only preparation, produce a prompt and brief and label the image as not generated. Do not fabricate an image, receipt or tool invocation.

Read [references/backends.md](references/backends.md) for provider setup, credentials, references, batching and fallback boundaries. Do not install dependencies, initialize provider preferences or edit host credentials merely because this skill is selected.

### 3. Prepare and generate

Use [assets/ui-image-prompt.md](assets/ui-image-prompt.md) as an optional compact prompt shape. Keep confirmed requirements separate from visual proposals. Include quoted visible text, layout regions, theme, reference identities, change budget and exclusions. Do not add unrelated business functions, branding or promotional watermarks.

For edits, describe one scoped change and the invariants. Pass the real edit target through the backend's supported mechanism. References described only in text are not image-conditioned generation. Report that difference.

A request for several assets does not force CLI mode: native tools can be called once per requested asset. Use baoyu batch execution when the user chose that backend and prompts are ready. Sequential work is valid; this skill never implies permission to spawn agents or exceed the requested output count.

Let one layer own retries. Follow the chosen backend's documented bounded retry behavior; do not wrap it in another automatic retry loop. Authentication, unsupported input and configuration failures need correction, not repeated generation. For a timeout with unknown outcome, inspect existing outputs/request state first; do not submit a second possibly billable generation blindly.

### 4. Inspect and hand off

Inspect the returned image for visual hierarchy, required text, navigation identity, approved shell/theme, scoped changes and unintended content. A generated reference edit cannot promise pixel-identical frozen regions: any drift must be reported and reviewed.

For project assets, copy the selected output to the requested project location using a versioned name unless replacement was authorized. Preserve original references. Verify file existence and record dimensions and hash when available. Never claim alpha transparency or exact text fidelity without inspecting the actual file. If only inline output or a remote link is available, record that limitation instead of inventing a local path.

Compare Mobile/Tablet/Desktop as separately designed layouts when requested, not as three scaled copies. Transparent bitmap requests need actual alpha support; changing provider/model to obtain it requires the corresponding authorization. Exact typography and UI geometry may require a frontend-rendered artifact instead.

Inside an existing Harness dispatch, keep its `run_id`, `dispatch_id`, expected stage and input versions. Return the bounded image artifact and provider evidence to the caller. Do not create a second run or directly mark approval. `ui-design-review` owns cross-artifact findings; Harness owns reconciliation, invalidation and promotion. These skills are optional for standalone use: if unavailable, return the brief, artifact and limitations without claiming their checks ran.

## Output contract

Return the brief/task identity, selected backend and actual tool, model only if exposed, reference roles and how they were passed, prompt, requested versus observed size, actual artifacts, checks performed, failures/unknowns and next scoped action.

Separate four claims: generated, inspected, visually approved and runtime verified. Image generation proves none of the last three by itself. Map evidence to an existing Harness packet only through its documented contract; do not treat the image receipt as a new state machine.

## Best Practices

- Follow explicit user backend choices and preserve prior authorization.
- Native generation uses host entitlement; API credentials and Codex login are different.
- Never put keys in prompts, chat, committed manifests or output receipts.
- No unconditional generation at SessionStart or on unrelated edits.
- Preserve original assets, approved scope and source provenance.

## References

- [Backend selection](references/backends.md): read before choosing a non-native route or handling missing capabilities.
- [Image brief and receipt](references/image-contract.md): read for repeatable delivery, traceability or Harness handoffs.
- [Prompt shape](assets/ui-image-prompt.md): use only fields relevant to the task.
- [Source notes](references/sources.md): maintenance provenance and integration boundaries.

## Keywords

UI mockup, design to image, frontend raster asset, reference image, imagegen, baoyu-image-gen, 界面设计图, 页面生图, UI 素材, 局部改图

From full-stack-skills/design-skills, Apache-2.0.

More from full-stack-skills/design-skills

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Oct 3, 2026 (25 days ago)
Last release
Oct 5, 2026 (23 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from full-stack-skills

Cite this page

ui-design-to-image skill. Agent Mart. https://agentmart.dev/skills/full-stack-skills-ui-design-to-image (last updated 2026-10-24)