Platform Spec Export logo

Platform Spec Export

Community
xianyu110
platform-spec-export

TikTok Shop / 抖音 / 视频号 / 小红书 / 淘宝主图视频 / Amazon 规格导出:把一条母版视频一键转成各平台推荐画幅与编码(9:16、3:4、1:1、16:9,模糊填充或智能裁切),输出规格报告,并可叠加 UI 安全区预览。Use when the user asks for export settings, 导出规格, 尺寸, 分辨率, 画幅, 上传要求, re-encode for TikTok Shop / Douyin / WeChat Channels / Xiaohongshu / Taobao / Amazon, or safe zones.

Overview

Publisherxianyu110
Repositoryecommerce-video-skills
Skill nameplatform-spec-export
Stars
110
Forks
16
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xianyu110 on GitHub. Read the source before you install it.

Installation

Install the Platform Spec Export AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xianyu110/ecommerce-video-skills/tree/main/skills/platform-spec-export
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git /tmp/ecommerce-video-skills
mkdir -p .claude/skills
cp -r /tmp/ecommerce-video-skills/skills/platform-spec-export .claude/skills/platform-spec-export
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Platform Spec Export in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Platform Spec Export on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Platform Spec Export is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

平台规格导出 · Platform Spec Export

一条母版(建议 1080×1920、30fps)→ 多平台文件 + export_report.json。脚本:scripts/export_platform.py。

Part of ecommerce-video-skills

⚠️ 平台规则经常变。下表是稳妥的推荐编码,不是官方上限;时长、文件大小、是否允许外链/价格信息等,上传前请在各平台官方上传页/商家后台确认。

预设 Presets

--platform输出用途 / 需确认
douyin1080×1920 · 30fps抖音信息流/商品视频;上限以创作者中心为准
tiktok1080×1920 · 30fpsTikTok 信息流
tiktok-shop1080×1920 · 30fpsTikTok Shop 商品/联盟视频;以 Seller Center 为准
channels1080×1920 · 30fps视频号;信息流预览可能裁切,主体和标题放中部
xiaohongshu1080×1440(3:4)小红书信息流最占屏
taobao-main1080×1080(1:1)淘宝/天猫主图视频(3:4 用 taobao-3x4);以千牛后台为准
amazon1920×1080(16:9)Amazon 商品视频;以 Seller Central 为准
square1080×1080Shopee / Lazada / 通用信息流

编码统一:H.264 High、yuv420p、CRF 20 + 码率上限、AAC 160k 48 kHz、+faststart(边下边播)。

步骤 Steps

bash
python scripts/export_platform.py out/master.mp4 --platform douyin tiktok-shop channels xiaohongshu taobao-main amazon
python scripts/export_platform.py out/master.mp4 --platform all --outdir out/export
python scripts/export_platform.py out/master.mp4 --platform xiaohongshu --mode crop --focus-y 0.4   # 裁切而非模糊填充
python scripts/export_platform.py out/master.mp4 --safe-preview out/safe.png                    # 安全区叠加图
  1. 母版先按 9:16 做好(字幕已在安全区内)。
  2. 选择转换方式:blur(默认,保留完整画面,上下/左右模糊填充)或 crop(填满画面,会裁掉边缘 → 检查字幕和商品)。
  3. 读 export_report.json:分辨率、时长、大小、注意事项。
  4. 9:16 → 16:9 时字幕会变小,重要平台建议用 assemble.py --size 1920x1080 重新渲染而不是转码。

安全区 Safe zones

--safe-preview 在一帧上叠加三块经验区域(顶部状态栏 ~9%、右侧按钮栏 ~15% 宽、底部文案/商品卡 ~22%)。这些是经验值,最终以真机预览为准。

提示词模板 Prompt template

text
我有一条 {时长} 秒、{分辨率} 的带货母版视频,要发到 {平台列表}。
请给出:每个平台用哪个 --platform 预设、用 blur 还是 crop、需要去官方后台确认的事项(不要编造具体上限数字)。

检查清单 Checklist

  • 每个导出文件都能本地播放,音画同步
  • crop 模式下字幕/商品没被裁
  • 视频号/小红书封面另做 3:4(见 cover-title-ab)
  • 已在官方后台确认时长与大小限制

常见问题与修复 Failure fixes

问题修复
上传后糊平台二压;保证源 1080p、码率不要过低,避免大面积细噪点/渐变
上传失败:文件太大降低 maxrate(如 8M)或缩短时长
横版字幕太小用 assemble.py --size 1920x1080 重新渲染
黑边用默认 blur 模式或 crop

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Platform Spec Export AI skill do?

TikTok Shop / 抖音 / 视频号 / 小红书 / 淘宝主图视频 / Amazon 规格导出:把一条母版视频一键转成各平台推荐画幅与编码(9:16、3:4、1:1、16:9,模糊填充或智能裁切),输出规格报告,并可叠加 UI 安全区预览。Use when the user asks for export settings, 导出规格, 尺寸, 分辨率, 画幅, 上传要求, re-encode for TikTok Shop / Douyin / WeChat Channels / Xiaohongshu / Taobao / Amazon, or safe zones.

Why use Platform Spec Export on TypingMind?

Because you install it once and use it with any model. Platform Spec Export is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Platform Spec Export in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xianyu110/ecommerce-video-skills/tree/main/skills/platform-spec-export. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Platform Spec Export?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Platform Spec Export?

As many as you like. As long as a model supports skills, you can use Platform Spec Export with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Platform Spec Export AI skill free?

Yes. It is published on GitHub by xianyu110 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