Avatar Forge Pipeline logo

Avatar Forge Pipeline

Community
LycheeAILab
avatar-forge-pipeline

Create a final zeroshot talking-avatar video or prepare its script from a reference video. Use when WorkBuddy should accept an uploaded video or authorized Douyin link, transcribe and rewrite spoken copy, authenticate with LycheeAILab, clone an authorized voice, synthesize target speech, build an internal motion template, fast-clone a digital human, run zeroshot inference, or resume an interrupted job.

Overview

PublisherLycheeAILab
Repositoryavatar-forge
Skill nameavatar-forge-pipeline
Stars
107
Forks
22
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LycheeAILab on GitHub. Read the source before you install it.

Installation

Install the Avatar Forge Pipeline AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LycheeAILab/avatar-forge/tree/main/workbuddy/avatar-forge-pipeline
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LycheeAILab/avatar-forge.git /tmp/avatar-forge
mkdir -p .claude/skills
cp -r /tmp/avatar-forge/workbuddy/avatar-forge-pipeline .claude/skills/avatar-forge-pipeline
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Avatar Forge Pipeline in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Avatar Forge Pipeline on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Avatar Forge Pipeline is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Avatar Forge Pipeline for WorkBuddy

Identify the installed release

Read the adjacent VERSION file when asked which release is installed. Report that exact value instead of inferring a version from conversation history or documentation prose. This package is release 2.3.0.

Keep the final-output contract

Return only the final MP4 produced by LycheeAILab zeroshot inference unless the user explicitly requests standalone LycheeTTS audio.

  • RunningHub is allowed only for the internal motion-template stage.
  • Never return the RunningHub template, URL, task ID, payload, or file.
  • Fast clone and zeroshot inference must use the LycheeAILab digital-human platform.
  • Delete the internal template after fast clone succeeds.
  • Never resubmit a paid stage when a saved task can be resumed.

Select the requested capability

  • Person video: authorized person MP4 + finished audio, or script + reference voice / speaker_id -> fast clone -> zeroshot. Use --video instead of --image; no RunningHub calls.

  • Complete: portrait + authorized reference voice or existing LycheeTTS speaker_id + script -> internal template -> target speech -> fast clone -> zeroshot MP4.

  • Avatar only: portrait + finished WAV/MP3 -> internal template -> fast clone -> zeroshot MP4.

  • Zeroshot only: ready asset_id + player_id + finished WAV/MP3 -> zeroshot MP4.

  • Clone voice: authorized reference audio -> LycheeTTS clone through Lab; normalize requestId as speakerId when needed.

  • Voice only: existing speaker_id + script -> LycheeTTS MP3 through Lab, only when explicitly requested.

  • Reference-video script: uploaded video or authorized Douyin URL -> local video -> original transcript -> rewritten speaking script. Stop unless the user asks to continue.

Run from the Skill directory

