360 Secure SkillHub
360 安全技能中心

xiaohongshu-policy-talking

核心功能是基于用户提供的现成政策文本,将小红书政策问答内容转化为单张静态图对应2-15秒的独立语音视频片段,片段不拼接,严格使用给定政策内容,不杜撰信息。典型场景为街道办或民政部门制作解答公众政策疑问的短视频素材。输入需提供小红书问答素材、政策文本、静态图等,输出为多个独立视频文件,付费步骤需用户确认后执行。

beatra-ai
beatra-ai
热度 21.08
最近更新 2026-09-07 00:27:45
分类:创作依赖:代码执行 / MCP 服务 / 读写文件应用场景:社交媒体 / 视频编辑

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add xiaohongshu-policy-talking
Metadata
name
xiaohongshu-policy-talking
description
Turn Xiaohongshu policy-question notes into one talking policy clip per still. This Xiaohongshu policy talking studio reads public policy-question notes, then records each already-written public-policy line as a 2 to 15s talking clip. Those policy talking clips stay separate files they can send on their own.

Xiaohongshu Policy Talking

Turn Xiaohongshu policy-question notes into one talking policy clip per still. Deliver 2 to 8 clips. Do not stitch them. Speak only public-policy lines the desk already wrote. Do not invent a subsidy amount, eligibility, or a personal grant.

Scope and adjacent routes

Use this Skill when a street-office or civil-affairs desk wants short talking clips that answer public Xiaohongshu policy-question notes with an already-written public-policy draft.

Route Xiaohongshu hall materials stills to xiaohongshu-hall-faq-stills. Route a wealth-product FAQ note read to xiaohongshu-wealth-faq-talking. Route a generic presenter to talking-avatar-video.

This package reads Xiaohongshu policy-question notes and makes talking clips. It does not post on Xiaohongshu. If this connection has no Xiaohongshu note or comment operation, work from pasted questions only.

Collect the notes

Hard inputs are:

  • either a public Xiaohongshu note link or search wording the host can open, or the original policy-question notes already copied;
  • already-written public-policy facts the desk supplied (what the clip may say; no invented subsidy, eligibility, or personal grant);
  • at least one accessible still the host Agent can inspect — a presenter portrait or a policy graphic that will be the first frame;
  • likeness and voice rights when a face or a cloned voice will appear;
  • how many clips the pack should contain, or permission to use the default of 3.

Reuse already-known language, window names, and a frozen voice_id. Ask only for a missing hard input. A count outside 2 to 8 is still doable: confirm that pack size and its live cost.

Do not invent a note question, subsidy amount, eligibility rule, or personalized grant line. File access is not consent.

Inspect every still. Record MIME type, width, height, aspect ratio, byte size, and whether it has an alpha channel. For a local file, upload only through the bundled client after inspection (scripts/mcp_client.py / beatra.assets.upload). Keep the returned artifact id. Never pass a local path to beatra.voices.clone, beatra.speech.synthesize, or beatra.videos.animate.

Plan the free slot list

Write a labeled note-to-talking list before any paid lookup, clone, speech, or video. Default three slots unless the desk names another count in 2 to 8. Each slot records the original policy-question wording, the speakable line from the supplied public draft, the still, intended length as a 2–15s clip, and whether it uses a catalog voice, an approved track, or a clone.

That list is the free visible result from whatever the desk already pasted. Planning is not approval.

Safe defaults:

  • one beatra.videos.animate call per still;
  • model: "auto" unless the desk chose a live SKU;
  • the still as the strict first frame;
  • source-derived aspect ratio;
  • audio-led duration inside 2–15s. Do not stitch.

Look up notes on their own card

A note link or search wording does not authorize a lookup. When the desk wants this connection to read public Xiaohongshu policy-question notes or comments, follow policy note lookup: search, inspect, then show a six-field lookup card and wait:

  1. Work — one public Xiaohongshu note search, note read, or comment page for the named policy FAQ (beatra.social.execute with the inspected operation_key).
  2. Credits — the live price beatra.social.tools.get just returned. Quote that live number, not a remembered one.
  3. Count — one prepaid lookup. A note search is its own billed execute. An image-note or video-note read is another. The comment page is another. The next page is another charge.
  4. Identity — one new opaque client_request_id per execute.
  5. If we stop here — the pasted-question plan remains usable.
  6. If the balance is insufficient — relay the official message and its top-up URL exactly. Translate the prose; keep the URL. Do not retry until the desk says they have topped up.

Do not show schema_hash to the desk. A confirmed lookup does not authorize clone, speech, or video. After a terminal lookup, report the payload, task ID, terminal status, and billing.net_charged_credits. A lookup has no model, dimensions, or duration to report.

Confirm clone, speech, then video

Clone, speech, and video are separate paid stages. Each stage gets its own six-field card and its own opaque client_request_id per slot.

If the desk wants a cloned voice, inspect an authorized sample, read the live voice_clone card, and wait on the clone card before beatra.voices.clone. A found file is not clone consent. Show the clone card and wait:

  1. Work — one authorized voice sample (beatra.voices.clone).
  2. Credits — the live voice_clone price just read. Do not reuse a remembered number.
  3. Count — one paid clone call for this sample.
  4. Identity — one new opaque client_request_id.
  5. If we stop here — the labeled slot list remains usable.
  6. If the balance is insufficient — relay the official message and its top-up URL exactly. Translate the prose; keep the URL. Do not retry until the desk says they have topped up.

