generate-voice-portrait
Skill2 starsChanged 7 months agoMITView on GitHub
Generate a 3-frame lip-sync portrait set for a speak voice and upload it to the daemon. Use when adding a new voice or refreshing an existing portrait.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Keep the description fixed across all three frames.
- Very specific: line 73
Do NOT reimplement image generation — always delegate to generate-image.
- Very specific: line 75
If a frame comes back off-model (different face/outfit/background), regenerate just that frame before uploading.
≈ “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
Generate Voice Portrait
Creates the three portraits (mouth closed / slightly open / wide open) the dashboard uses to animate lip-sync, then uploads them to the speak daemon.
Paths below use
{base}as shorthand for this skill's base directory, provided via the "Base directory for this skill" context injected when the skill loads.
Inputs
name(required) — voice name, e.g.Josh. Used in the upload URL and to key portraits.style(required) — short descriptor of the character, e.g. "deep-voiced confident male, short dark hair".kind(optional, defaultdefault) — portrait flavor:default→ stylized portrait avatar, neutral lighting, shoulders-upcodex→ robotic, terminal green glow, ASCII/monospace motifsuser→ warm, human, friendlycustom→ use visual notes verbatim (freeform)
notes(optional) — extra visual details (outfit, palette, seed). Forkind: custom, this becomes the character description.
Workflow
1. Compose the base character prompt
Pick the flavor template for kind, then concatenate style and notes:
default:"stylized portrait avatar of <style>, shoulders-up, neutral studio lighting, solid pastel background"codex:"robotic avatar of <style>, terminal green CRT glow, ASCII/monospace motifs, dark background, shoulders-up"user:"warm friendly human portrait of <style>, soft natural lighting, approachable, shoulders-up, solid background"custom: usenotesverbatim as the character description
Keep the description fixed across all three frames. Only the mouth shape varies.
2. Generate 3 frames via the generate-image skill
Invoke the generate-image skill three times. Every prompt MUST include this exact clause:
identical character, same face, same hair, same outfit, same background color, only the mouth shape changes
Per-frame mouth direction:
| frame | mouth direction |
default | mouth closed, relaxed neutral expression |
slight | mouth slightly open mid-speech, small gap between lips |
open | mouth wide open in a vowel shape, teeth visible |
Each call returns a saved PNG path (under Archive/Files/...). Record the three paths.
3. Upload each PNG to the daemon
{base}/scripts/generate.sh --name <Name> --frame default --file <path-to-default.png>
{base}/scripts/generate.sh --name <Name> --frame slight --file <path-to-slight.png>
{base}/scripts/generate.sh --name <Name> --frame open --file <path-to-open.png>The helper POSTs raw PNG bytes to http://127.0.0.1:7865/portraits/{name}?frame={frame} with Content-Type: image/png and exits non-zero on any HTTP error.
4. Verify
{base}/scripts/generate.sh --statusConfirms all three frames are registered for the voice.
Rules
- Do NOT reimplement image generation — always delegate to
generate-image. - Reuse the exact same character description across frames; change only the mouth clause.
- If a frame comes back off-model (different face/outfit/background), regenerate just that frame before uploading.
- The speak daemon must be running (
uv run daemon/server.py). If--statusreports unreachable, surface that to the user instead of retrying blindly. - Voice
nameshould match the name used bysay.sh --voice <Name>and the entry invoices.json.
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.

