@fifine/aim-studio 0.0.1
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/LICENSE +21 -0
- package/README.md +159 -0
- package/bin/aim.js +3 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +89 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/init.d.ts +13 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +513 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/update.d.ts +27 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +1275 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/configurators/claude.d.ts +32 -0
- package/dist/configurators/claude.d.ts.map +1 -0
- package/dist/configurators/claude.js +98 -0
- package/dist/configurators/claude.js.map +1 -0
- package/dist/configurators/index.d.ts +51 -0
- package/dist/configurators/index.d.ts.map +1 -0
- package/dist/configurators/index.js +113 -0
- package/dist/configurators/index.js.map +1 -0
- package/dist/configurators/shared.d.ts +12 -0
- package/dist/configurators/shared.d.ts.map +1 -0
- package/dist/configurators/shared.js +21 -0
- package/dist/configurators/shared.js.map +1 -0
- package/dist/configurators/workflow.d.ts +28 -0
- package/dist/configurators/workflow.d.ts.map +1 -0
- package/dist/configurators/workflow.js +147 -0
- package/dist/configurators/workflow.js.map +1 -0
- package/dist/constants/paths.d.ts +68 -0
- package/dist/constants/paths.d.ts.map +1 -0
- package/dist/constants/paths.js +77 -0
- package/dist/constants/paths.js.map +1 -0
- package/dist/constants/version.d.ts +9 -0
- package/dist/constants/version.d.ts.map +1 -0
- package/dist/constants/version.js +15 -0
- package/dist/constants/version.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/index.d.ts +54 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +160 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/manifests/0.0.1.json +9 -0
- package/dist/migrations/manifests/0.1.9.json +30 -0
- package/dist/migrations/manifests/0.2.0.json +49 -0
- package/dist/migrations/manifests/0.2.12.json +9 -0
- package/dist/migrations/manifests/0.2.13.json +9 -0
- package/dist/migrations/manifests/0.2.14.json +175 -0
- package/dist/migrations/manifests/0.2.15.json +33 -0
- package/dist/migrations/manifests/0.3.0-beta.0.json +278 -0
- package/dist/migrations/manifests/0.3.0-beta.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.15.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.7.json +11 -0
- package/dist/migrations/manifests/0.3.0-beta.8.json +9 -0
- package/dist/migrations/manifests/0.3.0-beta.9.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.0.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.1.json +9 -0
- package/dist/migrations/manifests/0.3.0-rc.2.json +9 -0
- package/dist/templates/CLAUDE.md +71 -0
- package/dist/templates/aim/gitignore.txt +29 -0
- package/dist/templates/aim/index.d.ts +49 -0
- package/dist/templates/aim/index.d.ts.map +1 -0
- package/dist/templates/aim/index.js +92 -0
- package/dist/templates/aim/index.js.map +1 -0
- package/dist/templates/aim/scripts/__init__.py +5 -0
- package/dist/templates/aim/scripts/add_session.py +392 -0
- package/dist/templates/aim/scripts/common/__init__.py +80 -0
- package/dist/templates/aim/scripts/common/cli_adapter.py +435 -0
- package/dist/templates/aim/scripts/common/developer.py +190 -0
- package/dist/templates/aim/scripts/common/git_context.py +383 -0
- package/dist/templates/aim/scripts/common/paths.py +347 -0
- package/dist/templates/aim/scripts/common/phase.py +253 -0
- package/dist/templates/aim/scripts/common/registry.py +366 -0
- package/dist/templates/aim/scripts/common/task_queue.py +255 -0
- package/dist/templates/aim/scripts/common/task_utils.py +178 -0
- package/dist/templates/aim/scripts/common/worktree.py +219 -0
- package/dist/templates/aim/scripts/create_bootstrap.py +290 -0
- package/dist/templates/aim/scripts/get_context.py +16 -0
- package/dist/templates/aim/scripts/get_developer.py +26 -0
- package/dist/templates/aim/scripts/init_developer.py +51 -0
- package/dist/templates/aim/scripts/multi_agent/__init__.py +5 -0
- package/dist/templates/aim/scripts/multi_agent/cleanup.py +403 -0
- package/dist/templates/aim/scripts/multi_agent/create_pr.py +329 -0
- package/dist/templates/aim/scripts/multi_agent/plan.py +233 -0
- package/dist/templates/aim/scripts/multi_agent/start.py +461 -0
- package/dist/templates/aim/scripts/multi_agent/status.py +817 -0
- package/dist/templates/aim/scripts/task.py +1068 -0
- package/dist/templates/aim/scripts-shell-archive/add-session.sh +384 -0
- package/dist/templates/aim/scripts-shell-archive/common/developer.sh +129 -0
- package/dist/templates/aim/scripts-shell-archive/common/git-context.sh +263 -0
- package/dist/templates/aim/scripts-shell-archive/common/paths.sh +208 -0
- package/dist/templates/aim/scripts-shell-archive/common/phase.sh +150 -0
- package/dist/templates/aim/scripts-shell-archive/common/registry.sh +247 -0
- package/dist/templates/aim/scripts-shell-archive/common/task-queue.sh +142 -0
- package/dist/templates/aim/scripts-shell-archive/common/task-utils.sh +151 -0
- package/dist/templates/aim/scripts-shell-archive/common/worktree.sh +128 -0
- package/dist/templates/aim/scripts-shell-archive/create-bootstrap.sh +299 -0
- package/dist/templates/aim/scripts-shell-archive/get-context.sh +7 -0
- package/dist/templates/aim/scripts-shell-archive/get-developer.sh +15 -0
- package/dist/templates/aim/scripts-shell-archive/init-developer.sh +34 -0
- package/dist/templates/aim/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
- package/dist/templates/aim/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
- package/dist/templates/aim/scripts-shell-archive/multi-agent/plan.sh +207 -0
- package/dist/templates/aim/scripts-shell-archive/multi-agent/start.sh +317 -0
- package/dist/templates/aim/scripts-shell-archive/multi-agent/status.sh +828 -0
- package/dist/templates/aim/scripts-shell-archive/task.sh +1204 -0
- package/dist/templates/aim/tasks/.gitkeep +0 -0
- package/dist/templates/aim/workflow.md +258 -0
- package/dist/templates/aim/worktree.yaml +47 -0
- package/dist/templates/claude/agents/check.md +122 -0
- package/dist/templates/claude/agents/debug.md +106 -0
- package/dist/templates/claude/agents/dispatch.md +230 -0
- package/dist/templates/claude/agents/implement.md +96 -0
- package/dist/templates/claude/agents/plan.md +396 -0
- package/dist/templates/claude/agents/research.md +120 -0
- package/dist/templates/claude/agents/story.md +53 -0
- package/dist/templates/claude/commands/aim/before-backend-dev.md +13 -0
- package/dist/templates/claude/commands/aim/before-frontend-dev.md +13 -0
- package/dist/templates/claude/commands/aim/break-loop.md +153 -0
- package/dist/templates/claude/commands/aim/check-backend.md +13 -0
- package/dist/templates/claude/commands/aim/check-cross-layer.md +153 -0
- package/dist/templates/claude/commands/aim/check-frontend.md +13 -0
- package/dist/templates/claude/commands/aim/check-story.md +59 -0
- package/dist/templates/claude/commands/aim/create-command.md +154 -0
- package/dist/templates/claude/commands/aim/export.md +187 -0
- package/dist/templates/claude/commands/aim/finish-work.md +104 -0
- package/dist/templates/claude/commands/aim/integrate-skill.md +219 -0
- package/dist/templates/claude/commands/aim/onboard.md +358 -0
- package/dist/templates/claude/commands/aim/parallel.md +217 -0
- package/dist/templates/claude/commands/aim/portrait.md +170 -0
- package/dist/templates/claude/commands/aim/record-session.md +92 -0
- package/dist/templates/claude/commands/aim/start.md +112 -0
- package/dist/templates/claude/commands/aim/story.md +140 -0
- package/dist/templates/claude/commands/aim/update-spec.md +285 -0
- package/dist/templates/claude/commands/aim/visualize.md +182 -0
- package/dist/templates/claude/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/break-loop.md +125 -0
- package/dist/templates/claude/commands/trellis/check-backend.md +13 -0
- package/dist/templates/claude/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/claude/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/claude/commands/trellis/create-command.md +154 -0
- package/dist/templates/claude/commands/trellis/finish-work.md +129 -0
- package/dist/templates/claude/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/claude/commands/trellis/onboard.md +358 -0
- package/dist/templates/claude/commands/trellis/parallel.md +193 -0
- package/dist/templates/claude/commands/trellis/record-session.md +62 -0
- package/dist/templates/claude/commands/trellis/start.md +280 -0
- package/dist/templates/claude/commands/trellis/update-spec.md +285 -0
- package/dist/templates/claude/hooks/inject-subagent-context.py +772 -0
- package/dist/templates/claude/hooks/ralph-loop.py +388 -0
- package/dist/templates/claude/hooks/session-start.py +142 -0
- package/dist/templates/claude/index.d.ts +54 -0
- package/dist/templates/claude/index.d.ts.map +1 -0
- package/dist/templates/claude/index.js +85 -0
- package/dist/templates/claude/index.js.map +1 -0
- package/dist/templates/claude/settings.json +41 -0
- package/dist/templates/extract.d.ts +68 -0
- package/dist/templates/extract.d.ts.map +1 -0
- package/dist/templates/extract.js +128 -0
- package/dist/templates/extract.js.map +1 -0
- package/dist/templates/markdown/agents.md +25 -0
- package/dist/templates/markdown/gitignore.txt +12 -0
- package/dist/templates/markdown/index.d.ts +32 -0
- package/dist/templates/markdown/index.d.ts.map +1 -0
- package/dist/templates/markdown/index.js +58 -0
- package/dist/templates/markdown/index.js.map +1 -0
- package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/backend/error-handling.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/index.md +40 -0
- package/dist/templates/markdown/spec/backend/index.md.txt +38 -0
- package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/backend/script-conventions.md +467 -0
- package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +59 -0
- package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +54 -0
- package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/index.md.txt +39 -0
- package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/state-management.md.txt +51 -0
- package/dist/templates/markdown/spec/frontend/type-safety.md.txt +51 -0
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md +118 -0
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +92 -0
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +94 -0
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md +394 -0
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +319 -0
- package/dist/templates/markdown/spec/guides/index.md.txt +89 -0
- package/dist/templates/markdown/spec/story/character.md.txt +95 -0
- package/dist/templates/markdown/spec/story/index.md.txt +31 -0
- package/dist/templates/markdown/spec/story/script.md.txt +313 -0
- package/dist/templates/markdown/spec/story/world.md.txt +92 -0
- package/dist/templates/markdown/workspace-index.md +123 -0
- package/dist/templates/markdown/worktree.yaml.txt +58 -0
- package/dist/templates/trellis/gitignore.txt +29 -0
- package/dist/templates/trellis/index.d.ts +49 -0
- package/dist/templates/trellis/index.d.ts.map +1 -0
- package/dist/templates/trellis/index.js +92 -0
- package/dist/templates/trellis/index.js.map +1 -0
- package/dist/templates/trellis/scripts/__init__.py +5 -0
- package/dist/templates/trellis/scripts/add_session.py +392 -0
- package/dist/templates/trellis/scripts/common/__init__.py +80 -0
- package/dist/templates/trellis/scripts/common/cli_adapter.py +435 -0
- package/dist/templates/trellis/scripts/common/developer.py +190 -0
- package/dist/templates/trellis/scripts/common/git_context.py +383 -0
- package/dist/templates/trellis/scripts/common/paths.py +347 -0
- package/dist/templates/trellis/scripts/common/phase.py +253 -0
- package/dist/templates/trellis/scripts/common/registry.py +366 -0
- package/dist/templates/trellis/scripts/common/task_queue.py +255 -0
- package/dist/templates/trellis/scripts/common/task_utils.py +178 -0
- package/dist/templates/trellis/scripts/common/worktree.py +219 -0
- package/dist/templates/trellis/scripts/create_bootstrap.py +290 -0
- package/dist/templates/trellis/scripts/get_context.py +16 -0
- package/dist/templates/trellis/scripts/get_developer.py +26 -0
- package/dist/templates/trellis/scripts/init_developer.py +51 -0
- package/dist/templates/trellis/scripts/multi_agent/__init__.py +5 -0
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +403 -0
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +329 -0
- package/dist/templates/trellis/scripts/multi_agent/plan.py +233 -0
- package/dist/templates/trellis/scripts/multi_agent/start.py +461 -0
- package/dist/templates/trellis/scripts/multi_agent/status.py +817 -0
- package/dist/templates/trellis/scripts/task.py +1056 -0
- package/dist/templates/trellis/scripts-shell-archive/add-session.sh +384 -0
- package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +129 -0
- package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +263 -0
- package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +208 -0
- package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +150 -0
- package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +247 -0
- package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +142 -0
- package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +151 -0
- package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +128 -0
- package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +299 -0
- package/dist/templates/trellis/scripts-shell-archive/get-context.sh +7 -0
- package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +15 -0
- package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +34 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +207 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +317 -0
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +828 -0
- package/dist/templates/trellis/scripts-shell-archive/task.sh +1204 -0
- package/dist/templates/trellis/tasks/.gitkeep +0 -0
- package/dist/templates/trellis/workflow.md +416 -0
- package/dist/templates/trellis/worktree.yaml +47 -0
- package/dist/types/ai-tools.d.ts +48 -0
- package/dist/types/ai-tools.d.ts.map +1 -0
- package/dist/types/ai-tools.js +32 -0
- package/dist/types/ai-tools.js.map +1 -0
- package/dist/types/migration.d.ts +86 -0
- package/dist/types/migration.d.ts.map +1 -0
- package/dist/types/migration.js +8 -0
- package/dist/types/migration.js.map +1 -0
- package/dist/utils/compare-versions.d.ts +12 -0
- package/dist/utils/compare-versions.d.ts.map +1 -0
- package/dist/utils/compare-versions.js +76 -0
- package/dist/utils/compare-versions.js.map +1 -0
- package/dist/utils/file-writer.d.ts +23 -0
- package/dist/utils/file-writer.d.ts.map +1 -0
- package/dist/utils/file-writer.js +140 -0
- package/dist/utils/file-writer.js.map +1 -0
- package/dist/utils/project-detector.d.ts +16 -0
- package/dist/utils/project-detector.d.ts.map +1 -0
- package/dist/utils/project-detector.js +188 -0
- package/dist/utils/project-detector.js.map +1 -0
- package/dist/utils/template-fetcher.d.ts +51 -0
- package/dist/utils/template-fetcher.d.ts.map +1 -0
- package/dist/utils/template-fetcher.js +174 -0
- package/dist/utils/template-fetcher.js.map +1 -0
- package/dist/utils/template-hash.d.ts +78 -0
- package/dist/utils/template-hash.d.ts.map +1 -0
- package/dist/utils/template-hash.js +239 -0
- package/dist/utils/template-hash.js.map +1 -0
- package/package.json +87 -0
|
File without changes
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# AIM Studio 漫剧创作工作流
|
|
2
|
+
|
|
3
|
+
> 专为 AI 辅助漫剧/小说创作设计的工作流系统
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 目录
|
|
8
|
+
|
|
9
|
+
1. [快速开始](#快速开始)
|
|
10
|
+
2. [工作流概述](#工作流概述)
|
|
11
|
+
3. [创作流程](#创作流程)
|
|
12
|
+
4. [文件说明](#文件说明)
|
|
13
|
+
5. [最佳实践](#最佳实践)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 快速开始
|
|
18
|
+
|
|
19
|
+
### 步骤 0:初始化项目(首次使用)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# 检查是否已初始化
|
|
23
|
+
aim status
|
|
24
|
+
|
|
25
|
+
# 如果未初始化,运行:
|
|
26
|
+
aim init
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### 步骤 1:准备小说原文
|
|
30
|
+
|
|
31
|
+
将小说原文存放在 `.aim-studio/materials/` 目录下:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
.aim-studio/materials/
|
|
35
|
+
├── 原著.txt # 小说原文
|
|
36
|
+
├── 章节1.txt # 分章节文件(可选)
|
|
37
|
+
└── ...
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 步骤 2:开始创作
|
|
41
|
+
|
|
42
|
+
使用斜杠命令开始创作:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/aim:story # 漫剧创作模式
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 工作流概述
|
|
51
|
+
|
|
52
|
+
### 核心原则
|
|
53
|
+
|
|
54
|
+
1. **先读后写** - 理解上下文后再开始创作
|
|
55
|
+
2. **遵循规范** - 必须阅读 `.aim-studio/spec/story/` 规范
|
|
56
|
+
3. **增量创作** - 一次完成一个剧集
|
|
57
|
+
4. **及时记录** - 完成后立即更新上下文摘要
|
|
58
|
+
5. **保持一致** - 角色外观、场景风格必须一致
|
|
59
|
+
|
|
60
|
+
### 文件系统
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
.aim-studio/
|
|
64
|
+
├── workflow.md # 本文档
|
|
65
|
+
├── spec/ # 创作规范
|
|
66
|
+
│ └── story/ # 漫剧规范
|
|
67
|
+
│ ├── script.md # 剧本与分镜规范
|
|
68
|
+
│ ├── character.md # 角色设定规范
|
|
69
|
+
│ └── world.md # 世界观设定规范
|
|
70
|
+
├── workspace/ # 工作区
|
|
71
|
+
│ └── {项目名}/ # 每个项目一个目录
|
|
72
|
+
│ ├── 全局上下文.txt
|
|
73
|
+
│ ├── 项目配置.md
|
|
74
|
+
│ └── 第1集_*/ # 剧集目录
|
|
75
|
+
├── materials/ # 小说原文
|
|
76
|
+
└── tasks/ # 任务追踪
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 创作流程
|
|
82
|
+
|
|
83
|
+
### 1. 准备阶段
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# 1. 阅读创作规范
|
|
87
|
+
cat .aim-studio/spec/story/script.md
|
|
88
|
+
|
|
89
|
+
# 2. 阅读小说原文
|
|
90
|
+
cat .aim-studio/materials/原著.txt
|
|
91
|
+
|
|
92
|
+
# 3. 提取角色特征
|
|
93
|
+
# 使用 /aim:story 命令自动提取
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 2. 创作阶段
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
创作流程:
|
|
100
|
+
1. 提取角色特征 → 完善 character.md
|
|
101
|
+
2. 设定世界观 → 完善 world.md
|
|
102
|
+
3. 分章改编 → 生成每集剧本
|
|
103
|
+
4. 场次拆分 → 生成场次文件
|
|
104
|
+
5. 生成封面 → 使用 /aim:visualize
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 3. 输出阶段
|
|
108
|
+
|
|
109
|
+
每集输出结构:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
第{集数}集_{中文标题}/
|
|
113
|
+
├── 剧本.md # 完整剧本
|
|
114
|
+
├── 场次1.txt # 可粘贴到 Seedance
|
|
115
|
+
├── 场次2.txt
|
|
116
|
+
├── ...
|
|
117
|
+
└── 上下文摘要.txt # 本集结尾状态
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 4. Seedance 2.0 Prompt 格式
|
|
121
|
+
|
|
122
|
+
每个场次文件采用六要素结构:
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
【主体描述】
|
|
126
|
+
角色外观、服装、体型、年龄、声音特征
|
|
127
|
+
|
|
128
|
+
【动作与表演】
|
|
129
|
+
具体动作描述,包含情绪强度和动作节奏
|
|
130
|
+
|
|
131
|
+
【环境与氛围】
|
|
132
|
+
场景地点、时间、天气、光线、氛围关键词
|
|
133
|
+
|
|
134
|
+
【镜头语言】
|
|
135
|
+
运镜方式、景别、特殊效果、节奏
|
|
136
|
+
|
|
137
|
+
【音频设计】
|
|
138
|
+
人声、环境音、音乐
|
|
139
|
+
|
|
140
|
+
【风格影调】
|
|
141
|
+
整体视觉风格、色调、参考作品
|
|
142
|
+
|
|
143
|
+
【剧本内容】
|
|
144
|
+
对白和动作描写
|
|
145
|
+
|
|
146
|
+
【封面图片提示词】
|
|
147
|
+
封面图片生成提示词
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 文件说明
|
|
153
|
+
|
|
154
|
+
### 1. spec/ - 创作规范
|
|
155
|
+
|
|
156
|
+
**用途**:文档化的创作标准
|
|
157
|
+
|
|
158
|
+
**结构**:
|
|
159
|
+
```
|
|
160
|
+
spec/story/
|
|
161
|
+
├── script.md # 剧本与分镜规范(Seedance 2.0 优化)
|
|
162
|
+
├── character.md # 角色设定规范
|
|
163
|
+
└── world.md # 世界观设定规范
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**何时更新**:
|
|
167
|
+
- 发现新的创作模式
|
|
168
|
+
- 修复问题后需要补充规范
|
|
169
|
+
- 建立新的约定
|
|
170
|
+
|
|
171
|
+
### 2. workspace/ - 工作区
|
|
172
|
+
|
|
173
|
+
**用途**:存放创作输出
|
|
174
|
+
|
|
175
|
+
**结构**:
|
|
176
|
+
```
|
|
177
|
+
workspace/{项目名}/
|
|
178
|
+
├── 项目配置.md # 视频格式配置
|
|
179
|
+
├── 全局上下文.txt # 角色设定、世界观
|
|
180
|
+
├── 使用说明.md # 使用说明
|
|
181
|
+
├── 第1集_*/ # 剧集目录
|
|
182
|
+
└── ...
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 3. materials/ - 小说原文
|
|
186
|
+
|
|
187
|
+
**用途**:存放小说原文
|
|
188
|
+
|
|
189
|
+
**结构**:
|
|
190
|
+
```
|
|
191
|
+
materials/
|
|
192
|
+
├── 原著.txt # 完整原文
|
|
193
|
+
├── 章节1.txt # 分章节文件(可选)
|
|
194
|
+
└── ...
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## 最佳实践
|
|
200
|
+
|
|
201
|
+
### ✅ 应该做
|
|
202
|
+
|
|
203
|
+
1. **创作前**:
|
|
204
|
+
- 阅读 `.aim-studio/spec/story/` 规范
|
|
205
|
+
- 阅读小说原文,提取角色特征
|
|
206
|
+
|
|
207
|
+
2. **创作中**:
|
|
208
|
+
- 遵循 Seedance 2.0 Prompt 六要素结构
|
|
209
|
+
- 保持角色外观、场景风格一致
|
|
210
|
+
- 每个场次都包含封面图片提示词
|
|
211
|
+
|
|
212
|
+
3. **创作后**:
|
|
213
|
+
- 使用 `/aim:check-story` 检查剧情逻辑
|
|
214
|
+
- 更新上下文摘要
|
|
215
|
+
- 使用 `/aim:finish-work` 完成工作
|
|
216
|
+
|
|
217
|
+
### ❌ 不应该做
|
|
218
|
+
|
|
219
|
+
1. **不要**跳过阅读规范
|
|
220
|
+
2. **不要**忽略音频设计(Seedance 2.0 核心能力)
|
|
221
|
+
3. **不要**使用空泛词("高质量"、"4K")
|
|
222
|
+
4. **不要**让角色外观在不同场次间不一致
|
|
223
|
+
5. **不要**忘记更新上下文摘要
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 常用命令
|
|
228
|
+
|
|
229
|
+
### 斜杠命令
|
|
230
|
+
|
|
231
|
+
| 命令 | 用途 |
|
|
232
|
+
|------|------|
|
|
233
|
+
| `/aim:start` | 通用模式开始工作 |
|
|
234
|
+
| `/aim:story` | 漫剧创作模式 |
|
|
235
|
+
| `/aim:visualize` | 生成图片提示词 |
|
|
236
|
+
| `/aim:export` | 导出创作内容 |
|
|
237
|
+
| `/aim:check-story` | 剧情逻辑检查 |
|
|
238
|
+
| `/aim:finish-work` | 结束工作并生成日志 |
|
|
239
|
+
|
|
240
|
+
### CLI 命令
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
aim init # 初始化项目
|
|
244
|
+
aim update # 更新模板
|
|
245
|
+
aim status # 查看状态
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## 总结
|
|
251
|
+
|
|
252
|
+
遵循此工作流可确保:
|
|
253
|
+
- ✅ 跨剧集的连续性
|
|
254
|
+
- ✅ 一致的创作质量
|
|
255
|
+
- ✅ 可追踪的进度
|
|
256
|
+
- ✅ 知识积累在规范文档中
|
|
257
|
+
|
|
258
|
+
**核心理念**:先读后写,遵循规范,及时记录,保持一致。
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Worktree Configuration for Multi-Agent Pipeline
|
|
2
|
+
# Used for worktree initialization in multi-agent workflows
|
|
3
|
+
#
|
|
4
|
+
# All paths are relative to project root
|
|
5
|
+
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
7
|
+
# Paths
|
|
8
|
+
#-------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
# Worktree storage directory (relative to project root)
|
|
11
|
+
worktree_dir: ../trellis-worktrees
|
|
12
|
+
|
|
13
|
+
#-------------------------------------------------------------------------------
|
|
14
|
+
# Files to Copy
|
|
15
|
+
#-------------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
# Files to copy to each worktree (each worktree needs independent copy)
|
|
18
|
+
# These files contain sensitive info or need worktree-independent config
|
|
19
|
+
copy:
|
|
20
|
+
# Environment variables (uncomment and customize as needed)
|
|
21
|
+
# - .env
|
|
22
|
+
# - .env.local
|
|
23
|
+
# Workflow config
|
|
24
|
+
- .aim-studio/.developer
|
|
25
|
+
|
|
26
|
+
#-------------------------------------------------------------------------------
|
|
27
|
+
# Post-Create Hooks
|
|
28
|
+
#-------------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
# Commands to run after creating worktree
|
|
31
|
+
# Executed in worktree directory, in order, abort on failure
|
|
32
|
+
post_create:
|
|
33
|
+
# Install dependencies (uncomment based on your package manager)
|
|
34
|
+
# - npm install
|
|
35
|
+
# - pnpm install --frozen-lockfile
|
|
36
|
+
# - yarn install --frozen-lockfile
|
|
37
|
+
|
|
38
|
+
#-------------------------------------------------------------------------------
|
|
39
|
+
# Check Agent Verification (Ralph Loop)
|
|
40
|
+
#-------------------------------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
# Commands to verify code quality before allowing check agent to finish
|
|
43
|
+
# If configured, Ralph Loop will run these commands - all must pass to allow completion
|
|
44
|
+
# If not configured or empty, trusts agent's completion markers
|
|
45
|
+
verify:
|
|
46
|
+
# - pnpm lint
|
|
47
|
+
# - pnpm typecheck
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: check
|
|
3
|
+
description: |
|
|
4
|
+
Code quality check expert. Reviews code changes against specs and self-fixes issues.
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
|
|
6
|
+
model: opus
|
|
7
|
+
---
|
|
8
|
+
# Check Agent
|
|
9
|
+
|
|
10
|
+
You are the Check Agent in the AIM Studio workflow.
|
|
11
|
+
|
|
12
|
+
## Context
|
|
13
|
+
|
|
14
|
+
Before checking, read:
|
|
15
|
+
- `.aim-studio/spec/` - Development guidelines
|
|
16
|
+
- Pre-commit checklist for quality standards
|
|
17
|
+
|
|
18
|
+
## Core Responsibilities
|
|
19
|
+
|
|
20
|
+
1. **Get code changes** - Use git diff to get uncommitted code
|
|
21
|
+
2. **Check against specs** - Verify code follows guidelines
|
|
22
|
+
3. **Self-fix** - Fix issues yourself, not just report them
|
|
23
|
+
4. **Run verification** - typecheck and lint
|
|
24
|
+
|
|
25
|
+
## Important
|
|
26
|
+
|
|
27
|
+
**Fix issues yourself**, don't just report them.
|
|
28
|
+
|
|
29
|
+
You have write and edit tools, you can modify code directly.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Workflow
|
|
34
|
+
|
|
35
|
+
### Step 1: Get Changes
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
git diff --name-only # List changed files
|
|
39
|
+
git diff # View specific changes
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Step 2: Check Against Specs
|
|
43
|
+
|
|
44
|
+
Read relevant specs in `.aim-studio/spec/` to check code:
|
|
45
|
+
|
|
46
|
+
- Does it follow directory structure conventions
|
|
47
|
+
- Does it follow naming conventions
|
|
48
|
+
- Does it follow code patterns
|
|
49
|
+
- Are there missing types
|
|
50
|
+
- Are there potential bugs
|
|
51
|
+
|
|
52
|
+
### Step 3: Self-Fix
|
|
53
|
+
|
|
54
|
+
After finding issues:
|
|
55
|
+
|
|
56
|
+
1. Fix the issue directly (use edit tool)
|
|
57
|
+
2. Record what was fixed
|
|
58
|
+
3. Continue checking other issues
|
|
59
|
+
|
|
60
|
+
### Step 4: Run Verification
|
|
61
|
+
|
|
62
|
+
Run project's lint and typecheck commands to verify changes.
|
|
63
|
+
|
|
64
|
+
If failed, fix issues and re-run.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Completion Markers (Ralph Loop)
|
|
69
|
+
|
|
70
|
+
**CRITICAL**: You are in a loop controlled by the Ralph Loop system.
|
|
71
|
+
The loop will NOT stop until you output ALL required completion markers.
|
|
72
|
+
|
|
73
|
+
Completion markers are generated from `check.jsonl` in the task directory.
|
|
74
|
+
Each entry's `reason` field becomes a marker: `{REASON}_FINISH`
|
|
75
|
+
|
|
76
|
+
For example, if check.jsonl contains:
|
|
77
|
+
```json
|
|
78
|
+
{"file": "...", "reason": "TypeCheck"}
|
|
79
|
+
{"file": "...", "reason": "Lint"}
|
|
80
|
+
{"file": "...", "reason": "CodeReview"}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
You MUST output these markers when each check passes:
|
|
84
|
+
- `TYPECHECK_FINISH` - After typecheck passes
|
|
85
|
+
- `LINT_FINISH` - After lint passes
|
|
86
|
+
- `CODEREVIEW_FINISH` - After code review passes
|
|
87
|
+
|
|
88
|
+
If check.jsonl doesn't exist or has no reasons, output: `ALL_CHECKS_FINISH`
|
|
89
|
+
|
|
90
|
+
**The loop will block you from stopping until all markers are present in your output.**
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Report Format
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
## Self-Check Complete
|
|
98
|
+
|
|
99
|
+
### Files Checked
|
|
100
|
+
|
|
101
|
+
- src/components/Feature.tsx
|
|
102
|
+
- src/hooks/useFeature.ts
|
|
103
|
+
|
|
104
|
+
### Issues Found and Fixed
|
|
105
|
+
|
|
106
|
+
1. `<file>:<line>` - <what was fixed>
|
|
107
|
+
2. `<file>:<line>` - <what was fixed>
|
|
108
|
+
|
|
109
|
+
### Issues Not Fixed
|
|
110
|
+
|
|
111
|
+
(If there are issues that cannot be self-fixed, list them here with reasons)
|
|
112
|
+
|
|
113
|
+
### Verification Results
|
|
114
|
+
|
|
115
|
+
- TypeCheck: Passed TYPECHECK_FINISH
|
|
116
|
+
- Lint: Passed LINT_FINISH
|
|
117
|
+
|
|
118
|
+
### Summary
|
|
119
|
+
|
|
120
|
+
Checked X files, found Y issues, all fixed.
|
|
121
|
+
ALL_CHECKS_FINISH
|
|
122
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: |
|
|
4
|
+
Issue fixing expert. Understands issues, fixes against specs, and verifies fixes. Precise fixes only.
|
|
5
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
|
|
6
|
+
model: opus
|
|
7
|
+
---
|
|
8
|
+
# Debug Agent
|
|
9
|
+
|
|
10
|
+
You are the Debug Agent in the AIM Studio workflow.
|
|
11
|
+
|
|
12
|
+
## Context
|
|
13
|
+
|
|
14
|
+
Before debugging, read:
|
|
15
|
+
- `.aim-studio/spec/` - Development guidelines
|
|
16
|
+
- Error messages or issue descriptions provided
|
|
17
|
+
|
|
18
|
+
## Core Responsibilities
|
|
19
|
+
|
|
20
|
+
1. **Understand issues** - Analyze error messages or reported issues
|
|
21
|
+
2. **Fix against specs** - Fix issues following dev specs
|
|
22
|
+
3. **Verify fixes** - Run typecheck to ensure no new issues
|
|
23
|
+
4. **Report results** - Report fix status
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
### Step 1: Understand Issues
|
|
30
|
+
|
|
31
|
+
Parse the issue, categorize by priority:
|
|
32
|
+
|
|
33
|
+
- `[P1]` - Must fix (blocking)
|
|
34
|
+
- `[P2]` - Should fix (important)
|
|
35
|
+
- `[P3]` - Optional fix (nice to have)
|
|
36
|
+
|
|
37
|
+
### Step 2: Research if Needed
|
|
38
|
+
|
|
39
|
+
If you need additional info:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Check knowledge base
|
|
43
|
+
ls .aim-studio/big-question/
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Step 3: Fix One by One
|
|
47
|
+
|
|
48
|
+
For each issue:
|
|
49
|
+
|
|
50
|
+
1. Locate the exact position
|
|
51
|
+
2. Fix following specs
|
|
52
|
+
3. Run typecheck to verify
|
|
53
|
+
|
|
54
|
+
### Step 4: Verify
|
|
55
|
+
|
|
56
|
+
Run project's lint and typecheck commands to verify fixes.
|
|
57
|
+
|
|
58
|
+
If fix introduces new issues:
|
|
59
|
+
|
|
60
|
+
1. Revert the fix
|
|
61
|
+
2. Use a more complete solution
|
|
62
|
+
3. Re-verify
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Report Format
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
## Fix Report
|
|
70
|
+
|
|
71
|
+
### Issues Fixed
|
|
72
|
+
|
|
73
|
+
1. `[P1]` `<file>:<line>` - <what was fixed>
|
|
74
|
+
2. `[P2]` `<file>:<line>` - <what was fixed>
|
|
75
|
+
|
|
76
|
+
### Issues Not Fixed
|
|
77
|
+
|
|
78
|
+
- `<file>:<line>` - <reason why not fixed>
|
|
79
|
+
|
|
80
|
+
### Verification
|
|
81
|
+
|
|
82
|
+
- TypeCheck: Pass
|
|
83
|
+
- Lint: Pass
|
|
84
|
+
|
|
85
|
+
### Summary
|
|
86
|
+
|
|
87
|
+
Fixed X/Y issues. Z issues require discussion.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Guidelines
|
|
93
|
+
|
|
94
|
+
### DO
|
|
95
|
+
|
|
96
|
+
- Precise fixes for reported issues
|
|
97
|
+
- Follow specs
|
|
98
|
+
- Verify each fix
|
|
99
|
+
|
|
100
|
+
### DON'T
|
|
101
|
+
|
|
102
|
+
- Don't refactor surrounding code
|
|
103
|
+
- Don't add new features
|
|
104
|
+
- Don't modify unrelated files
|
|
105
|
+
- Don't use non-null assertion (`x!` operator)
|
|
106
|
+
- Don't execute git commit
|