WorkBuddy exposes the installed directory as ${CODEBUDDY_SKILL_DIR}. Use absolute paths for all user inputs and outputs.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" `
  --image "C:/absolute/input/person.png" `
  --voice "C:/absolute/input/reference.wav" `
  --script-file "C:/absolute/input/script.txt" `
  --output "C:/absolute/output/avatar-zeroshot.mp4"

On macOS or Linux:

bash
python3 "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" \
  --image "/absolute/input/person.png" \
  --voice "/absolute/input/reference.wav" \
  --script-file "/absolute/input/script.txt" \
  --output "/absolute/output/avatar-zeroshot.mp4"

Before any paid stage, confirm that the user is authorized to use the portrait, voice, and script. If authentication is missing, run:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" --login-only

The browser must open https://lab.lycheeai.com.cn. The randomized 127.0.0.1 callback is local-only and returns the user's revocable Lab credential to the local process; it is not a web service address.

Before uploading a portrait, show this notice and obtain confirmation:

请确认人物脸部清晰、没有遮挡、完整露出,且人物在画面中的比例适中。模糊、遮脸、面部超出画面或人物过大/过小都会影响数字人效果。

Inspect the image when possible. Request a replacement if the face is unclear, obscured, cropped, unusably exposed, or poorly scaled.

Prepare a script from video

This section extracts spoken copy only. If the user wants to animate the person in the video, use the direct person-video workflow below, not a portrait extraction or transcription workflow.

Read references/video-recreation.md first. For a local or uploaded video:

The WorkBuddy package includes a cookie-free Douyin engine derived from the proven DouK request flow, with yt-dlp as a fallback. The installer installs requirements.txt; do not require a separate downloader project, browser cookies, Windows DPAPI, or a ChatGPT browser extension.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/prepare_video_source.py" --video "C:/absolute/input/reference.mp4"

For an authorized Douyin URL:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/prepare_video_source.py" `
  --douyin-url "https://v.douyin.com/..." `
  --output "C:/absolute/output/reference.mp4"

The command first uses the bundled cookie-free engine and automatically falls back to yt-dlp. Do not add browser-cookie flags or send the user to manually download merely because DPAPI or an extension is unavailable. Never ask for, read, print, copy, or save browser cookies.

Prefer an available trusted transcription tool. For optional fully local transcription:

powershell
python -m pip install -r "${CODEBUDDY_SKILL_DIR}/requirements-transcription.txt"
python "${CODEBUDDY_SKILL_DIR}/scripts/transcribe_video.py" "C:/absolute/input/reference.mp4" --output "C:/absolute/output/transcript-original.txt"

Keep transcript-original.txt unchanged and save the rewrite separately as script-rewritten.txt. Preserve facts, names, and numbers; rewrite the hook, structure, pacing, transitions, and conclusion. Never fabricate claims. Do not continue into voice or avatar generation unless the user asks.

Preserve the fixed stage order

The following template step applies only to images. Person-video mode skips it and sends the original MP4 to fast clone.

  1. Create the internal motion template from the portrait and bundled assets/template-driver.wav.
  2. Clone the authorized reference voice when needed and save the returned requestId as speakerId.
  3. Generate the formal target speech through the protected LycheeAILab LycheeTTS endpoint.
  4. Fast-clone the avatar through LycheeAILab and obtain player_id.
  5. Run LycheeAILab zeroshot inference with player_id and the formal target speech.
  6. Verify the MP4 has audio, video, and positive duration; return only that MP4.

Never use the user's script, reference voice, target audio, or LycheeTTS output to drive the template stage. Never ask for provider keys; the local client sends only the user's Lab credential.

Person-video workflow

Confirm authorization for the depicted person and target voice. Prefer a single clear, unobstructed face without cuts; do not promise exact preservation of source actions/scenes. Require a readable MP4 up to 100 MiB, 120 seconds, 1080p (long edge ≤1920 / short edge ≤1080), 25fps and FFprobe. Preserve the user's source file; never treat it as a disposable internal template or send it to RunningHub.

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/run_pipeline.py" --video "C:/absolute/person.mp4" --avatar-only --audio "C:/absolute/speech.mp3" --output "C:/absolute/result.mp4"

For generated speech replace --avatar-only --audio ... with --script-file ... --voice ... or --script-file ... --speaker-id .... Original video audio is not implicitly a voice reference. Persist assetId, clone and inference IDs, and playerId; reuse the last two asset/player values with --infer-only for future scripts. Lab limits final output to 300 seconds; direct long-video requests to https://lab.lycheeai.com.cn/ customer support, never silently trim.

Recovery rules

  • Re-run the identical command and output path to resume from .avatar-forge/<output-stem>/state.json.
  • A timeout is not a failure. Poll the saved template, clone, or inference request.
  • Do not use --reset-state unless the user explicitly authorizes a new paid workflow.
  • Do not resubmit template, fast-clone, or zeroshot stages whose task IDs are already saved.

Verify without spending

After installation, run only the local doctor unless the user explicitly authorizes a real generation:

powershell
python "${CODEBUDDY_SKILL_DIR}/scripts/doctor.py"

The doctor checks Python, requests, package files, and the fixed template-audio hash. It does not authenticate, upload media, or submit provider tasks.

Read supporting contracts when needed

  • Read references/workflow.md before changing or debugging stage order.
  • Read references/api-contracts.md for Lab request and response fields.
  • Read references/verification-gates.md before declaring a generated deliverable complete.
  • Read references/video-recreation.md before downloading, transcribing, or rewriting a reference video.

Frequently asked questions

What does the Avatar Forge Pipeline AI skill do?

Create a final zeroshot talking-avatar video or prepare its script from a reference video. Use when WorkBuddy should accept an uploaded video or authorized Douyin link, transcribe and rewrite spoken copy, authenticate with LycheeAILab, clone an authorized voice, synthesize target speech, build an internal motion template, fast-clone a digital human, run zeroshot inference, or resume an interrupted job.

Why use Avatar Forge Pipeline on TypingMind?

Because you install it once and use it with any model. Avatar Forge Pipeline is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Avatar Forge Pipeline in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LycheeAILab/avatar-forge/tree/main/workbuddy/avatar-forge-pipeline. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Avatar Forge Pipeline?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Avatar Forge Pipeline?

As many as you like. As long as a model supports skills, you can use Avatar Forge Pipeline with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Avatar Forge Pipeline AI skill free?

Yes. It is published on GitHub by LycheeAILab under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