asset-generation
Generate hero images, illustrations, and visual assets for SaaS websites using AI image APIs. Every page MUST have a visual centerpiece — never just text. Use Fal.ai with Flux 2 Pro for best quality. Triggers when building landing pages, hero sections, or any page that needs custom imagery.
- License 许可
- GPL-3.0
- 最近更新
- 2026-04-24
- Stars
- ★ 1
- Forks
- 3
01 前言 Front Matter
- name
- asset-generation
- next
- [ "website-creation" ]
- group
- design
- workflows
- [ "build-lander", "full-startup" ]
- description
- Generate hero images, illustrations, and visual assets for SaaS websites using AI image APIs. Every page MUST have a visual centerpiece — never just text. Use Fal.ai with Flux 2 Pro for best quality. Triggers when building landing pages, hero sections, or any page that needs custom imagery.
- prerequisites
- [ "brand-guidelines", "shape" ]
- user-invocable
- true
03 SKILL.md 正文
Asset Generation
Generate custom images for SaaS websites using AI image APIs.
Core Rule
Landing pages and marketing pages MUST have a visual centerpiece. A text-only lander looks unfinished. The visual IS the design for landers.
Pages that need custom visuals:
- Landing / home page — hero image, illustration, or product demo
- Pricing page — can benefit from illustration but not required
- Blog posts — featured image per post
- About page — team photos or brand illustration
Pages that DON'T need generated assets:
- Legal pages (terms, privacy) — text is fine
- Documentation — code examples are the visual
- Settings / dashboard — the UI itself is the content
Production Images: Midjourney
Midjourney produces the best quality images for hero sections, illustrations, and brand visuals. No AI tool matches it for final production assets.
The harness CANNOT generate Midjourney images programmatically. Instead:
- During build, use Fal.ai to generate prototype placeholder images so the layout works
- Add a
TODO(midjourney)comment next to every placeholder image in the codebase - Tell the user: "Replace these placeholders with Midjourney-generated images before launch"
- The user generates their own via Midjourney (Discord or web) and drops them into
public/images/
This is a manual step. The harness automates everything it can, but Midjourney quality requires human curation.
Prototyping API: Fal.ai + Flux 2 Pro
Use Fal.ai for placeholder images during development. Fast, cheap, good enough for layout validation.
npm install @fal-ai/client
import { fal } from "@fal-ai/client";
fal.config({ credentials: process.env.FAL_KEY });
const result = await fal.subscribe("fal-ai/flux-pro/v1.1", {
input: {
prompt: "Painterly illustration of a Mediterranean terrace overlooking the sea, warm sunlight, classical statue, vibrant flowers, impressionist style",
image_size: "landscape_16_9",
num_images: 1,
},
});
// result.data.images[0].url — download and save to public/images/
// Mark as placeholder: <!-- TODO(midjourney): Replace with production image -->
API Comparison
| Provider | Quality | Cost | Use Case |
|---|---|---|---|
| Midjourney | Best | $10/mo plan | Production hero images, illustrations — USER generates manually |
| Fal.ai Flux 2 Pro | Good | ~$0.05/img | Prototyping placeholders during build |
| Fal.ai Flux Schnell | Okay | ~$0.003/img | Fast iterations, layout testing |
| Replicate SDXL | Good | ~$0.02/img | Custom LoRA styles if needed |
| OpenAI DALL-E 3 | Okay | ~$0.04/img | Text rendering in images |
| Recraft v3 | Good | ~$0.04/img | Brand assets, icons |
Prompt Engineering for Web Assets
Hero images
- Describe the MOOD, not the product: "Warm sunset over a workspace" not "A SaaS dashboard"
- Include style keywords: "painterly", "impressionist", "minimal illustration", "isometric", "3D render"
- Specify aspect ratio: "landscape 16:9" for hero, "square" for cards
- Avoid: photorealistic faces (uncanny valley), generic office scenes
Illustrations
- Match the design preset style (neobrutalist = bold flat, minimal = line art, warm = watercolor)
- Request transparency when possible (PNG with alpha)
- Be specific about color palette to match brand
Icons
- Generate a set, not one at a time (consistent style)
- "Set of 6 minimal line icons for [features], consistent 2px stroke, [brand color]"
- Or use Lucide/Heroicons and skip generation for simple icons
Integration
- Generate assets during the scaffold/build phase
- Save to
public/images/with descriptive names - Use
next/imagewith proper width/height for zero layout shift - Lazy load below-fold images
- Generate WebP versions for smaller file sizes
When NOT to generate
- Product screenshots — use the actual product (Playwright screenshot)
- Logos — user provides or we generate separately with specific brand requirements
- Stock-looking photos — better to skip than have generic AI photos
Anti-Patterns
- Text-only hero with no visual element
- Generic "person at laptop" AI photo
- Tiny icon as the only visual on a page
- AI-generated image that doesn't match the color palette
- Using the same style of image across every startup (each needs unique visual identity)
04 同仓库更多 Skills
writer-memory
Agentic memory system for writers - track characters, relationships, scenes, and themes
wiki
LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)
website-creation
Build production-quality SaaS websites with opinionated design presets. Use when creating any startup website. The user MUST pick a design style before building. Enforces shadcn/ui, Figma design principles, specific CSS values per style, and anti-AI-writing. Load alongside anti-ai-writing skill. LIGHT MODE ONLY.
visual-verdict
Structured visual QA verdict for screenshot-to-reference comparisons
visual-qa-pipeline
Screenshot every page with Playwright, feed to visual QA agent for design evaluation, report results to Slack. Use after every build phase to verify UI matches the chosen design preset. Integrates with the Playwright skill and the website-creation preset system.
verify
Verify that a change really works before you claim completion