sera-code 0.1.3 → 0.1.4

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 (332) hide show
  1. package/README.md +9 -1
  2. package/bin/sera.mjs +31 -0
  3. package/dist/bundle/chunks/{chunk-OXMPCU7P.js → chunk-DFRGGJWV.js} +1 -1
  4. package/dist/bundle/chunks/{chunk-KO3Z5BTR.js → chunk-EMXTNOOJ.js} +5 -5
  5. package/dist/bundle/chunks/{chunk-KXU77PUU.js → chunk-ET2ARYK4.js} +1 -1
  6. package/dist/bundle/chunks/{chunk-ZNCN2NGY.js → chunk-G5BGS7HZ.js} +2 -2
  7. package/dist/bundle/chunks/{chunk-HODJBMOY.js → chunk-GSGPISRE.js} +3 -4
  8. package/dist/bundle/chunks/{chunk-46WGNYIE.js → chunk-NMUS7OCP.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-HQBQWHLD.js → chunk-RCQXVPCE.js} +1 -1
  10. package/dist/bundle/chunks/{cli-MML2DU4A.js → cli-NOCFT7AL.js} +1 -1
  11. package/dist/bundle/chunks/{execute-HXDNZ26B.js → execute-S2O3RL6V.js} +1 -1
  12. package/dist/bundle/chunks/github-copilot.js +1 -1
  13. package/dist/bundle/chunks/{runtime-JAH75CB5.js → runtime-BRT7AUXY.js} +1 -1
  14. package/dist/bundle/chunks/{virtual-modules-OE2CSJ4W.js → virtual-modules-QR2XYBMY.js} +1 -1
  15. package/dist/bundle/cli-runtime.js +1 -1
  16. package/dist/bundle/index.js +1 -1
  17. package/dist/bundle/rpc-entry.js +1 -1
  18. package/lib/postinstall.js +16 -0
  19. package/lib/update.js +85 -0
  20. package/lib/win-setup.js +96 -0
  21. package/package.json +4 -1
  22. package/sera-core/skills/ambalaj-tasarim/NOTICE +1 -0
  23. package/sera-core/skills/ambalaj-tasarim/SKILL.md +34 -0
  24. package/sera-core/skills/ambalaj-tasarim/dieline.mjs +17 -0
  25. package/sera-core/skills/ambalaj-tasarim/sera-pack.js +535 -0
  26. package/sera-core/skills/animasyonlu-site/NOTICE +1 -0
  27. package/sera-core/skills/animasyonlu-site/SKILL.md +26 -0
  28. package/sera-core/skills/animasyonlu-site/sera-motion.js +310 -0
  29. package/sera-core/skills/animate/LICENSE +21 -0
  30. package/sera-core/skills/animate/NOTICE +2 -0
  31. package/sera-core/skills/animate/RECIPES.md +324 -0
  32. package/sera-core/skills/animate/SKILL.md +209 -0
  33. package/sera-core/skills/astryx-ui/SKILL.md +37 -0
  34. package/sera-core/skills/awwwards/LICENSE +21 -0
  35. package/sera-core/skills/awwwards/NOTICE +5 -0
  36. package/sera-core/skills/awwwards/SKILL.md +357 -0
  37. package/sera-core/skills/awwwards/references/anatomy.md +103 -0
  38. package/sera-core/skills/awwwards/references/art-direction.md +114 -0
  39. package/sera-core/skills/awwwards/references/astro.md +235 -0
  40. package/sera-core/skills/awwwards/references/concepts.md +110 -0
  41. package/sera-core/skills/awwwards/references/content.md +88 -0
  42. package/sera-core/skills/awwwards/references/engine.md +751 -0
  43. package/sera-core/skills/awwwards/references/layout.md +81 -0
  44. package/sera-core/skills/awwwards/references/motion.md +463 -0
  45. package/sera-core/skills/awwwards/references/nextjs.md +386 -0
  46. package/sera-core/skills/awwwards/references/patterns.md +123 -0
  47. package/sera-core/skills/awwwards/references/quality-bar.md +151 -0
  48. package/sera-core/skills/awwwards/references/quality.md +91 -0
  49. package/sera-core/skills/awwwards/references/ship.md +36 -0
  50. package/sera-core/skills/awwwards/references/typography.md +135 -0
  51. package/sera-core/skills/awwwards/references/webgl.md +430 -0
  52. package/sera-core/skills/awwwards/scripts/audit.mjs +243 -0
  53. package/sera-core/skills/awwwards/scripts/browser.mjs +54 -0
  54. package/sera-core/skills/awwwards/scripts/font.mjs +87 -0
  55. package/sera-core/skills/awwwards/scripts/og.mjs +20 -0
  56. package/sera-core/skills/awwwards/scripts/photos.mjs +65 -0
  57. package/sera-core/skills/awwwards/scripts/serve.mjs +48 -0
  58. package/sera-core/skills/awwwards/scripts/shoot.mjs +675 -0
  59. package/sera-core/skills/beceri-yaz/SKILL.md +39 -0
  60. package/sera-core/skills/brag-slim/LICENSE +21 -0
  61. package/sera-core/skills/brag-slim/NOTICE +2 -0
  62. package/sera-core/skills/brag-slim/SKILL.md +108 -0
  63. package/sera-core/skills/brainstorming/LICENSE +21 -0
  64. package/sera-core/skills/brainstorming/NOTICE +5 -0
  65. package/sera-core/skills/brainstorming/SKILL.md +298 -0
  66. package/sera-core/skills/brainstorming/builder-check-prompt.md +23 -0
  67. package/sera-core/skills/copywriting/LICENSE +21 -0
  68. package/sera-core/skills/copywriting/NOTICE +5 -0
  69. package/sera-core/skills/copywriting/SKILL.md +343 -0
  70. package/sera-core/skills/copywriting/references/ai-tells.md +309 -0
  71. package/sera-core/skills/copywriting/references/copy-frameworks.md +432 -0
  72. package/sera-core/skills/copywriting/references/natural-transitions.md +256 -0
  73. package/sera-core/skills/cro/LICENSE +21 -0
  74. package/sera-core/skills/cro/NOTICE +5 -0
  75. package/sera-core/skills/cro/SKILL.md +198 -0
  76. package/sera-core/skills/cro/references/experiments.md +248 -0
  77. package/sera-core/skills/cro/references/form.md +422 -0
  78. package/sera-core/skills/derin-arastirma/referanslar/arastirma-yontem.md +11 -0
  79. package/sera-core/skills/emil-design-eng/LICENSE +21 -0
  80. package/sera-core/skills/emil-design-eng/NOTICE +2 -0
  81. package/sera-core/skills/emil-design-eng/SKILL.md +684 -0
  82. package/sera-core/skills/frontend-design/LICENSE.txt +177 -0
  83. package/sera-core/skills/frontend-design/NOTICE +2 -0
  84. package/sera-core/skills/frontend-design/SKILL.md +71 -0
  85. package/sera-core/skills/gorsel-denetim/SKILL.md +30 -0
  86. package/sera-core/skills/hallmark/LICENSE +21 -0
  87. package/sera-core/skills/hallmark/NOTICE +5 -0
  88. package/sera-core/skills/hallmark/SKILL.md +154 -0
  89. package/sera-core/skills/hallmark/references/anatomy.md +71 -0
  90. package/sera-core/skills/hallmark/references/brand-truth.md +40 -0
  91. package/sera-core/skills/hallmark/references/comp.md +104 -0
  92. package/sera-core/skills/hallmark/references/craft.md +116 -0
  93. package/sera-core/skills/hallmark/references/dark-mode.md +49 -0
  94. package/sera-core/skills/hallmark/references/data-viz.md +48 -0
  95. package/sera-core/skills/hallmark/references/design-md.md +53 -0
  96. package/sera-core/skills/hallmark/references/direction.md +52 -0
  97. package/sera-core/skills/hallmark/references/export-formats.md +80 -0
  98. package/sera-core/skills/hallmark/references/flow.md +131 -0
  99. package/sera-core/skills/hallmark/references/fonts.md +58 -0
  100. package/sera-core/skills/hallmark/references/gates.md +243 -0
  101. package/sera-core/skills/hallmark/references/genres/atmospheric.md +24 -0
  102. package/sera-core/skills/hallmark/references/genres/editorial.md +24 -0
  103. package/sera-core/skills/hallmark/references/genres/modern-minimal.md +24 -0
  104. package/sera-core/skills/hallmark/references/genres/playful.md +24 -0
  105. package/sera-core/skills/hallmark/references/imagery.md +99 -0
  106. package/sera-core/skills/hallmark/references/interaction-and-states.md +89 -0
  107. package/sera-core/skills/hallmark/references/layout.md +104 -0
  108. package/sera-core/skills/hallmark/references/macrostructures/01-bento-grid.md +21 -0
  109. package/sera-core/skills/hallmark/references/macrostructures/02-long-document.md +35 -0
  110. package/sera-core/skills/hallmark/references/macrostructures/03-marquee-hero.md +21 -0
  111. package/sera-core/skills/hallmark/references/macrostructures/04-stat-led.md +21 -0
  112. package/sera-core/skills/hallmark/references/macrostructures/05-workbench.md +21 -0
  113. package/sera-core/skills/hallmark/references/macrostructures/06-conversational-faq.md +28 -0
  114. package/sera-core/skills/hallmark/references/macrostructures/07-manifesto.md +28 -0
  115. package/sera-core/skills/hallmark/references/macrostructures/08-photographic.md +21 -0
  116. package/sera-core/skills/hallmark/references/macrostructures/09-quote-led.md +21 -0
  117. package/sera-core/skills/hallmark/references/macrostructures/10-specimen.md +21 -0
  118. package/sera-core/skills/hallmark/references/macrostructures/11-catalogue.md +21 -0
  119. package/sera-core/skills/hallmark/references/macrostructures/12-letter.md +21 -0
  120. package/sera-core/skills/hallmark/references/macrostructures/13-index-first.md +21 -0
  121. package/sera-core/skills/hallmark/references/macrostructures/14-narrative-workflow.md +21 -0
  122. package/sera-core/skills/hallmark/references/macrostructures/15-split-studio.md +21 -0
  123. package/sera-core/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
  124. package/sera-core/skills/hallmark/references/macrostructures/17-type-specimen.md +19 -0
  125. package/sera-core/skills/hallmark/references/macrostructures/18-portfolio-grid.md +21 -0
  126. package/sera-core/skills/hallmark/references/macrostructures/19-map-diagram.md +21 -0
  127. package/sera-core/skills/hallmark/references/macrostructures/20-ecosystem-index.md +19 -0
  128. package/sera-core/skills/hallmark/references/macrostructures/21-component-playground.md +21 -0
  129. package/sera-core/skills/hallmark/references/macrostructures.md +119 -0
  130. package/sera-core/skills/hallmark/references/microinteractions.md +80 -0
  131. package/sera-core/skills/hallmark/references/patterns.md +202 -0
  132. package/sera-core/skills/hallmark/references/redesign.md +88 -0
  133. package/sera-core/skills/hallmark/references/responsive.md +46 -0
  134. package/sera-core/skills/hallmark/references/review-finish.md +19 -0
  135. package/sera-core/skills/hallmark/references/review-hero.md +20 -0
  136. package/sera-core/skills/hallmark/references/scroll-choreography.md +110 -0
  137. package/sera-core/skills/hallmark/references/texture.md +90 -0
  138. package/sera-core/skills/hallmark/references/themes/README.md +58 -0
  139. package/sera-core/skills/hallmark/references/themes/almanac.md +103 -0
  140. package/sera-core/skills/hallmark/references/themes/arcade.md +102 -0
  141. package/sera-core/skills/hallmark/references/themes/atelier.md +98 -0
  142. package/sera-core/skills/hallmark/references/themes/bloom.md +102 -0
  143. package/sera-core/skills/hallmark/references/themes/blueprint.md +103 -0
  144. package/sera-core/skills/hallmark/references/themes/broadside.md +108 -0
  145. package/sera-core/skills/hallmark/references/themes/brutal.md +95 -0
  146. package/sera-core/skills/hallmark/references/themes/carnival.md +104 -0
  147. package/sera-core/skills/hallmark/references/themes/cobalt.md +101 -0
  148. package/sera-core/skills/hallmark/references/themes/console.md +99 -0
  149. package/sera-core/skills/hallmark/references/themes/coral.md +102 -0
  150. package/sera-core/skills/hallmark/references/themes/darkroom.md +99 -0
  151. package/sera-core/skills/hallmark/references/themes/dose.md +98 -0
  152. package/sera-core/skills/hallmark/references/themes/dusk.md +105 -0
  153. package/sera-core/skills/hallmark/references/themes/editorial.md +97 -0
  154. package/sera-core/skills/hallmark/references/themes/formwork.md +107 -0
  155. package/sera-core/skills/hallmark/references/themes/furrow.md +98 -0
  156. package/sera-core/skills/hallmark/references/themes/garden.md +97 -0
  157. package/sera-core/skills/hallmark/references/themes/grid.md +101 -0
  158. package/sera-core/skills/hallmark/references/themes/halftone.md +106 -0
  159. package/sera-core/skills/hallmark/references/themes/hedgerow.md +104 -0
  160. package/sera-core/skills/hallmark/references/themes/hum.md +99 -0
  161. package/sera-core/skills/hallmark/references/themes/ink.md +106 -0
  162. package/sera-core/skills/hallmark/references/themes/kiln.md +108 -0
  163. package/sera-core/skills/hallmark/references/themes/loom.md +106 -0
  164. package/sera-core/skills/hallmark/references/themes/lumen.md +103 -0
  165. package/sera-core/skills/hallmark/references/themes/manifesto.md +101 -0
  166. package/sera-core/skills/hallmark/references/themes/midnight.md +97 -0
  167. package/sera-core/skills/hallmark/references/themes/newsprint.md +102 -0
  168. package/sera-core/skills/hallmark/references/themes/overprint.md +101 -0
  169. package/sera-core/skills/hallmark/references/themes/pasteup.md +100 -0
  170. package/sera-core/skills/hallmark/references/themes/piste.md +99 -0
  171. package/sera-core/skills/hallmark/references/themes/refract.md +101 -0
  172. package/sera-core/skills/hallmark/references/themes/ribbon.md +106 -0
  173. package/sera-core/skills/hallmark/references/themes/rim.md +96 -0
  174. package/sera-core/skills/hallmark/references/themes/riso.md +98 -0
  175. package/sera-core/skills/hallmark/references/themes/solstice.md +104 -0
  176. package/sera-core/skills/hallmark/references/themes/specimen.md +100 -0
  177. package/sera-core/skills/hallmark/references/themes/spore.md +104 -0
  178. package/sera-core/skills/hallmark/references/themes/sport.md +101 -0
  179. package/sera-core/skills/hallmark/references/themes/squeeze.md +99 -0
  180. package/sera-core/skills/hallmark/references/themes/sticker.md +106 -0
  181. package/sera-core/skills/hallmark/references/themes/studio.md +99 -0
  182. package/sera-core/skills/hallmark/references/themes/terminal.md +96 -0
  183. package/sera-core/skills/hallmark/references/themes/terrazzo.md +106 -0
  184. package/sera-core/skills/hallmark/references/themes/ultraviolet.md +106 -0
  185. package/sera-core/skills/hallmark/references/themes/vantage.md +99 -0
  186. package/sera-core/skills/hallmark/references/themes/vellum.md +105 -0
  187. package/sera-core/skills/hallmark/references/themes/wayfind.md +105 -0
  188. package/sera-core/skills/hallmark/references/themes/werkstatt.md +105 -0
  189. package/sera-core/skills/hallmark/scripts/capture.mjs +132 -0
  190. package/sera-core/skills/hallmark/scripts/refcheck.mjs +405 -0
  191. package/sera-core/skills/hallmark/scripts/sloplint-render.mjs +1283 -0
  192. package/sera-core/skills/hallmark/scripts/sloplint.mjs +4426 -0
  193. package/sera-core/skills/hallmark/scripts/theme.mjs +660 -0
  194. package/sera-core/skills/kurum-ici-iletisim/SKILL.md +40 -0
  195. package/sera-core/skills/launch/LICENSE +21 -0
  196. package/sera-core/skills/launch/NOTICE +5 -0
  197. package/sera-core/skills/launch/SKILL.md +385 -0
  198. package/sera-core/skills/launch/references/shipped-changes.md +84 -0
  199. package/sera-core/skills/launch/references/site-launch-qa.md +57 -0
  200. package/sera-core/skills/marka-kimligi/SKILL.md +30 -0
  201. package/sera-core/skills/mcp-yaz/SKILL.md +41 -0
  202. package/sera-core/skills/mobil-arayuz/SKILL.md +12 -0
  203. package/sera-core/skills/mvp-scoping/LICENSE +21 -0
  204. package/sera-core/skills/mvp-scoping/NOTICE +5 -0
  205. package/sera-core/skills/mvp-scoping/SKILL.md +95 -0
  206. package/sera-core/skills/ortak-yazarlik/SKILL.md +32 -0
  207. package/sera-core/skills/oyun-turleri/SKILL.md +176 -0
  208. package/sera-core/skills/paralel-sadelestirme/SKILL.md +33 -0
  209. package/sera-core/skills/phaser-core/LICENSE +201 -0
  210. package/sera-core/skills/phaser-core/NOTICE +5 -0
  211. package/sera-core/skills/phaser-core/NOTICE-UPSTREAM +15 -0
  212. package/sera-core/skills/phaser-core/SKILL.md +245 -0
  213. package/sera-core/skills/phaser-core/references/scene-flow.md +177 -0
  214. package/sera-core/skills/pitch-deck/LICENSE +21 -0
  215. package/sera-core/skills/pitch-deck/NOTICE +5 -0
  216. package/sera-core/skills/pitch-deck/SKILL.md +103 -0
  217. package/sera-core/skills/sera-3d-oyun/NOTICE +1 -0
  218. package/sera-core/skills/sera-3d-oyun/SKILL.md +12 -0
  219. package/sera-core/skills/sera-3d-oyun/sera-3d.js +3697 -0
  220. package/sera-core/skills/sera-diyagram/SKILL.md +43 -0
  221. package/sera-core/skills/sera-ofis-dosya/SKILL.md +3 -0
  222. package/sera-core/skills/sera-ofis-dosya/referanslar/ofis-ileri.md +46 -0
  223. package/sera-core/skills/sera-ui-site/NOTICE +1 -0
  224. package/sera-core/skills/sera-ui-site/SKILL.md +10 -0
  225. package/sera-core/skills/sera-ui-site/sera-ui.js +83 -0
  226. package/sera-core/skills/sera-veri-gorsel/SKILL.md +3 -0
  227. package/sera-core/skills/sera-veri-gorsel/referanslar/palet-dogrula.mjs +80 -0
  228. package/sera-core/skills/sistem-tarama/SKILL.md +49 -0
  229. package/sera-core/skills/sistem-tarama/referanslar/komutlar.md +78 -0
  230. package/sera-core/skills/tasarim-stilleri/SKILL.md +113 -0
  231. package/sera-core/skills/teardown/LICENSE +22 -0
  232. package/sera-core/skills/teardown/NOTICE +3 -0
  233. package/sera-core/skills/teardown/SKILL.md +144 -0
  234. package/sera-core/skills/teardown/package-lock.json +545 -0
  235. package/sera-core/skills/teardown/package.json +18 -0
  236. package/sera-core/skills/teardown/paths.mjs +30 -0
  237. package/sera-core/skills/teardown/run_sfx.py +10 -0
  238. package/sera-core/skills/teardown/sfx/__init__.py +10 -0
  239. package/sera-core/skills/teardown/sfx/__main__.py +64 -0
  240. package/sera-core/skills/teardown/sfx/dsp.py +453 -0
  241. package/sera-core/skills/teardown/sfx/loudness.py +72 -0
  242. package/sera-core/skills/teardown/sfx/mix.py +111 -0
  243. package/sera-core/skills/teardown/sfx/samples/SOURCES.md +23 -0
  244. package/sera-core/skills/teardown/sfx/samples/fs-258269-mouth-pop.ogg +0 -0
  245. package/sera-core/skills/teardown/sfx/samples/fs-323432-typing.ogg +0 -0
  246. package/sera-core/skills/teardown/sfx/samples/fs-329533-room-tone-in-an-apartment-livi.ogg +0 -0
  247. package/sera-core/skills/teardown/sfx/samples/fs-329569-roomtone-bedroom-yew.ogg +0 -0
  248. package/sera-core/skills/teardown/sfx/samples/fs-339521-vhs-rewind-forward-and-eject.ogg +0 -0
  249. package/sera-core/skills/teardown/sfx/samples/fs-349504-triangle-open-04.ogg +0 -0
  250. package/sera-core/skills/teardown/sfx/samples/fs-416777-digital-typing-wav.ogg +0 -0
  251. package/sera-core/skills/teardown/sfx/samples/fs-426767-apartment-room-tone-wav.ogg +0 -0
  252. package/sera-core/skills/teardown/sfx/samples/fs-447909-keyboard-typing.ogg +0 -0
  253. package/sera-core/skills/teardown/sfx/samples/fs-447910-plop.ogg +0 -0
  254. package/sera-core/skills/teardown/sfx/samples/fs-79388-keyboard-typing-wav.ogg +0 -0
  255. package/sera-core/skills/teardown/sfx/samples/fs-824189-pop-in-sfx.ogg +0 -0
  256. package/sera-core/skills/teardown/sfx/score_kit.py +206 -0
  257. package/sera-core/skills/teardown/sfx/synth.py +294 -0
  258. package/sera-core/skills/teardown/sheet.mjs +127 -0
  259. package/sera-core/skills/teardown/sims/beats.py +212 -0
  260. package/sera-core/skills/teardown/sims/build.mjs +141 -0
  261. package/sera-core/skills/teardown/sims/capture.mjs +211 -0
  262. package/sera-core/skills/teardown/sims/cessna-film/main.js +4 -0
  263. package/sera-core/skills/teardown/sims/cessna-film/timeline.json +1 -0
  264. package/sera-core/skills/teardown/sims/cessna-live/main.js +5 -0
  265. package/sera-core/skills/teardown/sims/cessna-shared/console.js +288 -0
  266. package/sera-core/skills/teardown/sims/cessna-shared/film.js +254 -0
  267. package/sera-core/skills/teardown/sims/cessna-shared/flight.js +53 -0
  268. package/sera-core/skills/teardown/sims/cessna-shared/gear.js +364 -0
  269. package/sera-core/skills/teardown/sims/cessna-shared/live.js +351 -0
  270. package/sera-core/skills/teardown/sims/cessna-shared/score.py +41 -0
  271. package/sera-core/skills/teardown/sims/cessna-shared/stage.js +248 -0
  272. package/sera-core/skills/teardown/sims/kit/director.js +300 -0
  273. package/sera-core/skills/teardown/sims/kit/hud.js +194 -0
  274. package/sera-core/skills/teardown/sims/kit/runtime.js +168 -0
  275. package/sera-core/skills/teardown/sims/kit/stage3d.js +114 -0
  276. package/sera-core/skills/teardown/sims/kit/style.css +137 -0
  277. package/sera-core/skills/teardown/sims/kit/util.js +79 -0
  278. package/sera-core/skills/teardown/sims/kit/warm.js +66 -0
  279. package/sera-core/skills/teardown/sims/strandbeest-film/main.js +4 -0
  280. package/sera-core/skills/teardown/sims/strandbeest-film/timeline.json +1 -0
  281. package/sera-core/skills/teardown/sims/strandbeest-live/main.js +5 -0
  282. package/sera-core/skills/teardown/sims/strandbeest-shared/beast.js +419 -0
  283. package/sera-core/skills/teardown/sims/strandbeest-shared/console.js +375 -0
  284. package/sera-core/skills/teardown/sims/strandbeest-shared/film.js +352 -0
  285. package/sera-core/skills/teardown/sims/strandbeest-shared/jansen.js +67 -0
  286. package/sera-core/skills/teardown/sims/strandbeest-shared/live.js +420 -0
  287. package/sera-core/skills/teardown/sims/strandbeest-shared/score.py +85 -0
  288. package/sera-core/skills/teardown/sims/strandbeest-shared/stage.js +463 -0
  289. package/sera-core/skills/teardown/sims/v8-film/main.js +4 -0
  290. package/sera-core/skills/teardown/sims/v8-film/timeline.json +1 -0
  291. package/sera-core/skills/teardown/sims/v8-live/main.js +5 -0
  292. package/sera-core/skills/teardown/sims/v8-shared/console.js +339 -0
  293. package/sera-core/skills/teardown/sims/v8-shared/engine.js +624 -0
  294. package/sera-core/skills/teardown/sims/v8-shared/film.js +239 -0
  295. package/sera-core/skills/teardown/sims/v8-shared/kin.js +86 -0
  296. package/sera-core/skills/teardown/sims/v8-shared/live.js +374 -0
  297. package/sera-core/skills/teardown/sims/v8-shared/score.py +60 -0
  298. package/sera-core/skills/teardown/sims/v8-shared/stage.js +173 -0
  299. package/sera-core/skills/teardown/wave.mjs +67 -0
  300. package/sera-core/skills/toplu-degisiklik/SKILL.md +39 -0
  301. package/sera-core/skills/ui-ux-pro-max/LICENSE +21 -0
  302. package/sera-core/skills/ui-ux-pro-max/NOTICE +5 -0
  303. package/sera-core/skills/ui-ux-pro-max/SKILL.md +13 -0
  304. package/sera-core/skills/ui-ux-pro-max/references/pro-rules.md +117 -0
  305. package/sera-core/skills/ui-ux-pro-max/references/quick-reference.md +266 -0
  306. package/sera-core/skills/unslop/LICENSE.md +410 -0
  307. package/sera-core/skills/unslop/SKILL.md +217 -0
  308. package/sera-core/skills/unslop/references/effects.md +113 -0
  309. package/sera-core/skills/unslop/references/refs/unslop-dashboard-after.webp +0 -0
  310. package/sera-core/skills/unslop/references/refs/unslop-hero-after.webp +0 -0
  311. package/sera-core/skills/unslop/references/refs.md +16 -0
  312. package/sera-core/skills/unslop/references/rtl.md +72 -0
  313. package/sera-core/skills/unslop/references/signs.md +125 -0
  314. package/sera-core/skills/unslop/references/tokens.md +137 -0
  315. package/sera-core/skills/unslop/references/visuals.md +84 -0
  316. package/sera-core/skills/unslop/scripts/snapshot.mjs +197 -0
  317. package/sera-core/skills/uretken-sanat/SKILL.md +42 -0
  318. package/sera-core/skills/verification-before-completion/LICENSE +21 -0
  319. package/sera-core/skills/verification-before-completion/NOTICE +5 -0
  320. package/sera-core/skills/verification-before-completion/SKILL.md +120 -0
  321. package/sera-core/skills/web-yayin-listesi/SKILL.md +3 -0
  322. package/sera-core/src/app-master.ts +2 -2
  323. package/sera-core/src/app-verify.ts +33 -0
  324. package/sera-core/src/extension.ts +16 -2
  325. package/sera-core/src/generated/build-rules.ts +81 -17
  326. package/sera-core/src/generated/quality-probe.ts +2 -0
  327. package/sera-core/src/generated/zero-knowledge.ts +36 -9
  328. package/sera-core/src/image-tool.ts +12 -2
  329. package/sera-core/src/link-data-tools.ts +411 -0
  330. package/sera-core/src/skills.ts +54 -18
  331. package/sera-core/src/video-tool.ts +51 -0
  332. package/sera-core/src/zk.ts +7 -3
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Abhishek Barali and the awesome-gamedev-agent-skills contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Sera NOTICE
2
+ Kaynak: https://github.com/gamedev-skills/awesome-gamedev-agent-skills
3
+ Commit: c6ca6c4
4
+ Lisans: Apache-2.0 (LICENSE dosyasi bu dizinde)
5
+ Degisiklik: Sera icin yalniz gereksiz dosyalar (test, gorsel, ucretli/ag servisi betikleri) cikarildi.
@@ -0,0 +1,15 @@
1
+ awesome-gamedev-agent-skills
2
+ Copyright 2026 Abhishek Barali and the awesome-gamedev-agent-skills contributors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ All skills in this repository are original works. They were authored from primary
7
+ documentation (engine and framework docs, language references, and platform
8
+ specifications). Third-party sources and other skill collections were studied for
9
+ general patterns only; no text or code was copied from them.
10
+
11
+ Game engine, framework, and platform names referenced in this repository
12
+ (including but not limited to Godot, Unity, Unreal Engine, Phaser, PixiJS,
13
+ three.js, Babylon.js, Bevy, GameMaker, LÖVE, and MonoGame) are trademarks of
14
+ their respective owners and are used for identification and descriptive purposes
15
+ only. Their use does not imply any affiliation with or endorsement by those owners.
@@ -0,0 +1,245 @@
1
+ ---
2
+ name: phaser-core
3
+ description: >
4
+ Sets up and debugs Phaser 4 games (and pinned Phaser 3.90): Game config, Scene lifecycle, the
5
+ loader, scene transitions and Phaser 3 to 4 migration. Use when code imports phaser, or on a
6
+ black screen, assets undefined in create, or a HUD scene behind the game. Not for colliders
7
+ (`phaser-arcade-physics`), HUD layout (`game-ui-ux`) or PixiJS (`pixijs-rendering`).
8
+ ---
9
+
10
+ # Phaser 4 core
11
+
12
+ Builds the foundation of a Phaser game: one `Phaser.Game`, a scene per screen, assets loaded
13
+ per scene into a global cache, and a clear split between game rules and the scenes that draw
14
+ them. New projects target **Phaser 4.2**. A project pinned to Phaser 3.90 stays on 3.x unless
15
+ the user asks for a migration.
16
+
17
+ ## When to use
18
+
19
+ - Starting a Phaser game, structuring scenes, loading assets, wiring cameras, passing data
20
+ between scenes, or porting Phaser 3 code to Phaser 4.
21
+ - The project has `phaser` in `package.json`, `import Phaser from 'phaser'`, or classes that
22
+ extend `Phaser.Scene`.
23
+ - Not for bodies, colliders and movement (`phaser-arcade-physics`), Matter.js physics, or
24
+ engine-neutral menu and HUD design (`game-ui-ux`; load it next to this skill for UI work).
25
+
26
+ ## Workflow
27
+
28
+ 1. **Read the installed major.** Check `package.json` and the lockfile. Phaser 3 and 4 share
29
+ the scene model but not the renderer, so a v3 snippet can run and still look wrong in v4.
30
+ 2. **Keep rules out of scenes.** Put state and rules (score, turns, inventory, AI) in plain
31
+ modules with no Phaser import. A scene reads that state, draws it, and sends input actions
32
+ back. The rules then run under `node --test` without a browser, and a restart is just new
33
+ state.
34
+ 3. **Create one game from a config** with `type: Phaser.AUTO`, a size, a `scale` mode and a
35
+ `scene` array. The first scene in the array (and any with `active: true`) starts on boot.
36
+ 4. **One `Scene` subclass per screen** with a unique key. Reset run state in `init()`, queue
37
+ assets in `preload()`, build objects in `create()`, step in `update(time, delta)`.
38
+ 5. **Move between screens with the right verb** (`start`, `launch`, `run`, `switch`, `sleep`;
39
+ see Patterns 4) and share data through `this.registry` or a scene's `events`.
40
+ 6. **Pick where UI lives.** A score or health readout fits a parallel HUD scene. Text-heavy
41
+ menus and settings work better as HTML over the canvas (`this.add.dom` or a plain overlay).
42
+ 7. **Verify** with the build and the headless smoke check in [Verify](#verify).
43
+
44
+ ## Patterns
45
+
46
+ ### 1. Game config and boot
47
+
48
+ ```js
49
+ // main.js: one Game owns the renderer, loop, cache and Scene Manager.
50
+ import Phaser from 'phaser';
51
+ import BootScene from './scenes/BootScene.js';
52
+ import PlayScene from './scenes/PlayScene.js';
53
+ import HudScene from './scenes/HudScene.js';
54
+
55
+ const config = {
56
+ type: Phaser.AUTO, // WebGL, Canvas only as a fallback
57
+ parent: 'game', // id of the element that holds the canvas
58
+ width: 800,
59
+ height: 600,
60
+ backgroundColor: '#1d1d28',
61
+ scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH },
62
+ dom: { createContainer: true }, // only if you use this.add.dom(); needs `parent`
63
+ scene: [BootScene, PlayScene, HudScene], // later in the list = drawn on top
64
+ };
65
+
66
+ const game = new Phaser.Game(config);
67
+ Object.assign(window, { game }); // for the smoke check and console debugging (TS-safe)
68
+ ```
69
+
70
+ ### 2. A scene with the full lifecycle
71
+
72
+ ```js
73
+ // scenes/PlayScene.js
74
+ import Phaser from 'phaser';
75
+ import { createRun, stepRun } from '../rules/run.js'; // plain module, no Phaser import
76
+
77
+ export default class PlayScene extends Phaser.Scene {
78
+ constructor() {
79
+ super('play');
80
+ }
81
+
82
+ init(data) {
83
+ this.run = createRun({ level: data.level ?? 1 }); // runs on every (re)start
84
+ }
85
+
86
+ preload() {
87
+ this.load.image('player', 'assets/player.png');
88
+ this.load.spritesheet('coin', 'assets/coin.png', { frameWidth: 16, frameHeight: 16 });
89
+ }
90
+
91
+ create() {
92
+ this.player = this.add.sprite(400, 300, 'player');
93
+ this.cursors = this.input.keyboard.createCursorKeys();
94
+ if (!this.scene.isActive('hud')) this.scene.launch('hud');
95
+ }
96
+
97
+ update(time, delta) {
98
+ const dir = (this.cursors.right.isDown ? 1 : 0) - (this.cursors.left.isDown ? 1 : 0);
99
+ stepRun(this.run, { dir }, delta / 1000); // delta is milliseconds
100
+ this.player.x = this.run.playerX;
101
+ this.registry.set('score', this.run.score);
102
+ }
103
+ }
104
+ ```
105
+
106
+ ### 3. Cross-scene data and events
107
+
108
+ ```js
109
+ // HUD scene: react to registry changes instead of polling every frame.
110
+ create() {
111
+ this.scoreText = this.add.text(10, 10, 'Score: 0', { fontSize: '20px', color: '#fff' });
112
+ const onScore = (_parent, value) => this.scoreText.setText(`Score: ${value}`);
113
+ this.registry.events.on('changedata-score', onScore);
114
+ // The registry outlives scenes: remove the listener or it stacks on every restart.
115
+ this.events.once('shutdown', () => this.registry.events.off('changedata-score', onScore));
116
+ }
117
+
118
+ // Talk to another running scene directly through its event emitter.
119
+ this.scene.get('hud').events.emit('show-message', 'Level cleared!');
120
+ ```
121
+
122
+ ### 4. Scene transitions
123
+
124
+ ```js
125
+ this.scene.start('gameover', { score }); // stop this scene, start the target
126
+ this.scene.launch('hud'); // run in parallel; restarts it if already running
127
+ this.scene.run('hud'); // wake if asleep, resume if paused, else start
128
+ this.scene.switch('menu'); // sleep this scene, start or wake the target
129
+ this.scene.pause(); // stop updating, keep drawing (modal menus)
130
+ this.scene.sleep(); // stop updating and drawing, keep state
131
+ this.scene.bringToTop('hud'); // draw order follows the scene list
132
+ ```
133
+
134
+ ### 5. HTML over the canvas
135
+
136
+ ```js
137
+ // Requires dom.createContainer and parent in the game config (Pattern 1).
138
+ const panel = this.add.dom(400, 300).createFromHTML(`
139
+ <form class="settings"><label>Volume <input name="vol" type="range"></label></form>`);
140
+ panel.addListener('input');
141
+ panel.on('input', (event) => this.sound.setVolume(event.target.value / 100));
142
+ ```
143
+
144
+ ### 6. Camera follow
145
+
146
+ ```js
147
+ this.cameras.main.setBounds(0, 0, 1600, 1200);
148
+ this.cameras.main.startFollow(this.player, true, 0.1, 0.1); // lerp follow
149
+ ```
150
+
151
+ ## Verify
152
+
153
+ 1. Build or type-check first: `npm run build` (or `npx tsc --noEmit` in a TypeScript project)
154
+ must pass.
155
+ 2. Test the rules modules with `node --test` when step 2 of the workflow was followed.
156
+ 3. Smoke-test the running game in a headless browser. With the dev server running and
157
+ `window.game` exposed (Pattern 1), save and run this with `node smoke.mjs <url>`. It needs
158
+ `npm i -D playwright` and `npx playwright install chromium`; if the user does not want
159
+ that, ask them to open the page and report the console output and what they see.
160
+
161
+ ```js
162
+ // smoke.mjs: fails on any page error; prints renderer, running scenes and a screenshot path.
163
+ import { chromium } from 'playwright';
164
+
165
+ const browser = await chromium.launch();
166
+ const page = await browser.newPage();
167
+ const errors = [];
168
+ page.on('pageerror', (e) => errors.push(e.message));
169
+ page.on('console', (m) => { if (m.type() === 'error') errors.push(m.text()); });
170
+ await page.goto(process.argv[2]);
171
+ await page.waitForFunction(() => window.game?.isRunning, null, { timeout: 15000 });
172
+ await page.waitForTimeout(1500); // let the first scenes finish preload
173
+ const state = await page.evaluate(() => ({
174
+ renderer: window.game.config.renderType === 2 ? 'webgl' : 'canvas', // Phaser.WEBGL = 2
175
+ scenes: window.game.scene.getScenes(true).map((s) => s.sys.settings.key),
176
+ }));
177
+ await page.screenshot({ path: 'smoke.png' });
178
+ await browser.close();
179
+ console.log(JSON.stringify({ ...state, errors }, null, 2));
180
+ process.exit(errors.length ? 1 : 0);
181
+ ```
182
+
183
+ Expect `renderer: "webgl"`, the scene keys you meant to be running (for example `["play",
184
+ "hud"]`), and an empty `errors` list. Open `smoke.png` and confirm the playfield and HUD are
185
+ drawn; DOM checks alone miss a canvas that renders nothing.
186
+
187
+ ## Gotchas
188
+
189
+ - **Assets are `undefined` in `create`** → they were not queued in `preload`, or the key is
190
+ wrong. The loader runs between `preload` and `create`. A failed file shows as a 404 in the
191
+ console, and sprites using that key draw Phaser's placeholder "missing" texture.
192
+ - **State leaks across a restart** → fields set in the constructor. A scene instance is reused,
193
+ so reset run state in `init()` and clear collections on `shutdown`.
194
+ - **HUD hidden, reset, or drawn underneath** → `start` stopped the gameplay scene; use
195
+ `launch`. A second `launch` or `run` on a running scene restarts it, so guard with
196
+ `isActive`. Scenes draw in scene-list order; call `bringToTop('hud')` if it was listed first.
197
+ - **Scene state read right after `start`/`launch` is stale** → scene operations are queued and
198
+ run at the start of the next game step.
199
+ - **`No DOM Container set in game config`** from `this.add.dom()` → add
200
+ `dom: { createContainer: true }` and a `parent` element to the game config.
201
+ - **Keys stay down after release, or Left + Right cancel out** → Phaser 4.2.1 skips keyboard
202
+ events that are already `defaultPrevented`, so a host-page listener that cancels `keyup`
203
+ leaves the key held. Check host listeners and extensions before touching movement code
204
+ (diagnosis in the reference).
205
+ - **A Phaser 3 snippet runs but looks wrong in Phaser 4** → `preFX`/`postFX` and `BitmapMask`
206
+ became filters (`obj.enableFilters()`, then `obj.filters.internal` / `.external`);
207
+ `setPipeline('Light2D')` became `setLighting(true)`; `setTintFill(c)` only logs an error,
208
+ use `setTint(c).setTintMode(Phaser.TintModes.FILL)`; `Phaser.Math.TAU` is now 2π (use
209
+ `Phaser.Math.PI_OVER_2` where v3 code meant π/2); `Geom.Point` is gone (use
210
+ `Phaser.Math.Vector2`).
211
+ - **Phaser 3 custom pipelines or renderer plugins fail in Phaser 4** → the renderer was
212
+ rebuilt and the old pipeline extension points are gone. Port them against the v4 migration
213
+ guide instead of copying renderer internals. Canvas rendering still works but is deprecated.
214
+ - **Pixel art is blurry or shimmers** → set `pixelArt: true`; it turns off antialiasing and
215
+ turns on `roundPixels`, which defaults to `false` in Phaser 4.
216
+ - **Black screen with no error** → no scene started, or the canvas has no size. Run
217
+ `game.scene.dump()` in the console to list scene states.
218
+ - **Two canvases after hot reload or a React/Vue remount** → a second `new Phaser.Game` ran
219
+ while the first was alive. Keep one instance and call `game.destroy(true)` on unmount; the
220
+ teardown finishes on the next frame. Leave `noReturn` false or no new game can start.
221
+
222
+ ## References
223
+
224
+ - Read [`references/scene-flow.md`](references/scene-flow.md) when a transition behaves
225
+ unexpectedly (pause vs sleep vs stop), listeners stack up after restarts, a scene key must be
226
+ replaced, or keys stay stuck down.
227
+
228
+ ## Related skills
229
+
230
+ - `phaser-arcade-physics`: velocity, gravity, colliders, overlaps and groups.
231
+ - `game-ui-ux`: HUD and menu layout, scaling and focus rules.
232
+ - `input-systems`: rebindable, multi-device input architecture.
233
+ - `platformer`, `puzzle`, `tower-defense`: genre skills that build on Phaser.
234
+
235
+ ## Version notes
236
+
237
+ Last verified: 2026-11-11.
238
+
239
+ - npm `latest` is Phaser 4.2.1 (published 2026-07-09). The newest 3.x on npm is 3.90.0.
240
+ - The keyboard `defaultPrevented` behaviour and `game.destroy(removeCanvas, noReturn)` were
241
+ checked in the v4.2.1 source; recheck the keyboard diagnosis on other versions.
242
+ - Sources: `npm view phaser dist-tags`,
243
+ [Phaser 4 migration guide](https://github.com/phaserjs/phaser/blob/v4.0.0/changelog/v4/4.0/MIGRATION-GUIDE.md),
244
+ [Phaser 3 to 4 article](https://phaser.io/news/2026/04/migrating-from-phaser-3-to-phaser-4-what-you-need-to-know),
245
+ [v4.2.1 source](https://github.com/phaserjs/phaser/tree/v4.2.1/src).
@@ -0,0 +1,177 @@
1
+ # Phaser scene flow (Phaser 4.2; core lifecycle also applies to 3.90)
2
+
3
+ The Scene Manager runs every scene through a small state machine. Knowing which
4
+ transition verb does what prevents the most common Phaser bugs: hidden scenes,
5
+ stale state after a restart, and duplicate event listeners.
6
+
7
+ Contents:
8
+
9
+ - Lifecycle order
10
+ - Transition verbs (table and rules of thumb)
11
+ - The restart-state bug
12
+ - Duplicate listeners
13
+ - Removing or replacing a scene
14
+ - Keys stay down after release (Phaser 4.2.1)
15
+
16
+ ## Lifecycle order
17
+
18
+ A scene is **booted once** (status `INIT`) and can be **started any number of
19
+ times**. On each start it runs:
20
+
21
+ ```
22
+ start → (loading, if preload queued anything) → create → running
23
+ ```
24
+
25
+ - `init(data)` — runs first on every start. **Reset run-specific state here.**
26
+ - `preload()` — queue asset downloads. Optional.
27
+ - `create(data)` — build game objects; assets queued in `preload` are now ready.
28
+ - `update(time, delta)` — called every frame while the scene is `running`.
29
+
30
+ The same `data` object is passed to `init` and `create`, coming from
31
+ `scene.start(key, data)` / `scene.launch(key, data)`.
32
+
33
+ ## Transition verbs
34
+
35
+ | Method | Effect on target | Effect on caller |
36
+ |--------|------------------|------------------|
37
+ | `start(key, data)` | start (or restart) | **stop** the caller |
38
+ | `launch(key, data)` | start in parallel; **restarts** it if already running | caller keeps running |
39
+ | `run(key, data)` | wake if sleeping, resume if paused, otherwise (re)start | caller keeps running |
40
+ | `switch(key)` | wake if sleeping, otherwise start (a paused target restarts) | **sleep** the caller |
41
+ | `pause(key?)` | stop updating, keep rendering | — |
42
+ | `resume(key?)` | resume updating | — |
43
+ | `sleep(key?)` | stop updating AND rendering, keep state | — |
44
+ | `wake(key?)` | resume a sleeping scene | — |
45
+ | `stop(key?)` | shutdown (frees objects) | — |
46
+
47
+ All of these are queued: the Scene Manager applies them at the start of the next game
48
+ step, so the target scene has not started yet on the line after `start`/`launch`.
49
+
50
+ Rules of thumb:
51
+
52
+ - **HUD/overlay** → `launch` it once; a second `launch` or `run` while it is running
53
+ restarts it, so guard with `this.scene.isActive('hud')`. Scenes draw in scene-list
54
+ order, so it is on top only if it comes after the gameplay scene in the `scene`
55
+ config array; otherwise call `this.scene.bringToTop('hud')`. Toggle with
56
+ `setVisible()` or `sleep`/`wake`, not `start`.
57
+ - **Modal pause menu** → `pause` the gameplay scene and `launch` the menu; `resume`
58
+ on close.
59
+ - **Title ⇄ gameplay you revisit** → prefer `sleep`/`wake` (state preserved, starts
60
+ only once) over `stop`/`start` (fresh each time) when re-initialisation is costly.
61
+
62
+ ## The restart-state bug
63
+
64
+ A Scene is a long-lived instance. Fields set in the constructor are set **once**,
65
+ so they keep their last value after a restart:
66
+
67
+ ```js
68
+ // WRONG — gameOver stays true forever after the first game over.
69
+ export default class Play extends Phaser.Scene {
70
+ constructor() {
71
+ super('play');
72
+ this.gameOver = false; // runs once, never again
73
+ }
74
+ }
75
+
76
+ // RIGHT — init() runs on every (re)start.
77
+ export default class Play extends Phaser.Scene {
78
+ constructor() { super('play'); }
79
+ init() { this.gameOver = false; }
80
+ }
81
+ ```
82
+
83
+ The same applies to module-level arrays that collect game objects: clear them on
84
+ `shutdown`, or they will hold destroyed objects from the previous run.
85
+
86
+ ```js
87
+ create() {
88
+ this.enemies = [];
89
+ // Clean up when the scene stops so the next run starts empty.
90
+ this.events.once('shutdown', () => { this.enemies.length = 0; });
91
+ }
92
+ ```
93
+
94
+ ## Duplicate listeners
95
+
96
+ Listeners added in `create` on a **global** emitter (the registry, the input
97
+ manager, another scene) survive scene restarts and stack up. Either:
98
+
99
+ - add them with `.once(...)`, or
100
+ - remove them on `shutdown`:
101
+
102
+ ```js
103
+ create() {
104
+ const onChange = (p, v) => this.refresh(v);
105
+ this.registry.events.on('changedata-coins', onChange);
106
+ this.events.once('shutdown', () => {
107
+ this.registry.events.off('changedata-coins', onChange);
108
+ });
109
+ }
110
+ ```
111
+
112
+ ## Removing or replacing a scene
113
+
114
+ You cannot reuse a scene key until the original is destroyed. To swap an instance
115
+ under the same key, remove it after it finishes shutting down:
116
+
117
+ ```js
118
+ this.scene.remove('level'); // remove by key
119
+ // then later
120
+ this.scene.add('level', NewLevelScene, true); // true = autostart
121
+ ```
122
+
123
+ A handy alternative to juggling keys is to store the active level key in the
124
+ registry and add/remove by that value.
125
+
126
+ ## Keys stay down after release (Phaser 4.2.1)
127
+
128
+ The keyboard manager skips events already marked `defaultPrevented`. With its
129
+ default `window` event target, a host-page listener earlier in propagation can
130
+ cancel `keyup` before Phaser handles it. A tracked `Key` then stays `isDown`;
131
+ opposing directions can cancel each other and later presses lose their down edge.
132
+ Check the installed version's implementation before applying this diagnosis elsewhere.
133
+
134
+ 1. Inspect `keydown` and `keyup` at window capture and at the configured keyboard
135
+ target. Compare `event.code`, `event.defaultPrevented`, and the tracked key state.
136
+ 2. Temporarily disable host keyboard handlers and test with extensions disabled.
137
+ Remove or narrow the handler that cancels releases for game-owned keys.
138
+ 3. After removing the interference, call the affected Scene's
139
+ `this.input.keyboard.resetKeys()` once to clear its stale tracked keys.
140
+ Calling it every frame would break held input. Phaser already resets these keys
141
+ on game blur, Scene pause, and Scene sleep; adding another blur reset alone
142
+ does not repair a release cancelled while the game remains focused.
143
+
144
+ For a local reproduction with the default keyboard target, temporarily register
145
+ this listener, press and release an arrow key, and inspect its `isDown` value:
146
+
147
+ ```js
148
+ const cancelRelease = (event) => {
149
+ if (event.code === 'ArrowLeft') event.preventDefault();
150
+ };
151
+ document.addEventListener('keyup', cancelRelease);
152
+ // After inspecting the stuck key, remove the diagnostic listener:
153
+ // document.removeEventListener('keyup', cancelRelease);
154
+ // Then reset the affected Scene's keys once as described above.
155
+ ```
156
+
157
+ If the host cannot be changed, replace keyboard handling deliberately: configure
158
+ the Game with `input: { keyboard: false }`, remove `createCursorKeys()` and other
159
+ keyboard-plugin calls, and own `window` capture listeners for `keydown`/`keyup`.
160
+ The replacement reader needs this contract:
161
+
162
+ - Track held keys by `event.code`; latch press/release edges until a simulation
163
+ tick consumes them so a short tap between ticks is retained. Suppress repeated
164
+ `keydown` edges while a key is held.
165
+ - Clear held state and pending edges on blur or document hiding. Clear and suspend
166
+ gameplay input on Scene pause/sleep, resume cleanly on resume/wake, and remove
167
+ DOM and Scene listeners on shutdown so restarts do not duplicate them.
168
+ - Limit capture to game-owned keys while gameplay owns focus; leave text fields,
169
+ editable content, and browser shortcuts usable. Process releases for keys already
170
+ held even if focus changed before release.
171
+ - Test short taps, opposite directions, key repeat, focus loss, pause/resume,
172
+ sleep/wake, and Scene restart. Capture sees events before later cancellation,
173
+ but cannot recover an event blocked by an earlier `stopImmediatePropagation()`.
174
+
175
+ Primary sources: Phaser 4.2.1
176
+ [KeyboardManager](https://github.com/phaserjs/phaser/blob/v4.2.1/src/input/keyboard/KeyboardManager.js)
177
+ and [KeyboardPlugin](https://github.com/phaserjs/phaser/blob/v4.2.1/src/input/keyboard/KeyboardPlugin.js).
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Shawn Pang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ Sera NOTICE
2
+ Kaynak: https://github.com/shawnpang/startup-founder-skills
3
+ Commit: 4ad31b4
4
+ Lisans: MIT (LICENSE dosyasi bu dizinde)
5
+ Degisiklik: Sera icin yalniz gereksiz dosyalar (test, gorsel, ucretli/ag servisi betikleri) cikarildi.