@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.
Files changed (289) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +159 -0
  3. package/bin/aim.js +3 -0
  4. package/dist/cli/index.d.ts +3 -0
  5. package/dist/cli/index.d.ts.map +1 -0
  6. package/dist/cli/index.js +89 -0
  7. package/dist/cli/index.js.map +1 -0
  8. package/dist/commands/init.d.ts +13 -0
  9. package/dist/commands/init.d.ts.map +1 -0
  10. package/dist/commands/init.js +513 -0
  11. package/dist/commands/init.js.map +1 -0
  12. package/dist/commands/update.d.ts +27 -0
  13. package/dist/commands/update.d.ts.map +1 -0
  14. package/dist/commands/update.js +1275 -0
  15. package/dist/commands/update.js.map +1 -0
  16. package/dist/configurators/claude.d.ts +32 -0
  17. package/dist/configurators/claude.d.ts.map +1 -0
  18. package/dist/configurators/claude.js +98 -0
  19. package/dist/configurators/claude.js.map +1 -0
  20. package/dist/configurators/index.d.ts +51 -0
  21. package/dist/configurators/index.d.ts.map +1 -0
  22. package/dist/configurators/index.js +113 -0
  23. package/dist/configurators/index.js.map +1 -0
  24. package/dist/configurators/shared.d.ts +12 -0
  25. package/dist/configurators/shared.d.ts.map +1 -0
  26. package/dist/configurators/shared.js +21 -0
  27. package/dist/configurators/shared.js.map +1 -0
  28. package/dist/configurators/workflow.d.ts +28 -0
  29. package/dist/configurators/workflow.d.ts.map +1 -0
  30. package/dist/configurators/workflow.js +147 -0
  31. package/dist/configurators/workflow.js.map +1 -0
  32. package/dist/constants/paths.d.ts +68 -0
  33. package/dist/constants/paths.d.ts.map +1 -0
  34. package/dist/constants/paths.js +77 -0
  35. package/dist/constants/paths.js.map +1 -0
  36. package/dist/constants/version.d.ts +9 -0
  37. package/dist/constants/version.d.ts.map +1 -0
  38. package/dist/constants/version.js +15 -0
  39. package/dist/constants/version.js.map +1 -0
  40. package/dist/index.d.ts +9 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +9 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/migrations/index.d.ts +54 -0
  45. package/dist/migrations/index.d.ts.map +1 -0
  46. package/dist/migrations/index.js +160 -0
  47. package/dist/migrations/index.js.map +1 -0
  48. package/dist/migrations/manifests/0.0.1.json +9 -0
  49. package/dist/migrations/manifests/0.1.9.json +30 -0
  50. package/dist/migrations/manifests/0.2.0.json +49 -0
  51. package/dist/migrations/manifests/0.2.12.json +9 -0
  52. package/dist/migrations/manifests/0.2.13.json +9 -0
  53. package/dist/migrations/manifests/0.2.14.json +175 -0
  54. package/dist/migrations/manifests/0.2.15.json +33 -0
  55. package/dist/migrations/manifests/0.3.0-beta.0.json +278 -0
  56. package/dist/migrations/manifests/0.3.0-beta.1.json +9 -0
  57. package/dist/migrations/manifests/0.3.0-beta.10.json +9 -0
  58. package/dist/migrations/manifests/0.3.0-beta.11.json +9 -0
  59. package/dist/migrations/manifests/0.3.0-beta.12.json +9 -0
  60. package/dist/migrations/manifests/0.3.0-beta.13.json +9 -0
  61. package/dist/migrations/manifests/0.3.0-beta.14.json +9 -0
  62. package/dist/migrations/manifests/0.3.0-beta.15.json +9 -0
  63. package/dist/migrations/manifests/0.3.0-beta.16.json +9 -0
  64. package/dist/migrations/manifests/0.3.0-beta.2.json +9 -0
  65. package/dist/migrations/manifests/0.3.0-beta.3.json +9 -0
  66. package/dist/migrations/manifests/0.3.0-beta.4.json +9 -0
  67. package/dist/migrations/manifests/0.3.0-beta.5.json +9 -0
  68. package/dist/migrations/manifests/0.3.0-beta.6.json +9 -0
  69. package/dist/migrations/manifests/0.3.0-beta.7.json +11 -0
  70. package/dist/migrations/manifests/0.3.0-beta.8.json +9 -0
  71. package/dist/migrations/manifests/0.3.0-beta.9.json +9 -0
  72. package/dist/migrations/manifests/0.3.0-rc.0.json +9 -0
  73. package/dist/migrations/manifests/0.3.0-rc.1.json +9 -0
  74. package/dist/migrations/manifests/0.3.0-rc.2.json +9 -0
  75. package/dist/templates/CLAUDE.md +71 -0
  76. package/dist/templates/aim/gitignore.txt +29 -0
  77. package/dist/templates/aim/index.d.ts +49 -0
  78. package/dist/templates/aim/index.d.ts.map +1 -0
  79. package/dist/templates/aim/index.js +92 -0
  80. package/dist/templates/aim/index.js.map +1 -0
  81. package/dist/templates/aim/scripts/__init__.py +5 -0
  82. package/dist/templates/aim/scripts/add_session.py +392 -0
  83. package/dist/templates/aim/scripts/common/__init__.py +80 -0
  84. package/dist/templates/aim/scripts/common/cli_adapter.py +435 -0
  85. package/dist/templates/aim/scripts/common/developer.py +190 -0
  86. package/dist/templates/aim/scripts/common/git_context.py +383 -0
  87. package/dist/templates/aim/scripts/common/paths.py +347 -0
  88. package/dist/templates/aim/scripts/common/phase.py +253 -0
  89. package/dist/templates/aim/scripts/common/registry.py +366 -0
  90. package/dist/templates/aim/scripts/common/task_queue.py +255 -0
  91. package/dist/templates/aim/scripts/common/task_utils.py +178 -0
  92. package/dist/templates/aim/scripts/common/worktree.py +219 -0
  93. package/dist/templates/aim/scripts/create_bootstrap.py +290 -0
  94. package/dist/templates/aim/scripts/get_context.py +16 -0
  95. package/dist/templates/aim/scripts/get_developer.py +26 -0
  96. package/dist/templates/aim/scripts/init_developer.py +51 -0
  97. package/dist/templates/aim/scripts/multi_agent/__init__.py +5 -0
  98. package/dist/templates/aim/scripts/multi_agent/cleanup.py +403 -0
  99. package/dist/templates/aim/scripts/multi_agent/create_pr.py +329 -0
  100. package/dist/templates/aim/scripts/multi_agent/plan.py +233 -0
  101. package/dist/templates/aim/scripts/multi_agent/start.py +461 -0
  102. package/dist/templates/aim/scripts/multi_agent/status.py +817 -0
  103. package/dist/templates/aim/scripts/task.py +1068 -0
  104. package/dist/templates/aim/scripts-shell-archive/add-session.sh +384 -0
  105. package/dist/templates/aim/scripts-shell-archive/common/developer.sh +129 -0
  106. package/dist/templates/aim/scripts-shell-archive/common/git-context.sh +263 -0
  107. package/dist/templates/aim/scripts-shell-archive/common/paths.sh +208 -0
  108. package/dist/templates/aim/scripts-shell-archive/common/phase.sh +150 -0
  109. package/dist/templates/aim/scripts-shell-archive/common/registry.sh +247 -0
  110. package/dist/templates/aim/scripts-shell-archive/common/task-queue.sh +142 -0
  111. package/dist/templates/aim/scripts-shell-archive/common/task-utils.sh +151 -0
  112. package/dist/templates/aim/scripts-shell-archive/common/worktree.sh +128 -0
  113. package/dist/templates/aim/scripts-shell-archive/create-bootstrap.sh +299 -0
  114. package/dist/templates/aim/scripts-shell-archive/get-context.sh +7 -0
  115. package/dist/templates/aim/scripts-shell-archive/get-developer.sh +15 -0
  116. package/dist/templates/aim/scripts-shell-archive/init-developer.sh +34 -0
  117. package/dist/templates/aim/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
  118. package/dist/templates/aim/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
  119. package/dist/templates/aim/scripts-shell-archive/multi-agent/plan.sh +207 -0
  120. package/dist/templates/aim/scripts-shell-archive/multi-agent/start.sh +317 -0
  121. package/dist/templates/aim/scripts-shell-archive/multi-agent/status.sh +828 -0
  122. package/dist/templates/aim/scripts-shell-archive/task.sh +1204 -0
  123. package/dist/templates/aim/tasks/.gitkeep +0 -0
  124. package/dist/templates/aim/workflow.md +258 -0
  125. package/dist/templates/aim/worktree.yaml +47 -0
  126. package/dist/templates/claude/agents/check.md +122 -0
  127. package/dist/templates/claude/agents/debug.md +106 -0
  128. package/dist/templates/claude/agents/dispatch.md +230 -0
  129. package/dist/templates/claude/agents/implement.md +96 -0
  130. package/dist/templates/claude/agents/plan.md +396 -0
  131. package/dist/templates/claude/agents/research.md +120 -0
  132. package/dist/templates/claude/agents/story.md +53 -0
  133. package/dist/templates/claude/commands/aim/before-backend-dev.md +13 -0
  134. package/dist/templates/claude/commands/aim/before-frontend-dev.md +13 -0
  135. package/dist/templates/claude/commands/aim/break-loop.md +153 -0
  136. package/dist/templates/claude/commands/aim/check-backend.md +13 -0
  137. package/dist/templates/claude/commands/aim/check-cross-layer.md +153 -0
  138. package/dist/templates/claude/commands/aim/check-frontend.md +13 -0
  139. package/dist/templates/claude/commands/aim/check-story.md +59 -0
  140. package/dist/templates/claude/commands/aim/create-command.md +154 -0
  141. package/dist/templates/claude/commands/aim/export.md +187 -0
  142. package/dist/templates/claude/commands/aim/finish-work.md +104 -0
  143. package/dist/templates/claude/commands/aim/integrate-skill.md +219 -0
  144. package/dist/templates/claude/commands/aim/onboard.md +358 -0
  145. package/dist/templates/claude/commands/aim/parallel.md +217 -0
  146. package/dist/templates/claude/commands/aim/portrait.md +170 -0
  147. package/dist/templates/claude/commands/aim/record-session.md +92 -0
  148. package/dist/templates/claude/commands/aim/start.md +112 -0
  149. package/dist/templates/claude/commands/aim/story.md +140 -0
  150. package/dist/templates/claude/commands/aim/update-spec.md +285 -0
  151. package/dist/templates/claude/commands/aim/visualize.md +182 -0
  152. package/dist/templates/claude/commands/trellis/before-backend-dev.md +13 -0
  153. package/dist/templates/claude/commands/trellis/before-frontend-dev.md +13 -0
  154. package/dist/templates/claude/commands/trellis/break-loop.md +125 -0
  155. package/dist/templates/claude/commands/trellis/check-backend.md +13 -0
  156. package/dist/templates/claude/commands/trellis/check-cross-layer.md +153 -0
  157. package/dist/templates/claude/commands/trellis/check-frontend.md +13 -0
  158. package/dist/templates/claude/commands/trellis/create-command.md +154 -0
  159. package/dist/templates/claude/commands/trellis/finish-work.md +129 -0
  160. package/dist/templates/claude/commands/trellis/integrate-skill.md +219 -0
  161. package/dist/templates/claude/commands/trellis/onboard.md +358 -0
  162. package/dist/templates/claude/commands/trellis/parallel.md +193 -0
  163. package/dist/templates/claude/commands/trellis/record-session.md +62 -0
  164. package/dist/templates/claude/commands/trellis/start.md +280 -0
  165. package/dist/templates/claude/commands/trellis/update-spec.md +285 -0
  166. package/dist/templates/claude/hooks/inject-subagent-context.py +772 -0
  167. package/dist/templates/claude/hooks/ralph-loop.py +388 -0
  168. package/dist/templates/claude/hooks/session-start.py +142 -0
  169. package/dist/templates/claude/index.d.ts +54 -0
  170. package/dist/templates/claude/index.d.ts.map +1 -0
  171. package/dist/templates/claude/index.js +85 -0
  172. package/dist/templates/claude/index.js.map +1 -0
  173. package/dist/templates/claude/settings.json +41 -0
  174. package/dist/templates/extract.d.ts +68 -0
  175. package/dist/templates/extract.d.ts.map +1 -0
  176. package/dist/templates/extract.js +128 -0
  177. package/dist/templates/extract.js.map +1 -0
  178. package/dist/templates/markdown/agents.md +25 -0
  179. package/dist/templates/markdown/gitignore.txt +12 -0
  180. package/dist/templates/markdown/index.d.ts +32 -0
  181. package/dist/templates/markdown/index.d.ts.map +1 -0
  182. package/dist/templates/markdown/index.js +58 -0
  183. package/dist/templates/markdown/index.js.map +1 -0
  184. package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +51 -0
  185. package/dist/templates/markdown/spec/backend/directory-structure.md.txt +54 -0
  186. package/dist/templates/markdown/spec/backend/error-handling.md.txt +51 -0
  187. package/dist/templates/markdown/spec/backend/index.md +40 -0
  188. package/dist/templates/markdown/spec/backend/index.md.txt +38 -0
  189. package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +51 -0
  190. package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +51 -0
  191. package/dist/templates/markdown/spec/backend/script-conventions.md +467 -0
  192. package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +59 -0
  193. package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +54 -0
  194. package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +51 -0
  195. package/dist/templates/markdown/spec/frontend/index.md.txt +39 -0
  196. package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +51 -0
  197. package/dist/templates/markdown/spec/frontend/state-management.md.txt +51 -0
  198. package/dist/templates/markdown/spec/frontend/type-safety.md.txt +51 -0
  199. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md +118 -0
  200. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +92 -0
  201. package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +94 -0
  202. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md +394 -0
  203. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +319 -0
  204. package/dist/templates/markdown/spec/guides/index.md.txt +89 -0
  205. package/dist/templates/markdown/spec/story/character.md.txt +95 -0
  206. package/dist/templates/markdown/spec/story/index.md.txt +31 -0
  207. package/dist/templates/markdown/spec/story/script.md.txt +313 -0
  208. package/dist/templates/markdown/spec/story/world.md.txt +92 -0
  209. package/dist/templates/markdown/workspace-index.md +123 -0
  210. package/dist/templates/markdown/worktree.yaml.txt +58 -0
  211. package/dist/templates/trellis/gitignore.txt +29 -0
  212. package/dist/templates/trellis/index.d.ts +49 -0
  213. package/dist/templates/trellis/index.d.ts.map +1 -0
  214. package/dist/templates/trellis/index.js +92 -0
  215. package/dist/templates/trellis/index.js.map +1 -0
  216. package/dist/templates/trellis/scripts/__init__.py +5 -0
  217. package/dist/templates/trellis/scripts/add_session.py +392 -0
  218. package/dist/templates/trellis/scripts/common/__init__.py +80 -0
  219. package/dist/templates/trellis/scripts/common/cli_adapter.py +435 -0
  220. package/dist/templates/trellis/scripts/common/developer.py +190 -0
  221. package/dist/templates/trellis/scripts/common/git_context.py +383 -0
  222. package/dist/templates/trellis/scripts/common/paths.py +347 -0
  223. package/dist/templates/trellis/scripts/common/phase.py +253 -0
  224. package/dist/templates/trellis/scripts/common/registry.py +366 -0
  225. package/dist/templates/trellis/scripts/common/task_queue.py +255 -0
  226. package/dist/templates/trellis/scripts/common/task_utils.py +178 -0
  227. package/dist/templates/trellis/scripts/common/worktree.py +219 -0
  228. package/dist/templates/trellis/scripts/create_bootstrap.py +290 -0
  229. package/dist/templates/trellis/scripts/get_context.py +16 -0
  230. package/dist/templates/trellis/scripts/get_developer.py +26 -0
  231. package/dist/templates/trellis/scripts/init_developer.py +51 -0
  232. package/dist/templates/trellis/scripts/multi_agent/__init__.py +5 -0
  233. package/dist/templates/trellis/scripts/multi_agent/cleanup.py +403 -0
  234. package/dist/templates/trellis/scripts/multi_agent/create_pr.py +329 -0
  235. package/dist/templates/trellis/scripts/multi_agent/plan.py +233 -0
  236. package/dist/templates/trellis/scripts/multi_agent/start.py +461 -0
  237. package/dist/templates/trellis/scripts/multi_agent/status.py +817 -0
  238. package/dist/templates/trellis/scripts/task.py +1056 -0
  239. package/dist/templates/trellis/scripts-shell-archive/add-session.sh +384 -0
  240. package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +129 -0
  241. package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +263 -0
  242. package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +208 -0
  243. package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +150 -0
  244. package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +247 -0
  245. package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +142 -0
  246. package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +151 -0
  247. package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +128 -0
  248. package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +299 -0
  249. package/dist/templates/trellis/scripts-shell-archive/get-context.sh +7 -0
  250. package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +15 -0
  251. package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +34 -0
  252. package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
  253. package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
  254. package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +207 -0
  255. package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +317 -0
  256. package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +828 -0
  257. package/dist/templates/trellis/scripts-shell-archive/task.sh +1204 -0
  258. package/dist/templates/trellis/tasks/.gitkeep +0 -0
  259. package/dist/templates/trellis/workflow.md +416 -0
  260. package/dist/templates/trellis/worktree.yaml +47 -0
  261. package/dist/types/ai-tools.d.ts +48 -0
  262. package/dist/types/ai-tools.d.ts.map +1 -0
  263. package/dist/types/ai-tools.js +32 -0
  264. package/dist/types/ai-tools.js.map +1 -0
  265. package/dist/types/migration.d.ts +86 -0
  266. package/dist/types/migration.d.ts.map +1 -0
  267. package/dist/types/migration.js +8 -0
  268. package/dist/types/migration.js.map +1 -0
  269. package/dist/utils/compare-versions.d.ts +12 -0
  270. package/dist/utils/compare-versions.d.ts.map +1 -0
  271. package/dist/utils/compare-versions.js +76 -0
  272. package/dist/utils/compare-versions.js.map +1 -0
  273. package/dist/utils/file-writer.d.ts +23 -0
  274. package/dist/utils/file-writer.d.ts.map +1 -0
  275. package/dist/utils/file-writer.js +140 -0
  276. package/dist/utils/file-writer.js.map +1 -0
  277. package/dist/utils/project-detector.d.ts +16 -0
  278. package/dist/utils/project-detector.d.ts.map +1 -0
  279. package/dist/utils/project-detector.js +188 -0
  280. package/dist/utils/project-detector.js.map +1 -0
  281. package/dist/utils/template-fetcher.d.ts +51 -0
  282. package/dist/utils/template-fetcher.d.ts.map +1 -0
  283. package/dist/utils/template-fetcher.js +174 -0
  284. package/dist/utils/template-fetcher.js.map +1 -0
  285. package/dist/utils/template-hash.d.ts +78 -0
  286. package/dist/utils/template-hash.d.ts.map +1 -0
  287. package/dist/utils/template-hash.js +239 -0
  288. package/dist/utils/template-hash.js.map +1 -0
  289. package/package.json +87 -0
