Skip to content
FramesField
SKILL.md Developer / Local Tooling SKILL.md
Verified Nov 30, 2026

Keyframe Still and Recraft SVG Asset Skill

How to install this SKILL.md

Install into .claude/skills/, .cursor/skills/, or .agents/skills/ below so your coding agent routes every visual asset to the cheapest right-fit image/vector API and enforces crisp production file hygiene.

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to generate, verify, and optimize opening keyframes (Black Forest Labs FLUX 3 Image / Nano Banana 2.1), transparent PNG cutouts (Ideogram 4.6 / Seedream 5.5 / OpenAI GPT-Image-2.6), and editable SVG vectors (Recraft V4.1) with Star-Branch naming, SVGO cleanup, WebP conversion, and zero layout shift.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: FLUX 3 / Recraft V4.1 / Ideogram 4.6 · License: MIT
  1. STEP 01
    Install the visual asset SKILL.md

    Pick Claude Code, Cursor, or Codex below and download the pure raw SKILL.md file.

  2. STEP 02
    Ask your agent to generate campaign plates or SVGs

    Your agent picks the right API (Recraft V4.1 for SVGs, Ideogram 4.6 / Seedream 5.5 for alpha PNGs, FLUX 3 / Nano Banana 2.1 for stills).

  3. STEP 03
    Get verified, web- and video-ready files

    Outputs follow Star-Branch Depth-1 naming, pass sharp/SVGO optimization, and carry exact dimensions.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (SKILL.md) ↓
Claude Code (.claude/skills/) bash
Installs into .claude/skills/keyframe-and-svg-assets/SKILL.md for image API & asset pipeline hygiene.
mkdir -p .claude/skills/keyframe-and-svg-assets
curl -fsSL https://framesfield.com/raw/skills/image-keyframe-and-svg-asset-skill -o .claude/skills/keyframe-and-svg-assets/SKILL.md

2. Inspect or download the full SKILL.md file

This is the exact raw file served at /raw/skills/image-keyframe-and-svg-asset-skill.

Keyframe Still and Recraft SVG Asset Skill SKILL.md
---
name: keyframe-and-svg-assets
description: Route, generate, optimize, and verify visual production assets across Black Forest Labs FLUX 3 Image, Google Nano Banana 2.1, ByteDance Seedream 5.5, Recraft V4.1 (native SVG), and Ideogram 4.6 with Star-Branch naming, SVGO cleanup, WebP encoding, and exact dimension checks.
---

# Keyframe Still, Cutout & Vector SVG Asset Protocol

Whenever asked to generate or process visual assets for AI video keyframes, thumbnails, or web landing sections, enforce this deterministic routing and file-hygiene standard:

## 1. Strict Tool Routing by Asset Type
- **Editable Icons, Logos & Diagrams (`.svg`) -> `Recraft V4.1` (`$0.08/SVG`, `$0.035/raster`):** Pass explicit RGB/hex color arrays (`controls.colors`) and save raw XML `.svg`. Never trace raster PNGs when native SVG is needed. (Legacy `Recraft V3` remains available at `$0.08/SVG` only if a workflow specifically requires V3's curated `vector_illustration` preset.)
- **Transparent Foreground Cutouts & Layer Kits (`.png`) -> `ByteDance Seedream 5.5` (`$0.020–$0.035` BytePlus / `$0.03–$0.0405` fal.ai up to 2K; native RGBA PNGs + `/layerize` up to 99 layers), `Ideogram 4.6` (`background: "transparent"` up to 4K), or `OpenAI GPT-Image-2.6` (`background: "transparent"`, token-billed at `$30`/1M output tokens):** Use whenever subjects or products need true alpha transparency for Figma, Remotion, or Resolve overlays.
- **Character / Product Keyframe Editing (`.png`) -> `FLUX 3 Image` (`/v1/flux-3-image`, `$0.048/1K`, `$0.10/2K`, up to 10 free reference images; `/v1/flux-3-image-klein` `$0.009/1K`) or `Nano Banana 2.1` (`$0.0336` at 1K):** Always branch Shot 01..N directly off `level0_anchor.png` (Depth 1)—never chain edit-of-edit.
- **High-Contrast Typographic Covers (`.png`) -> `Ideogram 4.6` (`/v2/image/generate/ideogram-4-6`, `$0.008` Very Low 2K draft -> `$0.06` Medium 2K -> `$0.12` Medium 4K / `$0.20` High 4K, plus masked `/v2/image/precise-edit/ideogram-4-6`):** Always reserve bottom-right `220x80px` empty on `16:9` YouTube covers.

## 2. Video Keyframe Dimension Hygiene
- Save video opening frames as **lossless PNG** (`keyframes/shot_01_16x9.png`)—never JPEG-compress opening frames before Image-to-Video.
- Match target aspect ratio upfront (`16:9` vs `9:16`), and ensure local ComfyUI keyframes divide cleanly by `32` (`1344x768` or `768x1344`) so Wan 2.2 and LTX-2 never crash on tensor shape errors.

## 3. Web Asset Optimization & Zero-CLS Contract
- Convert raster web assets to `.webp` via `sharp` (`quality: 90–92`) and optimize `.svg` outputs cleanly (strip redundant editor metadata, preserve explicit `viewBox`).
- Whenever embedding any asset in HTML/Astro/React, read exact pixel dimensions and write explicit numeric `width`, `height`, and descriptive `alt` text (`CLS = 0`).

## 4. Mandatory Visual Inspection Step
Never commit or feed a generated keyframe or SVG blindly into a paid video render. Open/inspect every generated file first to verify exact text spelling, clean edges, and lighting direction match.

3. Test it right away (sample prompt & result)

Sample prompt / input
"Generate 3 minimalist SVG icons matching our #111111 / #E04420 palette via Recraft V4.1 API, clean them up, and embed them in src/components/FeatureGrid.astro with explicit dimensions."
What happens when it runs
- Calls Recraft V4.1 vector SVG endpoint (`$0.24` total for 3 SVGs) passing exact RGB arrays `[17,17,17]` and `[224,68,32]`.
- Validates clean XML `<svg viewBox=...>` output, saves descriptive slugs inside `public/images/icons/`, visually verifies stroke weights, and wires explicit `width`/`height`/`alt` attributes into the component.

What you need & known limits

Requirements

  • API keys in environment variables for your chosen providers (BFL_API_KEY, GEMINI_API_KEY, IDEOGRAM_API_KEY, FAL_KEY, or RECRAFT_API_KEY)
  • Node.js with sharp (for WebP conversion) if optimizing web assets

Watch out for

  • Always inspect generated text spelling at 200% zoom before feeding a keyframe into paid video APIs—re-rolling a $0.009–$0.048 still is dramatically cheaper than re-rolling a video clip
  • Recraft free web plan images are public, owned by Recraft, and not licensed for commercial use; always use paid API units for client work

Frequently Asked Questions

Why save video opening keyframes as lossless PNG while saving web images as WebP?
Image-to-Video models amplify subtle JPEG/lossy block artifacts into shimmering background noise over 120–192 frames. Lossless PNG keeps video inputs pristine, while WebP keeps final web pages lightweight.
Can Recraft API be called with the standard OpenAI Node or Python SDK?
Yes. Recraft exposes an OpenAI-compatible client interface—point baseURL to https://external.api.recraft.ai/v1 with your RECRAFT_API_KEY and call Recraft V4.1 (the current API default) for editable SVGs.
Use this page in AI tools or notes
raw .md