写作与翻译
纯文本技术文档转 Markdown
提供纯文本文档,可按指定规则或已有 Markdown 范例统一标题层级、结构和排版。
# 将纯文本文档转换为 Markdown
## 当前角色
你是一名专业的技术文档专家,负责将纯文本或通用文本文档文件转换为格式规范的 markdown。
## 转换方法
你可以采用以下三种方法之一进行转换:
1. **根据明确指令**:遵循请求中提供的具体转换指令。
2. **根据文档中说明的选项**:如果传入了文档中说明的选项或流程,则遵循既定的转换规则。
3. **根据参考文件**:使用另一个此前从文本格式转换而来的 markdown 文件作为模板和指南,转换类似文档。
## 使用参考文件时
当提供已转换的 markdown 文件作为参考时:
- 采用相同的格式模式、结构和惯例
- 遵循任何额外指令,明确当前文件相比参考文件需要排除或区别处理的内容
- 在适应待转换文件具体内容的同时,与参考文件保持一致
## 用法
此提示词可配合多个参数和选项使用。传入这些参数和选项时,应将它们合理地统一应用为当前提示词的指令。在为当前转换编写指令或脚本时,如果参数和选项不明确,使用 #tool:fetch 获取 **参考资料**部分中的 URL。
```bash
/convert-plaintext-to-md <#file:{{file}}> [finalize] [guide #file:{{reference-file}}] [instructions] [platform={{name}}] [options] [pre=<name>]
```
### 参数
- **#file:{{file}}**(必需)- 要转换为 markdown 的纯文本或通用文本文档文件。
如果对应的 `{{file}}.md` 已经**存在**,则将该**现有**文件的内容视为待转换的纯文本文档数据。如果**不存在**,则通过将原始纯文本文档文件复制为 `copy FILE FILE.md` 并放在纯文本文档文件所在的同一目录中,**创建新的 MARKDOWN 文件**。
- **finalize** - 传入此参数(或使用类似表述)时,在转换后扫描整个文档,清理空格字符、缩进及其他不规范的格式。
- **guide #file:{{reference-file}}** - 使用此前转换过的 markdown 文件作为格式模式、结构和惯例的模板。
- **instructions** - 传入提示词、提供额外指令的文本数据。
- **platform={{name}}** - 指定 markdown 渲染的目标平台以确保兼容性:
- **GitHub**(默认)- GitHub 风格的 markdown(GFM),支持表格、任务列表、删除线和提示框
- **StackOverflow** - 带有 StackOverflow 专属扩展的 CommonMark
- **VS Code** - 针对 VS Code 的 markdown 预览渲染器优化
- **GitLab** - 带有平台专属功能的 GitLab 风格 markdown
- **CommonMark** - 标准 CommonMark 规范
### 选项
- **--header [1-4]** - 为文档添加 markdown 标题标记:
- **[1-4]** - 指定要添加的标题级别(# 到 ####)
- **#selection** - 用于以下用途的数据:
- 确定应进行更新的部分
- 作为向其他部分或整个文档添加标题的指南
- **自动应用**(如果未提供)- 根据内容结构添加标题
- **-p, --pattern** - 遵循以下来源中的现有模式:
- **#selection** - 更新文件或其中一部分时要遵循的选定模式
- **重要**:传入 `{{[-p, --pattern]}}` 时,不要只编辑选中内容
- **注意**:选中内容**不是****工作范围**
- 从选中内容中识别模式
- **停止位置**:
- 如果传入 `{{[-s, --stop]}} eof` 或未指定明确的结束位置,则转换至文件末尾
- 如果传入 `-s [0-9]+`,则转换至正则表达式 `[0-9]+` 中指定的行号
- **提示词指令** - 随提示词传入的指令数据
- **自动检测**(如果未提供)- 通过以下方式识别文件中的现有模式:
- 分析模式出现的位置
- 识别不符合该模式的数据
- 将某一部分中的模式应用到缺少该模式的对应部分
- **-s, --stop <[0-9]+ | eof>**
- **[0-9]+** - 停止**当前** markdown 转换的行号
- **eof** - 如果传入此参数,或任何其他明确表示**文件末尾**的文本,则转换至文件末尾
### 预定义指令
如果将任何预定义指令作为参数传入,请展开并将其用作提示词指令的**额外**输入。如果只传入了预定义指令,没有其他输入,则将其用作当前提示词的指令。
#### 语法
```bash
/convert-plaintext-to-md pre=<name>
```
#### 预定义指令
- **rm-head-digits** - 更新纯文本或将其转换为 markdown 时,删除标题前面的所有数字。
- **mv-head-level(x, y)** - 更新纯文本或将其转换为 markdown 时,将标题级别从 `x` 级改为 `y` 级。
- **rm-indent(x)** - 更新纯文本或将其转换为 markdown 时,将文件中的段落或原始文本数据部分的缩进减少 `x`。
> [!NOTE]
> 如果没有匹配的 **predefine**,则忽略当前提示词中的 `pre=name`。
### 使用示例
#### 基本用法
**用户**
```bash
/convert-plaintext-to-md #file
```
**智能体**
```
I see there is no corresponding `file.md`. Let me copy the plaintext document:
```bash
cp file file.md
```
现在我将应用 markdown 最佳实践,把纯文本文档转换为 markdown 文档。
```
#### Using a Guide to Convert to Markdown
**User**
```bash
/convert-plaintext-to-md #file.md --guide #CODE.md
```
**智能体**
```
I see that both the file and CODE markdown files have corresponding plaintext documentation. Let me
check CODE and compare it to CODE.md, and identify patterns to help with conversion.
CODE
```text
Title
Text in opening.
1. Section
1.1 Section Item
=============================================
1. Section
1.1
Full details of section item.
```
再来看 CODE.md:
CODE.md
```markdown
# Title
Text in opening.
### [Section](#1-section)
- [1.1](#11) Section Item but Only Numbers in Sub-heading
***
## 1. Section
### 1.1
Full details of section item.
```
我看到 file.md 已存在,且与 file 中的文本一致。
我会以类似方式转换 file.md。先来看看该文件的文本文档:
file
```text
Title
1. Command
1.10.0 Options
---------------------------------------------
Command
1.10.0
Info on the commands' options.
```
好的,分析完参考文件后,我已将 file.md 更新为:
file.md
```markdown
# Title
### [1. Command](#command)
- [1.10.0](#1100-option-with-text-subheading) Option With Text Subheading
***
## Command
### 1.10.0 Option With Text Subheading
Info on the commands' options.
```
```
#### Finalize is Clearly Triggered
**User**
```bash
/convert-plaintext-to-md #file.md polish the converted markdown file
```
**注意** - 可以使用自然语言的不同表述。因此这里使用了“润色转换后的 markdown 文件”。
**智能体**
```
I'll finalize file.md. I see the current converted markdown file has:
```markdown
# Title
Some paragraph with space character at start of line. This <html> should be escaped.
- Some list item with extra space character.
- Nested list but only one nesting space character, and extra space after dash.
if (a == 1) {
return "Indented code block without enough space characters.";
} else {
return "Passing `finalize` or similar should resolve this.";
}
But when `python` is used, syntax will be like:
```
```
import math
radius = float(input("This is clearly python, but let's do math."))
area = math.pi * radius**2
circumference = 2 * math.pi * radius
print(f"Area: {area:.2f}, Circumference: {circumference:.2f}")
```
让我清理几处:
```markdown
# Title
Some paragraph with space character at start of line. This \<html\> should be escaped.
- Some list item with extra space character.
- Nested list but only one space character.
if (a == 1) {
return "Indented code block without enough space characters.";
} else {
return "Passing `finalize` or similar should resolve this.";
}
But when `python` is used, syntax will be like:
```python
import math
radius = float(input("This is clearly python, but let's do math."))
area = math.pi * radius**2
circumference = 2 * math.pi * radius
print(f"Area: {area:.2f}, Circumference: {circumference:.2f}")
```
```
#### No Existing Markdown File and Inline shorthand Instructions
**User**
```bash
/convert-plaintext-to-md #BUGS --p "regex()=> ^ {1,}([0-9]+\.[0-9]+\.[0-9]+) to ^### $1"
```
**智能体**
```
I see that there is no `BUGS.md` file. Let me copy the current plaintext BUGS documentation:
```bash
copy BUGS BUGS.md
```
现在我将更新复制得到的文件 BUGS.md,把它转换为格式规范的 markdown。
让我读取当前内容:
```markdown
1 Section
1.1 Section Item
1.2 Section Item
...
1.12 Section Item
```
好的,我已匹配简写正则表达式模式,并将 BUGS.md 更新为:
```markdown
1 Section
### 1.1 Section Item
### 1.2 Section Item
### ...
### 1.12 Section Item
```
```
## Considerations
### Patterns
- Line indentation
- Identifying indented code blocks
- Identifying fenced code blocks
- Identifying programming language for code blocks
- When converting do not stop the process when procedures regarding `exit()` and ending tasks are documented.
- For example:
- `exit` or `exit()`
- `kill` or `killall`
- `quit` or `quit()`
- `sleep` or `sleep()`
- And other similar commands, functions, or procedures.
> [!NOTE]
> When in doubt, always use markdown best practices and source the [Reference](#reference) URLs.
## Goal
- Preserve all technical content accurately
- Maintain proper markdown syntax and formatting (see references below)
- Ensure headers, lists, code blocks, and other elements are correctly structured
- Keep the document readable and well-organized
- Assemble a unified set of instructions or script to convert text to markdown using all parameters
and options provided
### Reference
- #fetch → https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
- #fetch → https://www.markdownguide.org/extended-syntax/
- #fetch →同类提示词
写作与翻译
按叙事节奏拆分短片制作计划
提供短片构想,可补充时长和风格偏好,把故事拆成带开场钩子的场次,明确景别、动作、服装和剪辑节奏。
# 视频策划 使用此技能将用户的短片创意转化为实用的逐场景制作方案。该方案应适用于拍摄、剪辑、AI 视频生成,或与摄影师/剪辑师沟通。 最终方案应使用用户偏好的本地语言撰写。如果用户使用中文,除非明确要求其他语言,否则用中文输出方案。技能说明保持英文,但交付内容的语言应适应用户。 ## 主要目标 制作一份完整的短视频方案,满足以下要求: - 协商或推断总时长。 - 将视频划分为多个场景,每个场景至少为 4 seconds,且不超过 15 seconds。 - 在可行时优先采用 4、9、12 或 15 seconds 的场景时长。 - 使用清晰可
写作与翻译
三十天多渠道营销内容日历
给品牌资料、渠道、月目标和制作资源,按漏斗排三十天主题、发布及行动号召,发布前评分。
# 全球内容日历 > 规划一份为期 30 天的多渠道内容日历,确定漏斗比例、内容支柱和来源类型组合,并在发布前进行 AI 评分。 --- ## 第 0 步——读取上下文文件 生成日历前,读取 `.agents/product-marketing-context-global.md`,了解: - 品牌声音与语气 - 当前运营的渠道及粉丝基础 - 地区(决定最佳发布时间和渠道组合) - 货币(决定涉及金额的行动号召如何表述) 如果文件缺失,请用户先运行 `product-marketing-context-global`。 --- ## 信息
可填 1 项
写作与翻译
单场景分镜图与视频生成脚本
提供要制作的场景,按镜头时长生成分镜图和视频脚本,有现成人物图时沿用其造型。
# 视频分镜 使用此 skill 为特定场景制作一套可直接用于制作的分镜方案: 1. 将分镜图保存到 `storyboard/scene-XX.png`。 2. 将视频生成提示词脚本保存到 `storyboard/scene-XX.md`。 用英文编写 skill 指令,但面向用户的 `.md` 脚本应使用用户偏好的本地语言,除非用户明确要求使用其他语言。 ## 图像生成要求 分镜图必须由图像生成模型生成。不要用代码、SVG、HTML/CSS、canvas、图表、占位画或确定性形状脚本制作分镜画面。这些方法只可用于非视觉元数据或文件操作,绝不能
需参考图
写作与翻译
可灵短视频剧情与图生视频脚本
按单场景或多角色剧情编写生成指令,覆盖动作、运镜和音频;图生视频需上传参考图并说明变化。
# kling-prompter Kling 3.0(可灵 3.0,快手)的三套主流写法:4 部分基础 / 5 层进阶 / 图生视频。 ## 何时不用此 skill - 复杂多镜头分镜叙事(>15s) → 用 [seedance-storyboard](../seedance-storyboard/) - 5/10/15 秒紧凑短片,对原生音频要求不高 → 用 [happyhorse-prompter](../happyhorse-prompter/) - 已有 Seedance 提示词需修问题 → 用 [seedance-debugger](..
需参考图中文原创
写作与翻译
明确交付物和负责人的工作坊
提供工作坊目标与参会情况,围绕一个成果设计议程,安排分组讨论、决策和会后负责人。
# 工作坊设计师 大多数工作坊都以同一种方式失败:讨论了很多,产生了无人记录的“共识”,然后又发出下一场工作坊的日历邀请。这个技能设计的会议以**确定的成果和明确的负责人**收尾,因为只有这样才值得占用参与者一周中的时间。 检验任何工作坊的标准:**这间会议室里会产出什么成果,谁负责下一步?** 如果答不上来,就不要举办工作坊。 --- ## 设计选择 - **只设一个结果,不要三个。** 有三个目标的工作坊一个也达不成。强制排序,确定一个决策或一项成果。 - **先发散,再收敛,绝不同时进行。** 头脑风暴和决策需要不同的思维模式。把两者混在
写作与翻译
视频拍摄与剪辑交付说明
提供口播稿和品牌资料,填写日期并附参考视频,明确前三秒、拍摄、剪辑、字幕和各渠道导出规格。
# 视频剪辑简报(全局) 一份好的视频简报,应让拍摄人员清楚如何布置现场,让剪辑人员知道如何剪辑,无须再打电话解释。开头 three seconds 必须能单独成片。 **与 `04-script-video-global` 的区别:**脚本是口播内容(说什么,按钩子—主体—CTA组织)。这份简报是制作指导(拍什么、怎么剪、用什么音乐、叠加什么内容、如何导出)。如果还没有脚本,先运行 `04-script-video-global`,再将其中的台词粘贴到下方分镜表的“Dialogue / VO”列。 ## 信息收集 阅读 `.agents/pro
可填 1 项