Make funky images, seamless looping videos, or short product and app ads (9:16, 16:9 or both, from stills, clips or screen recordings), posters and photo edits locally with funkbox (one MCP server: loop_*, reel_*, project_*, poster_*, image_*, apps_* tools; FastSD and GIMP on demand) - drop files in, approve copy, render.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/israelwebdev-skill)
---
name: funk-studio
description: Make funky images, seamless looping videos, or short product and app ads (9:16, 16:9 or both, from stills, clips or screen recordings), posters and photo edits locally with funkbox (one MCP server: loop_*, reel_*, project_*, poster_*, image_*, apps_* tools; FastSD and GIMP on demand) - drop files in, approve copy, render.
---
# funk studio
funkbox is a free, local, no-account creative pipeline. It needs no NVIDIA GPU; an Intel iGPU
is fine. It is one MCP server, `funkbox`, with tools prefixed by area (plus `gimp`, GIMP's own bridge):
| tools | role |
|---|---|
| `project_*`, `reel_*` | **video ads** (9:16, 16:9, both): projects, ingest, brand, copy approval, shot lists, storyboard, render |
| `loop_*` | GPU shader engine: write GLSL, preview, contact sheets, seamless MP4 loops, preset looks |
| `poster_*`, `image_edit` | layered posters with exact text, photo edits, OpenRaster export |
| `image_find` | licensed stock photos (Pexels, Unsplash) with a credit record: **use first**, and always for people |
| `image_generate`, `image_restyle`, `image_upscale` | text-to-image and img2img via FastSD (never for pictures of people) |
| `apps_*` | starts and stops FastSD, reports on GIMP |
| `gimp` server | GIMP 3 editing (`get_state_snapshot` previews) |
If these tools are missing, funkbox isn't installed. Follow `AGENTS.md` in the funkbox repo
(`python install.py ...`), or tell the user what to install. Everything also works from a terminal:
`python -m funkbox <area> <verb>`, and `docs/migration-v4.md` maps the old v3 names to these.
## 0. Intake (before any shot list)
Before `project_auto_reel` runs, ask the user these and write the answers to `projects/<name>/intake.json`
(the tool refuses to build without it; `funkbox project intake <name> intake.json` checks and saves a file):
1. **Audience and length:** for example tradeshow loop, customer training, internal; seconds.
2. **What to omit:** offer the likely candidates (old screens, draft names, prices, internal ticket numbers) as a
multi-select with "other". Each answer becomes an `omit` entry. Validation fails any shot that uses one, so
never assume: a training video may need pending states shown.
3. **Source material:** their footage, a recording (`funkbox reel record`, see A.5), or generated scenes.
4. **Names:** the real or fictional people and places the copy uses.
5. **Voiceover:** default no. If yes, which voice and speed.
Shape: `{"audience": "...", "length_s": 20, "omit": [...], "sources": ["footage"], "names": [], "voiceover": {"enabled": false}}`.
## A. Making an ad (the main flow)
1. **Project:** call `project_new("<short-name>")`. It also creates `project-style.md` (the user's rules and
corrections) and git-ignores `project.pii.json`. Then do section 0.
2. **Assets:** ask the user to drop everything into the **funk inbox** folder (desktop
shortcut): product photo, logo, music, clips, scene photos. Or have them name a folder.
Then call `project_ingest(project[, source])`.
- Look at the returned contact sheet.
- If it reports several product candidates, ask which one and call `project_set_product`.
- If the cut-out score is low, say so and offer GIMP cleanup.
- If there are fewer than 4 visuals, offer to generate scenes with
`image_generate` at **square** (tall sizes duplicate subjects with SD-Turbo), scene and mood only. **Never ask the image model for
the product or any text.** The real product photo is composited in later.
3. **Brand:** call `project_brand(project)` and show the swatch. Accept the user's
overrides with `project_set_brand`.
4. **Copy** (exact text, never improvised):
- Draft lines with the user, or derive them from material they gave you, such as a product
page they linked. Use short punchy caption lines (≤ 90 chars). Include a hook first,
2–5 body lines, `end_head`, `end_sub` and `url`.
- Read `project-style.md` first. Its rules and dated `## Corrections` apply to every draft.
- Call `project_propose_copy(...)`. Show the numbered listing **verbatim**.
- When the user corrects a proposed line, append one dated line under `## Corrections`
(`- YYYY-MM-DD: <what to do next time>`), or run `funkbox project correct <name> "<text>"`. Never edit the rules above it.
- Approve with `project_approve_copy(project, draft_sha256)`. The client may pop an approval
prompt; that's the user approving directly. If it falls back to chat approval, pass
`user_confirmed_in_chat=true` **only after** the user explicitly approved that exact
listing. "Looks fine" about a different draft doesn't count.
- Copy is hash-locked. Any change means propose and approve again. Never edit
`copy.json`; no tool but `project_approve_copy` writes it.
5. **Shot list:** call `project_auto_reel(project, length_s=20, style="red-box", pace="fast")`
(add `formats=["9x16","16x9"]`, `bpm=110`, `clip_share`, `product_every=0` as the brief needs),
then show the storyboard. Iterate by editing the shot list: swap shots, motion, reveals,
anchors. Copy only by **id**.
- **Specific briefs** (exact timings, push-ins, mostly screen recordings): treat auto_reel as a
draft and write the shot list yourself. Use `"motion": {"type": "frame", "to": [x,y,w,h]}` to push
in on a UI element (rect in fractions of the source; works on video), `source.speed` for speed
ramps, `source.focus` / `fit: "contain"` + `pad`, `"audio": {"bpm": 110}` with `"duration": "beats:N"`,
and `"formats"` for 9:16 + 16:9 from one edit. See `docs/reel.md`, "Shot lists for specific briefs",
and `reel_templates`. Run `reel_validate` (it checks every format) and `reel_storyboard(format=...)`.
- **Options** (details in `docs/reel.md` and `docs/music.md`): `"type": "explainer"` or `"tech"` for a type preset; `"hook": true` for a title on shot 1; `shots[].callouts` for labels and `shots[].annotations` for drawn arrows and marks; `end_card.template: "bottom-banner"` for a headline typed at the bottom. Music sets: `funkbox music vary SCORE.music.json --brief brief.json --seed N`.
- Framing only crops and scales; never promise or attempt to alter what a recording shows.
- **Recorded clips with marks** (a live app): `funkbox reel record <scene>.json --record` drives the page in
Chromium and writes `inputs/<scene>.webm` and `<scene>.marks.json`. Only run it with the user's go-ahead (it
needs Playwright). A shot then cuts on a mark: `"in": {"mark": "name-entered"}`, `"out": {"mark": "result",
"offset_ms": 300}`. Re-record and the cut moves with the mark.
- Validation warns when a shot keeps under 0.3 s after its voice line.
6. **Render:** `project_render(project, draft=True)` takes ~40 s on the laptop. When the
user likes it, render the full version: 1080x1920, ~4 min for 25 s (each extra format adds
about as much again). Mention the text audit
result and where the file is.
- **Frame review before "done":** run `funkbox reel review <reel>` (it reads `out/<name>.mp4`). It writes
`out/review/<name>-review.png`: the first and last frame of every shot, and the final frame. Show that sheet
to the user. Do not report the video as done on the render alone.
Rules:
- On-screen and spoken text only ever come from approved copy ids.
- The product image is only placed, scaled and colour-matched. Never generate, redraw or
"improve" it.
- If a caption would cover the product, the validator flags it. Fix it by moving the anchor
or shrinking the product.
- Forbidden strings: if `project.pii.json` lists a term or pattern, any copy line that matches fails validation.
The report names the copy id and the rule, never the value. Do not repeat the value back to the user.
- Fonts: any brand font may be a Google Fonts name instead of a file (`"Rubik:800"`, `"Secular One"`); it is fetched
once. Text in Hebrew, Cyrillic or any script works when the font has the glyphs; a missing glyph is an error that
names the character (switch to a font that covers it, or set `font_fallback`). The default fallback, Rubik Bold,
covers Hebrew. Never work around this by drawing text outside funkbox.
- Emblems, badges and logos: build them as posters. `shape` layers draw polygons, ellipses and thick mitred strokes
(block lettering, ribbons); text layers take `arc` (text along a ribbon), `ring` (text round a badge's circle: {cx, cy, r, side}), `skew_x`/`skew_y` (slanted bands),
`rotate_deg` and `wrap: false`. Example: examples/stills/badge.poster.json.
- Licences: the bundled models, voice and fonts are commercially usable. Remind the user
that their own music and photos must be licensed for ads.
## A2. Several versions of one ad
`reel_variants` (or `funkbox reel variants`) renders N versions of one reel from a vary file: different shots, palettes or music, with the same approved copy. Each version is validated and text-audited, and `variants.json` lists them. `sheet: true` adds a numbered contact sheet. Compare the drafts, then render the chosen variant in full: copy its `vNN.reel.json` next to the original reel and render the copy with `reel_render`. Details are in docs/reel.md.
## B. Funky loops
`loop_list` (shaders, looks, palettes) → `loop_sheet` (choose a seed) → `loop_preview` → `loop_render`. Each of those takes a `look` name (the enum in the schema) or a `recipe`.
- **Loop contract:** animate only through `iPhase` times an **integer**, or with
`loopNoise(p, r)`. `iTime` breaks loops. The checker refuses broken loops.
- Write new looks with `loop_write_shader(name, source)`. Define `vec4 effect(vec2 p)` (centred
coords, +y up). Errors come back with your line numbers.
- The eight classic looks (acid-plasma, pop-moire, liquid-disco, hypno-tunnel, lava-lamp, op-art,
frozen-kaleido, party-poster) are looks: pass the name as `look` to `loop_preview`, `loop_sheet`, `loop_render` or `loop_still`.
- To put a look inside a logo or text, give the layer a `mask`: a PNG with alpha (`mask_fit` cover|contain|stretch), or typed text `{"text": "FUNK BOX", "size": 0.22}` (drawn and checked by the text audit). Add `"bevel": {"width": 5, "strength": 0.6}` to make the shape read as raised.
- Images (e.g. from FastSD) go in as image layers: `inputs/<name>.png`, `fit:contain`,
`uv_warp`.
- 720px x 6 s renders in ~3–4 s. Only request `gif=true` if the user asked for a GIF.
## C. Apps on demand
Call `apps_status()` first.
- **FastSD** auto-starts on `image_generate`: ~20 s cold, then ~3–5 s per 512x512 image. It
idles off after 20 minutes. Prefer `aspect="square"` (512x512): the first image at any other
size recompiles the model (~2.5 min), so `image_generate` asks you to confirm that with the user first.
- **GIMP is opened by the user, never by you.** Claude Desktop's sandbox would kill a
GIMP you launched, along with unsaved work. If `apps_start('gimp')` says it isn't
running, ask the user to double-click **GIMP + MCP** on the desktop, then call
`apps_start('gimp', wait_s=60)`. Never close GIMP.
## D. Report
End with what you made and the file paths. Don't recap the steps. If something was slow or
failed, name the app and the fix.
For an ad, the report also gives the frame review sheet path (`out/review/<name>-review.png`) and the text audit
result.
## E. Stills
Describe → generate variations → pick → poster or edit → export.
- **Pictures first:** `image_find(query)` for a licensed stock photo (credit line goes with it); `image_generate(prompt, aspect, n=4)` only for a scene without people when stock has nothing; the user picks.
`image_restyle` and `image_upscale` refine it. Generated pictures never carry text.
- **Poster:** write a `*.poster.json` (`poster_presets()` lists the pieces) and `poster_preview` it. Look at the picture,
fix, repeat, then `poster_render`. `poster_variations` with `vary={"seed":[1,2,3,4]}` (or a palette, a hue) shows
options on one sheet.
- **Text is exact:** in a project, text layers use `copy_id` from the approved copy; never literal text. Literal text
only in a poster marked `"casual": true`. The product photo is composited, never generated. Read the text audit.
- **Edit a photo:** `image_edit(path, ops)` (crop, resize, adjust, filter, remove_background, overlay, text, border)
writes a new file and a before/after sheet; the original is never touched.
- **Export:** `poster_render` gives PNG/JPG; `formats=["svg","pdf"]` adds vector files (text as outlines, sharp at any
size, for print). Offer `poster_export_ora` so the user can keep editing the layers in GIMP.
- **Typography:** `letter_spacing` for tracking, `runs` to colour or change the font of some words in a block (the
text stays exact), `on_path` to set a line along any curve or circle. Prefer these over splitting text into layers.
- **Logo as vectors:** `image_trace(logo, palette=[brand colours])` gives an SVG for an `svg` layer; check the fidelity
score and the side-by-side, raise `detail` or lower `tolerance` for small lettering.
- **Recreating an emblem or badge with its text:** `image_trace(img, lift_text=[text colours], texts=[each line, top to
bottom])` traces the artwork without its lettering and writes a starter poster with live text in the found boxes;
`poster_fit` its x/y/size (skew_y, arc) against the original. Expect mid-to-high 90s, and the words stay exact.
To keep words inside a bar or plate, `poster_fit_inside` (a point on the bar, its `band`) sizes them to fit, and
`poster_fit(keep_inside=...)` stops a fit from pushing them out again.
- **Motion:** add a `motion` block (entrances, keyframed tracks) and `poster_animate(poster, scale=0.5)` for a draft,
then full size. The last frame is the poster; read the per-frame audit.
- **Real footage:** `video_scenes(trailer)` finds the cuts and gives reel-ready trims; `video_trim` cuts a piece;
`video_subtitles` burns in exact captions. For hand edits, `reel_timeline(reel)` gives the user a drag-and-drop
page; call it with `action="changes"` and read their edits before you change that reel.
- **Voice:** reels speak with Kokoro by default; offer `audio.voice` `kokoro:af_heart`, `kokoro:am_michael` or
`kokoro:bm_george` (the approved ad voices) and `voice_speed` for pacing.
- **Other sizes:** `poster_sizes(poster, ["story","landscape","square"])` makes the set from one design; pin bands with
`"resize": "bottom"`, use `fit_to="content"` for banners, and fix one size with its `set` patch, never by hand.
- **Drawn lettering:** when letters in a reference are drawn, not a font (emblems, block monograms), use
`"font": "Funkbox Block:800"` or draw the letters as poster `glyphs` (strokes or path data) and set them with
`"font": "glyphs:<name>"`: the words stay typed and audited. Fonts that only resemble the shapes look wrong.
- **Match a reference:** when the user wants it "like this picture", `poster_compare(poster, reference)` after each
change; fix the worst regions it names, then `poster_fit` the positions and sizes; stop when the score stops
rising.
`loop_still` turns a shader or recipe into a poster background.
## Troubleshooting
- Tools missing after install: fully quit Claude Desktop from the tray, run
`python install.py --register desktop --yes`, then reopen it. Upgrading from v3: the same command removes
the five old server entries (`funk`, `funk2`, `reel`, `studio`, `stills`) after a backup.
- `copy.json changed since approval`: someone edited it. Propose and approve again, or have
the user run `python -m funkbox project approve-copy <project>`.
- FastSD errors: read `vendor/fastsdcpu/_studio_fastsd.log`. GIMP shortcut but no port: the
first run takes ~2 min, and `out/gimp_start.log` says why.
- `python -m funkbox doctor` prints the resolved settings, GL, ffmpeg, models and app paths. `doctor --bench` also times
a few 1080x1920 frames and estimates a 20 s Short's render on this machine.
## Plan-driven renders (proposed, not live)
The tools and their input schemas are listed in [docs/catalog.json](https://github.com/IsraelWebDev/funkbox/blob/main/docs/catalog.json). The file is generated from the MCP server: `python -m funkbox catalog` (`--check` verifies it). The website is proposed to plan a render from this catalog: an AI planner writes a plan of these tools, the server checks the plan, and a preview runs it at low resolution or shows a storyboard before a paid render runs the same stored plan. Nothing here changes how the local tools work today. Decision and sign-offs: [docs/adr-plan-driven-renders.md in IsraelWebDev/funkbox-online](https://github.com/IsraelWebDev/funkbox-online/blob/main/docs/adr-plan-driven-renders.md).