@su-record/vibe 2.8.23 → 2.8.25

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 (223) hide show
  1. package/commands/vibe.figma.md +2 -2
  2. package/dist/cli/commands/config.d.ts +17 -0
  3. package/dist/cli/commands/config.d.ts.map +1 -0
  4. package/dist/cli/commands/config.js +207 -0
  5. package/dist/cli/commands/config.js.map +1 -0
  6. package/dist/cli/commands/index.d.ts +2 -0
  7. package/dist/cli/commands/index.d.ts.map +1 -1
  8. package/dist/cli/commands/index.js +2 -0
  9. package/dist/cli/commands/index.js.map +1 -1
  10. package/dist/cli/commands/info.d.ts.map +1 -1
  11. package/dist/cli/commands/info.js +2 -0
  12. package/dist/cli/commands/info.js.map +1 -1
  13. package/dist/cli/commands/init.d.ts.map +1 -1
  14. package/dist/cli/commands/init.js +78 -54
  15. package/dist/cli/commands/init.js.map +1 -1
  16. package/dist/cli/commands/stats.d.ts +13 -0
  17. package/dist/cli/commands/stats.d.ts.map +1 -0
  18. package/dist/cli/commands/stats.js +280 -0
  19. package/dist/cli/commands/stats.js.map +1 -0
  20. package/dist/cli/index.d.ts.map +1 -1
  21. package/dist/cli/index.js +33 -1
  22. package/dist/cli/index.js.map +1 -1
  23. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  24. package/dist/cli/postinstall/constants.js +1 -0
  25. package/dist/cli/postinstall/constants.js.map +1 -1
  26. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  27. package/dist/cli/setup/GlobalInstaller.js +7 -7
  28. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  29. package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
  30. package/dist/cli/setup/ProjectSetup.js +18 -12
  31. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  32. package/dist/infra/lib/ContextCompressor.d.ts.map +1 -1
  33. package/dist/infra/lib/ContextCompressor.js +10 -4
  34. package/dist/infra/lib/ContextCompressor.js.map +1 -1
  35. package/dist/infra/lib/ProjectCache.d.ts +2 -2
  36. package/dist/infra/lib/ProjectCache.d.ts.map +1 -1
  37. package/dist/infra/lib/ProjectCache.js +4 -3
  38. package/dist/infra/lib/ProjectCache.js.map +1 -1
  39. package/dist/infra/lib/utils.d.ts +24 -0
  40. package/dist/infra/lib/utils.d.ts.map +1 -1
  41. package/dist/infra/lib/utils.js +41 -0
  42. package/dist/infra/lib/utils.js.map +1 -1
  43. package/dist/infra/orchestrator/SmartRouter.d.ts +3 -0
  44. package/dist/infra/orchestrator/SmartRouter.d.ts.map +1 -1
  45. package/dist/infra/orchestrator/SmartRouter.js +11 -1
  46. package/dist/infra/orchestrator/SmartRouter.js.map +1 -1
  47. package/dist/infra/orchestrator/SmartRouter.test.d.ts +5 -0
  48. package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +1 -0
  49. package/dist/infra/orchestrator/SmartRouter.test.js +457 -0
  50. package/dist/infra/orchestrator/SmartRouter.test.js.map +1 -0
  51. package/dist/tools/convention/analyzeComplexity.d.ts.map +1 -1
  52. package/dist/tools/convention/analyzeComplexity.js +18 -10
  53. package/dist/tools/convention/analyzeComplexity.js.map +1 -1
  54. package/dist/tools/convention/checkCouplingCohesion.d.ts.map +1 -1
  55. package/dist/tools/convention/checkCouplingCohesion.js +14 -6
  56. package/dist/tools/convention/checkCouplingCohesion.js.map +1 -1
  57. package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +1 -1
  58. package/dist/tools/semantic/analyzeDependencyGraph.js +1 -1
  59. package/dist/tools/semantic/analyzeDependencyGraph.js.map +1 -1
  60. package/dist/tools/semantic/findReferences.d.ts.map +1 -1
  61. package/dist/tools/semantic/findReferences.js +13 -13
  62. package/dist/tools/semantic/findReferences.js.map +1 -1
  63. package/dist/tools/semantic/findSymbol.d.ts.map +1 -1
  64. package/dist/tools/semantic/findSymbol.js +12 -13
  65. package/dist/tools/semantic/findSymbol.js.map +1 -1
  66. package/dist/tools/semantic/lsp.d.ts.map +1 -1
  67. package/dist/tools/semantic/lsp.js +22 -14
  68. package/dist/tools/semantic/lsp.js.map +1 -1
  69. package/hooks/hooks.json +29 -0
  70. package/hooks/scripts/__tests__/keyword-detector.test.js +199 -0
  71. package/hooks/scripts/__tests__/pre-tool-guard.test.js +286 -0
  72. package/hooks/scripts/__tests__/sentinel-guard.test.js +210 -0
  73. package/hooks/scripts/auto-commit.js +65 -0
  74. package/hooks/scripts/auto-format.js +64 -0
  75. package/hooks/scripts/auto-test.js +81 -0
  76. package/hooks/scripts/code-check.js +139 -0
  77. package/hooks/scripts/command-log.js +32 -0
  78. package/hooks/scripts/context-save.js +60 -6
  79. package/hooks/scripts/hud-status.js +32 -2
  80. package/hooks/scripts/llm-orchestrate.js +95 -17
  81. package/hooks/scripts/pr-test-gate.js +52 -0
  82. package/package.json +1 -1
  83. package/skills/agents-md/rubrics/what-to-keep.md +49 -0
  84. package/skills/agents-md/templates/agents-md.md +36 -0
  85. package/skills/arch-guard/agents/detector.md +48 -0
  86. package/skills/arch-guard/agents/reporter.md +48 -0
  87. package/skills/arch-guard/agents/rule-generator.md +49 -0
  88. package/skills/arch-guard/agents/violation-checker.md +51 -0
  89. package/skills/arch-guard/frameworks/clean-architecture.md +108 -0
  90. package/skills/arch-guard/frameworks/solid.md +102 -0
  91. package/skills/arch-guard/scripts/check-boundaries.js +90 -0
  92. package/skills/arch-guard/templates/arch-rules.json +47 -0
  93. package/skills/arch-guard/templates/violation-report.md +53 -0
  94. package/skills/brand-assets/rubrics/asset-checklist.md +98 -0
  95. package/skills/brand-assets/templates/brand-guide.md +161 -0
  96. package/skills/capability-loop/agents/capability-designer.md +61 -0
  97. package/skills/capability-loop/agents/failure-analyst.md +55 -0
  98. package/skills/capability-loop/agents/implementer.md +50 -0
  99. package/skills/capability-loop/agents/tester.md +53 -0
  100. package/skills/capability-loop/templates/capability-spec.md +118 -0
  101. package/skills/capability-loop/templates/failure-analysis.md +118 -0
  102. package/skills/characterization-test/agents/behavior-capturer.md +50 -0
  103. package/skills/characterization-test/agents/coverage-checker.md +54 -0
  104. package/skills/characterization-test/agents/reporter.md +50 -0
  105. package/skills/characterization-test/agents/test-writer.md +49 -0
  106. package/skills/characterization-test/rubrics/coverage-criteria.md +53 -0
  107. package/skills/characterization-test/templates/test-template.ts +101 -0
  108. package/skills/claude-md-guide/rubrics/anti-patterns.md +88 -0
  109. package/skills/claude-md-guide/templates/claude-md.md +54 -0
  110. package/skills/commerce-patterns/rubrics/checkout-flow.md +48 -0
  111. package/skills/commerce-patterns/templates/product-schema.md +85 -0
  112. package/skills/commit-push-pr/agents/change-analyzer.md +55 -0
  113. package/skills/commit-push-pr/agents/message-writer.md +50 -0
  114. package/skills/commit-push-pr/agents/pr-writer.md +58 -0
  115. package/skills/commit-push-pr/agents/reviewer.md +52 -0
  116. package/skills/commit-push-pr/rubrics/commit-message.md +73 -0
  117. package/skills/commit-push-pr/templates/pr-body.md +63 -0
  118. package/skills/context7-usage/rubrics/when-to-use.md +50 -0
  119. package/skills/create-prd/agents/edge-case-finder.md +48 -0
  120. package/skills/create-prd/agents/prioritizer.md +60 -0
  121. package/skills/create-prd/agents/requirements-writer.md +48 -0
  122. package/skills/create-prd/agents/researcher.md +55 -0
  123. package/skills/create-prd/agents/reviewer.md +54 -0
  124. package/skills/create-prd/frameworks/jobs-to-be-done.md +96 -0
  125. package/skills/create-prd/frameworks/rice-scoring.md +97 -0
  126. package/skills/create-prd/orchestrator.md +70 -0
  127. package/skills/create-prd/rubrics/completeness.md +58 -0
  128. package/skills/create-prd/templates/prd.md +139 -0
  129. package/skills/design-audit/agents/a11y-auditor.md +43 -0
  130. package/skills/design-audit/agents/performance-auditor.md +46 -0
  131. package/skills/design-audit/agents/responsive-auditor.md +46 -0
  132. package/skills/design-audit/agents/scorer.md +47 -0
  133. package/skills/design-audit/agents/slop-detector.md +47 -0
  134. package/skills/design-audit/frameworks/core-web-vitals.md +107 -0
  135. package/skills/design-audit/frameworks/wcag-checklist.md +64 -0
  136. package/skills/design-audit/orchestrator.md +64 -0
  137. package/skills/design-audit/rubrics/ai-slop-patterns.md +83 -0
  138. package/skills/design-audit/rubrics/scoring.md +63 -0
  139. package/skills/design-audit/templates/report.md +88 -0
  140. package/skills/design-critique/rubrics/ux-heuristics.md +143 -0
  141. package/skills/design-critique/templates/critique-report.md +86 -0
  142. package/skills/design-distill/templates/design-system.md +132 -0
  143. package/skills/design-normalize/rubrics/token-naming.md +117 -0
  144. package/skills/design-normalize/templates/token-audit.md +89 -0
  145. package/skills/design-polish/rubrics/polish-checklist.md +68 -0
  146. package/skills/design-polish/templates/polish-report.md +64 -0
  147. package/skills/design-teach/rubrics/brand-personality.md +73 -0
  148. package/skills/design-teach/templates/design-context.json +36 -0
  149. package/skills/e2e-commerce/templates/test-scenarios.md +170 -0
  150. package/skills/event-comms/templates/email-invite.md +99 -0
  151. package/skills/event-comms/templates/sns-post.md +133 -0
  152. package/skills/event-ops/rubrics/contingency.md +85 -0
  153. package/skills/event-ops/templates/d-day-checklist.md +65 -0
  154. package/skills/event-planning/rubrics/timeline.md +70 -0
  155. package/skills/event-planning/templates/event-plan.md +91 -0
  156. package/skills/exec-plan/agents/decomposer.md +47 -0
  157. package/skills/exec-plan/agents/dependency-mapper.md +44 -0
  158. package/skills/exec-plan/agents/estimator.md +43 -0
  159. package/skills/exec-plan/agents/validator.md +55 -0
  160. package/skills/exec-plan/orchestrator.md +70 -0
  161. package/skills/exec-plan/rubrics/complexity-scoring.md +75 -0
  162. package/skills/exec-plan/templates/plan.md +147 -0
  163. package/skills/git-worktree/rubrics/when-to-use.md +55 -0
  164. package/skills/handoff/agents/context-summarizer.md +51 -0
  165. package/skills/handoff/agents/document-writer.md +63 -0
  166. package/skills/handoff/agents/state-collector.md +53 -0
  167. package/skills/handoff/agents/verifier.md +48 -0
  168. package/skills/handoff/rubrics/completeness.md +62 -0
  169. package/skills/handoff/templates/handoff.md +107 -0
  170. package/skills/parallel-research/agents/best-practices.md +43 -0
  171. package/skills/parallel-research/agents/codebase-patterns.md +46 -0
  172. package/skills/parallel-research/agents/framework-docs.md +45 -0
  173. package/skills/parallel-research/agents/security-advisory.md +46 -0
  174. package/skills/parallel-research/agents/synthesizer.md +52 -0
  175. package/skills/parallel-research/experts/best-practices.md +50 -0
  176. package/skills/parallel-research/experts/codebase-patterns.md +70 -0
  177. package/skills/parallel-research/experts/framework-docs.md +65 -0
  178. package/skills/parallel-research/experts/security-advisory.md +69 -0
  179. package/skills/parallel-research/orchestrator.md +65 -0
  180. package/skills/parallel-research/templates/synthesis.md +101 -0
  181. package/skills/prioritization-frameworks/rubrics/frameworks.md +79 -0
  182. package/skills/prioritization-frameworks/templates/scoring-matrix.md +69 -0
  183. package/skills/priority-todos/rubrics/prioritization.md +70 -0
  184. package/skills/priority-todos/templates/todo-board.md +59 -0
  185. package/skills/seo-checklist/frameworks/structured-data.md +153 -0
  186. package/skills/seo-checklist/rubrics/content-seo.md +42 -0
  187. package/skills/seo-checklist/rubrics/technical-seo.md +48 -0
  188. package/skills/techdebt/agents/analyzer.md +50 -0
  189. package/skills/techdebt/agents/fixer.md +41 -0
  190. package/skills/techdebt/agents/reviewer.md +47 -0
  191. package/skills/techdebt/agents/scanner.md +44 -0
  192. package/skills/techdebt/orchestrator.md +70 -0
  193. package/skills/techdebt/rubrics/severity.md +51 -0
  194. package/skills/techdebt/scripts/scan.js +90 -0
  195. package/skills/techdebt/templates/report.md +86 -0
  196. package/skills/tool-fallback/rubrics/fallback-chain.md +58 -0
  197. package/skills/typescript-advanced-types/rubrics/type-patterns.md +109 -0
  198. package/skills/ui-ux-pro-max/rubrics/interaction-states.md +83 -0
  199. package/skills/ui-ux-pro-max/rubrics/responsive-breakpoints.md +99 -0
  200. package/skills/user-personas/rubrics/research-methods.md +56 -0
  201. package/skills/user-personas/templates/persona.md +89 -0
  202. package/skills/vercel-react-best-practices/rubrics/performance.md +82 -0
  203. package/skills/vercel-react-best-practices/rubrics/server-components.md +86 -0
  204. package/skills/vibe-docs/SKILL.md +171 -0
  205. package/skills/vibe-docs/templates/architecture.md +80 -0
  206. package/skills/vibe-docs/templates/readme.md +84 -0
  207. package/skills/vibe-docs/templates/release-notes.md +74 -0
  208. package/skills/vibe-figma/SKILL.md +173 -54
  209. package/skills/vibe-figma/rubrics/extraction-checklist.md +51 -0
  210. package/skills/vibe-figma/templates/figma-handoff.md +96 -0
  211. package/skills/vibe-figma-analyze/rubrics/analysis-dimensions.md +53 -0
  212. package/skills/vibe-figma-codegen/rubrics/code-quality.md +54 -0
  213. package/skills/vibe-figma-consolidate/templates/consolidation-report.md +95 -0
  214. package/skills/vibe-figma-convert/SKILL.md +176 -1
  215. package/skills/vibe-figma-convert/rubrics/conversion-rules.md +83 -0
  216. package/skills/vibe-figma-convert/templates/component.md +152 -0
  217. package/skills/vibe-figma-extract/rubrics/image-rules.md +67 -0
  218. package/skills/vibe-figma-frame/rubrics/frame-selection.md +55 -0
  219. package/skills/vibe-figma-pipeline/rubrics/pipeline-stages.md +96 -0
  220. package/skills/vibe-figma-rules/rubrics/naming-conventions.md +70 -0
  221. package/skills/vibe-figma-style/rubrics/style-mapping.md +100 -0
  222. package/skills/video-production/rubrics/quality-checklist.md +58 -0
  223. package/skills/video-production/templates/production-plan.md +104 -0
