/huasheng:flow-developmentfrom huasheng
Develops Huasheng Flow plugins using hs MCP: create/modify agents, tools, GUI code; debug local runtimes; test, pack, and publish flows. Includes SDK references and upgrade guidance.
Ships in huasheng. 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.
Read when SKILL.md points to them.
Help the user implement and verify a reusable Flow, using host file tools for source edits and hs MCP for its Linux execution lifecycle.
Read the Flow authoring guide before starting. It explains the code layout, SDK contract, three dev modes, directory mounts, IDs, dependency handling and the init → dev → verify → stop → pack → publish workflow, with MCP call examples. The step-by-step tutorial includes complete project examples.
Every hs command runs through one entry chosen by its risk: hs_read changes nothing, hs_write makes reversible changes and local work (flow init, flow dev, flow pack, flow upgrade, flow shell), hs_commit publishes, deletes or spends credits (flow publish, flow edit, flow rm, make) and needs the user's consent. Long calls return a job: follow it with hs_job.
Keep hs current. When any hs result carries update, tell the user in your next reply and recommend updating before continuing; an outdated hs or Runtime can break dev against the website. The upgrade skill has the procedure for hs itself (hs_read upgrade --check, then hs_commit upgrade with consent, then reconnect) and for moving a Flow to a newer SDK and Runtime (hs_read flow upgrade --check, then hs_write flow upgrade). FLOW_RUNTIME_UPGRADE_REQUIRED from dev means the pin is too old for the website.
For exact exported types, see the release declarations. Before implementing source, read the SDK development handbook (中文). Use the SDK specification for exact configuration, gateway, hook or MCP Apps details as needed. The source versions and hashes are recorded in source.json. Once a project exists, its installed SDK types/specification take precedence over this bundle; never silently migrate an older Flow.
Before the first publish, write the Flow's user-facing detail page in DESCRIPTION.md (template from flow init, rules in hs_help topic:"flow-description"); without it the Flow's detail page on Huasheng has no 技能描述 or 如何使用. README.md is not shown to users. Update a published Flow's page with flow edit <id> --description DESCRIPTION.md.
MCP-only clients can request the handbook with hs_help({"topic":"sdk"}). If an older hs rejects topic, use the bundled handbook or the installed SDK docs instead of retrying that unsupported argument. Do not invent callbacks: this contract currently supports getSnapshot and optional onProjectRename, not subtitle-color edits. Snapshot refresh uses the platform notification; it is separate from publishing a Flow version.
Call hs_help (command) for the relevant command to obtain the installed server's exact options and guide. If the bundled guide differs, use that server's contract and the project's installed SDK specification. MCP-only clients receive the same guide without installing this skill.
Tool calls time out after 5 minutes without a result or progress unless the server sets timeout (ms, at most 125 minutes, a hard per-call limit) in .mcp.json; long tools report progress. MCP Apps cards must pass a timeout to app.callServerTool for calls longer than 60 seconds. Details are in the authoring guide.
Adapt to the requested work: inspect and edit an existing Flow rather than initializing it again; leave publication out of a development-only task. Keep job/session IDs and returned directories together, and report verified behavior separately from checks that still need the user's browser. Never use the local protocol pid with cloud project tools.
getSnapshot returns; saying "done" in chat or posting a link changes nothing. The platform rereads it at startup, after a web edit, after notifyFlowProjectUpdated() / notify_flow_project_updated, and when each turn ends.null, timelines is empty, the picture track only has plain placeholder nodes, or there is only audio. The editor (preview, timeline, transcript, chat) once the picture track has a video / image / prefab node with a src, or a placeholder with userData.pending: true (or failed: true). After the user confirms the storyboard, the page should be the editor.pending: false, failed: true. Done means no pending or failed placeholders; pending exports as blank. Do not hold everything for one final snapshot.placeholder is blank time on the timeline, not "generating".timeline.subtitles are captions in the video (preview and export; optional, leave out when frames already have captions); presentation.scripts only fills the transcript list on the left. presentation.cover replaces the project cover; omit it to keep the previous one.flow dev output; read them while developing.RUN_INSUFFICIENT_POINTS (-606) and paid tools return insufficient balance. Before starting and before bulk spending, check total_remain with get_point_balance / getPointBalance; if it is not enough, tell the user first and offer options. If points run out midway, stop, keep what is finished, tell the user once and resume from there after they top up.Details: PROJECT-SNAPSHOT.md sections 页面什么时候进入编辑页, 渐进出片, 字幕 and 项目封面 (in the installed SDK once the project exists).
Use the current ready event's Web URL for this exact session on the same computer, in desktop Google Chrome. Dev uses HTTP loopback without certificates; the browser may ask for local network permission. Other browsers are not supported for local Flow development. Never install certificates or change browser security settings to make an agent job work. Do not put gateway tokens in URLs/logs or replay project creation automatically.
Use TypeScript running on Bun for Flow business code. The standard Runtime does not include Python or pip. Migrate pure Python business algorithms to TypeScript; do not install global tools or download an interpreter during init/dev. The Runtime image ships the ffmpeg, ffprobe and html-to-video commands; check platform support before relying on other native tools. Default template dependencies are preinstalled in the Runtime image and copied into the plugin. To add a package, update package.json and bun.lock in the source directory on the host and restart dev; hs installs it in Linux before freezing the snapshot. Edits and installs inside flow shell touch only the frozen copy and are lost.
For SDK 0.6, read the steps that flow upgrade --check marks breaking (their text comes from references/sdk/MIGRATION-0.6.md) before upgrading an existing Flow. Custom servers use @modelcontextprotocol/server 2.4 and serveStdio(createServer). Do not merely replace the SDK URL or import package name. Use flow upgrade to validate the candidate in isolation; preserve the existing Runtime pin on failure.
references/agents.md (opens in a new tab)references/examples/title-card.ts (opens in a new tab)references/flow-guide.md (opens in a new tab)references/sdk/DEVELOPMENT.en.md (opens in a new tab)references/sdk/DEVELOPMENT.md (opens in a new tab)references/sdk/MIGRATION-0.4.md (opens in a new tab)references/sdk/MIGRATION-0.5.md (opens in a new tab)references/sdk/MIGRATION-0.6.md (opens in a new tab)references/sdk/PLUGIN-SPEC.md (opens in a new tab)references/sdk/PROJECT-SNAPSHOT.md (opens in a new tab)references/sdk/index.d.ts (opens in a new tab)references/sdk/mt-project.d.ts (opens in a new tab)references/sdk/project-snapshot.d.ts (opens in a new tab)references/sdk/source.json (opens in a new tab)references/tutorial.md (opens in a new tab)references/tutorial/ai-development.md (opens in a new tab)references/tutorial/concepts.md (opens in a new tab)references/tutorial/first-flow.md (opens in a new tab)references/tutorial/gui-integration.md (opens in a new tab)references/tutorial/mcp-apps.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub superlcr/huasheng-cli --plugin huasheng4 skills in this plugin
/make-videoMake and edit Huasheng videos with the standard editor through hs MCP. Use when the user wants a video from a sentence, a script or a narration recording, or wants to check, edit, export or publish an existing Huasheng video (做视频、改分镜、换画面、换音色、导出、投稿). Videos made with a published Flow use the use-flow skill./upgradeKeep hs and Huasheng Flows current through hs MCP. Use when a result carries an update notice, when the user asks whether hs is up to date or asks to update hs, the plugin or a Flow's SDK and Runtime (升级 hs、更新插件、适配新版 SDK), or when flow dev reports FLOW_RUNTIME_UPGRADE_REQUIRED./use-flowFind a published Huasheng Flow and make a video with it through hs MCP. Use when the user wants to browse Flows, pick one for a request, or create, follow and export a video made with a Flow (用 Flow 做视频、找 Flow). Building or changing a Flow uses the flow-development skill.Other plugins' skills for the same job