@automovie/template 0.2.0 → 0.3.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 (265) hide show
  1. package/README.md +2 -2
  2. package/generated/pnpm-workspace.json +3 -3
  3. package/generated/skills/3d-modeling/conditioning.md +42 -34
  4. package/generated/skills/3d-modeling/crafting/SKILL.md +6 -6
  5. package/generated/skills/3d-modeling/crafting/construction.md +22 -29
  6. package/generated/skills/3d-modeling/crafting/lofting.md +26 -24
  7. package/generated/skills/3d-modeling/crafting/recovery.md +8 -8
  8. package/generated/skills/3d-modeling/diffusion/image-hints.md +5 -5
  9. package/generated/skills/3d-modeling/diffusion/models.md +32 -16
  10. package/generated/skills/3d-modeling/diffusion/prompts.md +3 -3
  11. package/generated/skills/3d-modeling/diffusion/request.md +7 -5
  12. package/generated/skills/3d-modeling/diffusion/shape-hints.md +19 -17
  13. package/generated/skills/3d-modeling/inspection.md +11 -9
  14. package/generated/skills/3d-modeling/modularization.md +9 -9
  15. package/generated/skills/3d-modeling/rigging.md +44 -35
  16. package/generated/skills/3d-modeling/sources.md +10 -10
  17. package/generated/skills/contracts/development/common.md +4 -4
  18. package/generated/skills/contracts/development/design.md +4 -4
  19. package/generated/skills/contracts/development/implementation.md +7 -7
  20. package/generated/skills/contracts/development/testing.md +4 -4
  21. package/generated/skills/development/repair.md +2 -4
  22. package/generated/skills/documentation/SKILL.md +4 -4
  23. package/generated/skills/documentation/writing.md +56 -34
  24. package/generated/skills/motion/laws/authoring.md +20 -30
  25. package/generated/skills/motion/laws/contacts.md +13 -13
  26. package/generated/skills/motion/laws/declaration.md +8 -6
  27. package/generated/skills/motion/laws/transitions.md +20 -18
  28. package/generated/skills/motion/laws/variation.md +6 -6
  29. package/generated/skills/motion/laws/verification.md +8 -6
  30. package/generated/skills/prompting/SKILL.md +52 -34
  31. package/generated/skills/visual-debugging/capture.md +24 -22
  32. package/generated/skills/visual-debugging/comparison.md +4 -4
  33. package/generated/skills/visual-debugging/correction-rounds.md +6 -15
  34. package/generated/skills/visual-debugging/passes.md +11 -11
  35. package/generated/skills/visual-debugging/rendering-cost.md +2 -2
  36. package/lib/createAutoMovieScaffold.js +2 -20
  37. package/lib/createAutoMovieScaffold.js.map +1 -1
  38. package/lib/index.d.ts +1 -0
  39. package/lib/index.js +1 -0
  40. package/lib/index.js.map +1 -1
  41. package/lib/renderAutoMovieWorkspace.d.ts +22 -0
  42. package/lib/renderAutoMovieWorkspace.js +141 -0
  43. package/lib/renderAutoMovieWorkspace.js.map +1 -0
  44. package/package.json +5 -5
  45. package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +22 -21
  46. package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -7
  47. package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +14 -10
  48. package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -10
  49. package/scaffold/instructions/.agents/skills/audio/acquisition.md +16 -18
  50. package/scaffold/instructions/.agents/skills/audio/diffusion/SKILL.md +18 -0
  51. package/scaffold/instructions/.agents/skills/audio/diffusion/cloning.md +25 -0
  52. package/scaffold/instructions/.agents/skills/audio/diffusion/models.md +59 -0
  53. package/scaffold/instructions/.agents/skills/audio/diffusion/prompts.md +45 -0
  54. package/scaffold/instructions/.agents/skills/audio/film-sound.md +7 -5
  55. package/scaffold/instructions/.agents/skills/audio/generated-sound.md +5 -3
  56. package/scaffold/instructions/.agents/skills/audio/listening.md +13 -0
  57. package/scaffold/instructions/.agents/skills/audio/sound-effects.md +6 -6
  58. package/scaffold/instructions/.agents/skills/audio/soundtrack.md +4 -2
  59. package/scaffold/instructions/.agents/skills/automovie/SKILL.md +32 -0
  60. package/scaffold/instructions/.agents/skills/contracts/SKILL.md +6 -29
  61. package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +13 -13
  62. package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +18 -7
  63. package/scaffold/instructions/.agents/skills/contracts/development/composition.md +9 -6
  64. package/scaffold/instructions/.agents/skills/contracts/development/entities.md +6 -7
  65. package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +18 -20
  66. package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +4 -6
  67. package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +12 -13
  68. package/scaffold/instructions/.agents/skills/contracts/items.md +26 -0
  69. package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +37 -25
  70. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +1 -1
  71. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
  72. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
  73. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
  74. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +1 -1
  75. package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
  76. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +4 -4
  77. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +2 -2
  78. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +1 -1
  79. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +1 -1
  80. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +2 -2
  81. package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +2 -2
  82. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +1 -1
  83. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +1 -1
  84. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +2 -2
  85. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +2 -2
  86. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +2 -2
  87. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +1 -1
  88. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +2 -2
  89. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +1 -1
  90. package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +1 -1
  91. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +1 -1
  92. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +1 -1
  93. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +1 -1
  94. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +2 -2
  95. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -2
  96. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +3 -3
  97. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +3 -3
  98. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +2 -2
  99. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +1 -1
  100. package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +2 -2
  101. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +1 -3
  102. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +3 -5
  103. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +1 -3
  104. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +0 -2
  105. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +1 -3
  106. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +1 -3
  107. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +1 -3
  108. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +11 -14
  109. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +1 -3
  110. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +1 -3
  111. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +3 -5
  112. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +2 -4
  113. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +1 -4
  114. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +6 -6
  115. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +1 -3
  116. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +2 -4
  117. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +3 -5
  118. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +5 -7
  119. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +5 -7
  120. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +2 -4
  121. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +6 -8
  122. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +1 -3
  123. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +4 -6
  124. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +2 -4
  125. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +2 -4
  126. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +3 -5
  127. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +1 -3
  128. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +6 -8
  129. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +5 -7
  130. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +19 -22
  131. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +9 -11
  132. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +3 -5
  133. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +1 -3
  134. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +1 -3
  135. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +1 -3
  136. package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +0 -2
  137. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +1 -1
  138. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +1 -1
  139. package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +1 -1
  140. package/scaffold/instructions/.agents/skills/development/SKILL.md +14 -24
  141. package/scaffold/instructions/.agents/skills/development/entities.md +19 -15
  142. package/scaffold/instructions/.agents/skills/development/modules.md +31 -0
  143. package/scaffold/instructions/.agents/skills/development/source-layout.md +66 -50
  144. package/scaffold/instructions/.agents/skills/development/testing.md +10 -11
  145. package/scaffold/instructions/.agents/skills/evidence/SKILL.md +7 -7
  146. package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
  147. package/scaffold/instructions/.agents/skills/evidence/answering.md +3 -3
  148. package/scaffold/instructions/.agents/skills/evidence/configuration.md +4 -4
  149. package/scaffold/instructions/.agents/skills/image/SKILL.md +8 -19
  150. package/scaffold/instructions/.agents/skills/image/canon-references.md +16 -6
  151. package/scaffold/instructions/.agents/skills/image/diffusion/SKILL.md +23 -0
  152. package/scaffold/instructions/.agents/skills/image/diffusion/conditioning.md +29 -0
  153. package/scaffold/instructions/.agents/skills/image/diffusion/consistency.md +25 -0
  154. package/scaffold/instructions/.agents/skills/image/diffusion/editing.md +15 -0
  155. package/scaffold/instructions/.agents/skills/image/diffusion/finishing.md +11 -0
  156. package/scaffold/instructions/.agents/skills/image/diffusion/models.md +35 -0
  157. package/scaffold/instructions/.agents/skills/image/diffusion/prompting.md +27 -0
  158. package/scaffold/instructions/.agents/skills/image/turnaround-views.md +6 -2
  159. package/scaffold/instructions/.agents/skills/motion/SKILL.md +15 -32
  160. package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +15 -15
  161. package/scaffold/instructions/.agents/skills/motion/compose/composition.md +34 -26
  162. package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +5 -5
  163. package/scaffold/instructions/.agents/skills/motion/control-channels.md +14 -10
  164. package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +12 -8
  165. package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +23 -9
  166. package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +20 -8
  167. package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -16
  168. package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +18 -12
  169. package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +6 -6
  170. package/scaffold/instructions/.agents/skills/motion/judgment.md +37 -0
  171. package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +11 -11
  172. package/scaffold/instructions/.agents/skills/motion/laws/extension.md +15 -11
  173. package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +47 -17
  174. package/scaffold/instructions/.agents/skills/motion/performance.md +11 -0
  175. package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +15 -15
  176. package/scaffold/instructions/.agents/skills/motion/retargeting.md +5 -5
  177. package/scaffold/instructions/.agents/skills/motion/segment-review.md +7 -5
  178. package/scaffold/instructions/.agents/skills/motion/staging.md +10 -8
  179. package/scaffold/instructions/.agents/skills/production/SKILL.md +11 -38
  180. package/scaffold/instructions/.agents/skills/production/assembly.md +11 -5
  181. package/scaffold/instructions/.agents/skills/production/captions.md +4 -4
  182. package/scaffold/instructions/.agents/skills/production/director.md +17 -0
  183. package/scaffold/instructions/.agents/skills/production/media-records.md +33 -11
  184. package/scaffold/instructions/.agents/skills/production/project-context.md +64 -22
  185. package/scaffold/instructions/.agents/skills/production/reorganization.md +3 -3
  186. package/scaffold/instructions/.agents/skills/production/stage-caches.md +7 -11
  187. package/scaffold/instructions/.agents/skills/production/sustained-runs.md +7 -7
  188. package/scaffold/instructions/.agents/skills/production/workflow.md +45 -0
  189. package/scaffold/instructions/.agents/skills/review/SKILL.md +10 -15
  190. package/scaffold/instructions/.agents/skills/review/delivery-review.md +51 -30
  191. package/scaffold/instructions/.agents/skills/review/estimation.md +32 -13
  192. package/scaffold/instructions/.agents/skills/review/independent-reading.md +6 -4
  193. package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +7 -7
  194. package/scaffold/instructions/.agents/skills/review/source-review.md +5 -9
  195. package/scaffold/instructions/.agents/skills/story/SKILL.md +10 -13
  196. package/scaffold/instructions/.agents/skills/story/answers.md +10 -10
  197. package/scaffold/instructions/.agents/skills/story/correction/inspection.md +10 -12
  198. package/scaffold/instructions/.agents/skills/story/correction/repair.md +20 -14
  199. package/scaffold/instructions/.agents/skills/story/document-layout.md +32 -17
  200. package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +11 -9
  201. package/scaffold/instructions/.agents/skills/story/layers/brief.md +4 -8
  202. package/scaffold/instructions/.agents/skills/story/layers/notation.md +8 -6
  203. package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +20 -12
  204. package/scaffold/instructions/.agents/skills/story/layers/scripts.md +3 -3
  205. package/scaffold/instructions/.agents/skills/story/layers/settings.md +28 -11
  206. package/scaffold/instructions/.agents/skills/story/layers/shots.md +8 -8
  207. package/scaffold/instructions/.agents/skills/story/layers/treatments.md +3 -3
  208. package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +7 -7
  209. package/scaffold/instructions/.agents/skills/story/planning/direction.md +2 -2
  210. package/scaffold/instructions/.agents/skills/story/planning/discovery.md +9 -7
  211. package/scaffold/instructions/.agents/skills/story/planning/requirements.md +10 -8
  212. package/scaffold/instructions/.agents/skills/story/planning/research.md +15 -18
  213. package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +8 -7
  214. package/scaffold/instructions/.agents/skills/story/workflow/long.md +18 -14
  215. package/scaffold/instructions/.agents/skills/story/workflow/routes.md +23 -17
  216. package/scaffold/instructions/.agents/skills/story/workflow/short.md +22 -14
  217. package/scaffold/instructions/.agents/skills/video/SKILL.md +9 -14
  218. package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +7 -7
  219. package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +6 -6
  220. package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +29 -12
  221. package/scaffold/instructions/.agents/skills/video/diffusion/models.md +40 -19
  222. package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +23 -15
  223. package/scaffold/instructions/.agents/skills/video/direct-film.md +53 -0
  224. package/scaffold/instructions/.agents/skills/video/finishing.md +14 -12
  225. package/scaffold/instructions/.agents/skills/video/generated-film.md +24 -0
  226. package/scaffold/instructions/.agents/skills/video/generation.md +25 -17
  227. package/scaffold/instructions/.agents/skills/video/requests.md +8 -8
  228. package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +20 -18
  229. package/scaffold/instructions/AGENTS.md +46 -46
  230. package/scaffold/production/README.md +10 -19
  231. package/scaffold/production/package.json +1 -1
  232. package/scaffold/production/src/IFilmProduction.ts +22 -3
  233. package/scaffold/production/src/executable/physics.ts +8 -4
  234. package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +4 -4
  235. package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +5 -3
  236. package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +7 -7
  237. package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +4 -2
  238. package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +3 -3
  239. package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +3 -3
  240. package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +4 -2
  241. package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +2 -2
  242. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +17 -18
  243. package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +17 -18
  244. package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +4 -4
  245. package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +37 -21
  246. package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +25 -15
  247. package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +1 -1
  248. package/scaffold/production/src/markFilmProduction.ts +1 -1
  249. package/scaffold/production/src/subjects.ts +28 -7
  250. package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +129 -0
  251. package/scaffold/production/tsconfig.json +1 -2
  252. package/scaffold/production/vite.config.ts +12 -0
  253. package/scaffold/workspace/README.md +2 -2
  254. package/scaffold/workspace/package.json +1 -1
  255. package/src/createAutoMovieScaffold.ts +2 -39
  256. package/src/index.ts +1 -0
  257. package/src/renderAutoMovieWorkspace.ts +157 -0
  258. package/scaffold/instructions/.agents/skills/development/reuse.md +0 -48
  259. package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +0 -51
  260. package/scaffold/instructions/.agents/skills/image/conditioning.md +0 -27
  261. package/scaffold/instructions/.agents/skills/image/consistency.md +0 -23
  262. package/scaffold/instructions/.agents/skills/image/editing.md +0 -15
  263. package/scaffold/instructions/.agents/skills/image/finishing.md +0 -11
  264. package/scaffold/instructions/.agents/skills/image/models.md +0 -18
  265. package/scaffold/instructions/.agents/skills/image/prompting.md +0 -25