@@ -0,0 +1,70 @@
1
+ # Figma Layer Naming Conventions for Clean Extraction
2
+
3
+ > This skill is inlined into vibe-figma, vibe-figma-extract, and vibe-figma-convert. This rubric documents how Figma layer names map to generated code identifiers.
4
+
5
+ ## Layer Name → CSS Class
6
+
7
+ Convert `data-name` attribute values from reference code to CSS class names:
8
+
9
+ | Figma Layer Name | CSS Class | Notes |
10
+ |-----------------|-----------|-------|
11
+ | `BG` | `.bg` | Lowercase single word |
12
+ | `Title` | `.title` | PascalCase → camelCase |
13
+ | `Period` | `.period` | |
14
+ | `Light` | `.light` | |
15
+ | `BTN_Share` | `.btnShare` | `BTN_` prefix → `btn`, underscore → camelCase |
16
+ | `BTN_Primary` | `.btnPrimary` | |
17
+ | `KV` (Key Visual) | `.kv` | Acronym → all lowercase |
18
+ | `GNB` | `.gnb` | |
19
+ | `PC_Banner` | `.pcBanner` | |
20
+ | `Snow_Particle_12` | `.snowParticle12` | Underscore-separated → camelCase |
21
+ | *(no data-name)* | `.node-{nodeId}` | Replace `:` with `-` in nodeId |
22
+
23
+ ## Conflict Resolution
24
+
25
+ When two layers in the same section share the same name:
26
+ - Prefix with parent layer name: `.heroLight`, `.kidLight`
27
+ - Or append an index suffix: `.light-1`, `.light-2`
28
+ - Never generate duplicate class names in the same `<style scoped>` block
29
+
30
+ ## Image Variable Name → File Name
31
+
32
+ | Figma Variable | File Name | Rule |
33
+ |---------------|-----------|------|
34
+ | `imgTitle` | `title.webp` | Strip `img` prefix, kebab-case |
35
+ | `img21` | `img-21.webp` | Numeric suffix: keep number |
36
+ | `imgSnowParticle12` | `snow-particle-12.webp` | CamelCase → kebab |
37
+ | `imgImgBannerStatic` | `banner-static.webp` | Double `img` prefix → strip both |
38
+ | `imgBtnShare` | `btn-share.webp` | |
39
+
40
+ ## Component File Naming
41
+
42
+ | Figma Section Name | Component File |
43
+ |-------------------|----------------|
44
+ | "Hero" / "히어로" | `HeroSection.vue` |
45
+ | "Daily Check-in" / "일일 출석" | `DailyCheckInSection.vue` |
46
+ | "Play Time Mission" | `PlayTimeMissionSection.vue` |
47
+ | "Exchange" / "교환" | `ExchangeSection.vue` |
48
+ | "Popup" | `RewardPopup.vue` (non-section suffix) |
49
+ | "GNB" | `TheGnb.vue` (project-wide shared) |
50
+
51
+ Rules:
52
+ - PascalCase always
53
+ - Append `Section` suffix for page sections
54
+ - No `Section` suffix for popups, overlays, shared layout components
55
+
56
+ ## Feature Key (Directory Name)
57
+
58
+ Derived from Figma file name:
59
+
60
+ | Figma File Name | Feature Key |
61
+ |----------------|-------------|
62
+ | "PUBG 겨울 PC방 이벤트" | `winter-pcbang` |
63
+ | "Summer Campaign 2025" | `summer-campaign-2025` |
64
+ | "Login Page Redesign" | `login-page-redesign` |
65
+
66
+ Rules:
67
+ - kebab-case
68
+ - Remove language/brand prefixes if obvious from context
69
+ - Numbers and years are kept
70
+ - No special characters
@@ -0,0 +1,100 @@
1
+ # Figma Style → CSS/Tailwind Mapping Rules
2
+
3
+ > This skill is merged into vibe-figma-convert. This rubric is the definitive reference for converting Figma design values to output CSS.
4
+
5
+ ## Scale Factor Application
6
+
7
+ ```
8
+ scaledValue = Math.round(figmaValue × scaleFactor)
9
+ ```
10
+
11
+ Apply to: `px` units only (font-size, padding, margin, gap, width, height, top, left, inset, border-radius, box-shadow offsets, letter-spacing, blur radius).
12
+
13
+ Never apply to: colors, opacity, unitless line-height, `%` values, z-index, degrees.
14
+
15
+ ## Color Mapping
16
+
17
+ | Figma Token / Tailwind | CSS Output | Token Name |
18
+ |-----------------------|-----------|-----------|
19
+ | `text-[#1B3A1D]` | `color: #1B3A1D` | `$color-heading` |
20
+ | `text-white` | `color: #FFFFFF` | `$color-white` |
21
+ | `bg-[#0A1628]` | `background-color: #0A1628` | `$color-bg-dark` |
22
+ | `bg-[rgba(13,40,61,0.5)]` | `background: rgba(13,40,61,0.5)` | *(inline, no token)* |
23
+ | `var(--color/grayscale/950,#171716)` | `color: #171716` | Use fallback value |
24
+ | `border-[#E5E7EB]` | `border-color: #E5E7EB` | `$color-border` |
25
+
26
+ Create a `$color-*` token for any hex value that appears in 2+ selectors.
27
+
28
+ ## Typography Mapping
29
+
30
+ | Figma / Tailwind | CSS Property | Scale? |
31
+ |-----------------|-------------|--------|
32
+ | `text-[48px]` | `font-size: 48px × SF` | Yes |
33
+ | `font-black` | `font-weight: 900` | No |
34
+ | `font-bold` | `font-weight: 700` | No |
35
+ | `font-semibold` | `font-weight: 600` | No |
36
+ | `font-medium` | `font-weight: 500` | No |
37
+ | `font-normal` | `font-weight: 400` | No |
38
+ | `leading-[1.4]` | `line-height: 1.4` | No (unitless) |
39
+ | `leading-[48px]` | `line-height: 48px × SF` | Yes (has unit) |
40
+ | `tracking-[-0.36px]` | `letter-spacing: -0.36px × SF` | Yes |
41
+ | `text-center` | `text-align: center` | No |
42
+ | `whitespace-nowrap` | `white-space: nowrap` | No |
43
+ | `font-[family-name:var(--font/family/pretendard,...)]` | `font-family: 'Pretendard', sans-serif` | No |
44
+
45
+ ## Spacing Mapping
46
+
47
+ | Tailwind | CSS | Scale? |
48
+ |---------|-----|--------|
49
+ | `pt-[120px]` | `padding-top: 120px × SF` | Yes |
50
+ | `px-[24px]` | `padding-left: 24px × SF; padding-right: 24px × SF` | Yes |
51
+ | `gap-[24px]` | `gap: 24px × SF` | Yes |
52
+ | `mt-[16px]` | `margin-top: 16px × SF` | Yes |
53
+ | `rounded-[12px]` | `border-radius: 12px × SF` | Yes |
54
+ | `inset-0` | `inset: 0` | No |
55
+ | `inset-[-18.13%]` | `inset: -18.13%` | No (%) |
56
+
57
+ ## Layout Mapping
58
+
59
+ | Tailwind | CSS |
60
+ |---------|-----|
61
+ | `flex` | `display: flex` |
62
+ | `flex-col` | `flex-direction: column` |
63
+ | `items-center` | `align-items: center` |
64
+ | `justify-center` | `justify-content: center` |
65
+ | `justify-between` | `justify-content: space-between` |
66
+ | `grid` | `display: grid` |
67
+ | `absolute` | `position: absolute` |
68
+ | `relative` | `position: relative` |
69
+ | `overflow-clip` | `overflow: clip` ← not `overflow: hidden` |
70
+ | `overflow-hidden` | `overflow: hidden` |
71
+ | `size-full` | `width: 100%; height: 100%` |
72
+ | `w-full` | `width: 100%` |
73
+ | `max-w-none` | `max-width: none` |
74
+ | `z-[10]` | `z-index: 10` |
75
+ | `pointer-events-none` | `pointer-events: none` |
76
+
77
+ ## Visual Effects Mapping
78
+
79
+ | Tailwind | CSS | Scale? |
80
+ |---------|-----|--------|
81
+ | `opacity-40` | `opacity: 0.4` | No |
82
+ | `blur-[3.5px]` | `filter: blur(3.5px)` | Yes |
83
+ | `mix-blend-lighten` | `mix-blend-mode: lighten` | No |
84
+ | `mix-blend-multiply` | `mix-blend-mode: multiply` | No |
85
+ | `mix-blend-hue` | `mix-blend-mode: hue` | No |
86
+ | `rotate-[149.7deg]` | `transform: rotate(149.7deg)` | No |
87
+ | `-scale-y-100` | `transform: scaleY(-1)` | No |
88
+ | `shadow-[0_4px_24px_rgba(0,0,0,0.4)]` | `box-shadow: 0 4px × SF 24px × SF rgba(0,0,0,0.4)` | Partial (px only) |
89
+ | `object-cover` | `object-fit: cover` | No |
90
+ | `object-contain` | `object-fit: contain` | No |
91
+
92
+ ## Token Promotion Rules
93
+
94
+ Promote a value to `_tokens.scss` when:
95
+ - A color appears in 2+ different selectors
96
+ - A font-size serves a named role (heading, body, caption)
97
+ - A spacing value appears in 3+ places
98
+ - A breakpoint threshold is used
99
+
100
+ Do not promote one-off values used in a single selector — write them inline.
@@ -0,0 +1,58 @@
1
+ # Video Quality Checklist
2
+
3
+ ## Pre-Processing
4
+
5
+ - [ ] Input file exists and is readable before pipeline starts
6
+ - [ ] `ffprobe` run on input — codec, resolution, duration, bitrate logged
7
+ - [ ] Corrupted/truncated files rejected with clear error (not crash)
8
+ - [ ] Input resolution within supported range (min 360p, max 4K)
9
+ - [ ] Audio stream present — handle gracefully if missing
10
+
11
+ ## Encoding
12
+
13
+ - [ ] CRF-based encoding used (not fixed bitrate) for consistent visual quality
14
+ - [ ] Target codec available in current FFmpeg build (`ffmpeg -codecs` check)
15
+ - [ ] Encoding runs through wrapper library — no raw CLI string concatenation
16
+ - [ ] `-movflags +faststart` set for MP4 (enables streaming before full download)
17
+ - [ ] Audio normalized: loudness target -16 LUFS (streaming standard)
18
+ - [ ] Aspect ratio preserved — no unintended stretching
19
+
20
+ ## Progress & Monitoring
21
+
22
+ - [ ] Progress events emitted for any operation exceeding 10 seconds
23
+ - [ ] Encoding timeout configured — process killed on expiry
24
+ - [ ] Estimated time remaining shown in progress (based on bitrate processed)
25
+
26
+ ## Output Validation
27
+
28
+ - [ ] Output file exists after encoding completes
29
+ - [ ] Output duration verified: within ±2 seconds of input
30
+ - [ ] Output codec matches requested codec (re-run ffprobe on output)
31
+ - [ ] Output file size within acceptable range (flag if >3x input size)
32
+ - [ ] Thumbnail: correct dimensions, not blank/corrupted
33
+
34
+ ## Subtitles (if applicable)
35
+
36
+ - [ ] Subtitle file encoding is UTF-8 (convert if needed)
37
+ - [ ] Subtitle timing verified — first/last cue in range of video duration
38
+ - [ ] Burn-in subtitles visually tested on dark and light scenes
39
+
40
+ ## HLS / DASH Streaming (if applicable)
41
+
42
+ - [ ] `.m3u8` manifest references correct segment file names
43
+ - [ ] All segment files present in output directory
44
+ - [ ] Segment duration consistent (target ±1 second of configured value)
45
+ - [ ] CORS headers configured on media server
46
+
47
+ ## Storage & Cleanup
48
+
49
+ - [ ] Temp directory cleaned in `finally` block — both success and error paths
50
+ - [ ] No partial output files left on disk after failure
51
+ - [ ] Output written to separate directory from temp files
52
+ - [ ] Disk space checked before processing large files (minimum 3x input size free)
53
+
54
+ ## Security
55
+
56
+ - [ ] Input file path sanitized — no directory traversal (`../`)
57
+ - [ ] FFmpeg invoked via array arguments (not shell string) to prevent injection
58
+ - [ ] Max file size limit enforced before processing begins
@@ -0,0 +1,104 @@
1
+ # Video Production Plan Template
2
+
3
+ ## Project Overview
4
+
5
+ | Field | Value |
6
+ |-------|-------|
7
+ | Project Name | {{PROJECT_NAME}} |
8
+ | Output Format | {{FORMAT}} (e.g., HLS, MP4, WebM) |
9
+ | Target Resolution | {{RESOLUTION}} (e.g., 1080p) |
10
+ | Target Codec | {{CODEC}} (e.g., H.264 / libx264) |
11
+ | Duration (approx.) | {{DURATION}} |
12
+ | Deadline | {{DEADLINE}} |
13
+
14
+ ## Input Sources
15
+
16
+ | Source File | Format | Resolution | Duration | Notes |
17
+ |-------------|--------|------------|----------|-------|
18
+ | {{INPUT_FILE_1}} | {{FORMAT}} | {{RES}} | {{DUR}} | {{NOTES}} |
19
+
20
+ Run `ffprobe -v quiet -print_format json -show_streams {{INPUT_FILE}}` to populate this table.
21
+
22
+ ## Processing Pipeline
23
+
24
+ ```
25
+ Input Validation (ffprobe)
26
+
27
+ Pre-processing (trim / deinterlace / normalize audio)
28
+
29
+ Transcoding ({{CODEC}}, CRF {{CRF_VALUE}})
30
+
31
+ Post-processing (subtitles / thumbnail extraction / HLS segmentation)
32
+
33
+ Output Validation (verify duration, codec, bitrate)
34
+
35
+ Cleanup (remove temp files)
36
+ ```
37
+
38
+ ## Encoding Parameters
39
+
40
+ ```bash
41
+ # Replace placeholders before running
42
+ ffmpeg \
43
+ -i "{{INPUT_FILE}}" \
44
+ -c:v {{VIDEO_CODEC}} \
45
+ -crf {{CRF_VALUE}} \
46
+ -preset {{PRESET}} \
47
+ -c:a aac -b:a 128k \
48
+ -movflags +faststart \
49
+ -progress pipe:1 \
50
+ "{{OUTPUT_FILE}}"
51
+ ```
52
+
53
+ | Parameter | Value | Rationale |
54
+ |-----------|-------|-----------|
55
+ | Codec | {{VIDEO_CODEC}} | {{CODEC_RATIONALE}} |
56
+ | CRF | {{CRF_VALUE}} | 18-23 = high quality, 24-28 = balanced |
57
+ | Preset | {{PRESET}} | `slow` = better compression, `fast` = faster encoding |
58
+ | Audio | AAC 128k | Universal compatibility |
59
+
60
+ ## Subtitles
61
+
62
+ - [ ] Subtitle file: `{{SUBTITLE_FILE}}` (SRT / VTT)
63
+ - [ ] Burn-in (hardcoded) or soft subtitle track: {{SUBTITLE_TYPE}}
64
+ - [ ] Language code: `{{LANG_CODE}}`
65
+
66
+ ## Thumbnail Extraction
67
+
68
+ ```bash
69
+ # Extract frame at {{TIMESTAMP}} seconds
70
+ ffmpeg -i "{{INPUT_FILE}}" -ss {{TIMESTAMP}} -frames:v 1 "{{THUMBNAIL_OUTPUT}}"
71
+ ```
72
+
73
+ ## HLS Output (if streaming)
74
+
75
+ ```bash
76
+ ffmpeg -i "{{INPUT_FILE}}" \
77
+ -codec: copy \
78
+ -start_number 0 \
79
+ -hls_time 10 \
80
+ -hls_list_size 0 \
81
+ -f hls \
82
+ "{{HLS_OUTPUT_DIR}}/stream.m3u8"
83
+ ```
84
+
85
+ ## Quality Gates
86
+
87
+ - [ ] Input validated with ffprobe before processing starts
88
+ - [ ] Progress callback implemented (log every 10 seconds)
89
+ - [ ] Timeout set: {{TIMEOUT_SECONDS}}s
90
+ - [ ] Output file size within expected range: {{MIN_SIZE}}–{{MAX_SIZE}} MB
91
+ - [ ] Output duration matches input: ±2 seconds tolerance
92
+ - [ ] Temp files cleaned on success AND error
93
+
94
+ ## Temp File Management
95
+
96
+ ```
97
+ temp/
98
+ ├── {{JOB_ID}}_input_validated.{{EXT}}
99
+ ├── {{JOB_ID}}_preprocessed.{{EXT}}
100
+ └── (cleaned up in finally block)
101
+
102
+ output/
103
+ └── {{JOB_ID}}_final.{{EXT}}
104
+ ```