/awsh:character-forgefrom awsh
Creates consistent characters for animation and talking avatars using i2v, inpaint, and character LoRAs. Explains the bootstrap loop to build a LoRA dataset from a single base still.
Ships in awsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The definitive procedure for making a character that stays the same character. Every trap below was paid for in real GPU hours and real off-model garbage. Read the Core Law first; it is the whole skill.
Requires: an AitherOS deployment with its media-generation service (i2v, first-last-frame, inpaint and LoRA-training endpoints). The operation chain below names those calls; it does not ship them.
For color truth on anything produced here (ACES grading, LUTs, sRGB/HDR mastering) see related media processing guides.
Independent image renders CANNOT reproduce a specific character.
Text-to-image is fine for one-off designs. The character "spine" (reference images + a fixed seed) only loosely conditions the diffusion — it does not pin identity. Proven across many runs: three consecutive calls on the same locked spine produced a pink mouse, a different white rabbit, and a two-character bow-thing. None was the target character.
Consistency has exactly three sources:
| Tool | What it gives you | Use when |
|---|---|---|
| i2v (image-to-video) | Body FROZEN, face/limbs move. Same pixels warped → perfectly on-model frames. | Animations, expression frames, avatar assets. The workhorse. |
| inpaint | Change ONE region of an already-good frame; everything else untouched. | A specific expression/detail edit on a frozen base. |
| character LoRA | The model learns the character → text-to-image stops drifting. | You need NEW poses/scenes generated from scratch. |
If someone asks "why isn't the character consistent?" — they are almost certainly re-rendering instead of animating/inpainting/LoRA-ing. That is the answer, every time.
A good character LoRA needs pose/expression variety, but you cannot generate variety without a consistent character. i2v breaks the cycle: each short clip is animated from the same base still (stays on-model) yet yields 8–16 genuinely different frames (mouth, eyes, head tilt, limbs). Run ~20 motions → 150+ varied on-model frames → a real LoRA dataset.
ONE base still
│ i2v × N motion prompts
▼
~20 short clips ── extract_frames ──> 150+ varied, on-model frames
│
│ CURATE — cull off-model frames. Garbage in = garbage LoRA.
▼
LoRA dataset (auto-captioned)
▼
TRAIN
▼
text-to-image now generates THIS character, any pose, no drift
Motion language only. Motion prompts describe what the character does ("breaks into a warm smile", "waves a paw", "turns its head left") — never a new design. The base still carries the identity; a design prompt would fight it.
Media generation endpoints are called via standard APIs:
# FACIAL motion — i2v from ONE still. Head must stay put (see trap #15).
# Animate a single image with facial motion.
# Parameters: image, prompt (motion description), motion intensity, duration
# BODY / POSE motion — first-last-frame. PINS both endpoints; the character CANNOT drift.
# Generate a transition between two poses with motion inbetweening.
# Parameters: start_image, end_image, prompt (motion description), duration
# clip -> stills
# Extract frames from a video clip at specified intervals.
# transparent cut — for DISPLAY assets only, never for training
# Remove background from image for compositing.
# distinct emotions as STILLS (face-only cues, background removed)
# Generate expression variants: neutral, happy, sad, angry, surprised, curious, love.
# packaged: still -> i2v -> extract -> cutout -> normalize -> sprite sheet + manifest
# One-call pipeline: still → animation → frame extraction → compositing.
# character LoRA
# Fine-tune a model on character frames to lock identity.
# Parameters: frame set, training steps, LoRA rank/alpha, resolution
NEVER use canvas endpoints without a real timeout. Animated renders on shared GPUs can take several minutes, and a 300-second default dies silently. ✅ Use tracked job endpoints with a long client timeout (1800–2400s).
Subtle motion settings STALL → frames come out near-identical → automatic quality-check dedupe drops them all (live-verified: 7/8 dropped). ✅ Use moderate motion settings.
GPU busy is a normal 200 response, not an exception. Retry with backoff (20–60s). The GPU is shared with other workloads.
LoRA training must use RAW frames (background intact), NOT transparent cut-outs. Trainers flatten alpha unpredictably — transparent → dark background → poisons the LoRA. Cut the background only for display assets.
Aggressive motions drift off-model. Gentle motions (idle, blink, talk, subtle expressions)
stay rock-solid. Strong ones (jump, dance, turn, stretch) give the pose variety the
LoRA needs and are the most likely to warp the body. Always curate — cull mutant frames
before training. 150 frames with 40 mutants is worse than 110 clean ones.
Scene-heavy prompts REPLACE the character. Mood prompts like "storm cloud above" or
"confetti, arms up" made a faceless character render as a scene. For expression
work use face-only language, and pin the pose ("same character, exact same sitting pose,
plain white background, no props, no text").
Avoid framing clichés. Some phrasing draws software UIs, toolbars, or hallucinated text. Test framing language separately.
Media is served by content hash, not numeric id. Path refs are for download; numeric ids are for operation parameters. Know which you need.
API parameter names matter. Passing the wrong field name → server replies with a missing-field error and the caller silently falls back to defaults. ✅ When unsure: check the API docs for exact param names.
Download by the returned path reference, not by constructing from numeric id. Ops return content-addressed paths; numeric-id URLs 404.
i2v DAMPS dramatic emotion — write PHYSICAL motion, and label by the RESULT. The prompt "ears droop, looks down sadly, quivering frown, teary eyes" produced no tears and no drooping ears — it produced a half-lidded expression that reads as "really…?". That is an excellent asset; it just isn't "sad". i2v renders exactly what you PHYSICALLY DESCRIBE, and nothing you merely NAME. Intensity scales with the specificity and vividness of the physical description. Measured across many runs:
| prompt | result |
|---|---|
"teary eyes, drooping ears, looks down sadly" (vague adjectives) | subtle expression — minimal tears |
"squeezes eyes shut and sobs, big fat tears burst and stream down both cheeks, mouth opens in a wailing cry, head drops forward, shoulders shake" (5 explicit clauses, vivid verbs) | full sobbing — real tear streaks, wailing mouth, shoulders shake |
"puffs cheeks, furrows brow, pouts" (terse) | mild grumpy expression — brow landed, cheeks less pronounced |
How to write a motion prompt:
Still name the clip after what came OUT. The weak "sad" prompt produced an excellent
"really…?" expression → keep it, relabel it unimpressed. A mislabeled-but-good clip is still good;
mislabeling poisons emotion classification.
NEVER kill a render mid-run — it ORPHANS the job. Orphaned jobs pile up in the render queue and starve every later render. Never run two copies of the generator that both write state: each holds state in memory and they race their saves, silently clobbering each other's work. Verify exactly ONE process before walking away.
The GPU compute context can DIE — and it looks like "slow", not "broken".
Signature: GPU at 0% utilization but memory nearly full, queue shows running: 0, pending: N (jobs never picked up), and logs show CUDA errors. Renders then time out forever
with no output ever produced.
There is a HARD server ceiling on animated renders (minutes), and you CANNOT raise it. The system enforces a maximum duration, so renders exceeding it die with a timeout.
⚠️ THE BIG ONE: i2v holds the character ONLY while the head keeps its shape and scale. i2v sees exactly ONE frame. The moment the head rotates — or balloons, or tips back — the model must invent the character from a view it has NEVER seen, and it substitutes a generic animal. Measured on a distinctive character with unique ears:
| motion | outcome |
|---|---|
| Facial-only, head stable (happy, angry, unimpressed, wink, surprised) | ✅ perfect |
| Head thrown back | ❌ ears collapsed to floppy form, generic appearance |
| Head ballooned by exaggeration | ⚠️ ears shrank and rounded |
| Whole-body | ⚠️ some frames fine, some ears degraded — cull PER FRAME |
THE FIX — the POSE GRAPH. Give it the geometry instead of letting it guess.
First-last-frame inbetweening — PINS frame 0 to your start image and frame -1 to your end image and generates ONLY the in-between. With both endpoints on-model, the character cannot drift. Needs NO extra weights — a pure conditioning operation.
on-model pose A ──inbetween──▶ on-model pose B ──inbetween──▶ pose C ...
(sitting) both ends PINNED (standing) (waving)
Workflow: author on-model KEY POSES → inbetween each consecutive pair to make the TRANSITIONS → chain the clips into real animation. This is how you get genuine body motion on-model. Use i2v for facial motion; use inbetweening for anything the body does.
To author the key poses: train a character LoRA on clean frames, then use pose transfer tools (ControlNet + reference + the LoRA) → correct stills in any pose. The LoRA supplies the identity; the ControlNet supplies the pose; neither is guessed.
A character becomes a live, chat/speech-synced avatar by dropping assets into a portrait directory with a standard layout:
<name>-portrait/
{emotion}.png # neutral, happy, sad, angry, surprised, curious, love, …
{emotion}-blink.png # optional
{emotion}-talk-{0..3}.png# mouth frames (closed→open) for lip-sync
idle/frame_NN.png # idle animation loop frames
neutral.png if missing — partial sets are fine).The wiring is an operation: one call assembles a completed motion library into this convention — background-keyed to transparent RGBA AND frame-normalized (different motions can come out at different scales; unnormalized, the pane's emotion swap looks like a different character).
The whole pipeline is a first-class media operation. It is character-agnostic, resumable, and job-tracked. Never re-implement this as a host script — that is what made it un-repeatable.
| Operation | What it does |
|---|---|
motion_catalog | The motion vocabulary, split facial (safe) vs pose (gated). Read this before picking motions. |
motion_library | THE ONE CALL. base still → i2v × N motions → extract frames → (optional) LoRA dataset → (optional) train. Resumable per character. |
export_avatar | Completed library → avatar (keyed, frame-normalized, stale-swept). Selection works immediately after. |
/train (character LoRA) | LoRA fine-tune. No local trainer needed: with default config it trains on a rented GPU (standard tools on public images, checkpoints preserved on failure, LoRA returned + auto-attached). |
burst_up / burst_sweep | Rent a GPU; pass its ID to motion_library to render on rented silicon (clips still land in the LOCAL gallery). burst_sweep is the emergency stop-billing switch. |
# the whole library for ANY character, one call, resumable:
curl -X POST localhost:8200/api/op/motion_library \
-d '{"character_id":"char-5","base":17431,"frames":8,"dataset":true}'
# what motions exist, and which ones are safe:
curl -X POST localhost:8200/api/op/motion_catalog -d '{}'
State lives in the service's data directory — re-calling continues where it stopped. It skips completed motions, so a crash costs one clip, not the library.
Self-check before claiming success: open the actual frames and compare them to the base. "It rendered" is not "it's on-model." Every consistency claim in this domain must be eyeballed.
The whole flow, ~30 min of wall-clock time + ~$0.60 of rental:
# 1. spine (one-off text-to-image design is FINE — consistency comes after)
curl -X POST localhost:8200/api/characters -d '{
"name":"pip", "style":"anime", "ip_weight":0.7,
"prompt":"a small adorable round hovering robot companion, chibi, ... , centered full-body view, plain white background"}'
# 2. render 4 base candidates LOCALLY
curl -X POST localhost:8200/api/characters/char-23/render -d '{"count":4,"width":1024,"height":1024}'
# 3. EYEBALL the candidates; pick a NEUTRAL-POSE on-model one
# 4. one rental for the whole roster, then the library:
curl -X POST localhost:8200/api/op/burst_up -d '{"max_price_per_hour":1.60,"min_gpu_vram_gb":24}'
curl -X POST localhost:8200/api/op/motion_library \
-d '{"character_id":"char-23","base":17949,"frames":8,"comfy_base":"<from burst_up>"}'
# 5. curate (eyeball), then wire into avatar:
curl -X POST localhost:8200/api/op/export_avatar \
-d '{"character_id":"char-23","avatar_name":"pip"}'
# 6. targeted teardown:
curl -X POST localhost:8200/api/op/burst_down -d '{}'
# -> avatar ready. Later: dataset=true + train for the LoRA (pose unlock).
Prompt rules that made the difference: "plain white background" (key-able), "centered full-body view" or a clean bust, thick outlines + flat cel shading (compositing depends on drawn outlines), and NO gesture words in the base design.
What SKILL.md sets; muted values are Claude Code's defaults
120 skills in this plugin
/acp-driveDrive any external ACP agent from your agent. The Agent Client Protocol lets one agent drive another. When your task needs a different model, a different tool surface, or a sandbox your loop doesn't have, you can hand a sub-problem to an external ACP agent — Claude Code (claude-agent-acp), Codex (codex-acp), Gemini CLI (gemini-cli), or any binary that speaks ACP on stdio — and read back its answer. Your memory, faculties and approval gate stay in charge; the external agent runs its own loop underneath./acp-serveExpose an AitherOS agent to ACP editors. ACP editors — JetBrains IDEs, Zed, VS Code, neovim, Obsidian — drive coding agents over the Agent Client Protocol. adk acp serve makes any AitherOS agent one of those agents: the editor spawns it as a subprocess, and every prompt, permission request and tool round-trip goes over stdio JSON-RPC. Your agent's approval gate maps onto ACP permission requests./adk-deepseek-coderFill-in-the-middle, repo packing, and a reward that can fail. DeepSeek-Coder is two useful things at once, and most people only take the first./adk-harnessesOne shell that drives every coding shell. Your agent can hand a task to another coding agent's real product — Claude Code, Codex, Gemini CLI, Aider, OpenCode — and read back one answer./adk-unslothLocal training and serving, wired to your agent. [Unsloth](https://github.com/unslothai/unsloth) trains LoRA/QLoRA 2x faster with ~70% less VRAM and serves GGUF locally. Pairing it with the ADK gives you a loop that runs entirely on your own hardware: your agent serves from a local model, you fine-tune on what it produced, you swap the adapter, you measure again./adversarial-verificationStop grading your own homework. There is one failure that costs more agent-hours than any bug: the agent reads its own diff, decides it is correct, and reports success. Every expensive incident has that shape. A green healthcheck. An HTTP 200. A passing import. A test that goes green. All true, all at the same time as the feature being completely inert.npx claudepluginhub aitherium/awdk --plugin awshOther plugins' skills for the same job