@optima-chat/optima-agent 0.4.12 → 0.4.14
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/.claude/skills/comfy/SKILL.md +17 -15
- package/package.json +1 -1
|
@@ -11,13 +11,13 @@ description: "生成和编辑图片/视频。使用场景:生成图片(generat
|
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
# 文生图
|
|
14
|
-
comfy image "提示词" -o
|
|
14
|
+
comfy image "提示词" -o /home/aiuser/project/result.png
|
|
15
15
|
|
|
16
16
|
# 图片编辑/风格转换
|
|
17
|
-
comfy image "转成水彩风格" -i photo.png -o
|
|
17
|
+
comfy image "转成水彩风格" -i photo.png -o /home/aiuser/project/result.png
|
|
18
18
|
|
|
19
19
|
# 读取并描述结果
|
|
20
|
-
Read
|
|
20
|
+
Read /home/aiuser/project/result.png
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### comfy image 命令
|
|
@@ -44,15 +44,15 @@ comfy image <prompt> [options]
|
|
|
44
44
|
#### 文生图
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
comfy image "a cute fluffy cat sitting on a windowsill, natural lighting" -o /
|
|
48
|
-
Read /
|
|
47
|
+
comfy image "a cute fluffy cat sitting on a windowsill, natural lighting" -o /home/aiuser/project/cat.png
|
|
48
|
+
Read /home/aiuser/project/cat.png
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
#### 图片风格转换
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
comfy image "watercolor painting style, artistic brushstrokes" -i photo.jpg -o /
|
|
55
|
-
Read /
|
|
54
|
+
comfy image "watercolor painting style, artistic brushstrokes" -i photo.jpg -o /home/aiuser/project/watercolor.png
|
|
55
|
+
Read /home/aiuser/project/watercolor.png
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
#### 多图风格融合
|
|
@@ -60,8 +60,8 @@ Read /Users/john/project/watercolor.png
|
|
|
60
60
|
将第一张图的风格应用到第二张图的内容上:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
comfy image "apply the artistic style from image 1 to the content of image 2" -i style.png -i content.png -o /
|
|
64
|
-
Read /
|
|
63
|
+
comfy image "apply the artistic style from image 1 to the content of image 2" -i style.png -i content.png -o /home/aiuser/project/fusion.png
|
|
64
|
+
Read /home/aiuser/project/fusion.png
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
#### 多图元素组合
|
|
@@ -69,7 +69,7 @@ Read /Users/john/project/fusion.png
|
|
|
69
69
|
从多张图中提取元素组合成新图:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
comfy image "The person from image 1 is petting the cat from image 2, in a cozy living room" -i person.jpg -i cat.jpg -o /
|
|
72
|
+
comfy image "The person from image 1 is petting the cat from image 2, in a cozy living room" -i person.jpg -i cat.jpg -o /home/aiuser/project/combined.png
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
#### 精确颜色控制
|
|
@@ -77,13 +77,13 @@ comfy image "The person from image 1 is petting the cat from image 2, in a cozy
|
|
|
77
77
|
使用 hex code 指定精确颜色:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
comfy image "a modern logo with brand color #02eb3c as the primary accent" -o /
|
|
80
|
+
comfy image "a modern logo with brand color #02eb3c as the primary accent" -o /home/aiuser/project/logo.png
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
#### 产品海报
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
|
-
comfy image "Disney Pixar style 3D poster, [产品描述], cute character, vibrant gradient background, professional studio lighting" -W 1024 -H 1024 -o /
|
|
86
|
+
comfy image "Disney Pixar style 3D poster, [产品描述], cute character, vibrant gradient background, professional studio lighting" -W 1024 -H 1024 -o /home/aiuser/project/poster.png
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
### 提示词指南(FLUX.2)
|
|
@@ -163,6 +163,7 @@ comfy video <图片路径> [options]
|
|
|
163
163
|
|------|------|--------|
|
|
164
164
|
| `-p, --prompt` | 运动/内容描述(最长 1500 字) | - |
|
|
165
165
|
| `-n, --negative` | 负向提示词(最长 500 字) | - |
|
|
166
|
+
| `-o, --output <path>` | 输出目录或完整路径 | - |
|
|
166
167
|
| `-r, --resolution` | 720P \| 1080P | 1080P |
|
|
167
168
|
| `-d, --duration` | 5 \| 10 \| 15 秒 | 5 |
|
|
168
169
|
| `--shot-type` | single \| multi(多镜头叙事) | single |
|
|
@@ -187,12 +188,13 @@ comfy video story.png --shot-type multi -d 15 --prompt "a day in the life"
|
|
|
187
188
|
# 静音视频
|
|
188
189
|
comfy video product.png --no-audio --prompt "360 degree rotation"
|
|
189
190
|
|
|
190
|
-
#
|
|
191
|
-
|
|
191
|
+
# 指定输出路径
|
|
192
|
+
comfy video scene.png -o /home/aiuser/project/result.mp4 --prompt "camera zoom"
|
|
193
|
+
Read /home/aiuser/project/result.mp4
|
|
192
194
|
```
|
|
193
195
|
|
|
194
196
|
### 注意事项
|
|
195
197
|
|
|
196
198
|
- 输入图片:360-2000px,≤10MB,推荐 1080P 比例
|
|
197
199
|
- 输出规格:30fps,MP4 (H.264)
|
|
198
|
-
-
|
|
200
|
+
- 必须用 `-o` 指定输出路径
|