Before speech, call beatra.models.list for text_to_speech:

{"capability": "text_to_speech"}

Use beatra.voices.list when a catalog voice still needs a choice. Show the speech card and wait:

  1. Work — one spoken public-policy line per named slot (beatra.speech.synthesize).
  2. Credits — the live text_to_speech price just read, times the slot count. Do not reuse a remembered number.
  3. Count — one paid speech call per slot.
  4. Identity — one new opaque client_request_id per slot.
  5. If we stop here — the labeled slot list remains usable.
  6. If the balance is insufficient — relay the official message and its top-up URL exactly. Translate the prose; keep the URL. Do not retry until the desk says they have topped up.

Submit each speech slot once through bundled scripts/mcp_client.py with input, not text. Use format: "mp3" and speed: 1.0. Use model: "auto" only when every live speech card supports the language. Poll beatra.tasks.get. Read actual audio MIME, duration, and size, and billing.net_charged_credits. A script preview is not the audio review.

Before video, call beatra.models.list for image_to_video:

{"capability": "image_to_video"}

Confirm a current card admits [image, driving_audio]. Compare every image fact and the real audio MIME, duration, and size with advertised limits. Live driving-audio clips are 2–15s. If speech is longer than the longest containable clip, split into sequential containable segments; each segment is new speech and new video, each with a new ID. Do not stitch the segments into one file. Approved narration does not authorize video. The 600-credit signup gift usually cannot start this video. Show the video card and wait:

  1. Work — one talking policy clip per named still (beatra.videos.animate).
  2. Credits — the live image_to_video price just read, times the segment count. Do not reuse a remembered number.
  3. Count — one paid video call per approved audio segment.
  4. Identity — one new opaque client_request_id per segment.
  5. If we stop here — the slot list and approved narration remain usable.
  6. If the balance is insufficient — relay the official message and its top-up URL exactly. Translate the prose; keep the URL. Do not retry until the desk says they have topped up.

Then submit beatra.videos.animate once per approved segment with driving_audio attached.

Review, deliver, and recover

Review that each clip stays on the supplied public-policy line and that the still is the first frame. Report only what the host can actually see and hear. Do not promise perfect lip sync. Never invent a stitch, concat, or editor tool. After each terminal paid task, deliver actual bytes plus MIME, duration, and size when present, and billing.net_charged_credits. Do not promise the prepaid estimate is the final charge.

After a returned task_id, poll that task. If the create response is lost, search with beatra.tasks.list and verify with beatra.tasks.get before replay. Reuse an ID only with byte-identical arguments. A changed still, line, voice, or duration is a new card and a new ID. Cancel only when the desk asks.

Execution

Invoke every remote Beatra operation only through this package's bundled scripts/mcp_client.py. Put the MCP tool name after call and send one JSON object on standard input.

python3 scripts/mcp_client.py call beatra.models.list
{"capability": "text_to_speech"}
python3 scripts/mcp_client.py call beatra.models.list
{"capability": "image_to_video"}
printf '%s' '{"query":"notes","platform":"xiaohongshu","capability_family":"content"}' | python3 scripts/mcp_client.py call beatra.social.tools.search
printf '%s' '{"input":"Open on the approved public-policy line. Keep the desk-supplied wording.","voice":"voice-ready-01","format":"mp3","speed":1.0,"model":"auto","client_request_id":"opaque-policy-speech-01"}' | python3 scripts/mcp_client.py call beatra.speech.synthesize
printf '%s' '{"image":{"type":"artifact","artifact_id":"art-policy-01"},"driving_audio":{"type":"artifact","artifact_id":"art-speech-01"},"prompt":"A restrained public-policy read with steady eye line and a stable camera.","duration":8,"client_request_id":"opaque-policy-video-01"}' | python3 scripts/mcp_client.py call beatra.videos.animate

Do not configure or call a host Beatra Connector, and do not use REST/OpenAPI as a fallback.

Account balance

When the user asks how many credits remain or whether a live estimate fits, call beatra.wallet.get. When they ask what was charged, call beatra.wallet.ledger. Both are read-only. Do not invent an account-balance or top-up tool. Do not make wallet.get a required step before every paid submit.

When a model card comes back carrying a top_up block, relay its tiers as the card lists them and in that order. Do not rank them, do not talk one down, and do not pick one for the user. Which tier suits them is their call, made on the wallet page with the whole list in front of them. Never quote a tier from memory.

References by task

Runtime and safe automatic updates

The bundled client silently checks for a newer release at most once every 24 hours per installation. When a newer version is available, it installs automatically without separate confirmation. It downloads only from the fixed official Beatra discovery and immutable CDN paths for this package, channel, and locale, verifies discovery data, archive, manifest, and every packaged file, and replaces only package-owned files.

Update checks, downloads, verification, replacement, rollback, and recovery fail open: the current installation remains usable and the original command continues. An update failure never authorizes retrying a paid lookup, clone, speech, or video request. The setting persists for this installation. See automatic updates and safety.

python3 scripts/mcp_client.py update --auto off
python3 scripts/mcp_client.py update --auto on
python3 scripts/mcp_client.py update --check