Communitygithub.com

App Card Video

Transforms vertical live-action footage into an 'App Window Card Video' format, featuring dynamic on-screen cards, a circular inset of the speaker, note cards, subtitles, and auto-edited audio.

What is App Card Video?

This skill automates the production of professional 'App window card videos' from vertical selfie-style footage. It creates a 3:4 (1080×1440) vertical video featuring a rounded-corner white app window that dynamically changes 'cards' (title card, chat bubbles, highlighted lists) in sync with the speaker's words. Additional elements include a circular live-view of the speaker in the bottom-left corner, a note card that updates sentence-by-sentence on the bottom-right, and subtitles with a progress bar at the bottom. The skill handles the entire post-production pipeline: it automatically transcribes the speech, flags filler words/pauses for your review, cuts out mistakes and breaths, applies noise reduction, standardizes loudness (-14 LUFS), and speeds up the audio (default 1.25x). It then precisely clips the speaker footage into a circular frame, generates a JSON configuration for the card animations, and renders the final video using HyperFrames (a Node.js HTML-to-video renderer). Additionally, it creates a clay-style cover image (via a Baidu Lian API or manual prompt) and drafts promotional copy for WeChat Video, Douyin, and Xiaohongshu. The skill is designed for content creators who want to produce highly shareable, information-dense short videos that feel like app screenshots, maximizing viewer engagement and saving behaviors.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nibaba001/app-card-video/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

App Window Card Video

The final output is a 1080×1440 (3:4) vertical video: a white rounded-corner App window fills the canvas. The upper half is the main card, which changes as the speaker talks. The lower left has a circular live video of the speaker, the lower right has a note card updating sentence by sentence, and the bottom has subtitles and a progress bar. Suitable for content where you 'give the viewer something to take away' (a prompt, a setting, a method). Viewers will share it to save a screenshot.

Full Deliverables = Final Video (3:4) + Douyin Version (9:16) + Covers (vertical 3:4, horizontal 4:3) + 4–5 Keyframes + Copy for 3 Platforms. Just outputting the final video is not considered complete.

When to Use

  • User provides a vertical live-action selfie video to be made into a card video / App window video
  • Only need auto-edited talking head (remove stumbles, breaths, adjust speed, normalize loudness) → just do Step 2
  • Need only a cover for the final video → Step 6; need promotional copy → Step 7

Not suitable for: horizontal footage; videos requiring heavy illustration or multi-shot narratives; pure voice-over videos without a person on screen.

Conventions

  • <SKILL> refers to the directory containing this skill (the folder where SKILL.md is located).
  • For commands with python: on Mac/Linux it's typically python3, on Windows it's python. Use the Python printed in the last line of Step 0's check_env.py for all scripts.
  • Commands are written to run in both Windows PowerShell and Mac terminal; add quotes around paths with spaces or Chinese characters.

0. Environment Check (run once on each computer the first time)

python <SKILL>/scripts/check_env.py

Prints ✓ / ✗ and install commands for each item. Required: Python ≥ 3.9 (with numpy, fontTools, brotli), ffmpeg, Node.js ≥ 18, a Python environment with funasr (speech recognition). The Baidu Lian API Key is only needed for direct cover generation, optional. If any ✗ appears, follow the prompts to install before proceeding. See README.md for installation details.

1. Create Project Directory

Create one project directory per video. Place the original video (or note its path):

<project>/
  original.mp4
  job/          ← card.json, face.mp4, vo.m4a go here

package.json / hyperframes.json / meta.json don't need manual creation; they are auto-generated when creating the project in Step 5.

2. Edit the Talking Head (you annotate the mistakes)

Step One: Transcribe, export annotation draft

python <SKILL>/scripts/auto_koubo.py original.mp4 --out-dir auto_edit --dump

Produces auto_edit/<name>-to_annotate.md (annotation rules + reference transcript + word-by-word transcription with indices) and <name>-transcript.json (cache, do not delete). First run downloads the Chinese recognition model (about 1GB); subsequent runs are faster.