@@ -1,82 +1,100 @@
1
1
  ---
2
2
  name: prompting
3
- description: Owns what makes an instruction for an agent work, namely what to state, reasons and examples, one owner per rule, routing to packages, the layout and splitting of skills, what a shared skill may hold and how a prompt is verified. Use before changing AGENTS.md, CLAUDE.md or a skill.
3
+ description: Sets what makes an instruction for an agent work.
4
4
  ---
5
5
 
6
6
  # Prompting
7
7
 
8
- A prompt is any instruction an agent reads: `AGENTS.md`, `CLAUDE.md`, a skill or one of its resources. Every prompt follows the documentation skill's [Writing](../documentation/writing.md) rules, with someone new to the project as the reader, because wording that serves that person serves the agent too. The rules below are what makes a prompt work for an agent.
8
+ Apply [Writing](../documentation/writing.md) to entry files, skills and their resources. Write for a reader new to the project.
9
9
 
10
- Before editing a prompt, fetch and read in full the current prompting guide for the model that will read it, rather than recalling it, because it changes with each model. Where it disagrees with the user's rules in this repository, the user's rules win.
10
+ Base agent instructions on the current [GPT-6.2 prompting guide](https://developers.openai.com/api/docs/guides/latest-model/gpt-6.2-astra#prompting-best-practices) and consult it for model-dependent changes. Keep model, effort and tools in run configuration.
11
11
 
12
- ## What to state
12
+ For direct Responses API integrations, follow the [prefix guidance](https://developers.openai.com/api/docs/guides/keep-prefix-unchanged) for durable instructions and appended updates.
13
13
 
14
- State only facts the code does not show, rules the user set, and mistakes an agent made, each concretely enough that a reader can tell whether it was followed. Leave dates and history to git.
14
+ ## Content
15
15
 
16
- [Writing](../documentation/writing.md) asks for a reason when it is not obvious. For a consequential instruction, that reason names who loses what when it is missed and sits in the instruction itself, because a source comment or an unexplained prohibition cannot guide a case the instruction did not list.
16
+ ### What to state
17
17
 
18
- Leave the method to the agent unless a known failure requires a particular order or boundary. Where a skill does name methods, it gives one default and says when to leave it.
18
+ State checkable requirements and failure cases the code does not show. Keep history in Git.
19
19
 
20
- Keep examples few and varied, because an agent copies an example's surface.
20
+ Explain a rule when its reason guides unlisted cases.
21
21
 
22
- ## One owner
22
+ Prescribe a method only to prevent a known failure.
23
23
 
24
- Give each rule one owner, the one section of one file that states it, as [Writing](../documentation/writing.md) requires, and link to it from every other place that needs it, so a task receives one consistent requirement. When moving a rule, update every link to it.
24
+ State the deliverable, recipient, acceptance checks and decisions reserved for the user. Disclose consequential delegated choices.
25
25
 
26
- Resolve two conflicting rules in the skills or `AGENTS.md` that one project owns by changing one of them, never by adding a rule about which one wins, because a model applies a stated priority unreliably.
26
+ Use a short example when it disambiguates the rule.
27
27
 
28
- ## Packages
28
+ ### Default route
29
29
 
30
- A skill that needs a package names it and leaves the rest to it. Unless the skill maintains that package, it copies none of the package's function names, command lines, file paths or features, because a copy in a skill cannot be kept in step with the package. The package's types and JSDoc own its API, and its README its entry points.
30
+ State the default first.
31
+
32
+ List each optional route, folder, command or stage with its enabling condition.
33
+
34
+ ### One owner
35
+
36
+ Define each rule in one section. Link to that section from its consumers and update the links when the rule moves.
37
+
38
+ Fix an existing rule's application when it covers the failure. Change the rule at its owner when coverage is missing or conflicting.
39
+
40
+ ### Packages
41
+
42
+ The package's types and JSDoc own its API, and its README its entry points.
31
43
 
32
44
  ## Skills and contracts
33
45
 
34
- A skill gives a job's goal and boundaries, and points to the checklists it relies on without restating their items.
46
+ For creation tasks, state what to make, which decisions belong to this step and what the next step can decide. Keep detailed failure checks in the relevant contracts and link to them.
47
+
48
+ Put a rule every Evidence-selected declaration, document or record must meet in the responsible [contract](../contracts/SKILL.md) item.
35
49
 
36
- An agent does not reliably follow long, detailed or conditional prose. A rule that every declaration, document or record Evidence selects must meet therefore belongs in a [contracts](../contracts/SKILL.md) checklist, under the item whose question covers it or as a new item under its own H2. Each selected one answers it as the item's respondent, and the contracts skill names who checks that the answer is true and complete.
50
+ Give each statement one checkable assertion with its exceptions. Say whether failure lists are exhaustive. Where both matter, judge omission and excess together.
37
51
 
38
- A rule that must hold on every action, such as a forbidden command, belongs in a hook or a check that runs, not only in prose, because prose can be missed.
52
+ Check new requirements for overlap and conflicts. Record the support and limits of new quality claims before adopting them.
39
53
 
40
- Put judgments the agent makes in one reading into one checklist item, and split them into separate items when their task, respondent, proof or repair owner (whoever fixes a failure) differs. Ask about the overall achievement in its own item, separate from the items that check its parts, because passing every part does not prove the whole works.
54
+ Enforce rules that apply to every action with a hook or executable check.
55
+
56
+ Update the check and its documented rule together.
57
+
58
+ Group judgments that share the task, respondent, proof and repair owner. Give the overall outcome its own item.
41
59
 
42
60
  ## Layout
43
61
 
44
62
  ### Entry files
45
63
 
46
- [`AGENTS.md`](../../../AGENTS.md) holds what every session needs, in under 200 lines, and lists every top-level skill with its trigger, the task that calls for it, because an agent that does not scan `.agents/skills` finds a skill only through `AGENTS.md`. Start each trigger with the task's verb, such as `Changing` or `Reviewing`. [`CLAUDE.md`](../../../CLAUDE.md) holds only `@AGENTS.md`, which imports that file.
64
+ Keep `AGENTS.md` under 200 lines. Include session-wide rules and a trigger for each top-level skill. Briefly summarize a skill's core instruction when a reader needs it to start work, and link to the section that owns it.
65
+
66
+ Start each trigger with the task's verb. Keep only `@AGENTS.md` in `CLAUDE.md`.
47
67
 
48
68
  ### Skill files
49
69
 
50
- A job with its own trigger gets its own top-level skill at `.agents/skills/<name>/SKILL.md`. Its `name` equals the directory and uses lowercase letters, digits and hyphens, within 64 characters. Its third-person `description`, within 1024 characters, says what the skill does and when to use it.
70
+ Give each distinct task a top-level `.agents/skills/<name>/SKILL.md`. Match `name` to its directory using at most 64 lowercase letters, digits and hyphens. Give the skill a short, specific third-person description.
51
71
 
52
72
  ### Splitting a skill
53
73
 
54
- `SKILL.md` stays short, far under 500 lines: what the skill is for, when to read it, and, once it has resources, which resource each task needs. An agent loads it on every use of the skill, so everything in it that the task at hand does not need costs attention on every task. Put first what every use needs, because an agent follows earlier text more reliably and a compacted context keeps only the start.
74
+ Keep `SKILL.md` well under 500 lines. Route multiple workflows from a short scope, shared rules and a trigger for each resource. See [OpenAI's skill guidance](https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra).
55
75
 
56
- Split when any of these shows:
76
+ Split unrelated workflows, task-specific sections and material the opening cannot introduce.
57
77
 
58
- - several unrelated tasks in one file;
59
- - a section only some tasks need;
60
- - more content than the opening can introduce.
78
+ Put optional material beside the router. Review resources over about 100 lines for separable tasks. Name a child router for its parent and folder.
61
79
 
62
- Such a section moves into a resource file beside `SKILL.md`, and a resource longer than about 100 lines usually holds one to move. A group of files with one purpose moves into a subfolder with its own routing `SKILL.md`, at any depth, whose `name` joins the parent's and the folder's, such as `story-planning`.
80
+ Give each resource one task it can explain on its own, a descriptive name and an opening. Link it from the nearest router, directly or by path pattern. Merge pages that add no independent guidance.
63
81
 
64
- Each resource needs three things:
65
-
66
- - a name that states its subject;
67
- - an opening that states its subject, in its own words;
68
- - a direct link, or a stated path pattern, from the nearest router above it.
82
+ Group model instructions by technique. Keep provider examples together and defer parameters to provider documentation.
69
83
 
70
84
  ### Helpers
71
85
 
72
- Put repeated deterministic operations in tested helpers, reusing existing tools before adding another. Link each helper's command for a task from the resource covering that task, and take examples from code that already calls the helper rather than copying the helper's code into the prompt.
86
+ Reuse tested helpers for repeated deterministic work. Link the command from the relevant resource and draw examples from its existing callers.
73
87
 
74
88
  ## Shared skills
75
89
 
76
- A skill shared with other projects, such as one a project template ships, holds only what is universal, orthodox and valid in every receiving project, because each of them follows it as written. It names tools, owners and records by their role, leaves one project's paths, packages and decisions to that project's own skills, and assumes no particular agent model.
90
+ Share only rules valid for every receiving project.
91
+
92
+ Name tools, owners and records by role. Leave project decisions and paths to project skills and model-specific settings to the task.
77
93
 
78
94
  ## Verification
79
95
 
80
- Start a change from the actual failure it must fix, kept as a case. Check the changed instructions against that case, against the strongest similar legitimate case they must leave unchanged, and against a real task they govern, including the files that use that task's result. When a separate agent session is available and authorized, give it the task and raw inputs without the intended answer and observe its choices.
96
+ Check the original failure, a similar valid case and a real task through its consumers.
97
+
98
+ When authorized and available, give a fresh agent the task and raw inputs. Withhold intended changes and verdicts except where the review workflow needs them. Record actions, opened pages and guesses. For model-dependent changes, compare the same cases and record model, runtime and effort.
81
99
 
82
- Check statically that links resolve, triggers reach their resources and each rule has one owner. Report static inspection, behavioral observation and unavailable checks separately, because explaining a rule does not prove another session follows it.
100
+ Check links, triggers and rule ownership. Compare outputs, pages opened and words read on the same tasks before and after. Report observed behavior and unavailable checks alongside static results.
@@ -1,62 +1,64 @@
1
1
  # Capture
2
2
 
3
- A capture is the stills, contact sheets and record that one plan produces. This page owns keeping the instrument that draws them working, the conditions that make them repeatable, and the choice of subject, views and times.
3
+ One capture contains the stills, contact sheets and record of one plan.
4
4
 
5
5
  ## Restoring the instrument
6
6
 
7
- The instrument, the inspection and capture core with the inspector page and the capture host that drive it, is one tool. Restore a broken one before other work, because every judgment of a picture passes through it. Confirm through the actual consumer the adopted scene, its required subjects, the current displayed artifact and the relevant controls, seeking, playback and capture, and protect other owners' processes meanwhile.
7
+ Restore the instrument before other work. Verify required subjects, the displayed artifact, controls, seeking, playback and capture through the affected consumer. Protect other owners' processes.
8
8
 
9
- Repair a missing capability at its owner, or report it where the project cannot change that owner; a view, pass or selection the judgment needs and the instrument lacks is a missing capability too. Once it is repaired, reconnect and verify the actual consumer, because a build, a server response or an unrelated demonstration does not prove recovery.
9
+ Fix broken or missing capabilities at their owner, including needed views, passes and selections. Reconnect and verify the consumer, or report an ownership block.
10
10
 
11
11
  ## Plan
12
12
 
13
- Before capturing, write what the stills must show as questions with a yes or no answer, such as whether every leg reaches the floor or whether the fist arrives before the head turns, and answer each from the stills, because an overall impression passes over what a definite question finds.
13
+ Before capture, write yes-or-no questions for the observation. Answer them from the stills.
14
14
 
15
- The questions fix the capture's cells. A cell is one still, fixed by its subject, its time or pose, its view and its [pass](passes.md). Plan every cell the questions need before drawing any, so one run gathers the whole round's evidence.
15
+ Plan one cell per required subject, time or pose, view and [pass](passes.md). Gather all evidence for the round in one run.
16
16
 
17
17
  ## Conditions
18
18
 
19
- Capture the actual consumer with current source, and record what repeats the observation: the source revision, asset identities, input, time or pose, resolved camera, light, pass, raster size, renderer and detail settings. The capture's record keeps the revision, the request and each still's resolved camera and renderer backend, so that revision must fix the assets, light and detail settings.
19
+ Capture the actual consumer at the current revision. Record assets, input, time or pose, resolved camera, light, pass, size, renderer and detail settings. Tie assets, light and detail to the revision.
20
20
 
21
- The renderer is one of the conditions. A simplified renderer establishes pose, contact, staging and silhouette; material, lighting, shadow and texture are judged on the renderer that draws the delivered picture.
21
+ Use a simplified renderer for pose, contacts, staging and silhouette. Judge materials, lighting, shadows and textures on the delivery renderer.
22
22
 
23
23
  A result holds for the use its capture covered; broader reuse needs broader subjects, views, times and states.
24
24
 
25
- ## Subject
25
+ ## Cells
26
26
 
27
- A unit that passes alone can fail against its neighbor, and close-ups that each pass can add up to a whole that fails at first sight, so choose the selections the questions need from all of these:
27
+ ### Subject
28
+
29
+ Select the coverage the questions need:
28
30
 
29
31
  - the whole, as a viewer first meets it;
30
32
  - each unit alone;
31
33
  - each unit with the neighbors it touches or shares a boundary with;
32
34
  - each defect's region.
33
35
 
34
- Select by the groups and parts the subject's own definition names, and keep enough of the reference or the neighbors visible to read placement and depth. Confirm from the capture's record that each selection matched what was meant, because an empty selection draws a still with no defect in it.
36
+ Select by the subject's own group and part names. Keep enough reference or surrounding geometry visible to judge placement and depth. Confirm the selection in the capture record.
35
37
 
36
- ## Views
38
+ ### Views
37
39
 
38
- Name each view so that it repeats: a direction, a distance or scale and a target, or the delivery's own camera. Front and side alone hide what faces neither, so add the back, the top, the quarters and the high and low obliques the subject needs. To tell a wrong bend from a foreshortened one, capture the same cells from a second view.
40
+ Name each view by direction, distance or scale and target, or use the delivery camera. Add angles to expose occlusions and a second view to distinguish shape from foreshortening.
39
41
 
40
- Frame a close-up on the affected region from outside the subject. A view that fits itself to its subject resolves to another camera when the subject changes, so the record keeps the resolved camera for a later [comparison](comparison.md#matched-cells).
42
+ Frame a close-up from outside the subject. Reuse its resolved camera in later [comparisons](comparison.md#matched-cells).
41
43
 
42
- ## Times
44
+ ### Times
43
45
 
44
- Read a moving picture as stills in time order, sampled at five to ten stills per second and at the denser end where more happens, because at a sparser spacing the stills no longer show how one pose becomes the next.
46
+ Sample in time order at five to ten stills per second. Sample faster action at the higher rate.
45
47
 
46
- Around every contact, cut, join and decisive instant, capture the output's own consecutive frames, because a contact shorter than the gap between two stills leaves an arm out and an arm back with nothing wrong between them. Sparse stills never replace those frames.
48
+ Capture consecutive output frames around contacts, cuts, joins and decisive instants.
47
49
 
48
- Sample an encoded or generated file from the file itself, at the same seconds as its source, because stills of the source cannot show what the file holds.
50
+ Sample the encoded or generated file at the same times as its source.
49
51
 
50
- A reviewer who sees a moving picture only as stills says so, and claims nothing about how it plays that the stills do not show.
52
+ Report playback coverage as stills only.
51
53
 
52
54
  ## Stills and sheets
53
55
 
54
- Read a contact sheet first for the whole capture, with each cell captioned by what fixes it. A sheet shrinks every still, so open the full-size still wherever a contact, a joint, a seam or a small part decides the judgment.
56
+ Read contact sheets with labeled cells. Open full-size stills for detail that decides the finding.
55
57
 
56
- Lay sheets out for their reader. A vision model downsizes an image over its longest-edge or token limit and reads detail unreliably below a smallest edge; take these limits from the reading model's documentation, such as the [Claude vision guide](https://platform.claude.com/docs/en/build-with-claude/vision). Keep every sheet within them and every cell at least the smallest, and spread the cells over more sheets rather than shrink them.
58
+ Use the reading model's documented image limits and enough pixels per cell to see the deciding detail. Split oversized sheets and open full-size stills or crops when necessary. For GPT image inputs, see [Images and vision](https://developers.openai.com/api/docs/guides/images-vision#analyze-images).
57
59
 
58
- A cell that could not be drawn stays on the sheet with its cause and stays unverified; an uncomputed subject is unavailable evidence.
60
+ Mark missing cells with their cause and leave them unverified.
59
61
 
60
62
  ## Rounds
61
63
 
62
- Keep each round's capture apart from the next, with its record, under a name that states its round or revision, given when capturing it. A record still marked unfinished belongs to an interrupted capture, so capture that round again rather than read it.
64
+ Save each capture and record under its round or revision. Recapture any unfinished round.
@@ -1,6 +1,6 @@
1
1
  # Comparison
2
2
 
3
- A comparison joins two captures cell by cell, so that only the compared thing differs between the two stills of a pair. This page owns which pairs to make, how their cells match and how the difference is read.
3
+ Compare matching cells so only the factor under study differs.
4
4
 
5
5
  ## What a pair separates
6
6
 
@@ -17,9 +17,9 @@ A comparison joins two captures cell by cell, so that only the compared thing di
17
17
 
18
18
  ## Matched cells
19
19
 
20
- Pair two cells only when everything but the compared thing agrees: subject, time or pose, resolved camera, light, pass, raster size and renderer. A view's name does not establish the same framing when the view fits itself to its subject, so the later capture reuses the earlier one's resolved camera. Measure pixels only between stills one renderer backend drew, because bit identity across backends is not established; across backends, set the pair side by side.
20
+ Match subject, time or pose, resolved camera, light, pass and raster size. Reuse the earlier camera from its record. Measure pixel differences within one renderer backend. Compare different backends side by side.
21
21
 
22
- Report a cell that one capture holds and the other lacks as unmatched, with its cause, because a comparison over the cells that happened to match says nothing about the rest.
22
+ Report each unmatched cell and its cause.
23
23
 
24
24
  ## Reading the difference
25
25
 
@@ -30,4 +30,4 @@ Report a cell that one capture holds and the other lacks as unmatched, with its
30
30
  | A difference image | Where the pixels changed, including where no change was meant |
31
31
  | A measured difference per cell | Which pairs to open first |
32
32
 
33
- A measured difference ranks where to look and never replaces looking. Identical bytes establish that nothing changed, not that the picture is right. A difference outside the region the change was meant to affect is a regression until it is explained.
33
+ Use measured differences to prioritize inspection. Inspect even identical output. Treat unexplained differences outside the target region as regressions.
@@ -1,34 +1,25 @@
1
1
  # Correction rounds
2
2
 
3
- A correction round gathers every finding of one capture, traces each to its cause, repairs the causes in one change and compares again. This page owns that order.
4
-
5
3
  ## Measuring and looking
6
4
 
7
- Settle by measurement what a number decides, because an eye on a picture misjudges position, depth and timing; the skill of each subject names its measures. Then [plan the capture](capture.md#plan) from questions with a yes or no answer.
5
+ Measure positions, depths, timings and other quantities under the subject skill, then [plan the capture](capture.md#plan).
8
6
 
9
7
  ## Inspection
10
8
 
11
- Inspect the whole affected subject at every scale before changing anything: the whole, its regions, its neighbors and its close-ups, from every needed view and at every needed time. Write down every observed defect with its cell and its conditions.
9
+ Before editing, inspect the affected subject at all needed scales, views and times, including adjacent parts. Record each defect, cell and conditions.
12
10
 
13
11
  ## Causes
14
12
 
15
- Trace causes through generation and display, including shared boundaries and derived outputs. Where causes or their interactions are unclear, plan the controlled [comparisons](comparison.md) that separate them as one set, run the whole set without changing the source, and record the results. Map each proposed change to every defect and part it affects.
13
+ Trace causes through generation, display, shared boundaries and derived outputs. Run all necessary controlled [comparisons](comparison.md) on one unchanged source. Record results and map each fix to affected defects and parts.
16
14
 
17
15
  ## One combined change
18
16
 
19
- Fix all identified causes in one combined change at their sources, and judge it on the assembled subject. A cause that crosses an ownership boundary is changed by both owners in the same round, or reported to an owner the project cannot change.
20
-
21
- However cheap a capture is, this replaces fixing one finding at a time:
22
-
23
- - editing after each observed defect;
24
- - changing one value and capturing to see its effect;
25
- - capturing after each single fix;
26
- - leaving a traced cause to a later round or finer scale.
17
+ Fix all causes at their owners in one change. Judge the assembled subject. Coordinate fixes across owners or report ownership blocks.
27
18
 
28
19
  ## Comparing again
29
20
 
30
- Repeat the round's capture after the change and [compare](comparison.md) it with the earlier one across every affected part, view, time, identity, resolution and motion state, checking both the recorded defects and regressions. Account for every recorded defect before accepting the round; a new or unexplained defect keeps it open.
21
+ Repeat the round and check defects and regressions across parts, views, times, identities, resolutions and states. Account for all findings. Keep the round open while any new or unexplained defect remains.
31
22
 
32
23
  When a fix is tried over several rounds, keep a round only if nothing got worse than in the best earlier round, and record every remaining failure with its numbers.
33
24
 
34
- Look at the new capture yourself, because stale, blank or unobserved output stays unverified.
25
+ Open the current capture before accepting it.
@@ -1,28 +1,28 @@
1
1
  # Passes
2
2
 
3
- A pass is what a cell draws of its subject. This page owns choosing passes, keeping them matched and marking what a measurement found.
3
+ A pass specifies what a still draws.
4
4
 
5
5
  ## Choosing a pass
6
6
 
7
- | Question | Pass |
7
+ | Pass | Answers |
8
8
  | --- | --- |
9
- | How the result looks to its audience | The finished picture from the delivery's renderer |
10
- | Why a surface has its shape | The construction that generated it |
11
- | What one quantity is across the picture | A structural pass that draws only that quantity, such as depth, normals or a mask |
12
- | Where joints, contacts, targets and paths are | An overlay of them on the picture |
13
- | What a receiver is given | The guide channel itself, read through the receiver's input path |
9
+ | The finished picture from the delivery's renderer | How the result looks to its audience |
10
+ | The construction that generated a surface | Why the surface has its shape |
11
+ | A structural pass of only one quantity, such as depth, normals or a mask | What that quantity is across the picture |
12
+ | An overlay on the picture | Where joints, contacts, targets and paths are |
13
+ | The guide channel itself, read through the receiver's input path | What a receiver is given |
14
14
 
15
- Use a structural pass only for the quantity it documents, and read its range and convention before reading its colors, because a plausible image does not establish that a pass holds what its name says. Fields such as skin weights or curvature are judged only where a production's models need them, as [inspecting a form](../3d-modeling/inspection.md#fields-judged-only-where-needed) decides.
15
+ Verify the structural quantity's range and convention. Inspect optional fields only for required uses under [form inspection](../3d-modeling/inspection.md#fields-judged-only-where-needed).
16
16
 
17
17
  ## Matched passes
18
18
 
19
- Draw every pass of a set from the same evaluated state, at the same subjects, views and times, so two passes of one cell differ only in what they draw. Switching pass must not advance or restart motion, and each pass returns the scene and renderer state it borrowed.
19
+ Draw passes from the same subjects, camera, time and evaluated state. Preserve motion state and restore the scene and renderer state after each pass.
20
20
 
21
- A pass drawn over another shares its camera exactly. A pass drawn through a surface says so in its caption, because a line seen through a surface reads as lying on it.
21
+ An overlay shares its underlying pass's camera. Label marks drawn through surfaces.
22
22
 
23
23
  ## Marking what a measurement found
24
24
 
25
- A measurement that finds a defect knows where it is. Draw that place on the subject in a color the pass uses for nothing else, with a legend naming each color's finding, so the reviewer looks at the defect instead of searching the picture for a number from a report. The measurement's owner hands the place to the instrument as plain data, a mark of its own kind, so a new finding needs no new pass.
25
+ Draw measured defect locations in a reserved color and identify the finding in the legend. The measurement owner supplies locations as marks, so adding a finding requires no new pass.
26
26
 
27
27
  Draw each kind of thing in one color throughout a capture. Show labels to establish identity, and hide them where they cover what is judged.
28
28
 
@@ -1,5 +1,5 @@
1
1
  # Rendering cost
2
2
 
3
- Measure rendering cost at the intended resolution, asset population and motion load. Separate startup or compilation, motion evaluation, transform updates and drawing from capture and encoding, so a repair addresses the actual bottleneck.
3
+ Measure startup or compilation, motion evaluation, transform updates, drawing, capture and encoding separately at the intended resolution, asset count and motion load.
4
4
 
5
- When a lower-specification host is a requirement, observe that host or report it as untested; a coarser mesh alone does not establish acceptable memory or frame time. Keep measured budgets and accepted visual compromises where the project records its decisions.
5
+ Test a lower-spec host when required or report it as untested. Record measured budgets and accepted compromises in the project's decisions.
@@ -36,9 +36,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.createAutoMovieScaffold = void 0;
37
37
  const fs = __importStar(require("node:fs"));
38
38
  const path = __importStar(require("node:path"));
39
- const yaml_1 = require("yaml");
40
39
  const assertScaffoldProjectName_1 = require("./assertScaffoldProjectName");
41
40
  const listAutoMovieScaffoldFiles_1 = require("./listAutoMovieScaffoldFiles");
41
+ const renderAutoMovieWorkspace_1 = require("./renderAutoMovieWorkspace");
42
42
  const scaffoldSharedSkillPath_1 = require("./scaffoldSharedSkillPath");
43
43
  /** The package root: `src` under ttsx and `lib` when published both sit one level below it. */
44
44
  const PACKAGE = path.resolve(__dirname, "..");
@@ -85,7 +85,7 @@ const createAutoMovieScaffold = (props) => {
85
85
  readLayer("instructions", add);
86
86
  readLayer(props.kind === "workspace" ? "workspace" : "production", add);
87
87
  if (props.kind !== "workspace-production")
88
- add("pnpm-workspace.yaml", renderPnpmWorkspace(props.kind === "workspace"));
88
+ add("pnpm-workspace.yaml", (0, renderAutoMovieWorkspace_1.renderAutoMovieWorkspace)(props.kind));
89
89
  if (props.kind !== "workspace")
90
90
  add("evidence.config.ts", renderEvidenceConfig(props.kind === "workspace-production"));
91
91
  return files;
@@ -109,24 +109,6 @@ const readLayer = (layer, add) => {
109
109
  add(target, read(item));
110
110
  }
111
111
  };
112
- /** The `pnpm-workspace.yaml` of a single production, or with `packages` of a workspace root. */
113
- const renderPnpmWorkspace = (packages) => {
114
- const settings = JSON.parse(read(path.join(PACKAGE, "generated", "pnpm-workspace.json")));
115
- const manifest = JSON.parse(read(path.join(PACKAGE, "package.json")));
116
- return (0, yaml_1.stringify)({
117
- ...(packages
118
- ? { packages: ["movies/shorts/*", "movies/series/*", "packages/*"] }
119
- : {}),
120
- catalogs: {
121
- automovie: Object.fromEntries(settings.automovie.map((key) => [
122
- key,
123
- `^${manifest.version}`,
124
- ])),
125
- ...settings.catalogs,
126
- },
127
- allowBuilds: settings.allowBuilds,
128
- });
129
- };
130
112
  /** The `evidence.config.ts` of a production, reading its own skills or, inside a workspace, the root's. */
131
113
  const renderEvidenceConfig = (workspace) => [
132
114
  `import { createEvidenceConfig } from "@automovie/evidence";`,
@@ -1 +1 @@
1
- {"version":3,"file":"createAutoMovieScaffold.js","sourceRoot":"","sources":["../src/createAutoMovieScaffold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAClC,+BAAiC;AAGjC,2EAAwE;AACxE,6EAA0E;AAC1E,uEAAoE;AAEpE,+FAA+F;AAC/F,MAAM,OAAO,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AActD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,MAAM,uBAAuB,GAEN,CAC5B,KAA8B,EACN,EAAE;IAC1B,MAAM,IAAI,GAAW,IAAA,qDAAyB,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3D,MAAM,MAAM,GACV,KAAK,CAAC,IAAI,KAAK,sBAAsB;QACnC,CAAC,CAAC,yBAAyB;QAC3B,CAAC,CAAC,gBAAgB,CAAC;IACvB,MAAM,KAAK,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAGvD,CAAC;IACF,MAAM,GAAG,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAQ,EAAE;QACtD,IAAI,QAAQ,IAAI,KAAK;YACnB,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,GAAG,CAAC,CAAC;QAC/D,KAAK,CAAC,QAAQ,CAAC,GAAG,OAAO;aACtB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC;aACxB,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC;aAC5B,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACtC,CAA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AI,CAAC,CAAC;AAEf,MAAM,IAAI,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAErE,MAAM,OAAO,GAAG,CAAC,QAAgB,EAAU,EAAE,CAC3C,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./IAutoMovieScaffoldProps";
2
2
  export * from "./assertScaffoldProjectName";
3
3
  export * from "./createAutoMovieScaffold";
4
+ export * from "./renderAutoMovieWorkspace";
package/lib/index.js CHANGED
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./IAutoMovieScaffoldProps"), exports);
18
18
  __exportStar(require("./assertScaffoldProjectName"), exports);
19
19
  __exportStar(require("./createAutoMovieScaffold"), exports);
20
+ __exportStar(require("./renderAutoMovieWorkspace"), exports);
20
21
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Render pnpm settings for a new production or workspace. Given an existing
3
+ * workspace's directory and YAML, fill missing scaffold catalog entries.
4
+ * Existing pins, overrides, workspace members and build policy keep their values.
5
+ * A linked SDK supplies missing scoped packages when their sibling manifests
6
+ * identify them. Other new entries use the installed scaffold's ranges.
7
+ *
8
+ * @param workspace The new layout or the existing workspace whose catalogs the CLI needs.
9
+ * @returns Workspace YAML, byte-for-byte unchanged when every required entry exists.
10
+ * @throws If the shipped settings or workspace YAML cannot be read as required.
11
+ * @evidence contracts/development/implementation.md#principled-implementation Both paths resolve the shipped manifests' catalog references from the same build settings and template version. Local SDK lookup requires an existing link and the requested package identity.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The layout selects creation or completion. The YAML document owns edits and the caller owns the write.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The build discovers the dependencies. Package names and workspace layouts follow their published conventions.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms The existing document is parsed once and each required entry is visited once. Only missing SDK entries probe sibling manifests in distinct linked directories.
15
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Both layouts share the resolved defaults. SDK directories are deduplicated per document.
16
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources File reads close synchronously. Parsed settings, document and link directories live for one call.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The comment describes each mode, precedence, return value and failure.
18
+ */
19
+ export declare function renderAutoMovieWorkspace(workspace: "production" | "workspace" | {
20
+ directory: string;
21
+ source: string;
22
+ }): string;