Ns images

From Melvynx/saveit.now · View interactive version

Ns images is an AI agent skill from the GitHub repository Melvynx/saveit.now. Generate NowStack Mobile onboarding backgrounds, splash, and brand artwork with AI image generation. Use for "generate onboarding images", "make brand art", "redo the splash". REQUIRES an image-gen tool (Codex/gpt-image); other agents follow the fallback. For the app icon (iOS/Android launcher icon)

How to use this skill

Skill file

Brand Images - NowStack Mobile

Generate onboarding backgrounds, the splash, and brand artwork with AI image generation.

Scope: onboarding + splash + brand art. The launcher app icon (iOS App Store icon, Android adaptive icon, favicon) has its own dedicated skill — .agents/skills/ns-icon/SKILL.md. Use ns-icon for "create my app icon" / "redo the icon"; use this skill for everything else.

<capability_gate>

This workflow requires an image-generation tool (Codex's imagegen skill backed by gpt-image, or any model/agent that can generate raster images).

</capability_gate>

<objective>

Produce the non-icon brand assets the app needs from site-config.ts (brand colors, mascot/concept, product tone), with prompts that are proven to yield premium, store-quality results on a real app shipped from this boilerplate.

| Asset | Target file | Spec |

| --- | --- | --- |

| Splash | mobile-app/assets/splash.png | simple, centered mark on flat brand background |

| Onboarding backgrounds | mobile-app/assets/onboarding/*.png | 9:19.5 portrait (e.g. 1290x2796), one per onboarding slide, composed for the actual onboarding overlay safe zone |

(App icon, Android adaptive icon, and favicon → .agents/skills/ns-icon/SKILL.md.)

</objective>

<layout_audit_required>

Before generating onboarding backgrounds, inspect the real app layout. Do not rely on generic wallpaper composition.

  1. Read the onboarding route and content files, usually:
  1. Identify how the image is rendered:
  1. Estimate the real hidden bottom region from code and screenshots. The default NowStack onboarding bottom sheet is often closer to 35-42% of an iPhone screen, not 28%, when title, subtitle, buttons, pricing, or option rows are present.
  2. If the bottom sheet height varies by step, compose for the worst case, not the easiest welcome slide.

Never approve onboarding art only because the source file is the correct ratio. The only pass condition is: the meaningful subject remains visible in the rendered app, above the overlay, on an iPhone simulator screenshot.

</layout_audit_required>

<prompt_anatomy>

Onboarding and marketing prompts follow this structure (battle-tested; deviating produces generic results). The app icon is NOT made here — it uses the dedicated recipe in .agents/skills/ns-icon/SKILL.md.

  1. Use case: — illustration-story for onboarding/marketing art.
  2. Asset type: — exact target ("mobile onboarding background for <App>").
  3. Primary request: — quality bar + anti-style ("clean, modern, high-end raster illustration. No SVG/vector look, no flat icon art").
  4. Composition: — aspect ratio AND safe zones (see below — this is what makes or breaks onboarding images).
  5. Scene/Subject/Style: — separate lines; mascot/concept from the product brief.
  6. Color: — named palette derived from site-config.ts > brand ("warm peach", "sage green"), not hex codes.
  7. Avoid: — always end with: text, logos, UI, phone frame, screenshots, watermarks, tiny hidden subject, harsh outlines, clutter, flat SVG look.

</prompt_anatomy>

<onboarding_recipe>

The critical insight from production: onboarding screens overlay a rounded bottom sheet that can cover 35-42% of the image on real devices. Without explicit safe-zone instructions, generated images often look good as files but hide their subject behind the card once rendered. Template:

Use case: illustration-story
Asset type: mobile onboarding background for an iPhone app named <AppName>
Primary request: Create a clean, modern, high-end generated raster illustration for the <slide purpose> screen. No SVG/vector look, no flat icon art.
Composition: vertical 9:19.5 mobile wallpaper. The artwork will be rendered with resizeMode cover behind a rounded bottom sheet, so the important subject must sit in the upper 45-55% of the canvas and remain readable if the lower 42% is covered. Keep the bottom 42% visually calm, dark/simple, and free of important subject matter. Keep generous side padding so cover-cropping on tall iPhones does not cut the subject.
Scene/backdrop: <scene matching the slide's message>, polished app-store quality, soft depth, subtle atmospheric light.
Subject: <mascot/characters doing something that tells this slide's story>, friendly but not childish.
Style: clean modern 3D illustration, soft rounded forms, premium mobile app onboarding art, gentle warm lighting, crisp subject.
Color: <brand palette as names>, high contrast enough to read on a phone.
Avoid: text, logos, UI, phone frame, screenshots, important objects below the vertical midpoint, huge empty sky, tiny hidden subject, harsh outlines, noisy clutter, stock photo look, flat SVG look, visible watermarks.

Generate one image per onboarding slide (see mobile-app/app/onboarding/content.ts for the slide list), each with a scene that matches that slide's message. Symbolism only — "glowing answer bubbles", "abstract chart shapes" — never readable text in the artwork.

</onboarding_recipe>

<generation_loop>

  1. Generate the batch (all onboarding slides + splash).
  2. Visually inspect every output (open/read the images): subject in the upper 45-55%? bottom 42% calm? no accidental text/watermark?
  3. Reject and regenerate what fails — refine the prompt, don't accept "almost".
  4. Safety-filter gotcha: a prompt can be rejected for ambiguous wording with harmless content. Reword to simple, neutral, single-paragraph phrasing and retry.
  5. Minor fixes (e.g. bottom zone too busy on one image) can be patched with ImageMagick (blurred fade extension) instead of regenerating.
  6. Check the generated art against the actual UI crop. If resizeMode="cover" plus the bottom sheet hides the subject, either regenerate with a higher subject placement or patch the app image style to lift/position the background consistently.

</generation_loop>

<post_processing>

# copy from the generator output into the repo
mkdir -p mobile-app/assets/onboarding
cp <generated>.png mobile-app/assets/onboarding/<slide-name>.png
cp <generated-splash>.png mobile-app/assets/splash.png

Wire onboarding images as bundled assets (NOT remote URIs): in mobile-app/app/onboarding/content.ts use require("@/assets/onboarding/<name>.png") and type images as ImageSourcePropType. Then:

cd mobile-app && npx tsc --noEmit && npm run lint

Remember: splash changes require a native rebuild (npm run ios) — they will not appear on hot reload. Onboarding images are JS assets and reload normally.

</post_processing>

<render_verification>

After wiring onboarding images, verify the real rendered app. File inspection is not enough.

  1. Start Metro for the current project on an explicit port that is not already used:

```bash

cd mobile-app && npx expo start --port 8082 --dev-client --clear

```

  1. If another Expo app is already listening on 8081, do not use 8081. Cross-project Metro contamination can make the simulator show stale NowStack screens from another repo.
  2. Open the Metro root URL and confirm the manifest before launching:
  1. Prefer a fresh simulator for visual QA when branding/assets changed:

```bash

UDID=$(xcrun simctl create "BrandVerify-$(date +%Y%m%d-%H%M%S)" com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro com.apple.CoreSimulator.SimRuntime.iOS-26-1)

xcrun simctl boot "$UDID"

xcrun simctl bootstatus "$UDID" -b

cd mobile-app && npx expo run:ios --device "$UDID" --port 8082

```

  1. Capture at least the welcome step and one dense step with options/pricing:

```bash

xcrun simctl io "$UDID" screenshot /tmp/onboarding-welcome.png

```

  1. Fail the run if screenshots show the previous product name, old remote backgrounds, or the subject hidden behind the bottom sheet. Fix before reporting completion.

</render_verification>

<failure_modes>

</failure_modes>

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.