Step Two: You annotate the mistakes

Read through <name>-to_annotate.md completely. Strictly follow the six categories of rules to mark the index ranges to cut, writing them in auto_edit/<name>-to_cut.json:

{"cuts": [{"from": 7, "to": 7, "reason": "restart", "text": "is"},
          {"from": 109, "to": 111, "reason": "restart", "text": "so then"}]}
  • from / to are indices from the word-by-word transcription (inclusive). text should copy the deleted words. They must match exactly.
  • Isolated filler words ('uh', 'um') don't need annotation; the script handles them automatically.
  • When in doubt, don't cut. Reference: ~20 cuts for a 2-minute talking head is normal.
  • If the user provided a script/subtitle file, use that as the source of truth: only cut what wasn't in the script.

Step Three: Cut based on annotations

python <SKILL>/scripts/auto_koubo.py original.mp4 --out-dir auto_edit --spans auto_edit/<name>-to_cut.json --speed 1.25 --denoise medium --lufs -14

Default speed is 1.25x. If the user finds it too fast, change to 1.2. The script snaps cuts to volume troughs, then re-transcribes the edited audio to verify and fix any cuts that missed words or clipped audio. Outputs: <name>-edited.mp4, <name>-editing_report.md, <name>-word_timeline.json (after editing, used for cues and subtitles later), <name>-edit_plan.json.

Read the editing report. Items marked '⚠️ Please listen' are mostly homophone recognition errors from the second pass (see references/editing.md). If there's a real problem, modify the edit plan and re-cut with --plan.

3. Circular Cropped Face + Audio

python <SKILL>/scripts/find_face.py auto_edit/<name>-edited.mp4 --size 960 --bottom 1400

Prints --crop x,y,960 (skin color detection to locate the face, avoiding burned-in subtitles at the bottom). First write an empty edit plan job/plan-take.json containing {"cuts":[],"pause_max":0.35,"pause_keep":0.24}, then:

python <SKILL>/scripts/prep_take.py --video auto_edit/<name>-edited.mp4 --crop <value from above> --plan job/plan-take.json --out-dir job

Outputs job/face.mp4 (for the 720² circular frame) and job/vo.m4a.

4. Write card.json (Most Critical Step)

Format, all validation rules, layout formulas → references/card-json.md, read it before writing. Content design → references/design.md.

Key points:

  • captions are subtitle text, written sentence by sentence from the edited speech (each ≤ 23 characters). Only correct recognized misheard words, don't rephrase.
  • First decide 3–4 highlighted keywords, then infer note cards, progress, and flow capsules (say the same thing four ways using four forms).
  • A 1–2 minute video needs 3–5 screens; only 2 looks static. If there's dialogue, use chat bubbles.
  • Each cue must match captions exactly word for word (not the recognition output). Within the same screen, order by speech sequence.

Validate anchors first (saves one render cycle):

python <SKILL>/scripts/check_cues.py job/card.json

5. Generate Project + Render

python <SKILL>/scripts/build_card.py --config job/card.json --words auto_edit/<name>-word_timeline.json --audio job/vo.m4a --video job/face.mp4 --out . --force
npm run check
npm run render
  • Fix any configuration/time issues reported by build_card.py in card.json until it passes.
  • npm run check must have 0 errors; content_overlap is normal for note card transitions, warnings can be ignored.
  • Rendered output goes to renders/. A 80-second video takes about 3 minutes. First run downloads the renderer.
  • Do not copy card-template.html into the project directory, it will cause multiple_root_compositions.
  • If package installation is slow: npm config set registry https://registry.npmmirror.com

After rendering, you must extract frames to check (see Step 8 for self-check). The checker cannot detect overlapping elements or blank spaces.

6. Cover (Mandatory)

