8-bit-video-gen
Skill68 starsChanged 5 months agoMITView on GitHub
Turns a photo of a person into a short 8-bit pixel-art video via a two-step pipeline. Gemini stylizes the photo as an 8-bit still, then Replicate's seedance-2.0 animates that still into an MP4. Use when the user supplies a portrait photo and asks for an "8-bit video", "pixel art animation", or "retro video game version" of themselves. Trigger even if they only mention one of the two steps.
- Reads credentials
In this repository27 other files it gives its agents.
- anki-connectSkill
- explainSkill
- formatting-notion-pagesSkill
- github-replySkill
- goal-rider-authorSkill
- here-nowSkill
- hermes-workflows-creatingSkill
- high-signal-chart-workflowSkill
- impeccableSkill
- loreSkill
- magazine-explainerSkill
- marimo-pairSkill
- mutation-testingSkill
- pre-mortemSkill
- project-planningSkill
- prompt-refinementSkill
- remotion-videoSkill
- researchSkill
- resend-emailSkill
- ship-itSkill
- thread-postmortemSkill
- try-exceptSkill
- verified-frontendSkill
- wikipedia-discoverySkill
- writing-revisionSkill
- writing-styleSkill
- youtube-watch-later-gist-summariesSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
If the user only wants the still, run step 1 and stop.
- Distinctive: line 19
Before running either script:
- Very specific: line 27
If either is missing, ask the user to add it to .env or export it.
- Very specific: line 41
Default output: <input_stem>_8bit.png next to the input.
- Very specific: line 43
Default model ID: gemini-3.1-flash-image.
- Distinctive: line 58
Run only one Replicate prediction at a time.
- Distinctive: line 59
Never retry automatically after a timeout, disconnection, or ambiguous error.
- Distinctive: line 60
If generation succeeded but the download failed, recover the output from that prediction instead of generating again.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
8-bit video pipeline
Two-step pipeline that turns a portrait photo into a short pixel-art video clip:
- Stylize. Gemini converts the photo into an 8-bit still PNG.
- Animate. Replicate's
bytedance/seedance-2.0uses that still as the first frame to generate an MP4.
Both scripts live in scripts/ and use PEP 723 inline script metadata, so uv run resolves their dependencies automatically.
If the user only wants the still, run step 1 and stop. If they already have an 8-bit image, skip to step 2.
Setup
Before running either script:
- Verify
uvis installed:uv --version. If missing, ask the user to install it (https://docs.astral.sh/uv/getting-started/installation/). The scripts declare their Python dependencies inline (PEP 723 metadata), souv runhandles the rest. Verify the API keys are available. Both scripts load from a
.envin the working directory, falling back to the shell environment. Confirm both are set before running:GEMINI_API_KEYfor step 1 (Gemini stylize)REPLICATE_API_TOKENfor step 2 (Replicate animate)
If either is missing, ask the user to add it to
.envor export it. Keys come from:
Before each run: ask about customization
Ask the user whether they want to customize the still prompt, video prompt, duration, or seed. Defaults live as DEFAULT_PROMPT in scripts/make_8bit.py and DEFAULT_PROMPT / DEFAULT_DURATION / DEFAULT_SEED in scripts/make_video.py; pass --prompt, --duration, or --seed to override for one run, or edit the constants to change the shipped default.
Step 1: Stylize the photo
uv run <skill-dir>/scripts/make_8bit.py <input_photo> [output_png] [--prompt "..."]- Default output:
<input_stem>_8bit.pngnext to the input. - Stylize prompt is
DEFAULT_PROMPTat the top ofscripts/make_8bit.py. Pass--promptto override it for one run. - Default model ID:
gemini-3.1-flash-image. - Current fallback IDs to try are
gemini-3.1-flash-lite-imageandgemini-2.5-flash-image. Do not use the old*-previewfallback names unlessListModelsshows they are supported for the current API key. - The script uses Gemini's Interactions API for image editing, matching the current Google AI docs for Nano Banana image generation.
- The model can sometimes add facial features that aren't in the source (e.g. a beard on a clean-shaven subject). Flag the output when this happens; do not silently rewrite the prompt to compensate.
Step 2: Animate the still
uv run <skill-dir>/scripts/make_video.py <input_image> [output_mp4] \
[--prompt "..."] [--duration 15] [--seed 42]<input_image>is normally the 8-bit PNG from step 1, but any image works (used as the first frame).- This call costs Replicate credits and can take 5 to 10 minutes.
- Output is an MP4 plus a
replicate.deliveryURL printed to stdout. The URL expires; the local file is the durable artifact. - Run only one Replicate prediction at a time. Every retry creates another chargeable prediction.
- Never retry automatically after a timeout, disconnection, or ambiguous error. Use the printed prediction ID to check the existing job first; retry only with explicit user approval.
- If generation succeeded but the download failed, recover the output from that prediction instead of generating again.
End-of-run
Tell the user the local MP4 path and the temporary URL. To iterate on the scene, rerun step 2 with a new --prompt; no need to redo step 1.
Design notes
- Defaults live in the scripts; CLI flags override per run. Editing the constants changes the shipped default. Passing a flag overrides for one run without mutating the file.
- Minimal prompts for the still. Long, hedged prompts to image models tend to over-direct.
After each run: iterate on the skill
After every run, ask the user whether anything about the workflow should be folded back into the skill: new defaults, prompt changes, extra steps, things that surprised them, anything they corrected by hand. If yes, update SKILL.md and/or the scripts so the next run starts from the improved version.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

