agentleFS
tomc98tomc98/speak/skills/generate-voice-portrait/SKILL.md

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.

  • In this repository2 other files it gives its agents.

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
  1. Distinctive:

    Keep the description fixed across all three frames.

    line 35
  2. Very specific:

    Do NOT reimplement image generation — always delegate to generate-image.

    line 73
  3. Very specific:

    If a frame comes back off-model (different face/outfit/background), regenerate just that frame before uploading.

    line 75

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, default default) — portrait flavor:
    • default → stylized portrait avatar, neutral lighting, shoulders-up
    • codex → robotic, terminal green glow, ASCII/monospace motifs
    • user → warm, human, friendly
    • custom → use visual notes verbatim (freeform)
  • notes (optional) — extra visual details (outfit, palette, seed). For kind: 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: use notes verbatim 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:

framemouth direction
defaultmouth closed, relaxed neutral expression
slightmouth slightly open mid-speech, small gap between lips
openmouth 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 --status

Confirms 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 --status reports unreachable, surface that to the user instead of retrying blindly.
  • Voice name should match the name used by say.sh --voice <Name> and the entry in voices.json.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.