@fifine/aim-studio 0.0.3 → 0.0.5
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 +65 -99
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +3 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +4 -104
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +5 -5
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +5 -5
- package/dist/constants/paths.js.map +1 -1
- package/dist/templates/aim/index.d.ts +1 -0
- package/dist/templates/aim/index.d.ts.map +1 -1
- package/dist/templates/aim/index.js +2 -0
- package/dist/templates/aim/index.js.map +1 -1
- package/dist/templates/aim/scripts/common/developer.py +2 -1
- package/dist/templates/aim/scripts/export.py +306 -15
- package/dist/templates/aim/workflow.md +12 -13
- package/dist/templates/claude/commands/aim/export.md +208 -32
- package/dist/templates/claude/commands/aim/finish-work.md +23 -0
- package/dist/templates/claude/commands/aim/legitimize.md +250 -0
- package/dist/templates/claude/commands/aim/start.md +92 -179
- package/dist/templates/claude/commands/aim/story.md +303 -67
- package/dist/templates/markdown/index.d.ts +1 -0
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +1 -0
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/spec/story/style-guide.md.txt +96 -0
- package/package.json +1 -1
- package/dist/migrations/manifests/0.3.0-rc.2.json +0 -9
- package/dist/templates/aim/scripts/multi_agent/__init__.py +0 -5
- package/dist/templates/aim/scripts/multi_agent/cleanup.py +0 -403
- package/dist/templates/aim/scripts/multi_agent/create_pr.py +0 -329
- package/dist/templates/aim/scripts/multi_agent/plan.py +0 -233
- package/dist/templates/aim/scripts/multi_agent/start.py +0 -461
- package/dist/templates/aim/scripts/multi_agent/status.py +0 -817
- package/dist/templates/aim/scripts-shell-archive/add-session.sh +0 -384
- package/dist/templates/aim/scripts-shell-archive/common/developer.sh +0 -129
- package/dist/templates/aim/scripts-shell-archive/common/git-context.sh +0 -263
- package/dist/templates/aim/scripts-shell-archive/common/paths.sh +0 -208
- package/dist/templates/aim/scripts-shell-archive/common/phase.sh +0 -150
- package/dist/templates/aim/scripts-shell-archive/common/registry.sh +0 -247
- package/dist/templates/aim/scripts-shell-archive/common/task-queue.sh +0 -142
- package/dist/templates/aim/scripts-shell-archive/common/task-utils.sh +0 -151
- package/dist/templates/aim/scripts-shell-archive/common/worktree.sh +0 -128
- package/dist/templates/aim/scripts-shell-archive/create-bootstrap.sh +0 -299
- package/dist/templates/aim/scripts-shell-archive/get-context.sh +0 -7
- package/dist/templates/aim/scripts-shell-archive/get-developer.sh +0 -15
- package/dist/templates/aim/scripts-shell-archive/init-developer.sh +0 -34
- package/dist/templates/aim/scripts-shell-archive/multi-agent/cleanup.sh +0 -396
- package/dist/templates/aim/scripts-shell-archive/multi-agent/create-pr.sh +0 -241
- package/dist/templates/aim/scripts-shell-archive/multi-agent/plan.sh +0 -207
- package/dist/templates/aim/scripts-shell-archive/multi-agent/start.sh +0 -317
- package/dist/templates/aim/scripts-shell-archive/multi-agent/status.sh +0 -828
- package/dist/templates/aim/scripts-shell-archive/task.sh +0 -1204
- package/dist/templates/claude/agents/check.md +0 -122
- package/dist/templates/claude/agents/debug.md +0 -106
- package/dist/templates/claude/agents/dispatch.md +0 -230
- package/dist/templates/claude/agents/implement.md +0 -96
- package/dist/templates/claude/agents/plan.md +0 -396
- package/dist/templates/claude/agents/research.md +0 -120
- package/dist/templates/claude/commands/aim/before-backend-dev.md +0 -13
- package/dist/templates/claude/commands/aim/before-frontend-dev.md +0 -13
- package/dist/templates/claude/commands/aim/break-loop.md +0 -153
- package/dist/templates/claude/commands/aim/check-backend.md +0 -13
- package/dist/templates/claude/commands/aim/check-cross-layer.md +0 -153
- package/dist/templates/claude/commands/aim/check-frontend.md +0 -13
- package/dist/templates/claude/commands/aim/create-command.md +0 -154
- package/dist/templates/claude/commands/aim/integrate-skill.md +0 -219
- package/dist/templates/claude/commands/aim/parallel.md +0 -217
- package/dist/templates/claude/commands/aim/update-spec.md +0 -285
- package/dist/templates/claude/hooks/ralph-loop.py +0 -388
- package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +0 -51
- package/dist/templates/markdown/spec/backend/directory-structure.md.txt +0 -54
- package/dist/templates/markdown/spec/backend/error-handling.md.txt +0 -51
- package/dist/templates/markdown/spec/backend/index.md +0 -40
- package/dist/templates/markdown/spec/backend/index.md.txt +0 -38
- package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +0 -51
- package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +0 -51
- package/dist/templates/markdown/spec/backend/script-conventions.md +0 -467
- package/dist/templates/markdown/spec/cli/directory-structure.md.txt +0 -71
- package/dist/templates/markdown/spec/cli/error-handling.md.txt +0 -91
- package/dist/templates/markdown/spec/cli/index.md.txt +0 -37
- package/dist/templates/markdown/spec/cli/options-flags.md.txt +0 -71
- package/dist/templates/markdown/spec/cli/output-formatting.md.txt +0 -93
- package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +0 -59
- package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +0 -54
- package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +0 -51
- package/dist/templates/markdown/spec/frontend/index.md.txt +0 -39
- package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +0 -51
- package/dist/templates/markdown/spec/frontend/state-management.md.txt +0 -51
- package/dist/templates/markdown/spec/frontend/type-safety.md.txt +0 -51
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md +0 -118
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +0 -92
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +0 -94
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md +0 -394
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +0 -319
- package/dist/templates/markdown/spec/guides/index.md.txt +0 -89
|
@@ -13,6 +13,12 @@ description: 导出剧本用于AI视频生成(纯文本格式)
|
|
|
13
13
|
|
|
14
14
|
本命令生成**不带任何 Markdown 符号**的纯文本文件,可直接复制粘贴到 Seedance 的视频生成输入框。
|
|
15
15
|
|
|
16
|
+
### 新增功能
|
|
17
|
+
|
|
18
|
+
- ✅ **违规检测** - 自动检测真人素材、版权内容、敏感内容
|
|
19
|
+
- ✅ **时长选择** - 支持 5s/10s/15s/30s/45s/60s 多种时长
|
|
20
|
+
- ✅ **智能处理** - 检测到违规时提供多种处理选项
|
|
21
|
+
|
|
16
22
|
---
|
|
17
23
|
|
|
18
24
|
## 使用方法
|
|
@@ -45,6 +51,97 @@ python3 .aim-studio/scripts/export.py --ep 1 --open
|
|
|
45
51
|
python3 .aim-studio/scripts/export.py --ep 1 --format simple
|
|
46
52
|
```
|
|
47
53
|
|
|
54
|
+
### 时长选择
|
|
55
|
+
|
|
56
|
+
支持以下视频时长:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# 5秒短视频
|
|
60
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 5
|
|
61
|
+
|
|
62
|
+
# 10秒(默认)
|
|
63
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 10
|
|
64
|
+
|
|
65
|
+
# 15秒
|
|
66
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 15
|
|
67
|
+
|
|
68
|
+
# 30秒
|
|
69
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 30
|
|
70
|
+
|
|
71
|
+
# 45秒
|
|
72
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 45
|
|
73
|
+
|
|
74
|
+
# 60秒
|
|
75
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 60
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 违规检测
|
|
79
|
+
|
|
80
|
+
导出时会自动检查以下违规内容:
|
|
81
|
+
|
|
82
|
+
| 违规类型 | 检测内容 | 风险 |
|
|
83
|
+
|----------|----------|------|
|
|
84
|
+
| **真人素材** | 明星、公众人物、网红、真实照片等 | 平台禁止 |
|
|
85
|
+
| **版权内容** | 哈利波特、漫威、金庸小说、IP等 | 侵权风险 |
|
|
86
|
+
| **敏感内容** | 暴力、血腥、政治、宗教等 | 审核风险 |
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# 仅检查违规,不导出
|
|
90
|
+
python3 .aim-studio/scripts/export.py --check
|
|
91
|
+
|
|
92
|
+
# 强制导出(忽略违规警告)
|
|
93
|
+
python3 .aim-studio/scripts/export.py --ep 1 --force
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 违规检测流程
|
|
99
|
+
|
|
100
|
+
### 自动检测
|
|
101
|
+
|
|
102
|
+
执行导出命令时,系统会自动:
|
|
103
|
+
|
|
104
|
+
1. **扫描角色设定** - 检查 `spec/story/character.md`
|
|
105
|
+
2. **扫描世界观** - 检查 `spec/story/world.md`
|
|
106
|
+
3. **扫描所有场景** - 检查 `tasks/EP*/` 下的所有文件
|
|
107
|
+
|
|
108
|
+
### 检测结果示例
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
============================================================
|
|
112
|
+
🚨 违规检测报告
|
|
113
|
+
============================================================
|
|
114
|
+
|
|
115
|
+
⚠️ 检测到以下潜在违规内容:
|
|
116
|
+
|
|
117
|
+
【真人素材风险】
|
|
118
|
+
- 关键词: 明星
|
|
119
|
+
- 关键词: 刘德华
|
|
120
|
+
|
|
121
|
+
【版权风险】
|
|
122
|
+
- 关键词: 金庸
|
|
123
|
+
|
|
124
|
+
============================================================
|
|
125
|
+
💡 建议处理方式:
|
|
126
|
+
1. 修改角色设定 - 使用虚构角色替代真人
|
|
127
|
+
2. 替换版权内容 - 使用原创元素替代受版权保护的内容
|
|
128
|
+
3. 简化敏感描述 - 移除可能引发争议的描述
|
|
129
|
+
4. 强制导出 - 仍要导出(风险自负)
|
|
130
|
+
============================================================
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 用户选择
|
|
134
|
+
|
|
135
|
+
检测到违规后,用户可以选择:
|
|
136
|
+
|
|
137
|
+
| 选项 | 说明 |
|
|
138
|
+
|------|------|
|
|
139
|
+
| 1 | 修改角色设定 - 提示用户手动修改角色文件 |
|
|
140
|
+
| 2 | 替换版权内容 - 提示用户修改版权相关内容 |
|
|
141
|
+
| 3 | 简化敏感描述 - 提示用户移除敏感描述 |
|
|
142
|
+
| 4 | 强制导出 - 忽略警告,继续导出 |
|
|
143
|
+
| 5 | 退出 - 不导出 |
|
|
144
|
+
|
|
48
145
|
---
|
|
49
146
|
|
|
50
147
|
## 输出文件
|
|
@@ -53,21 +150,19 @@ python3 .aim-studio/scripts/export.py --ep 1 --format simple
|
|
|
53
150
|
|
|
54
151
|
```
|
|
55
152
|
export/
|
|
56
|
-
├── EP01_场景1.txt #
|
|
153
|
+
├── EP01_场景1.txt # 可直接粘贴,包含时长
|
|
57
154
|
├── EP01_场景2.txt # 可直接粘贴
|
|
58
155
|
├── EP02_场景1.txt
|
|
59
156
|
└── ...
|
|
60
157
|
```
|
|
61
158
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Seedance 纯文本格式
|
|
65
|
-
|
|
66
|
-
导出的文件内容示例(无任何 Markdown 符号):
|
|
159
|
+
### 输出格式示例
|
|
67
160
|
|
|
68
161
|
```
|
|
69
162
|
=== 场景1: 青云峰主殿 ===
|
|
70
163
|
|
|
164
|
+
[DURATION: 10s]
|
|
165
|
+
|
|
71
166
|
[CHARACTERS]
|
|
72
167
|
沈安在: 白衣中年男子, 两鬓霜白, 面容俊俏
|
|
73
168
|
慕容天: 少年身形, 目光坚定
|
|
@@ -95,61 +190,140 @@ xianxia, chinese fantasy, cinematic lighting, melancholic atmosphere
|
|
|
95
190
|
|
|
96
191
|
## 快速使用流程
|
|
97
192
|
|
|
98
|
-
### 步骤 1
|
|
193
|
+
### 步骤 1:导出(带检测)
|
|
99
194
|
|
|
100
195
|
```bash
|
|
101
|
-
python3 .aim-studio/scripts/export.py --ep 1 --open
|
|
196
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 10 --open
|
|
102
197
|
```
|
|
103
198
|
|
|
104
|
-
### 步骤 2
|
|
199
|
+
### 步骤 2:处理违规(如有)
|
|
200
|
+
|
|
201
|
+
根据检测结果选择处理方式
|
|
202
|
+
|
|
203
|
+
### 步骤 3:复制
|
|
105
204
|
|
|
106
205
|
打开 `export/` 文件夹,选择对应场次的 `.txt` 文件,**直接全选复制**。
|
|
107
206
|
|
|
108
|
-
### 步骤
|
|
207
|
+
### 步骤 4:粘贴到 Seedance
|
|
109
208
|
|
|
110
209
|
将复制的内容**直接粘贴**到 Seedance 的 prompt 输入框中,点击生成。
|
|
111
210
|
|
|
112
211
|
---
|
|
113
212
|
|
|
114
|
-
##
|
|
213
|
+
## 与其他命令配合
|
|
115
214
|
|
|
116
|
-
|
|
215
|
+
```
|
|
216
|
+
1. /aim:story → 创作剧本
|
|
217
|
+
2. /aim:check-story → 检查剧情一致性
|
|
218
|
+
3. /aim:export --ep 1 → 导出第1集(10秒)
|
|
219
|
+
4. 复制到 Seedance → 生成视频
|
|
220
|
+
```
|
|
117
221
|
|
|
118
|
-
|
|
222
|
+
---
|
|
119
223
|
|
|
120
|
-
|
|
224
|
+
## 完整参数说明
|
|
121
225
|
|
|
122
|
-
|
|
226
|
+
### 所有参数一览表
|
|
123
227
|
|
|
124
|
-
|
|
228
|
+
| 参数 | 必填 | 可选值 | 默认值 | 说明 |
|
|
229
|
+
|------|------|--------|--------|------|
|
|
230
|
+
| `--ep` | 是 | `1`, `1-3`, `all` | 无 | 指定导出的集数 |
|
|
231
|
+
| `--format` | 否 | `seedance`, `simple` | `seedance` | 导出格式 |
|
|
232
|
+
| `--duration` | 否 | `5`, `10`, `15`, `30`, `45`, `60` | `10` | 视频时长(秒) |
|
|
233
|
+
| `--output` | 否 | 任意目录名 | `export` | 输出目录名称 |
|
|
234
|
+
| `--open` | 否 | 开关 | 关闭 | 导出后自动打开文件夹 |
|
|
235
|
+
| `--check` | 否 | 开关 | 关闭 | 仅检查违规,不导出 |
|
|
236
|
+
| `--force` | 否 | 开关 | 关闭 | 强制导出,忽略违规警告 |
|
|
125
237
|
|
|
126
|
-
|
|
238
|
+
### 参数详细说明
|
|
127
239
|
|
|
128
|
-
|
|
240
|
+
#### `--ep` (必填)
|
|
241
|
+
指定要导出的集数:
|
|
242
|
+
- `1` - 导出第1集
|
|
243
|
+
- `1-3` - 导出第1集到第3集
|
|
244
|
+
- `all` - 导出所有集数
|
|
129
245
|
|
|
130
|
-
|
|
246
|
+
示例:
|
|
247
|
+
```bash
|
|
248
|
+
python3 .aim-studio/scripts/export.py --ep 1 # 导出第1集
|
|
249
|
+
python3 .aim-studio/scripts/export.py --ep 1-3 # 导出1到3集
|
|
250
|
+
python3 .aim-studio/scripts/export.py --ep all # 导出全部
|
|
251
|
+
```
|
|
131
252
|
|
|
132
|
-
|
|
253
|
+
#### `--format` (可选)
|
|
254
|
+
导出内容的格式:
|
|
255
|
+
- `seedance`(默认)- 完整格式,包含角色、环境、上下文、风格等所有信息
|
|
256
|
+
- `simple` - 极简格式,只有场景描述和对话
|
|
133
257
|
|
|
134
|
-
|
|
258
|
+
示例:
|
|
259
|
+
```bash
|
|
260
|
+
python3 .aim-studio/scripts/export.py --ep 1 --format seedance
|
|
261
|
+
python3 .aim-studio/scripts/export.py --ep 1 --format simple
|
|
262
|
+
```
|
|
135
263
|
|
|
136
|
-
|
|
264
|
+
#### `--duration` (可选)
|
|
265
|
+
生成的视频时长(秒):
|
|
266
|
+
- `5` - 5秒短视频
|
|
267
|
+
- `10` - 10秒(**默认值**)
|
|
268
|
+
- `15` - 15秒
|
|
269
|
+
- `30` - 30秒
|
|
270
|
+
- `45` - 45秒
|
|
271
|
+
- `60` - 60秒
|
|
137
272
|
|
|
138
|
-
|
|
273
|
+
示例:
|
|
274
|
+
```bash
|
|
275
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 5 # 5秒
|
|
276
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 30 # 30秒
|
|
277
|
+
```
|
|
139
278
|
|
|
140
|
-
|
|
279
|
+
#### `--output` (可选)
|
|
280
|
+
指定输出目录的名称,默认值为 `export`
|
|
141
281
|
|
|
142
|
-
|
|
282
|
+
示例:
|
|
283
|
+
```bash
|
|
284
|
+
python3 .aim-studio/scripts/export.py --ep 1 --output my-videos
|
|
285
|
+
# 输出到 my-videos/ 目录
|
|
286
|
+
```
|
|
143
287
|
|
|
144
|
-
|
|
288
|
+
#### `--open` (可选)
|
|
289
|
+
导出完成后自动打开输出文件夹(仅 Windows/Mac/Linux)
|
|
145
290
|
|
|
146
|
-
|
|
291
|
+
示例:
|
|
292
|
+
```bash
|
|
293
|
+
python3 .aim-studio/scripts/export.py --ep 1 --open
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
#### `--check` (可选)
|
|
297
|
+
只检查违规内容,不进行导出。检查结果会显示是否有违规,但不会生成文件。
|
|
147
298
|
|
|
299
|
+
示例:
|
|
300
|
+
```bash
|
|
301
|
+
python3 .aim-studio/scripts/export.py --check
|
|
302
|
+
# 输出违规报告,不导出任何文件
|
|
148
303
|
```
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
304
|
+
|
|
305
|
+
#### `--force` (可选)
|
|
306
|
+
强制导出,即使检测到违规内容也会继续导出。**注意:使用此参数风险自负!**
|
|
307
|
+
|
|
308
|
+
示例:
|
|
309
|
+
```bash
|
|
310
|
+
python3 .aim-studio/scripts/export.py --ep 1 --force
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### 组合使用示例
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
# 完整示例:导出第1集,30秒时长,导出后打开文件夹
|
|
317
|
+
python3 .aim-studio/scripts/export.py --ep 1 --duration 30 --open
|
|
318
|
+
|
|
319
|
+
# 导出1-3集,15秒,简单格式
|
|
320
|
+
python3 .aim-studio/scripts/export.py --ep 1-3 --duration 15 --format simple
|
|
321
|
+
|
|
322
|
+
# 仅检查违规
|
|
323
|
+
python3 .aim-studio/scripts/export.py --check
|
|
324
|
+
|
|
325
|
+
# 强制导出(忽略警告)
|
|
326
|
+
python3 .aim-studio/scripts/export.py --ep 1 --force
|
|
153
327
|
```
|
|
154
328
|
|
|
155
329
|
---
|
|
@@ -158,4 +332,6 @@ Seedance 对 prompt 长度有限制。可以使用 `--format simple` 获得更
|
|
|
158
332
|
|
|
159
333
|
1. **纯文本格式**:导出的文件不包含任何 `#`、`*`、`[]` 等 Markdown 符号
|
|
160
334
|
2. **字符编码**:文件使用 UTF-8 编码,确保 Seedance 能正确识别
|
|
161
|
-
3.
|
|
335
|
+
3. **时长选择**:根据场景复杂度选择合适时长,复杂场景建议 15-30 秒
|
|
336
|
+
4. **违规检测**:建议先检查违规,修改后再导出,确保内容合规
|
|
337
|
+
5. **强制导出**:使用 `--force` 会忽略警告,风险由用户自行承担
|
|
@@ -68,6 +68,29 @@ description: 完成创作并记录工作
|
|
|
68
68
|
python3 ./.aim-studio/scripts/add_session.py --title "<工作标题>" --summary "<工作摘要>"
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
#### add_session.py 完整参数说明
|
|
72
|
+
|
|
73
|
+
| 参数 | 必填 | 说明 | 示例 |
|
|
74
|
+
|------|------|------|------|
|
|
75
|
+
| `--title` | 是 | 会话标题,简洁描述本次工作 | `--title "第1集第3场创作"` |
|
|
76
|
+
| `--summary` | 是 | 工作摘要,描述完成的内容 | `--summary "完成慕容天与沈安在的对手戏"` |
|
|
77
|
+
| `--commit` | 否 | Git 提交哈希(如果有提交) | `--commit "abc1234"` |
|
|
78
|
+
|
|
79
|
+
#### 使用示例
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# 简单记录
|
|
83
|
+
python3 ./.aim-studio/scripts/add_session.py \
|
|
84
|
+
--title "第1集第3场创作" \
|
|
85
|
+
--summary "完成慕容天与沈安在的对手戏"
|
|
86
|
+
|
|
87
|
+
# 带 Git 提交的记录
|
|
88
|
+
python3 ./.aim-studio/scripts/add_session.py \
|
|
89
|
+
--title "创作第1集" \
|
|
90
|
+
--summary "完成第1集前5场的创作" \
|
|
91
|
+
--commit "a1b2c3d"
|
|
92
|
+
```
|
|
93
|
+
|
|
71
94
|
### 步骤 4:报告完成
|
|
72
95
|
|
|
73
96
|
向用户报告完成的内容和下一步建议。
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legitimize
|
|
3
|
+
description: 检查并合法化剧本(AI智能修改违规内容)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 剧本合法化
|
|
7
|
+
|
|
8
|
+
使用 AI 智能检查并修改剧本中的违规内容,使其符合 AI 视频生成平台的规定。
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 适用场景
|
|
13
|
+
|
|
14
|
+
- 检查剧本中是否存在违规内容(真人素材、版权角色、敏感内容等)
|
|
15
|
+
- 自动将违规内容修改为合规内容
|
|
16
|
+
- 修改角色名称使其"一听就像主角"
|
|
17
|
+
- 强化肖像描述让 AI 更容易理解
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 使用方法
|
|
22
|
+
|
|
23
|
+
### 检查剧本(只读,不修改)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
/aim:legitimize --check
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
这会:
|
|
30
|
+
1. 读取 `spec/story/character.md` 角色设定
|
|
31
|
+
2. 读取 `spec/story/world.md` 世界观设定
|
|
32
|
+
3. 读取当前剧集的所有场景文件
|
|
33
|
+
4. 使用 AI 分析是否存在违规内容
|
|
34
|
+
5. 输出详细的检查报告
|
|
35
|
+
|
|
36
|
+
### 修复剧本(自动修改)
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
/aim:legitimize --fix
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
这会:
|
|
43
|
+
1. 先检查所有违规内容
|
|
44
|
+
2. 使用 AI 自动修改违规内容
|
|
45
|
+
3. 保存修改后的文件
|
|
46
|
+
4. 输出修改报告
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 违规类型及修改原则
|
|
51
|
+
|
|
52
|
+
### 1. 真人素材(高风险)
|
|
53
|
+
|
|
54
|
+
| 原始 | 修改后 | 说明 |
|
|
55
|
+
|------|--------|------|
|
|
56
|
+
| 刘德华 | 刘天霸 | 保留气质,换成虚构名字 |
|
|
57
|
+
| 周杰伦 | 周云飞 | 同音替换 |
|
|
58
|
+
| 网红脸 | 清秀面容 | 改为描述性词汇 |
|
|
59
|
+
|
|
60
|
+
### 2. 版权角色(中风险)
|
|
61
|
+
|
|
62
|
+
| 原始 | 修改后 | 说明 |
|
|
63
|
+
|------|--------|------|
|
|
64
|
+
| 张无忌 | 张凌风 | 金庸角色 → 原创 |
|
|
65
|
+
| 钢铁侠 | 铁甲侠 | 漫威 → 原创 |
|
|
66
|
+
| 哈利波特 | 哈云 | 哈利波特 → 原创 |
|
|
67
|
+
|
|
68
|
+
### 3. 敏感内容(中风险)
|
|
69
|
+
|
|
70
|
+
| 原始 | 修改后 | 说明 |
|
|
71
|
+
|------|--------|------|
|
|
72
|
+
| 血腥的屠杀 | 激烈的战斗 | 暴力 → 温和 |
|
|
73
|
+
| 自杀 | 离去 | 敏感 → 规避 |
|
|
74
|
+
| 赌博 | 比试 | 赌博 → 比赛 |
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 修改规则
|
|
79
|
+
|
|
80
|
+
### 角色名称修改
|
|
81
|
+
|
|
82
|
+
1. **同音/谐音替换**:保留原名的读音特点
|
|
83
|
+
2. **气质保持**:修改后的名字要符合人物设定
|
|
84
|
+
3. **主角感**:主角名字要"一听就像主角"
|
|
85
|
+
4. **原创优先**:避免任何知名人物的名字
|
|
86
|
+
|
|
87
|
+
### 肖像描述强化
|
|
88
|
+
|
|
89
|
+
强化关键词,让 AI 更容易理解:
|
|
90
|
+
- "帅气" → "剑眉星目,气宇轩昂"
|
|
91
|
+
- "漂亮" → "柳眉杏眼,肤若凝脂"
|
|
92
|
+
- "可爱" → "肉嘟嘟的小脸,大眼睛忽闪忽闪"
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 执行步骤
|
|
97
|
+
|
|
98
|
+
### 步骤 1:读取剧本文件
|
|
99
|
+
|
|
100
|
+
首先读取需要检查的文件:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# 读取角色设定
|
|
104
|
+
cat .aim-studio/spec/story/character.md
|
|
105
|
+
|
|
106
|
+
# 读取世界观设定
|
|
107
|
+
cat .aim-studio/spec/story/world.md
|
|
108
|
+
|
|
109
|
+
# 读取当前剧集
|
|
110
|
+
ls -la .aim-studio/tasks/
|
|
111
|
+
cat .aim-studio/tasks/EP01/*.md
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 步骤 2:AI 检查
|
|
115
|
+
|
|
116
|
+
使用 AI 分析内容,查找以下违规:
|
|
117
|
+
|
|
118
|
+
1. **真人素材**:明星、演员、网红、真实照片等
|
|
119
|
+
2. **版权内容**:金庸小说角色、漫威、哈利波特等受版权保护的内容
|
|
120
|
+
3. **敏感内容**:暴力、血腥、政治、宗教等
|
|
121
|
+
|
|
122
|
+
### 步骤 3:输出报告
|
|
123
|
+
|
|
124
|
+
输出格式:
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
📋 剧本合规性检查报告
|
|
128
|
+
|
|
129
|
+
【角色设定】spec/story/character.md
|
|
130
|
+
✅ 无违规
|
|
131
|
+
|
|
132
|
+
【世界观设定】spec/story/world.md
|
|
133
|
+
⚠️ 发现违规:
|
|
134
|
+
- 版权:金庸 → 修改为原创角色"金玄"
|
|
135
|
+
- 敏感:"血腥战斗" → 改为"激烈对决"
|
|
136
|
+
|
|
137
|
+
【场景文件】
|
|
138
|
+
EP01/场景1.md
|
|
139
|
+
✅ 无违规
|
|
140
|
+
EP01/场景2.md
|
|
141
|
+
⚠️ 发现违规:
|
|
142
|
+
- 版权:"张无忌" → 修改为"张凌风"
|
|
143
|
+
- 真实人物:"网红脸" → 改为"清秀面容"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### 步骤 4:自动修复(如果使用 --fix)
|
|
147
|
+
|
|
148
|
+
对每个违规内容进行修改:
|
|
149
|
+
|
|
150
|
+
1. 角色名称替换
|
|
151
|
+
2. 肖像描述强化
|
|
152
|
+
3. 敏感内容温和化
|
|
153
|
+
|
|
154
|
+
修改后保存文件,并输出修改摘要。
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 完整示例
|
|
159
|
+
|
|
160
|
+
### 示例 1:检查剧本
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
> /aim:legitimize --check
|
|
164
|
+
|
|
165
|
+
正在读取剧本文件...
|
|
166
|
+
正在使用 AI 分析...
|
|
167
|
+
|
|
168
|
+
📋 剧本合规性检查报告
|
|
169
|
+
|
|
170
|
+
【角色设定】
|
|
171
|
+
⚠️ 发现违规:
|
|
172
|
+
1. 真实人物:"刘德华" → 建议修改为"刘天霸"
|
|
173
|
+
2. 真实人物:"网红脸" → 建议修改为"清秀面容"
|
|
174
|
+
|
|
175
|
+
【世界观设定】
|
|
176
|
+
✅ 无违规
|
|
177
|
+
|
|
178
|
+
【场景文件】EP01
|
|
179
|
+
场景1.md
|
|
180
|
+
✅ 无违规
|
|
181
|
+
场景2.md
|
|
182
|
+
⚠️ 发现违规:
|
|
183
|
+
1. 版权角色:"张无忌" → 建议修改为"张凌风"
|
|
184
|
+
2. 敏感内容:"血腥屠杀" → 建议修改为"激烈战斗"
|
|
185
|
+
|
|
186
|
+
共发现 4 处违规,建议使用 /aim:legitimize --fix 进行修复
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### 示例 2:修复剧本
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
> /aim:legitimize --fix
|
|
193
|
+
|
|
194
|
+
正在读取剧本文件...
|
|
195
|
+
正在使用 AI 分析并修复...
|
|
196
|
+
|
|
197
|
+
🔧 开始修复...
|
|
198
|
+
|
|
199
|
+
【角色设定】
|
|
200
|
+
✅ 已修复:
|
|
201
|
+
- "刘德华" → "刘天霸"
|
|
202
|
+
- "网红脸" → "清秀面容"
|
|
203
|
+
- 肖像描述强化:"帅气" → "剑眉星目,气宇轩昂"
|
|
204
|
+
|
|
205
|
+
【场景文件】
|
|
206
|
+
EP01/场景2.md
|
|
207
|
+
✅ 已修复:
|
|
208
|
+
- "张无忌" → "张凌风"
|
|
209
|
+
- "血腥屠杀" → "激烈战斗"
|
|
210
|
+
|
|
211
|
+
✅ 修复完成!共修复 4 处违规
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 注意事项
|
|
217
|
+
|
|
218
|
+
1. **API Key**:使用此命令需要配置 OpenAI API Key
|
|
219
|
+
```bash
|
|
220
|
+
# 设置环境变量
|
|
221
|
+
export OPENAI_API_KEY=your-api-key
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
2. **备份建议**:修复前建议备份原始文件
|
|
225
|
+
|
|
226
|
+
3. **审查修改**:AI 修改后建议人工审查确认
|
|
227
|
+
|
|
228
|
+
4. **多次执行**:可以多次执行直到无违规
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 相关命令
|
|
233
|
+
|
|
234
|
+
| 命令 | 用途 |
|
|
235
|
+
|------|------|
|
|
236
|
+
| `/aim:check-story` | 检查剧情一致性 |
|
|
237
|
+
| `/aim:export` | 导出视频提示词 |
|
|
238
|
+
| `/aim:story` | 开始创作 |
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 工作流程
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
1. /aim:story → 创作剧本
|
|
246
|
+
2. /aim:legitimize --check → 检查是否有违规
|
|
247
|
+
3. /aim:legitimize --fix → 自动修复违规内容
|
|
248
|
+
4. /aim:check-story → 再次检查剧情一致性
|
|
249
|
+
5. /aim:export → 导出视频提示词
|
|
250
|
+
```
|