@@ -0,0 +1,154 @@
1
+ # Create New Slash Command
2
+
3
+ Create a new slash command in both `.cursor/commands/` (with `trellis-` prefix) and `.claude/commands/trellis/` directories based on user requirements.
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ /aim:create-command <command-name> <description>
9
+ ```
10
+
11
+ **Example**:
12
+ ```
13
+ /aim:create-command review-pr Check PR code changes against project guidelines
14
+ ```
15
+
16
+ ## Execution Steps
17
+
18
+ ### 1. Parse Input
19
+
20
+ Extract from user input:
21
+ - **Command name**: Use kebab-case (e.g., `review-pr`)
22
+ - **Description**: What the command should accomplish
23
+
24
+ ### 2. Analyze Requirements
25
+
26
+ Determine command type based on description:
27
+ - **Initialization**: Read docs, establish context
28
+ - **Pre-development**: Read guidelines, check dependencies
29
+ - **Code check**: Validate code quality and guideline compliance
30
+ - **Recording**: Record progress, questions, structure changes
31
+ - **Generation**: Generate docs, code templates
32
+
33
+ ### 3. Generate Command Content
34
+
35
+ Based on command type, generate appropriate content:
36
+
37
+ **Simple command** (1-3 lines):
38
+ ```markdown
39
+ Concise instruction describing what to do
40
+ ```
41
+
42
+ **Complex command** (with steps):
43
+ ```markdown
44
+ # Command Title
45
+
46
+ Command description
47
+
48
+ ## Steps
49
+
50
+ ### 1. First Step
51
+ Specific action
52
+
53
+ ### 2. Second Step
54
+ Specific action
55
+
56
+ ## Output Format (if needed)
57
+
58
+ Template
59
+ ```
60
+
61
+ ### 4. Create Files
62
+
63
+ Create in both directories:
64
+ - `.cursor/commands/trellis-<command-name>.md`
65
+ - `.claude/commands/trellis/<command-name>.md`
66
+
67
+ ### 5. Confirm Creation
68
+
69
+ Output result:
70
+ ```
71
+ [OK] Created Slash Command: /<command-name>
72
+
73
+ File paths:
74
+ - .cursor/commands/trellis-<command-name>.md
75
+ - .claude/commands/trellis/<command-name>.md
76
+
77
+ Usage:
78
+ /aim:<command-name>
79
+
80
+ Description:
81
+ <description>
82
+ ```
83
+
84
+ ## Command Content Guidelines
85
+
86
+ ### [OK] Good command content
87
+
88
+ 1. **Clear and concise**: Immediately understandable
89
+ 2. **Executable**: AI can follow steps directly
90
+ 3. **Well-scoped**: Clear boundaries of what to do and not do
91
+ 4. **Has output**: Specifies expected output format (if needed)
92
+
93
+ ### [X] Avoid
94
+
95
+ 1. **Too vague**: e.g., "optimize code"
96
+ 2. **Too complex**: Single command should not exceed 100 lines
97
+ 3. **Duplicate functionality**: Check if similar command exists first
98
+
99
+ ## Naming Conventions
100
+
101
+ | Command Type | Prefix | Example |
102
+ |--------------|--------|---------|
103
+ | Session Start | `start` | `start` |
104
+ | Pre-development | `before-` | `before-frontend-dev` |
105
+ | Check | `check-` | `check-frontend` |
106
+ | Record | `record-` | `record-session` |
107
+ | Generate | `generate-` | `generate-api-doc` |
108
+ | Update | `update-` | `update-changelog` |
109
+ | Other | Verb-first | `review-code`, `sync-data` |
110
+
111
+ ## Example
112
+
113
+ ### Input
114
+ ```
115
+ /aim:create-command review-pr Check PR code changes against project guidelines
116
+ ```
117
+
118
+ ### Generated Command Content
119
+ ```markdown
120
+ # PR Code Review
121
+
122
+ Check current PR code changes against project guidelines.
123
+
124
+ ## Steps
125
+
126
+ ### 1. Get Changed Files
127
+ ```bash
128
+ git diff main...HEAD --name-only
129
+ ```
130
+
131
+ ### 2. Categorized Review
132
+
133
+ **Frontend files** (`apps/web/`):
134
+ - Reference `.aim-studio/spec/frontend/index.md`
135
+
136
+ **Backend files** (`packages/api/`):
137
+ - Reference `.aim-studio/spec/backend/index.md`
138
+
139
+ ### 3. Output Review Report
140
+
141
+ Format:
142
+
143
+ ## PR Review Report
144
+
145
+ ### Changed Files
146
+ - [file list]
147
+
148
+ ### Check Results
149
+ - [OK] Passed items
150
+ - [X] Issues found
151
+
152
+ ### Suggestions
153
+ - [improvement suggestions]
154
+ ```
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: export
3
+ description: 导出剧本用于AI视频生成
4
+ ---
5
+
6
+ # 导出剧本
7
+
8
+ 将剧本导出为可直接粘贴到 AI 视频生成工具(如 Seedance)的格式。
9
+
10
+ ## 导出流程
11
+
12
+ ### 1. 选择导出范围
13
+
14
+ ```bash
15
+ # 导出单集
16
+ /aim:export --ep 1
17
+
18
+ # 导出多集
19
+ /aim:export --ep 1-5
20
+
21
+ # 导出全部
22
+ /aim:export --all
23
+ ```
24
+
25
+ ### 2. 选择导出格式
26
+
27
+ | 格式 | 用途 | 说明 |
28
+ |------|------|------|
29
+ | `seedance` | Seedance Web 端 | 单场次独立 prompt,包含上下文 |
30
+ | `batch` | 批量生成 | 所有场次合并,适合批量处理 |
31
+ | `review` | 预览检查 | 带注释格式,便于检查 |
32
+ | `text` | 纯文本发布 | 去除备注,统一标点 |
33
+
34
+ ### 3. 导出内容结构
35
+
36
+ 每次导出会生成以下文件:
37
+
38
+ ```
39
+ export/
40
+ ├── EP01/
41
+ │ ├── scene_01.txt # 场次1 - 可直接粘贴
42
+ │ ├── scene_02.txt # 场次2 - 可直接粘贴
43
+ │ ├── context.txt # 本集上下文摘要
44
+ │ └── characters.txt # 本集角色参考
45
+ ├── EP02/
46
+ │ └── ...
47
+ └── global_context.txt # 全局设定(角色、世界观)
48
+ ```
49
+
50
+ ---
51
+
52
+ ## Seedance 导出格式
53
+
54
+ ### 单场次 Prompt 模板
55
+
56
+ 每个场次文件包含完整的上下文信息,可直接粘贴:
57
+
58
+ ```
59
+ 【角色设定】
60
+ [角色名]:[外貌描述],[性格关键词]
61
+ (如有多位角色,逐一列出)
62
+
63
+ 【场景设定】
64
+ [场景名称]:[环境描述],[氛围]
65
+
66
+ 【前情提要】(如适用)
67
+ [上一场次的关键事件,1-2句话]
68
+
69
+ 【本场次剧本】
70
+ 场次 X:[场景] - [时间] - [气氛] - [时长]
71
+
72
+ [画面描述]
73
+
74
+ [角色名]:(情绪) 台词
75
+
76
+ [画面描述]
77
+
78
+ ...
79
+
80
+ 【视觉风格】
81
+ [风格关键词,如:xianxia, fantasy, cinematic lighting]
82
+ ```
83
+
84
+ ### 示例输出
85
+
86
+ ```
87
+ 【角色设定】
88
+ 沈安在:白衣中年男子,两鬓霜白,面容俊俏,气质高深莫测。性格:腹黑、护短、爱演。
89
+ 慕容天:少年身形,目光从落寞到坚定。性格:勤奋、尊师重道、意志坚定。
90
+
91
+ 【场景设定】
92
+ 青云峰主殿:破旧的大殿,阳光透过残破窗棂洒落,萧条冷清的氛围。
93
+
94
+ 【前情提要】
95
+ 慕容天决定下山离开,沈安在内心吐槽自己的穿越遭遇。
96
+
97
+ 【本场次剧本】
98
+ 场次 1:青云峰主殿内 - 清晨 - 萧条落寞 - 30秒
99
+
100
+ 白衣中年沈安在瘫坐在太师椅上,神情苦涩。殿外,少年慕容天背着大包小包,站在门口。
101
+
102
+ 慕容天:(低沉) 师父,弟子不孝,今日便要下山继承家业,还望师父珍重!
103
+
104
+ 沈安在听到声音,却懒得出门。镜头推进他的脸,苦涩中带着自嘲。
105
+
106
+ 沈安在:(内心独白) 老天啊,你是让我来这边受折磨的吗?
107
+
108
+ 【视觉风格】
109
+ xianxia, chinese fantasy, cinematic lighting, melancholic atmosphere
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 保持一致性的策略
115
+
116
+ ### 1. 全局上下文文件
117
+
118
+ `global_context.txt` 包含:
119
+ - 核心角色设定(外貌、性格、说话风格)
120
+ - 世界观设定(力量体系、地理环境)
121
+ - 视觉风格关键词
122
+
123
+ **使用方式**:
124
+ - 首次使用时,先粘贴全局上下文
125
+ - 或将全局上下文保存为 Seedance 的"项目设定"
126
+
127
+ ### 2. 集间上下文文件
128
+
129
+ 每集的 `context.txt` 包含:
130
+ - 本集角色状态快照
131
+ - 本集关键事件摘要
132
+ - 上一集结尾状态
133
+
134
+ ### 3. 角色参考文件
135
+
136
+ 每集的 `characters.txt` 包含:
137
+ - 本集出场角色的完整设定
138
+ - SD Prompt 片段
139
+ - 服装变化记录
140
+
141
+ ---
142
+
143
+ ## 执行方式
144
+
145
+ ```bash
146
+ # 交互式导出
147
+ /aim:export
148
+
149
+ # 快速导出(使用默认设置)
150
+ /aim:export --ep 1 --format seedance
151
+
152
+ # 导出纯文本格式
153
+ /aim:export --ep 1 --format text
154
+
155
+ # 导出并打开目录
156
+ /aim:export --ep 1 --open
157
+ ```
158
+
159
+ ---
160
+
161
+ ## 导出后检查清单
162
+
163
+ - [ ] 每个场次文件是否可独立使用?
164
+ - [ ] 角色设定是否完整?
165
+ - [ ] 前情提要是否准确?
166
+ - [ ] 视觉风格是否一致?
167
+ - [ ] 时长是否符合配置?
168
+
169
+ ---
170
+
171
+ ## 注意事项
172
+
173
+ 1. **首次使用**:建议先粘贴 `global_context.txt` 到 Seedance,建立项目基准
174
+ 2. **连续剧**:每集开始前,先粘贴上一集的 `context.txt`
175
+ 3. **角色一致性**:使用相同的角色描述和 SD Prompt 片段
176
+ 4. **时长控制**:根据视频格式配置,调整每场次的字数
177
+
178
+ ---
179
+
180
+ ## 纯文本导出(传统格式)
181
+
182
+ 如需导出为传统发布格式,直接读取当前剧本并整理为适合发布的格式:
183
+ - 去除构建过程中的备注
184
+ - 统一标点符号
185
+ - 优化段落间距
186
+
187
+ 输出目标:纯文本 / 长图文案 / 剧本杀格式(请根据用户需求调整)
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: finish-work
3
+ description: 完成创作并记录工作
4
+ ---
5
+
6
+ # 完成工作
7
+
8
+ 完成当前创作任务后,进行最终检查并记录工作内容。
9
+
10
+ ---
11
+
12
+ ## 适用场景
13
+
14
+ - 完成一集剧本创作
15
+ - 完成一个场次的创作
16
+ - 结束创作会话
17
+
18
+ ---
19
+
20
+ ## 检查清单
21
+
22
+ ### 1. 内容完整性
23
+
24
+ - [ ] 剧本内容是否完整
25
+ - [ ] Seedance 2.0 六要素是否齐全
26
+ - [ ] 角色行为是否符合人设
27
+ - [ ] 剧情逻辑是否连贯
28
+
29
+ ### 2. 格式检查
30
+
31
+ - [ ] 文件格式是否符合规范
32
+ - [ ] 命名是否一致
33
+ - [ ] 段落划分是否合理
34
+
35
+ ### 3. 质量检查
36
+
37
+ - [ ] 是否有明显的逻辑错误
38
+ - [ ] 角色对话是否自然
39
+ - [ ] 场景描述是否清晰
40
+
41
+ ### 4. 相关文件更新
42
+
43
+ - [ ] 是否需要更新角色设定 (character.md)
44
+ - [ ] 是否需要更新世界观设定 (world.md)
45
+ - [ ] 是否需要添加新角色
46
+
47
+ ---
48
+
49
+ ## 执行步骤
50
+
51
+ ### 步骤 1:自我检查
52
+
53
+ 按照上述清单逐项检查。
54
+
55
+ ### 步骤 2:可选检查
56
+
57
+ 如果需要更深入的检查:
58
+
59
+ ```
60
+ /aim:check-story
61
+ ```
62
+
63
+ ### 步骤 3:记录工作
64
+
65
+ 使用记录命令保存本次工作内容:
66
+
67
+ ```bash
68
+ python3 ./.aim-studio/scripts/add_session.py --title "<工作标题>" --summary "<工作摘要>"
69
+ ```
70
+
71
+ ### 步骤 4:报告完成
72
+
73
+ 向用户报告完成的内容和下一步建议。
74
+
75
+ ---
76
+
77
+ ## 组合使用方案
78
+
79
+ ### 完整工作流程
80
+
81
+ ```
82
+ 1. 创作中...
83
+ 2. /aim:check-story → 检查剧情一致性
84
+ 3. 修改问题...
85
+ 4. /aim:finish-work → 完成工作
86
+ 5. /aim:record-session → 记录工作内容
87
+ ```
88
+
89
+ ### 快速完成流程
90
+
91
+ ```
92
+ 1. 创作中...
93
+ 2. /aim:finish-work → 快速完成检查
94
+ ```
95
+
96
+ ---
97
+
98
+ ## 相关命令
99
+
100
+ | 命令 | 用途 |
101
+ |------|------|
102
+ | `/aim:check-story` | 检查剧情一致性 |
103
+ | `/aim:record-session` | 记录工作内容 |
104
+ | `/aim:start` | 开始新会话 |
@@ -0,0 +1,219 @@
1
+ # Integrate Claude Skill into Project Guidelines
2
+
3
+ Adapt and integrate a Claude global skill into your project's development guidelines (not directly into project code).
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ /aim:integrate-skill <skill-name>
9
+ ```
10
+
11
+ **Examples**:
12
+ ```
13
+ /aim:integrate-skill frontend-design
14
+ /aim:integrate-skill mcp-builder
15
+ ```
16
+
17
+ ## Core Principle
18
+
19
+ > [!] **Important**: The goal of skill integration is to update **development guidelines**, not to generate project code directly.
20
+ >
21
+ > - Guidelines content -> Write to `.aim-studio/spec/{target}/doc.md`
22
+ > - Code examples -> Place in `.aim-studio/spec/{target}/examples/skills/<skill-name>/`
23
+ > - Example files -> Use `.template` suffix (e.g., `component.tsx.template`) to avoid IDE errors
24
+ >
25
+ > Where `{target}` is `frontend` or `backend`, determined by skill type.
26
+
27
+ ## Execution Steps
28
+
29
+ ### 1. Read Skill Content
30
+
31
+ ```bash
32
+ openskills read <skill-name>
33
+ ```
34
+
35
+ If the skill doesn't exist, prompt user to check available skills:
36
+ ```bash
37
+ # Available skills are listed in AGENTS.md under <available_skills>
38
+ ```
39
+
40
+ ### 2. Determine Integration Target
41
+
42
+ Based on skill type, determine which guidelines to update:
43
+
44
+ | Skill Category | Integration Target |
45
+ |----------------|-------------------|
46
+ | UI/Frontend (`frontend-design`, `web-artifacts-builder`) | `.aim-studio/spec/frontend/` |
47
+ | Backend/API (`mcp-builder`) | `.aim-studio/spec/backend/` |
48
+ | Documentation (`doc-coauthoring`, `docx`, `pdf`) | `.aim-studio/` or create dedicated guidelines |
49
+ | Testing (`webapp-testing`) | `.aim-studio/spec/frontend/` (E2E) |
50
+
51
+ ### 3. Analyze Skill Content
52
+
53
+ Extract from the skill:
54
+ - **Core concepts**: How the skill works and key concepts
55
+ - **Best practices**: Recommended approaches
56
+ - **Code patterns**: Reusable code templates
57
+ - **Caveats**: Common issues and solutions
58
+
59
+ ### 4. Execute Integration
60
+
61
+ #### 4.1 Update Guidelines Document
62
+
63
+ Add a new section to the corresponding `doc.md`:
64
+
65
+ ```markdown
66
+ @@@section:skill-<skill-name>
67
+ ## # <Skill Name> Integration Guide
68
+
69
+ ### Overview
70
+ [Core functionality and use cases of the skill]
71
+
72
+ ### Project Adaptation
73
+ [How to use this skill in the current project]
74
+
75
+ ### Usage Steps
76
+ 1. [Step 1]
77
+ 2. [Step 2]
78
+
79
+ ### Caveats
80
+ - [Project-specific constraints]
81
+ - [Differences from default behavior]
82
+
83
+ ### Reference Examples
84
+ See `examples/skills/<skill-name>/`
85
+
86
+ @@@/section:skill-<skill-name>
87
+ ```
88
+
89
+ #### 4.2 Create Examples Directory (if code examples exist)
90
+
91
+ ```bash
92
+ # Directory structure ({target} = frontend or backend)
93
+ .aim-studio/spec/{target}/
94
+ |-- doc.md # Add skill-related section
95
+ |-- index.md # Update index
96
+ +-- examples/
97
+ +-- skills/
98
+ +-- <skill-name>/
99
+ |-- README.md # Example documentation
100
+ |-- example-1.ts.template # Code example (use .template suffix)
101
+ +-- example-2.tsx.template
102
+ ```
103
+
104
+ **File naming conventions**:
105
+ - Code files: `<name>.<ext>.template` (e.g., `component.tsx.template`)
106
+ - Config files: `<name>.config.template` (e.g., `tailwind.config.template`)
107
+ - Documentation: `README.md` (normal suffix)
108
+
109
+ #### 4.3 Update Index File
110
+
111
+ Add to the Quick Navigation table in `index.md`:
112
+
113
+ ```markdown
114
+ | <Skill-related task> | <Section name> | `skill-<skill-name>` |
115
+ ```
116
+
117
+ ### 5. Generate Integration Report
118
+
119
+ ---
120
+
121
+ ## Skill Integration Report: `<skill-name>`
122
+
123
+ ### # Overview
124
+ - **Skill description**: [Functionality description]
125
+ - **Integration target**: `.aim-studio/spec/{target}/`
126
+
127
+ ### # Tech Stack Compatibility
128
+
129
+ | Skill Requirement | Project Status | Compatibility |
130
+ |-------------------|----------------|---------------|
131
+ | [Tech 1] | [Project tech] | [OK]/[!]/[X] |
132
+
133
+ ### # Integration Locations
134
+
135
+ | Type | Path |
136
+ |------|------|
137
+ | Guidelines doc | `.aim-studio/spec/{target}/doc.md` (section: `skill-<name>`) |
138
+ | Code examples | `.aim-studio/spec/{target}/examples/skills/<name>/` |
139
+ | Index update | `.aim-studio/spec/{target}/index.md` |
140
+
141
+ > `{target}` = `frontend` or `backend`
142
+
143
+ ### # Dependencies (if needed)
144
+
145
+ ```bash
146
+ # Install required dependencies (adjust for your package manager)
147
+ npm install <package>
148
+ # or
149
+ pnpm add <package>
150
+ # or
151
+ yarn add <package>
152
+ ```
153
+
154
+ ### [OK] Completed Changes
155
+
156
+ - [ ] Added `@@@section:skill-<name>` section to `doc.md`
157
+ - [ ] Added index entry to `index.md`
158
+ - [ ] Created example files in `examples/skills/<name>/`
159
+ - [ ] Example files use `.template` suffix
160
+
161
+ ### # Related Guidelines
162
+
163
+ - [Existing related section IDs]
164
+
165
+ ---
166
+
167
+ ## 6. Optional: Create Usage Command
168
+
169
+ If this skill is frequently used, create a shortcut command:
170
+
171
+ ```bash
172
+ /aim:create-command use-<skill-name> Use <skill-name> skill following project guidelines
173
+ ```
174
+
175
+ ## Common Skill Integration Reference
176
+
177
+ | Skill | Integration Target | Examples Directory |
178
+ |-------|-------------------|-------------------|
179
+ | `frontend-design` | `frontend` | `examples/skills/frontend-design/` |
180
+ | `mcp-builder` | `backend` | `examples/skills/mcp-builder/` |
181
+ | `webapp-testing` | `frontend` | `examples/skills/webapp-testing/` |
182
+ | `doc-coauthoring` | `.aim-studio/` | N/A (documentation workflow only) |
183
+
184
+ ## Example: Integrating `mcp-builder` Skill
185
+
186
+ ### Directory Structure
187
+
188
+ ```
189
+ .aim-studio/spec/backend/
190
+ |-- doc.md # Add MCP section
191
+ |-- index.md # Add index entry
192
+ +-- examples/
193
+ +-- skills/
194
+ +-- mcp-builder/
195
+ |-- README.md
196
+ |-- server.ts.template
197
+ |-- tools.ts.template
198
+ +-- types.ts.template
199
+ ```
200
+
201
+ ### New Section in doc.md
202
+
203
+ ```markdown
204
+ @@@section:skill-mcp-builder
205
+ ## # MCP Server Development Guide
206
+
207
+ ### Overview
208
+ Create LLM-callable tool services using MCP (Model Context Protocol).
209
+
210
+ ### Project Adaptation
211
+ - Place services in a dedicated directory
212
+ - Follow existing TypeScript and type definition conventions
213
+ - Use project's logging system
214
+
215
+ ### Reference Examples
216
+ See `examples/skills/mcp-builder/`
217
+
218
+ @@@/section:skill-mcp-builder
219
+ ```