yuanflow-cli 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +1 -1
- package/skills/yuanflow-skill/HTML/346/212/245/345/221/212/347/224/237/346/210/220/SKILL.md +10 -0
- package/skills/yuanflow-skill/IP/350/277/220/350/220/245/SKILL.md +10 -0
- package/skills/yuanflow-skill/README.md +7 -0
- package/skills/yuanflow-skill/SKILL.md +38 -14
- package/skills/yuanflow-skill/YuanFlow/346/226/207/344/273/266/344/270/255/350/275/254/345/267/245/345/205/267/SKILL.md +12 -5
- package/skills/yuanflow-skill/yuanflow-cli/SKILL.md +14 -8
- package/skills/yuanflow-skill//344/270/252/344/272/272/345/210/233/344/275/234/345/272/223/SKILL.md +11 -1
- package/skills/yuanflow-skill//344/275/234/345/223/201/344/270/213/350/275/275/347/273/274/345/220/210/345/267/245/345/205/267/SKILL.md +10 -0
- package/skills/yuanflow-skill//344/275/234/345/223/201/350/257/204/350/256/272/351/207/207/351/233/206/SKILL.md +10 -0
- package/skills/yuanflow-skill//344/275/234/345/223/201/350/257/246/346/203/205/350/216/267/345/217/226/345/267/245/345/205/267/SKILL.md +10 -0
- package/skills/yuanflow-skill//345/205/254/344/274/227/345/217/267/347/224/237/346/210/220/344/270/216/345/217/221/345/270/203/SKILL.md +10 -0
- package/skills/yuanflow-skill//345/210/233/344/275/234/346/200/273/347/233/221/SKILL.md +10 -0
- package/skills/yuanflow-skill//345/260/217/347/272/242/344/271/246/350/277/220/350/220/245/SKILL.md +10 -0
- package/skills/yuanflow-skill//345/270/220/345/217/267/345/256/232/344/275/215/SKILL.md +10 -0
- package/skills/yuanflow-skill//345/270/220/345/217/267/347/233/221/346/216/247/SKILL.md +10 -0
- package/skills/yuanflow-skill//346/226/207/346/241/210/345/210/233/344/275/234/SKILL.md +10 -0
- package/skills/yuanflow-skill//346/234/254/345/234/260/351/237/263/350/247/206/351/242/221/350/275/254/346/226/207/345/255/227/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/203/255/351/227/250/345/206/205/345/256/271/346/225/264/347/220/206/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/224/237/345/233/276/346/212/200/350/203/275/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/233/264/346/222/255/346/212/225/346/265/201/347/255/226/347/225/245/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/233/264/346/222/255/350/257/235/346/234/257/347/224/237/346/210/220/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/273/274/345/220/210/346/220/234/347/264/242/345/267/245/345/205/267/SKILL.md +10 -0
- package/skills/yuanflow-skill//347/273/274/345/220/210/347/224/250/346/210/267/346/220/234/347/264/242/345/267/245/345/205/267/SKILL.md +10 -0
- package/skills/yuanflow-skill//350/207/252/345/252/222/344/275/223/346/265/217/350/247/210/345/231/250/350/207/252/345/212/250/345/214/226/SKILL.md +10 -0
- package/skills/yuanflow-skill//350/207/252/345/252/222/344/275/223/347/237/245/350/257/206/345/272/223/SKILL.md +11 -5
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/SKILL.md +77 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/agents/openai.yaml +8 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/assets/templates/editorial-publishing.html +65 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/assets/templates/lifestyle-collage.html +49 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/assets/templates/product-brand.html +50 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/assets/templates/social-campaign.html +49 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/assets/templates/technical-diagram.html +45 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/overview.html +272 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/references/commercial-system.md +56 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/references/layout-playbook.md +98 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/references/quality-check.md +58 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/references/style-atlas.md +728 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/references/use-case-recipes.md +116 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/345/215/241/347/211/207/347/224/237/346/210/220/scripts/check_visual_card.py +92 -0
- package/skills/yuanflow-skill//350/247/206/350/247/211/347/220/206/350/247/243/SKILL.md +21 -16
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/212/225/346/265/201/347/255/226/347/225/245/SKILL.md +10 -0
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/213/206/350/247/243/SKILL.md +24 -57
- package/skills/yuanflow-skill//350/247/206/351/242/221/346/231/272/350/203/275/345/211/252/350/276/221/SKILL.md +10 -0
- package/skills/yuanflow-skill//351/200/211/351/242/230/347/255/226/345/210/222/SKILL.md +10 -0
- package/skills/yuanflow-skill//351/237/263/350/247/206/351/242/221/345/234/250/347/272/277/350/275/254/346/226/207/345/255/227/SKILL.md +10 -0
- package/skills/yuanflow-skill//351/243/236/344/271/246/345/256/230/346/226/271/346/212/200/350/203/275/SKILL.md +10 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Use Case Recipes
|
|
2
|
+
|
|
3
|
+
## 1. Xiaohongshu Cover
|
|
4
|
+
|
|
5
|
+
Fixed:
|
|
6
|
+
|
|
7
|
+
- Ratio: `1080x1440`.
|
|
8
|
+
- Must read at 360px wide.
|
|
9
|
+
- Title should be short, usually 8-18 Chinese characters.
|
|
10
|
+
- One strong visual signal: face/object/screenshot/title block/large number.
|
|
11
|
+
|
|
12
|
+
Recommended style families:
|
|
13
|
+
|
|
14
|
+
- Pop Magazine for trend and consumer hooks.
|
|
15
|
+
- Chinese Editorial for travel, culture, food, reading, personal essays.
|
|
16
|
+
- Product Cutout for recommendations and product posts.
|
|
17
|
+
- Neo-Brutalist for warnings and opinion hooks.
|
|
18
|
+
|
|
19
|
+
Modules:
|
|
20
|
+
|
|
21
|
+
- `hero-title`, `image-led`, `object-callout`, `split-compare`, `data-chart`.
|
|
22
|
+
|
|
23
|
+
## 2. Xiaohongshu Carousel
|
|
24
|
+
|
|
25
|
+
Fixed:
|
|
26
|
+
|
|
27
|
+
- 5-9 pages unless the source is very short.
|
|
28
|
+
- Page 1 cover, page 2 context, middle pages evidence/method/detail, final page summary.
|
|
29
|
+
- Use repeated metadata, but vary the layout module.
|
|
30
|
+
|
|
31
|
+
Recommended module sequence:
|
|
32
|
+
|
|
33
|
+
`hero-title` -> `evidence-feature` -> `ledger-list` -> `diagram-flow` -> `matrix-grid` -> `split-compare` -> `quote-page`.
|
|
34
|
+
|
|
35
|
+
## 3. Article Illustration
|
|
36
|
+
|
|
37
|
+
Fixed:
|
|
38
|
+
|
|
39
|
+
- Ratio: `1600x900`, `1440x1080`, or `1500x1000`.
|
|
40
|
+
- One concept only; title optional.
|
|
41
|
+
- Avoid social-media hook language unless the article needs it.
|
|
42
|
+
|
|
43
|
+
Recommended style families:
|
|
44
|
+
|
|
45
|
+
- Calm Diagram for frameworks.
|
|
46
|
+
- Blueprint Technical for architecture and systems.
|
|
47
|
+
- Museum Label for objects and design analysis.
|
|
48
|
+
- Editorial Paper for essays.
|
|
49
|
+
- Data Newspaper for research/report summaries.
|
|
50
|
+
|
|
51
|
+
## 4. WeChat Cover Pair
|
|
52
|
+
|
|
53
|
+
Fixed:
|
|
54
|
+
|
|
55
|
+
- Main cover: `2100x900`.
|
|
56
|
+
- Square cover: `1080x1080`.
|
|
57
|
+
- Compose separately. Do not crop the wide cover into square.
|
|
58
|
+
- Square cover should usually use a shorter title and fewer elements.
|
|
59
|
+
|
|
60
|
+
Recommended style families:
|
|
61
|
+
|
|
62
|
+
- Editorial Paper, Luxury Minimal, Chinese Editorial, Event Key Visual.
|
|
63
|
+
|
|
64
|
+
## 5. Design Graphic / Design Draft
|
|
65
|
+
|
|
66
|
+
Fixed:
|
|
67
|
+
|
|
68
|
+
- Decide function first: explain, persuade, summarize, decorate, or compare.
|
|
69
|
+
- Use annotations and labels only when they clarify the design.
|
|
70
|
+
- Keep source/editability: HTML and CSS must stay understandable.
|
|
71
|
+
|
|
72
|
+
Recommended style families:
|
|
73
|
+
|
|
74
|
+
- Swiss Data for structured product diagrams.
|
|
75
|
+
- Blueprint Technical for architecture.
|
|
76
|
+
- Product Cutout for feature graphics.
|
|
77
|
+
- Calm Diagram for frameworks.
|
|
78
|
+
- Maximal Poster for campaign direction.
|
|
79
|
+
|
|
80
|
+
## 6. Product Recommendation / Product Feature Image
|
|
81
|
+
|
|
82
|
+
Fixed:
|
|
83
|
+
|
|
84
|
+
- Product/screenshot must be large enough to inspect.
|
|
85
|
+
- Benefits must be true to source.
|
|
86
|
+
- Use 2-4 callouts, not a paragraph cloud.
|
|
87
|
+
|
|
88
|
+
Recommended style families:
|
|
89
|
+
|
|
90
|
+
- Product Cutout, Museum Label, Luxury Minimal, Swiss Data.
|
|
91
|
+
|
|
92
|
+
## 7. Event / Course / Launch Poster
|
|
93
|
+
|
|
94
|
+
Fixed:
|
|
95
|
+
|
|
96
|
+
- Title, date/time, host/location, and CTA have separate hierarchy.
|
|
97
|
+
- Key visual should dominate; logistics should not become the headline.
|
|
98
|
+
|
|
99
|
+
Recommended style families:
|
|
100
|
+
|
|
101
|
+
- Event Key Visual, Maximal Poster, Neo-Brutalist, Luxury Minimal.
|
|
102
|
+
|
|
103
|
+
## 8. Style Exploration
|
|
104
|
+
|
|
105
|
+
Fixed:
|
|
106
|
+
|
|
107
|
+
- Same source topic across variants.
|
|
108
|
+
- Keep the ratio and core copy stable enough for comparison.
|
|
109
|
+
- Generate 3-6 variants, each changing at least style family + layout + image treatment.
|
|
110
|
+
|
|
111
|
+
Good variant sets:
|
|
112
|
+
|
|
113
|
+
- Professional: Swiss Data / Editorial Paper / Luxury Minimal.
|
|
114
|
+
- Social growth: Pop Magazine / Product Cutout / Neo-Brutalist.
|
|
115
|
+
- Article and report: Data Newspaper / Calm Diagram / Museum Label.
|
|
116
|
+
- Lifestyle: Chinese Editorial / Soft Studio / Film Contact Sheet.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Lightweight static checks for YuanFlow visual-card HTML."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import re
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
KNOWN_STYLES = {
|
|
11
|
+
"magazine-paper",
|
|
12
|
+
"editorial-paper",
|
|
13
|
+
"chinese-literary",
|
|
14
|
+
"swiss-data",
|
|
15
|
+
"pop-magazine",
|
|
16
|
+
"neo-brutalist",
|
|
17
|
+
"chinese-editorial",
|
|
18
|
+
"luxury-minimal",
|
|
19
|
+
"blueprint-technical",
|
|
20
|
+
"soft-studio",
|
|
21
|
+
"collage-desk",
|
|
22
|
+
"cyber-interface",
|
|
23
|
+
"botanical-organic",
|
|
24
|
+
"playful-toy",
|
|
25
|
+
"film-contact-sheet",
|
|
26
|
+
"museum-label",
|
|
27
|
+
"maximal-poster",
|
|
28
|
+
"calm-diagram",
|
|
29
|
+
"data-newspaper",
|
|
30
|
+
"handwritten-lab",
|
|
31
|
+
"event-key-visual",
|
|
32
|
+
"product-cutout",
|
|
33
|
+
"brand-system",
|
|
34
|
+
"app-feature",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
KNOWN_RATIOS = {"xhs", "square", "wide", "article", "poster"}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def main() -> int:
|
|
41
|
+
if len(sys.argv) != 2:
|
|
42
|
+
print("Usage: python check_visual_card.py <index.html>")
|
|
43
|
+
return 2
|
|
44
|
+
|
|
45
|
+
html_path = Path(sys.argv[1])
|
|
46
|
+
if not html_path.exists():
|
|
47
|
+
print(f"FAIL: file not found: {html_path}")
|
|
48
|
+
return 1
|
|
49
|
+
|
|
50
|
+
text = html_path.read_text(encoding="utf-8")
|
|
51
|
+
failures: list[str] = []
|
|
52
|
+
warnings: list[str] = []
|
|
53
|
+
|
|
54
|
+
if '<meta charset="utf-8">' not in text.lower():
|
|
55
|
+
failures.append("missing utf-8 charset meta")
|
|
56
|
+
if re.search(r"\b(TODO|Lorem ipsum|标题占位|替换标题)\b", text, re.I):
|
|
57
|
+
failures.append("placeholder text remains")
|
|
58
|
+
if ".poster" not in text:
|
|
59
|
+
failures.append("missing .poster class")
|
|
60
|
+
poster_count = len(re.findall(r'class="[^"]*\bposter\b[^"]*"', text))
|
|
61
|
+
style_values = re.findall(r'data-style="([^"]+)"', text)
|
|
62
|
+
ratio_values = re.findall(r'data-ratio="([^"]+)"', text)
|
|
63
|
+
if poster_count and len(style_values) < poster_count:
|
|
64
|
+
failures.append("some .poster nodes are missing data-style")
|
|
65
|
+
if poster_count and len(ratio_values) < poster_count:
|
|
66
|
+
failures.append("some .poster nodes are missing data-ratio")
|
|
67
|
+
unknown_styles = sorted(set(style_values) - KNOWN_STYLES)
|
|
68
|
+
unknown_ratios = sorted(set(ratio_values) - KNOWN_RATIOS)
|
|
69
|
+
if unknown_styles:
|
|
70
|
+
warnings.append("unknown data-style values: " + ", ".join(unknown_styles))
|
|
71
|
+
if unknown_ratios:
|
|
72
|
+
warnings.append("unknown data-ratio values: " + ", ".join(unknown_ratios))
|
|
73
|
+
if not re.search(r"width:\s*\d+px", text) or not re.search(r"height:\s*\d+px", text):
|
|
74
|
+
warnings.append("no fixed pixel poster width/height detected")
|
|
75
|
+
if "data-style=" not in text:
|
|
76
|
+
warnings.append("no data-style style family marker detected")
|
|
77
|
+
if "data-ratio=" not in text:
|
|
78
|
+
warnings.append("no data-ratio marker detected")
|
|
79
|
+
|
|
80
|
+
for item in failures:
|
|
81
|
+
print(f"FAIL: {item}")
|
|
82
|
+
for item in warnings:
|
|
83
|
+
print(f"WARN: {item}")
|
|
84
|
+
|
|
85
|
+
if failures:
|
|
86
|
+
return 1
|
|
87
|
+
print("PASS: visual-card HTML basic checks passed")
|
|
88
|
+
return 0
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
if __name__ == "__main__":
|
|
92
|
+
raise SystemExit(main())
|
|
@@ -10,13 +10,14 @@ emoji: 👁️
|
|
|
10
10
|
|
|
11
11
|
不要把它写成自媒体拆解、爆款分析或创作策略技能;这些需求交给 `视频拆解`。
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## 外部 CLI 主流程
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
2. 外部 Agent 且本机有 CLI 时,直接执行 `yuanflow-cli`。
|
|
17
|
-
3. 外部 Agent 没有 CLI 时,再提示用户安装 `npm install -g yuanflow-cli`。
|
|
15
|
+
外部 Agent 或用户直接使用时,优先用 `yuanflow-cli ai qwen3-vl-plus`。
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
1. 先确认本机可执行 `yuanflow-cli --help`。
|
|
18
|
+
2. 外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
19
|
+
3. 根据输入选择 `--image-url`、`--video-url`、`--image-file` 或 `--video-file`。
|
|
20
|
+
4. 本地图片/视频会先经过 YuanFlow 文件中转,再提交给 YuanFlow API。
|
|
20
21
|
|
|
21
22
|
本地图片/视频上传依赖 CLI 的 YuanFlow 文件中转能力。外部 Agent 只需要配置 YuanFlow API token;不要要求用户提供第三方平台 Key,也不要在回复里展示完整 token。
|
|
22
23
|
|
|
@@ -33,7 +34,7 @@ emoji: 👁️
|
|
|
33
34
|
|
|
34
35
|
- 视频 URL 需要能被 YuanFlow API 访问,响应头建议包含 `Content-Length` 和 `Content-Type`。
|
|
35
36
|
- 视觉模型侧建议单个视频最大 2GB,时长 2 秒到 1 小时。
|
|
36
|
-
- 本地文件会先通过 YuanFlow
|
|
37
|
+
- 本地文件会先通过 YuanFlow 文件中转上传,CLI 取返回的临时访问链接后再提交给 YuanFlow API。
|
|
37
38
|
- 本地文件过大时,让用户压缩、裁剪、换文件,或改用可公网访问的视频 URL。
|
|
38
39
|
- 不要上传密钥、cookie、身份证、合同、私密聊天记录等敏感文件,除非用户明确确认且任务确实需要。
|
|
39
40
|
|
|
@@ -46,6 +47,20 @@ emoji: 👁️
|
|
|
46
47
|
5. 调用 qwen3-vl-plus。
|
|
47
48
|
6. 整理输出:先给结论,再给画面证据,再给不确定项。
|
|
48
49
|
|
|
50
|
+
## 外部 CLI 示例
|
|
51
|
+
|
|
52
|
+
```powershell
|
|
53
|
+
yuanflow-cli ai qwen3-vl-plus --prompt "描述这张图的主体、文字和环境" --image-file "D:\素材\cover.png" --format agent-json
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```powershell
|
|
57
|
+
yuanflow-cli ai qwen3-vl-plus --prompt "总结视频画面变化和关键细节" --video-file "D:\素材\demo.mp4" --format agent-json
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## YuanFlow-main 内置环境
|
|
61
|
+
|
|
62
|
+
在 YuanFlow-main 内置环境,优先调用受控工具 `yuanflow_cli_call`。token、受管包路径和输出目录由 YuanFlow-main 管理,不要要求用户手动提供 YuanFlow token。
|
|
63
|
+
|
|
49
64
|
## YuanFlow-main 内置工具调用示例
|
|
50
65
|
|
|
51
66
|
图片 URL:
|
|
@@ -120,16 +135,6 @@ emoji: 👁️
|
|
|
120
135
|
}
|
|
121
136
|
```
|
|
122
137
|
|
|
123
|
-
## 外部 CLI 示例
|
|
124
|
-
|
|
125
|
-
```powershell
|
|
126
|
-
yuanflow-cli ai qwen3-vl-plus --prompt "描述这张图的主体、文字和环境" --image-file "D:\素材\cover.png" --format agent-json
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
```powershell
|
|
130
|
-
yuanflow-cli ai qwen3-vl-plus --prompt "总结视频画面变化和关键细节" --video-file "D:\素材\demo.mp4" --format agent-json
|
|
131
|
-
```
|
|
132
|
-
|
|
133
138
|
## 输出格式
|
|
134
139
|
|
|
135
140
|
默认按这个结构输出:
|
|
@@ -6,6 +6,16 @@ emoji: 📈
|
|
|
6
6
|
|
|
7
7
|
# 视频投流策略
|
|
8
8
|
|
|
9
|
+
## 外部 CLI 主流程
|
|
10
|
+
|
|
11
|
+
外部 Agent 或用户直接使用本 Skill 时,先按当前 Skill 说明完成任务;需要查询知识库、生成报告、文件中转或调用平台数据时,使用本地 `yuanflow-cli` 命令。
|
|
12
|
+
|
|
13
|
+
1. 如果本地可执行 `yuanflow-cli --help`,直接使用本地 CLI。
|
|
14
|
+
2. 如果本地没有 `yuanflow-cli`,再提示用户安装 `npm install -g yuanflow-cli`。
|
|
15
|
+
3. 外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
16
|
+
|
|
17
|
+
不要在回复、日志或文件中暴露 token。用户主流程统一称为 YuanFlow API 和 YuanFlow 文件中转,不要求用户配置第三方平台 Key。
|
|
18
|
+
|
|
9
19
|
本 Skill 用于制定视频内容投流策略。执行时必须先确认投流对象账号,再采集该账号最近视频数据,之后再查历史资产和自媒体知识库,最后结合账号视频表现输出可执行投放方案。
|
|
10
20
|
|
|
11
21
|
## 固定流程
|
|
@@ -16,13 +16,14 @@ emoji: 🎬
|
|
|
16
16
|
4. 把知识库拆解规则写进 prompt,让模型按规则拆解视频。
|
|
17
17
|
5. 整理成适合自媒体创作复用的详细拆解报告。
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## 外部 CLI 主流程
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
2. 外部 Agent 且本机有 CLI 时,直接执行 `yuanflow-cli`。
|
|
23
|
-
3. 外部 Agent 没有 CLI 时,再提示用户安装 `npm install -g yuanflow-cli`。
|
|
21
|
+
外部 Agent 或用户直接使用时,先用 `yuanflow-cli knowledge ...` 查询拆解规则,再用 `yuanflow-cli ai qwen3-vl-plus` 处理视频。
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
1. 先确认本机可执行 `yuanflow-cli --help`。
|
|
24
|
+
2. 外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
25
|
+
3. 本地视频会先经过 YuanFlow 文件中转,再提交给 YuanFlow API。
|
|
26
|
+
4. 如果是平台视频 URL,先解析并在用户授权后保存到本地文件。
|
|
26
27
|
|
|
27
28
|
本地视频上传依赖 qwen3-vl-plus 的 YuanFlow 文件中转能力。外部 Agent 只需要配置 YuanFlow API token;不要要求用户提供第三方平台 Key。
|
|
28
29
|
|
|
@@ -54,28 +55,14 @@ emoji: 🎬
|
|
|
54
55
|
|
|
55
56
|
必须先调用知识库,不要直接上传视频拆解。
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
外部 CLI 示例:
|
|
58
59
|
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
"args": [
|
|
62
|
-
"knowledge",
|
|
63
|
-
"entry",
|
|
64
|
-
"--output-format",
|
|
65
|
-
"video_breakdown",
|
|
66
|
-
"--domain",
|
|
67
|
-
"自媒体运营",
|
|
68
|
-
"--content-goal",
|
|
69
|
-
"对标视频拆解,提炼内容结构、脚本节奏、镜头设计和可复用创作方法",
|
|
70
|
-
"--target-audience",
|
|
71
|
-
"自媒体创作者",
|
|
72
|
-
"--format",
|
|
73
|
-
"agent-json"
|
|
74
|
-
],
|
|
75
|
-
"timeout": 180
|
|
76
|
-
}
|
|
60
|
+
```powershell
|
|
61
|
+
yuanflow-cli knowledge entry --output-format video_breakdown --domain 自媒体运营 --content-goal "对标视频拆解,提炼内容结构、脚本节奏、镜头设计和可复用创作方法" --target-audience 自媒体创作者 --format agent-json
|
|
77
62
|
```
|
|
78
63
|
|
|
64
|
+
YuanFlow-main 内置环境调用见后文专属小节。
|
|
65
|
+
|
|
79
66
|
如果返回 `next_actions`,继续按推荐调用 `packs`、`rules` 或 `rule-detail`。优先查询与以下方向相关的规则:
|
|
80
67
|
|
|
81
68
|
- 对标拆解
|
|
@@ -87,12 +74,6 @@ YuanFlow-main 内置工具示例:
|
|
|
87
74
|
- 账号定位
|
|
88
75
|
- 带货/转化结构
|
|
89
76
|
|
|
90
|
-
外部 CLI 示例:
|
|
91
|
-
|
|
92
|
-
```powershell
|
|
93
|
-
yuanflow-cli knowledge entry --output-format video_breakdown --domain 自媒体运营 --content-goal "对标视频拆解,提炼内容结构、脚本节奏、镜头设计和可复用创作方法" --target-audience 自媒体创作者 --format agent-json
|
|
94
|
-
```
|
|
95
|
-
|
|
96
77
|
### 3. 视频 URL 先解析并保存本地
|
|
97
78
|
|
|
98
79
|
如果用户提交的是平台视频 URL,先用 `作品下载综合工具` 或 `yuanflow-cli works download` 解析可播放/下载地址候选。
|
|
@@ -104,32 +85,14 @@ yuanflow-cli knowledge entry --output-format video_breakdown --domain 自媒体
|
|
|
104
85
|
- `youtube.com`、`youtu.be`:`--platform youtube`。
|
|
105
86
|
- `ixigua.com`:`--platform xigua`。
|
|
106
87
|
|
|
107
|
-
YuanFlow-main 内置工具示例:
|
|
108
|
-
|
|
109
|
-
```json
|
|
110
|
-
{
|
|
111
|
-
"args": [
|
|
112
|
-
"works",
|
|
113
|
-
"download",
|
|
114
|
-
"--platform",
|
|
115
|
-
"douyin",
|
|
116
|
-
"--target",
|
|
117
|
-
"https://v.douyin.com/xxx/",
|
|
118
|
-
"--region",
|
|
119
|
-
"CN",
|
|
120
|
-
"--format",
|
|
121
|
-
"agent-json"
|
|
122
|
-
],
|
|
123
|
-
"timeout": 180
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
88
|
外部 CLI 示例:
|
|
128
89
|
|
|
129
90
|
```powershell
|
|
130
91
|
yuanflow-cli works download --platform douyin --target "https://v.douyin.com/xxx/" --region CN --format agent-json
|
|
131
92
|
```
|
|
132
93
|
|
|
94
|
+
YuanFlow-main 内置环境调用见后文专属小节。
|
|
95
|
+
|
|
133
96
|
解析到可访问视频 URL 后,经用户授权保存到本地临时文件,再提交 qwen3-vl-plus。保存文件时使用清晰路径,例如:
|
|
134
97
|
|
|
135
98
|
```text
|
|
@@ -162,6 +125,16 @@ ffmpeg -y -i "<解析得到的 m3u8 地址>" -c copy "D:\素材\yuanflow-video-b
|
|
|
162
125
|
|
|
163
126
|
把知识库查询到的规则摘要压缩进 prompt。不要只让模型“分析视频”,必须告诉它按规则拆解。
|
|
164
127
|
|
|
128
|
+
外部 CLI 示例:
|
|
129
|
+
|
|
130
|
+
```powershell
|
|
131
|
+
yuanflow-cli ai qwen3-vl-plus --prompt "你是自媒体视频拆解助手。请按知识库规则拆解这个视频:..." --video-file "D:\素材\yuanflow-video-breakdown\input.mp4" --format agent-json
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## YuanFlow-main 内置环境
|
|
135
|
+
|
|
136
|
+
在 YuanFlow-main 内置环境,优先调用受控工具 `yuanflow_cli_call`。token、受管包路径和输出目录由 YuanFlow-main 管理,不要要求用户手动提供 YuanFlow token。
|
|
137
|
+
|
|
165
138
|
YuanFlow-main 内置工具示例:
|
|
166
139
|
|
|
167
140
|
```json
|
|
@@ -180,16 +153,10 @@ YuanFlow-main 内置工具示例:
|
|
|
180
153
|
}
|
|
181
154
|
```
|
|
182
155
|
|
|
183
|
-
外部 CLI 示例:
|
|
184
|
-
|
|
185
|
-
```powershell
|
|
186
|
-
yuanflow-cli ai qwen3-vl-plus --prompt "你是自媒体视频拆解助手。请按知识库规则拆解这个视频:..." --video-file "D:\素材\yuanflow-video-breakdown\input.mp4" --format agent-json
|
|
187
|
-
```
|
|
188
|
-
|
|
189
156
|
## 调用限制和注意事项
|
|
190
157
|
|
|
191
158
|
- qwen3-vl-plus 视频建议单个视频最大 2GB,时长 2 秒到 1 小时。
|
|
192
|
-
- 本地视频上传时,CLI 会先调用 YuanFlow
|
|
159
|
+
- 本地视频上传时,CLI 会先调用 YuanFlow 文件中转,再把返回的临时访问链接提交给 YuanFlow API。
|
|
193
160
|
- 本地文件过大时,让用户压缩、裁剪、提供短版本,或改用可公网访问的视频 URL。
|
|
194
161
|
- 对标视频拆解只能用于学习结构、表达和创作方法,不要鼓励搬运、洗稿、规避版权或冒充原创。
|
|
195
162
|
|
|
@@ -15,6 +15,16 @@ tags:
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# 视频智能剪辑技能
|
|
18
|
+
|
|
19
|
+
## 外部 CLI 主流程
|
|
20
|
+
|
|
21
|
+
外部 Agent 或用户直接使用时,优先使用本 Skill 文档中的 `yuanflow-cli ...` 命令示例;如果本地没有 CLI,再提示安装 `npm install -g yuanflow-cli`。外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
22
|
+
|
|
23
|
+
不要在回复、日志或文件中暴露 token。用户主流程统一称为 YuanFlow API 和 YuanFlow 文件中转,不要求用户配置第三方平台 Key。
|
|
24
|
+
|
|
25
|
+
## YuanFlow-main 内置环境
|
|
26
|
+
|
|
27
|
+
只有在 YuanFlow-main 内置环境中,才使用 `yuanflow_cli_call`、`yuanflow_image_request`、`content_workbench_update`、`artifact_files_register` 等受控工具。token、受管包路径、程序数据目录和输出目录由 YuanFlow-main 管理,不写成外部用户必备步骤。
|
|
18
28
|
|
|
19
29
|
当用户要求自动剪辑、智能剪辑、用口播音频匹配画面、把 B-roll 素材配成视频、重排视频画面、生成预览剪辑或导出成片时,使用本 Skill。
|
|
20
30
|
|
|
@@ -6,6 +6,16 @@ emoji: 💡
|
|
|
6
6
|
|
|
7
7
|
# 选题策划
|
|
8
8
|
|
|
9
|
+
## 外部 CLI 主流程
|
|
10
|
+
|
|
11
|
+
外部 Agent 或用户直接使用本 Skill 时,先按当前 Skill 说明完成任务;需要查询知识库、生成报告、文件中转或调用平台数据时,使用本地 `yuanflow-cli` 命令。
|
|
12
|
+
|
|
13
|
+
1. 如果本地可执行 `yuanflow-cli --help`,直接使用本地 CLI。
|
|
14
|
+
2. 如果本地没有 `yuanflow-cli`,再提示用户安装 `npm install -g yuanflow-cli`。
|
|
15
|
+
3. 外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
16
|
+
|
|
17
|
+
不要在回复、日志或文件中暴露 token。用户主流程统一称为 YuanFlow API 和 YuanFlow 文件中转,不要求用户配置第三方平台 Key。
|
|
18
|
+
|
|
9
19
|
本 Skill 用于产出选题池、系列选题和选题优先级。执行时必须先查历史资产,再查自媒体知识库,最后结合用户本次目标输出可执行选题。
|
|
10
20
|
|
|
11
21
|
## 固定流程
|
|
@@ -5,6 +5,16 @@ emoji: ☁️
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# 音视频在线转文字
|
|
8
|
+
|
|
9
|
+
## 外部 CLI 主流程
|
|
10
|
+
|
|
11
|
+
外部 Agent 或用户直接使用时,优先使用本 Skill 文档中的 `yuanflow-cli ...` 命令示例;如果本地没有 CLI,再提示安装 `npm install -g yuanflow-cli`。外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
12
|
+
|
|
13
|
+
不要在回复、日志或文件中暴露 token。用户主流程统一称为 YuanFlow API 和 YuanFlow 文件中转,不要求用户配置第三方平台 Key。
|
|
14
|
+
|
|
15
|
+
## YuanFlow-main 内置环境
|
|
16
|
+
|
|
17
|
+
只有在 YuanFlow-main 内置环境中,才使用 `yuanflow_cli_call`、`yuanflow_image_request`、`content_workbench_update`、`artifact_files_register` 等受控工具。token、受管包路径、程序数据目录和输出目录由 YuanFlow-main 管理,不写成外部用户必备步骤。
|
|
8
18
|
|
|
9
19
|
本 Skill 使用 YuanFlow 网关的在线 ASR 能力,把音频或视频转成文字。它不下载本地模型;如果用户明确要求离线、本地模型或本地 ASR,改用 `本地音视频转文字`。
|
|
10
20
|
|
|
@@ -5,6 +5,16 @@ emoji: 🪽
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# 飞书官方技能
|
|
8
|
+
|
|
9
|
+
## 外部 CLI 主流程
|
|
10
|
+
|
|
11
|
+
外部 Agent 或用户直接使用时,优先使用本 Skill 文档中的 `yuanflow-cli ...` 命令示例;如果本地没有 CLI,再提示安装 `npm install -g yuanflow-cli`。外部 CLI 使用 `YUANCHUANG_API_TOKEN` 或 `yuanflow-cli config set-token <你的令牌>` 完成鉴权。
|
|
12
|
+
|
|
13
|
+
不要在回复、日志或文件中暴露 token。用户主流程统一称为 YuanFlow API 和 YuanFlow 文件中转,不要求用户配置第三方平台 Key。
|
|
14
|
+
|
|
15
|
+
## YuanFlow-main 内置环境
|
|
16
|
+
|
|
17
|
+
只有在 YuanFlow-main 内置环境中,才使用 `yuanflow_cli_call`、`yuanflow_image_request`、`content_workbench_update`、`artifact_files_register` 等受控工具。token、受管包路径、程序数据目录和输出目录由 YuanFlow-main 管理,不写成外部用户必备步骤。
|
|
8
18
|
|
|
9
19
|
本 Skill 对接飞书官方发布的 `@larksuite/cli` 和官方 Skill 体系。YuanFlow 不复制、不改造官方 CLI 源码,只负责安装、托管、认证状态检查、权限续接和受控调用。
|
|
10
20
|
|