The cover is separate from the final video: the video is flat UI, the cover is a 3D clay-style object with two lines of large Chinese text directly drawn into the image. You decide the two lines and the main visual:

  • First line ≤ 6 characters, match the first screen title of the video, ideally with numerical contrast. Second line ≤ 8 characters.
  • Describe the main visual concretely (what is placed on what), avoid human faces and real brand logos.
python <SKILL>/scripts/gen_cover.py --out-dir cover --title "27 张发票" --subtitle "5 分钟一张没填" --scene invoice

--scene can use presets (invoice / document / general / mini-app / comparison) or directly write a scene description. If you have a Baidu Lian Key, it directly outputs cover/cover-3x4.jpg and cover-4x3.jpg (already cropped to exact dimensions). Without the Key, add --print-prompt and use the prompt with your current tool's image generation. After generation, check every Chinese character in the image for errors; re-generate if any are wrong.

7. Promotional Copy (Mandatory)

python <SKILL>/scripts/copy_facts.py --project .

Prints hard facts from the project (main title, highlighted keywords, note cards, duration, speech ending, full text) and rules for writing copy. Write the copy for three platforms in job/promotional_copy.md: one title + 2–3 alternatives per platform + description + hashtags; align hooks with the speech ending; only write what was said in the video.

8. Delivery

<project>/deliverables/
  <topic>-3x4.mp4            # Main version for WeChat Video / Xiaohongshu
  <topic>-douyin_9x16.mp4
  <topic>-cover_vertical_3x4.jpg
  <topic>-cover_horizontal_4x3.jpg
  frame-<seconds>s.jpg               # 4–5 keyframes
  <topic>-promotional_copy.md
ffmpeg -i renders/<rendered_file>.mp4 -vf "scale=1080:1440,pad=1080:1920:0:240:0xEFEBE4" -c:a copy deliverables/<topic>-douyin_9x16.mp4
ffmpeg -ss 18 -i deliverables/<topic>-3x4.mp4 -frames:v 1 deliverables/frame-18s.jpg

Pre-delivery checklist (do not hand off if any item is missing):

  • Final video has audio, duration matches the last word in the word-timeline
  • Extract 4–5 frames (at least one per screen): check that ** is not visible, highlights are not blank squares, note cards don't overlap the main card, face in the circular frame is not cut off
  • Cover text matches the first screen title of the video, no Chinese character errors in the image
  • Three-platform copy is ready, hooks align with the speech ending

Key Constraints Quick Reference

ConstraintValue
Aspect Ratio1080×1440 (3:4), Douyin separately 9:16
Main Card1–5 screens; first screen doesn't need a cue, others must have one; at least 2 seconds between screens
Note CardFirst card doesn't need a cue, others must have one; title ≤10 chars, desc ≤16 chars, progress 0–3; at least 1.2 seconds between cards
Paragraph Layoutlines×59 + 17×(paragraphs−1) + 48 ≤ boxHeight
Panel Bottom326 + boxHeight + chips 81 + banners 74 ≤ 830
SubtitlesEach line ≤880px (about 23 characters), proof against the script, don't directly use recognition output
Color PaletteCream white #EFEBE4 base + Mustard yellow #C9A96E accent

Common Errors → Causes

ErrorCause
ModuleNotFoundError: numpy / fontToolsThe Python you're using doesn't have dependencies → use the Python from check_env.py or run pip install as prompted
Can't find Python with funasrSpeech recognition environment not installed, or installed elsewhere → follow README, or set env var FUNASR_PYTHON
--dump、--spans、--plan are mutually exclusiveStep 2 must be run twice: first --dump, then after annotation --spans
Anchor word not foundThe cue doesn't exist in the subtitle text or is in wrong order → run check_cues.py
Script and audio only match xx%Too much difference between captions and edited speech (minimum 80%) → rewrite subtitles based on the post-edit word-by-word transcript
Not in a visible time segment for this screenA cue for an on-screen element falls after the next screen starts
Would overlap footerReduce boxHeight or remove banners (formula in references/card-json.md)
multiple_root_compositionsAn extra card-template.html exists in the project directory → delete it

Related Skills