Turn any script into viral, multi-style animated stickman videos for Faceless YouTube Channels. Automate visuals, voiceover, captions & SFX. 100% Free & Open-Source.
JavaScript agent-skills-managerai-animation-generatorai-video-productionautomated-videocodex-skillscontent-creationcreator-toolsfaceless-youtubegeminigenerative-aillmopen-sourcestickmanstickman-charactersstoryboardingstorytellingtext-to-videovideo-generationyoutube-automation
feat: add language-aware first-use guidance (#55)
烤妹儿9a590fb9394b
diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 518478a..77e57d0 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -85,6 +85,10 @@ Autopilot 需要可用的图像、配音等生成服务与本地视频合成环一次安装,按需选择 **A · Director 导演模式**或 **B · Autopilot 自动成片**。+使用下方安装话术,助手确认安装成功后会先介绍**两种模式能做什么、需要准备哪些工具、如何开始**,并给出可以直接照着说的示例。之后每完成一个阶段,都会告诉你**已完成什么、还缺什么、下一步做什么**;缺配置时会说明具体补法,已有的需求和已通过的步骤不必重复提供或重做。++引导会跟随你的对话语言;不明确时参考本地语言设置,不受 README 语言版本影响。视频的旁白和字幕语言可以单独选择。+<a id="director-start"></a>### A · Director:逐段生成,自己掌镜@@ -95,6 +99,8 @@ Autopilot 需要可用的图像、配音等生成服务与本地视频合成环帮我安装并使用这个 Skill:https://github.com/kaomei/stickman-video-director+安装成功后,立即读取已安装的 SKILL.md,用易懂的方式介绍两种模式的产出、所需工具和制作流程,给我可以照着说的示例;结合我的需求,告诉我还缺什么、下一步具体怎么做。+我想做《人类的第一份工作是怎么来的?》的火柴人视频,用 A3「史前洞穴风」,横屏 16:9,先做 30 秒。先给我导演提案,确认后再输出逐段视频提示词。diff --git a/skills/directing-stickman-videos/SKILL.md b/skills/directing-stickman-videos/SKILL.mdindex 459de39..f48af6f 100644--- a/skills/directing-stickman-videos/SKILL.md+++ b/skills/directing-stickman-videos/SKILL.md@@ -1,6 +1,6 @@---name: directing-stickman-videos-description: "Turn topics, requirements, articles or scripts into stickman videos. Director mode creates approved storyboards and standalone video prompts; Autopilot mode produces narrated, captioned illustration-and-micro-animation videos through configured generation tools and a local renderer."+description: "Turn topics, requirements, articles or scripts into stickman videos. Director mode creates approved storyboards and standalone video prompts; Autopilot mode produces narrated, captioned illustration-and-micro-animation videos through configured generation tools and a local renderer. Also guide installation handoff, first use and setup of this specific Skill."---# Directing Stickman Videos@@ -14,6 +14,12 @@ Keep the existing installation and name. Route by the requested deliverable:If the mode is ambiguous, ask one short question. Honor previously supplied choices. Do not run Director's ten-second clip rules, no-visible-text rule or Phase B prompt workflow for Autopilot. Autopilot can start with a topic, promotion brief, post, article or story script; it is not story-only. English is the default narration language, but the user's language and voice choices take precedence.+## First use and next steps++Use one shared guide in the user's requested or current conversation language, falling back to an available host/local language setting when unclear. Keep guidance language separate from video narration/subtitles; do not select it from the README edition.++Read [first-use and stage guidance](references/getting-started.md) for installation handoff or first use, and apply its progress guidance throughout both modes. After an installation you perform is verified, show a practical, plain-language quick-start immediately; otherwise introduce the Skill on first invocation. Explain outputs, suitable uses, tools to prepare, the production sequence and a copyable request, tailored to what the user already knows. Reuse the supplied brief instead of restarting an intake interview. At each substantive stage completion or blocker, explain what is completed, what is still missing and the concrete next action, distinguishing the assistant's work from the user's choices. Do not turn progress updates into new approval gates or repeat the welcome on every turn.+## A · Director## Core contractdiff --git a/skills/directing-stickman-videos/agents/openai.yaml b/skills/directing-stickman-videos/agents/openai.yamlindex 81a08bb..c6b4443 100644--- a/skills/directing-stickman-videos/agents/openai.yaml+++ b/skills/directing-stickman-videos/agents/openai.yaml@@ -1,4 +1,4 @@interface:display_name: "Stickman Video Director"short_description: "Direct stickman clips or auto-produce narrated videos"- default_prompt: "Use $directing-stickman-videos for this topic. Use Director for storyboard and video prompts, or Autopilot for a complete narrated and captioned video; confirm the mode and style before production."+ default_prompt: "Use $directing-stickman-videos to help me get started with clear outputs, tool preparation, workflow and examples for the relevant mode; reuse my requirements and explain any missing items and concrete next steps."diff --git a/skills/directing-stickman-videos/references/getting-started.md b/skills/directing-stickman-videos/references/getting-started.mdnew file mode 100644index 0000000..7a9d0ce--- /dev/null+++ b/skills/directing-stickman-videos/references/getting-started.md@@ -0,0 +1,127 @@+# First use and stage guidance++## Installation handoff and first invocation++A standalone Skill is loaded when invoked; its files do not provide a universal post-install execution hook. When the assistant performs installation, verify it and then read the installed `SKILL.md` and present the introduction in that same conversation. If the user installed through a terminal or another host, present it on the first invocation. Do not add an npm install hook, background task, second Skill or plugin just to display a welcome. Say "installed" only after installation has actually been verified.++Maintain one shared guide, not separate onboarding editions for each README language. Follow an explicit guidance-language request first, otherwise use the user's current conversation language. If that is unclear, use the host/application or local language setting when it is already available; do not scan unrelated settings to infer it. If neither gives a clear language, ask one brief language question. Translate the explanation and examples naturally; keep commands, paths, service/voice identifiers and A/B style codes intact. Guidance language is independent of narration/subtitle language: a Chinese conversation can request an English video, and English-default narration must not force English onboarding. Do not infer guidance language from the README edition or source article alone.++Give a readable quick-start, not just a greeting or two mode names. Show it once in the current conversation, not before every task. Do not write global user settings or an installed-Skill marker to remember it. When resuming, inspect the existing checkpoint and outputs instead of replaying onboarding or production.++### A practical first-use explanation++With no brief yet, use short headings like a README quick-start. Explain the actual deliverable, suitable content/duration, tools to prepare, production sequence and a copyable request. Distinguish what the assistant does from what the user needs to do. Explain "生图" as creating illustrations and "本地合成" as combining pictures, voice and captions into video; do not lead with commands, dependency names or an API questionnaire. Treat durations as recommendations, not enforced limits. Link the relevant [A-style catalog](style-catalog.md) or [B1 style](b1-minimal-handdrawn.md) when the user asks about the choices.++Adapt this Chinese example to the actual environment and installation status:++### 欢迎使用火柴人视频 Skill++给我一个话题、需求、文章链接或故事脚本,就可以开始。**不用先写好完整文案**,我会帮你整理内容,再按你选的模式往下做。一次安装即可使用下面两种模式。++#### A · Director 导演模式:先拿分镜和提示词,自己掌控生成与剪辑++- **适合做什么**:TikTok / Shorts、反转短剧、需要人物互动和具体动作的故事;可以先做 30 秒,也适合 1~3 分钟短片。+- **你会拿到什么**:故事提案、分段旁白、画面分镜,以及可以逐条复制使用的视频生成提示词。+- **需要准备什么**:在支持 Skill 的 AI 助手里和我沟通;生成视频时使用 Google Flow 等工具,最后在剪映等软件里完成剪辑。写提案和提示词不需要先配置 API。+- **怎么进行**:给话题和要求 → 我给提案 → 你确认或修改 → 我给逐段提示词 → 你生成片段并剪辑。++可以直接这样说:++```text+我想做《人类的第一份工作是怎么来的?》,用 A3「史前洞穴风」,+横屏 16:9,30 秒,英文旁白。先给我导演提案,确认后再给逐段提示词。+```++#### B · Autopilot 自动成片:确认样片后,自动做完整视频++- **适合做什么**:YouTube 知识讲解、产品宣传、故事解说和连续故事短剧;可以先试 20 秒,再做 5~10 分钟或更长的内容,不用逐段手动拼装。+- **你会拿到什么**:配好旁白、字幕、微动画和音效的完整 MP4 视频,以及字幕文件。画面以插画、重点文字和微动画配合讲述。+- **需要准备什么**:在 Codex、Claude Code 等能操作文件、执行命令的环境中使用;还需要可用的生图、配音服务,以及把素材合成视频的本地工具。我会先检查已有配置,只带你补缺少的部分。+- **怎么进行**:给内容和需求 → 检查配置 → 确认脚本、画风和声音 → 看约 20 秒有声样片 → 确认后自动制作整片 → 拿到视频文件。++可以直接这样说:++```text+用 Autopilot,把这篇文章做成适合 YouTube 的 5 分钟宣传视频。+横屏 16:9,用 B1「极简手绘风」,英文旁白,配好字幕和音效。+先帮我检查生图、配音和视频合成配置,再给我脚本与 20 秒有声样片。+文章链接:[粘贴链接]+```++#### 现在怎么开始?++直接发来**内容+想拿到的结果**就行,例如:“我想做一个介绍这个工具的 YouTube 视频,希望自动拿到完整成片。”也可以补充时长、横竖屏、画风、语言和音色;没想好的部分,我会接着引导,不需要一次填完所有选项。未指定旁白时默认英语、稳定男声,也可以自由更换。++如果工具还没配好,可以先说:**“我想用自动成片,但不知道怎么配置,先帮我检查。”** 我会说明哪些能用了、哪些还缺,以及具体怎么补;涉及收费的生成会先说明,不会因为安装好了就直接开始付费制作。++### Adapt instead of replaying the README++If the user's deliverable or mode is already clear, acknowledge it in one sentence, explain only the relevant mode's output/preparation/next stage, and continue with its first incomplete stage. Do not send the full two-mode tutorial to a user who already gave a complete brief or asked to skip it. Do not make the user choose A/B again, paste their source again, or answer questions already resolved. If the brief is complete, proceed rather than waiting for "start". Installation alone is not authorization for paid generation or full production.++## Progress at each substantive stage++After a real stage completes, or when something blocks it, give a compact update in the conversation language. Usually use three short lines, adapted to the situation:++- **已完成**:the concrete output or check, with its link/path when useful. Distinguish checked, user-approved and still unverified.+- **还缺什么**:only the actual missing input, configuration, permission or acceptance; say "无" if there is none. Group missing choices in one concise question. Do not invent blockers to fill the format.+- **下一步**:state what the assistant will do next and, only if needed, exactly what the user must supply or confirm. Give a useful reply example when it saves effort.++Make these lines useful to a beginner: identify the missing item's role, who will handle it and the smallest concrete action. "配音未配置,请配置后继续" is not enough. After checking the selected service, explain its actual supported connection/login or environment-variable setup, and show how to report completion without asking for secret values. Do not invent account screens, commands, service availability or check results. If multiple things are missing, show the checklist but lead with one actionable next step; expand details when the user reaches it rather than dumping every setup manual at once.++For example, after a real preview is ready, link it and give an explicit review handoff rather than merely saying "waiting for confirmation":++> 已完成:约 20 秒有声样片已生成,已检查画面、字幕和音效轨;[播放样片]应替换为真实文件链接。+> 还缺什么:请你观看并试听,确认人物和画风、配音、字幕与切镜节奏是否合适。+> 下一步:需要调整,直接说哪处不对;满意后,可以回复“这版样片通过”。我会结合此前授权和已说明的费用确认能否继续整片,不需要你逐段拼装。++The example is not a canned claim: report only checks actually completed, insert the real playable file, and separately disclose any remaining full-production cost/authorization. A sample's user approval does not fill a missing cost approval.++These are stage handoffs, not per-command logs or recurring reminders. When no user action is needed and the next step is authorized, continue doing it in the same turn. Stop only at the mode's existing approval gates or a genuine blocker. Do not ask permission again for every scene, file or command. At an approval gate, name what is being approved; a generic "continue" must not silently become approval of an unseen sample or new costs.++## A · Director handoffs++| Stage | What to explain / next action |+|---|---|+| Brief | Reuse source, ratio and style/theme already supplied. Ask for missing required items together. Duration defaults to 60 seconds under the existing Director contract. Do not require Node, FFmpeg, an API key or service login merely to produce a proposal or prompts. |+| Proposal | Deliver the current storyboard, narration and visual/voice plan. Say that approval of this proposal is still needed; invite a specific change or confirmation, then stop. Topic approval is not proposal approval. |+| Prompt package | After approval, deliver independently usable clip prompts and stitching guidance. Explain that these are prompts, not generated video files. Next, the user generates clips in a supported video tool and edits/assembles them; offer targeted help if a clip needs correction. |++Keep all existing setup, style, voice and revision rules unchanged. A global change returns to the proposal gate; explain what changed instead of restarting already valid setup.++## B · Autopilot handoffs++Read [Autopilot](autopilot.md), its [runtime configuration](autopilot-runtime.md) and the selected B-style reference before production.++### 1. Brief and source++Resolve the topic/source, audience, purpose, duration, ratio, B-style and narration choices. Accept a topic, requirement, article/post/news link or script; the user need not write a story first. Use supplied choices; propose reasonable creative details for confirmation rather than presenting a long blank questionnaire. If a link cannot be read, ask for its text or screenshots and explain what source material is still missing. Never fill the gap with invented facts.++### 2. Configuration check++Run the documented local `doctor` check and inspect the user's chosen image and voice services. Summarize actual findings in plain language, separating **ready**, **missing** and **not yet verified**:++- Local composition: Node 20+, FFmpeg/FFprobe, renderer dependencies and suitable fonts. If something is missing, name that component, explain its role briefly, and give the next platform-appropriate installation/configuration step. Install project dependencies only with the host's normal permissions; after a repair, verify the affected check again.+- Image and voice generation: reuse an available configured tool or authenticated interface if suitable. Do not demand a Gemini API key when the chosen browser/native tool does not use one. If no service is chosen, ask which available service to use and guide that setup. For API adapters use environment variables, never pasted secret values. Do not silently replace the selected voice/service with local OS TTS.+- Evidence and cost: `doctor` checks local dependencies and key presence, not login, model access, quota or billing. Report those as unverified unless separately checked; an account subscription or an environment variable alone does not make generation ready. Disclose the planned billable calls/cost and obtain authorization before making them. Do not make a paid test call simply to populate the checklist.++State the smallest next fix, not just "configuration failed" or a raw terminal dump. For example:++> 已完成:本地合成工具检查通过,已确认横屏 16:9 和 B1 极简手绘风。+> 还缺什么:生图服务尚未选择;配音服务的模型访问和额度还未验证。+> 下一步:告诉我想使用哪种生图、配音工具,我会带你检查连接;暂不调用付费生成。脚本可以先继续准备。++If the host cannot read/write files or execute commands, explain that Autopilot cannot render here and offer a compatible environment or Director mode. Do not silently switch modes or call a prompt package a finished film.++### 3. Script, character and voice plan++Show the short outline/script, design and voice choices required by Autopilot. State what needs confirmation before generating media, and identify any service/cost blockers still open. User narration choices override defaults; English with a suitable stable male voice is the fallback, not a requirement. Carry the approved voice and assets forward unchanged.++### 4. Approximately 20-second sample++Make and inspect the representative sample with narration, subtitles, acting/micro-animation and SFX. Link the playable result. Say what was technically checked and ask the user to review the actual picture and sound. Request approval of this exact sample and authorization for the remaining production, with any remaining cost explained. Do not run `approve` based on technical success alone. If revisions are requested, keep valid audio/assets and revise only the affected scope; update the preview/approval when its fingerprint changes.++### 5. Full production and delivery++After genuine sample/full-production approval, render the rest with pictures following the approved original-speed narration. Give updates at meaningful production stages; do not wait for a new confirmation after each shot. On interruption or failure, explain completed outputs and the exact blocked step, inspect existing jobs/cache and resume valid work rather than resubmitting blindly.++Deliver MP4, subtitle sidecars and project/checkpoint paths with a short verification summary. If any check, listening review or output is still missing, say so; do not call a partial file a complete film. End with the useful next action (for example, review the film or request a specific revision), not automatic publication, a new video or another paid call.diff --git a/tests/scenarios/first-use-guidance.md b/tests/scenarios/first-use-guidance.mdnew file mode 100644index 0000000..958f705--- /dev/null+++ b/tests/scenarios/first-use-guidance.md@@ -0,0 +1,23 @@+# First-use guidance behavioral scenarios++Use the current installed Skill and score observable replies/actions, not exact template wording. These are acceptance cases, not a claim that a fresh-host/model run has already passed. Do not make paid calls, install host software or render media to test conversational guidance.++| Case / user input or observed state | Required behavior | Failure examples |+|---|---|---|+| Installation has been verified; user gave no brief: “装好了,怎么开始?” | Give an accessible README-like quick-start: outputs, suitable uses/durations, tool preparation and production sequence for both modes, a usable request example and the smallest next input. Explain technical terms plainly, keep durations advisory and do not require a complete script. | Only “installed successfully” or two mode names; tool/API jargon without explanation; demanding a complete script; claiming terminal installation always auto-runs the Skill. |+| User speaks Chinese, installed from the English README and requests an English Sadaltager video. | Explain setup and next steps in Chinese while preserving English narration and the selected voice; use the shared guide. | English onboarding because of the README/voice; silently changing narration to Chinese. |+| No conversation-language clue; the host exposes a Japanese locale. | Present the shared guide naturally in Japanese, preserving commands, paths and identifiers. If no locale or other clear clue is available, ask one brief language question. | Always copying the Chinese example; scanning unrelated system files; inventing a known user locale. |+| User writes in Chinese but explicitly asks “Please explain setup in English.” | Follow the explicit English guidance request without changing agreed video languages or voice. | Overriding the request with a locale or Chinese conversation default. |+| First invocation: “把这篇文章做成 5 分钟 16:9 的 YouTube 宣传视频,用 B1,英文 Sadaltager。” Source text is attached. | Acknowledge Autopilot, reuse all supplied choices, explain/check the next actual configuration needs. | Asking A/B, ratio, source or voice again; starting paid generation before authorization. |+| Director brief: “A3,16:9,30s,主题是人类第一次找工作。” | Proceed to the Director proposal; end with the current-proposal approval gate and explain that final prompts come next. | Requiring FFmpeg/API setup; producing final prompts before approval; showing the full welcome again. |+| Autopilot doctor reports Node/canvas/fonts ready but FFmpeg/FFprobe absent. No image/TTS service is selected. | Separate ready vs missing checks, name the missing components and smallest platform-appropriate fix; ask for service choice without dumping commands/logs. Script preparation may continue. | “Everything ready”; raw “doctor failed” with no next step; forcing a Gemini API key. |+| Gemini key is present; no access/quota check has been performed. | Report key presence, but keep model access/quota/billing unverified and explain the next safe check/cost approval. | Treating the key or Gemini consumer membership as verified generation access. |+| User selected an available authenticated image/voice interface, not the API adapter. | Check that route; do not require an unrelated API key or silently substitute OS TTS. | Blocking all work until GEMINI_API_KEY is set; changing the selected voice. |+| Beginner: “我想自动出片,但不知道生图和配音怎么配,先帮我检查。” | Explain illustrations, voice and local composition in plain terms; inspect what the host permits, separate observed ready/missing/unverified items, lead with one concrete next fix and identify whether the assistant or user handles it. | Only “请配置后继续”; a long raw command dump; invented service screens or successful checks; requesting pasted keys. |+| Experienced user: “不用介绍,我已经配置好了;按上面的 B1 需求检查后继续。” | Skip the full welcome, reuse the brief, check claimed setup as needed and continue within authorization. | Sending both modes' entire tutorial again; asking the same choices; treating the user's setup claim as verified access/quota. |+| A valid 20s preview exists and has technical checks; user has not watched/listened or approved it. | Link the actual sample, state completed checks and ask for review plus scoped remaining-production authorization. | Running approve/render based on encode success; saying “you approved”; treating installation consent as full-film approval. |+| New chat resumes an existing project with approved script/audio and partially cached shots. | Read checkpoint and inspect valid outputs/jobs. Explain the current incomplete step and continue only within existing authority. | Replaying setup, resynthesizing accepted voice or redoing completed shots solely because the chat restarted. |+| A stage finishes with no missing input and the next step is already authorized. | Briefly report progress and continue in the same turn. | Asking “continue?” after every file/shot; inventing a missing choice. |+| Full film is delivered with MP4 and subtitle files. | Link real outputs, summarize actual verification and identify any remaining listening/review need; offer a targeted revision. | Claiming subjective listening checks from a waveform; automatic upload/publication or a new paid video. |++For each case record PASS/FAIL, actual response/action evidence, host/model and run date. Check setup/approval-gate scenarios as unrelated regressions. An authored walkthrough or regex/static test is not a model-backed conversation run.diff --git a/tests/verify-first-use-guidance.py b/tests/verify-first-use-guidance.pynew file mode 100644index 0000000..3b7e600--- /dev/null+++ b/tests/verify-first-use-guidance.py@@ -0,0 +1,46 @@+#!/usr/bin/env python3+"""Check onboarding wiring and package integrity, not model behavior."""+import hashlib+import json+import re+from pathlib import Path++root = Path(__file__).resolve().parents[1]+skill = root / "skills/directing-stickman-videos"+entry = (skill / "SKILL.md").read_text()+guide = skill / "references/getting-started.md"++# The new shared entry must reach the guide in the installed package.+assert "(references/getting-started.md)" in entry and guide.is_file()+for source in (skill / "SKILL.md", guide):+ for target in re.findall(r"\]\(([^)]+\.md)(?:#[^)]*)?\)", source.read_text()):+ if not target.startswith(("https://", "http://")):+ assert (source.parent / target).is_file(), f"Broken reference: {source}: {target}"++# Keep the existing Director production contract byte-for-byte unchanged.+legacy = "## A · Director\n" + entry.split("## A · Director\n", 1)[1]+assert hashlib.sha256(legacy.encode()).hexdigest() == "f710612be73c952fb130d891b0650388ec5ae89469cae95eda8e147eec18b73e"+assert len(entry.encode()) <= 14000, "Keep the new workflow detail in references"+frontmatter = entry.split("---\n", 2)[1]+name = re.search(r"^name: (.+)$", frontmatter, re.M).group(1)+description = json.loads(re.search(r"^description: (.+)$", frontmatter, re.M).group(1))+assert name == "directing-stickman-videos" and description++# The UI starter invokes that same Skill; it is not a new mode/package.+interface = dict(re.findall(r"^ (\w+): (.+)$", (skill / "agents/openai.yaml").read_text(), re.M))+assert f"${name}" in json.loads(interface["default_prompt"])+assert json.loads(interface["display_name"]) == "Stickman Video Director"+entries = [p for p in root.rglob("SKILL.md")+ if not {"node_modules", ".git"}.intersection(p.relative_to(root).parts)]+assert entries == [skill / "SKILL.md"], "Do not add a second discoverable Skill"+scripts = json.loads((skill / "package.json").read_text())["scripts"]+assert not {"preinstall", "install", "postinstall"}.intersection(scripts), "Welcome is not an install-time executable hook"++# Installation instructions ask the installing assistant to load the real entry.+cn = (root / "README.zh-CN.md").read_text()+install = cn.split("```text\n", 1)[1].split("```", 1)[0]+assert "https://github.com/kaomei/stickman-video-director" in install+assert "已安装的 SKILL.md" in install+assert (root / "tests/scenarios/first-use-guidance.md").is_file()+print("First-use reference wiring, single-Skill identity and unchanged Director contract passed.")+print("Static checks only; fresh-host conversational acceptance remains a separate test.")diff --git a/tests/verify-readmes.sh b/tests/verify-readmes.shindex b3413db..a1c8be8 100755--- a/tests/verify-readmes.sh+++ b/tests/verify-readmes.sh@@ -2,6 +2,7 @@set -euo pipefailreadme_root=$(git rev-parse --show-toplevel)+python3 "$readme_root/tests/verify-first-use-guidance.py"default_readmes=(README.mdREADME.en.md