Text Generate logo

Text Generate

Organization
meitu
text-generate

使用 meitu-cli 调用独立 LLM 从零生成文本/文案/分镜脚本/视频提示词。当用户提到写文案、润色、改写、广告语、产品描述、社交媒体文案、文章、分镜脚本、storyboard、提示词优化时触发。上下文已有完整内容时禁用,应改用 write_file。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nametext-generate
Stars
36
Forks
3
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Text Generate 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/meitu/meitu-skills/tree/main/skills/text-generate
  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/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/text-generate .claude/skills/text-generate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Text Generate 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 Text Generate 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 Text Generate 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.

Text Generate(文本生成)

Overview

独立 LLM 深度创作工具,从零生成文案/脚本/分镜/视频提示词等纯文本内容。覆盖营销文案、产品描述、社交媒体文案、文章/博客、广告语、内容润色改写、多语言文案、图片/视频参考文案、视频分镜规划、视频提示词优化。⚠️ 上下文中已有完整内容时禁止调用,应改用 write_file 直接落盘;仅当上下文只有方向性需求、需要 LLM 独立深度思考时使用。不处理:视频/图片/音频/代码/表格生成。

API Mapping

场景后端 API底层模型
通用文本 / 分镜脚本生成text_generateqwen3.6-vl-plus(scone)/ gemini-3.1-pro-preview(pretzel_pro)

model 映射:

  • auto(默认)/ 不传 → 按路由规则决策
  • scone → qwen3.6-vl-plus(日常主力)
  • pretzel_pro → gemini-3.1-pro-preview(视频理解最强,长上下文)
  • 双模型互为兜底

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 跑命令(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6
  2. meitu auth verify --json
  3. 确认 registry 含 text-generate
  4. 解析 output_dir:openclaw.yaml → ./output/;else → ~/.openclaw/workspace/visual/output/text-generate/

Execute

触发信号 / 路由规则

场景判定维度路由
有视频参考video_list 非空锁定 gemini-3.1-pro-preview(pretzel_pro)
高难度场景调用方显式传 model=pretzel_progemini-3.1-pro-preview
日常场景auto / 未传 modelqwen3.6-vl-plus(scone,日常默认)

高难度判定标准(由调用方判断):视频输入、长上下文 >2000 字、复杂推理(多步逻辑/对比分析/因果论证)、专业领域(法律/医学/金融/学术)、多约束创作(≥3 创作约束同时)、跨语言深度适配、多镜头分镜脚本规划。

参数定义

参数类型必填默认值说明
summarySTRING是--文案/分镜需求描述。应含文案类型、目标受众、核心目标、风格;分镜场景需含主题、镜头数、场景描述。缺失 → 追问
languageSTRING是简体中文输出语言,跟用户输入语言一致
modelSTRING否按路由规则可选 scone / pretzel_pro
prompt_nameSTRING否auto提示词优化模板名称
image_listARRAY否--参考图片 URL 列表,无则不传
video_listARRAY否--参考视频 URL 列表,无则不传
output_fileSTRING否--输出文件 URL 地址

工具调用

日常文案:

bash
meitu text-generate \
  --skill_name skill_text-generate \
  --summary "{需求描述}" \
  --language "简体中文" \
  --json

高难度 / 视频分镜:

bash
meitu text-generate \
  --skill_name skill_text-generate \
  --summary "{分镜需求}" \
  --language "简体中文" \
  --model pretzel_pro \
  --video_list "{video_url}" \
  --json

英文文案:

bash
meitu text-generate \
  --skill_name skill_text-generate \
  --summary "Write a product description for ..." \
  --language "English" \
  --json

错误降级

场景处理方式
summary 缺失提示"请描述你想要的内容"
summary < 5 字符提示补充文案类型/目标受众/风格
language 未指定按用户输入语言自动判断,默认简体中文
image_list 全部无效静默过滤,按纯文本路径选模型
默认模型调用失败切换另一模型重试
双模型均失败返回错误信息
API 超时切换另一模型重试 → 均失败返回错误
内容合规拦截直接返回合规提示

冲突规则:

  • 用户同时要分镜 + 直接出视频 → 本工具仅生成分镜脚本,视频生成由上层工作流串联 text-to-video
  • 用户要文案 + 配图 → 文案走本工具,配图需上层编排 text-to-image
  • 用户指定模型名 → 尊重指定,跳过自动路由

Deliver

解析 --json:

  • ok: true → 从返回结构中提取文本内容
  • 若调用时显式指定 output_file,则按该路径写入
  • 否则将文本写入 {output_dir}/{YYYY-MM-DD}_{descriptive-name}.md

默认落盘:{output_dir}/{YYYY-MM-DD}_{descriptive-name}.md

Output

  • 格式: 纯文本 / Markdown(.md / .txt)
  • 命名: {YYYY-MM-DD}_{descriptive-name}.md
  • 位置: 项目 → ./output/;一次性 → ~/.openclaw/workspace/visual/output/text-generate/

基线 Task ID

见根目录 references/task-id-baseline.md 中 text-generate 条目。

Frequently asked questions

What does the Text Generate AI skill do?

使用 meitu-cli 调用独立 LLM 从零生成文本/文案/分镜脚本/视频提示词。当用户提到写文案、润色、改写、广告语、产品描述、社交媒体文案、文章、分镜脚本、storyboard、提示词优化时触发。上下文已有完整内容时禁用,应改用 write_file。

Why use Text Generate on TypingMind?

Because you install it once and use it with any model. Text Generate 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 Text Generate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/text-generate. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Text Generate?

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 Text Generate?

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

Is the Text Generate AI skill free?

Yes. It is published on GitHub by meitu 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 👇