@su-record/vibe 2.8.24 → 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.
- package/dist/cli/commands/config.d.ts +17 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +207 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/index.d.ts +2 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +2 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +2 -0
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +78 -54
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/stats.d.ts +13 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +280 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +33 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +1 -0
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
- package/dist/cli/setup/GlobalInstaller.js +7 -7
- package/dist/cli/setup/GlobalInstaller.js.map +1 -1
- package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
- package/dist/cli/setup/ProjectSetup.js +18 -12
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/dist/infra/lib/ContextCompressor.d.ts.map +1 -1
- package/dist/infra/lib/ContextCompressor.js +10 -4
- package/dist/infra/lib/ContextCompressor.js.map +1 -1
- package/dist/infra/lib/ProjectCache.d.ts +2 -2
- package/dist/infra/lib/ProjectCache.d.ts.map +1 -1
- package/dist/infra/lib/ProjectCache.js +4 -3
- package/dist/infra/lib/ProjectCache.js.map +1 -1
- package/dist/infra/lib/utils.d.ts +24 -0
- package/dist/infra/lib/utils.d.ts.map +1 -1
- package/dist/infra/lib/utils.js +41 -0
- package/dist/infra/lib/utils.js.map +1 -1
- package/dist/infra/orchestrator/SmartRouter.d.ts +3 -0
- package/dist/infra/orchestrator/SmartRouter.d.ts.map +1 -1
- package/dist/infra/orchestrator/SmartRouter.js +11 -1
- package/dist/infra/orchestrator/SmartRouter.js.map +1 -1
- package/dist/infra/orchestrator/SmartRouter.test.d.ts +5 -0
- package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +1 -0
- package/dist/infra/orchestrator/SmartRouter.test.js +457 -0
- package/dist/infra/orchestrator/SmartRouter.test.js.map +1 -0
- package/dist/tools/convention/analyzeComplexity.d.ts.map +1 -1
- package/dist/tools/convention/analyzeComplexity.js +18 -10
- package/dist/tools/convention/analyzeComplexity.js.map +1 -1
- package/dist/tools/convention/checkCouplingCohesion.d.ts.map +1 -1
- package/dist/tools/convention/checkCouplingCohesion.js +14 -6
- package/dist/tools/convention/checkCouplingCohesion.js.map +1 -1
- package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +1 -1
- package/dist/tools/semantic/analyzeDependencyGraph.js +1 -1
- package/dist/tools/semantic/analyzeDependencyGraph.js.map +1 -1
- package/dist/tools/semantic/findReferences.d.ts.map +1 -1
- package/dist/tools/semantic/findReferences.js +13 -13
- package/dist/tools/semantic/findReferences.js.map +1 -1
- package/dist/tools/semantic/findSymbol.d.ts.map +1 -1
- package/dist/tools/semantic/findSymbol.js +12 -13
- package/dist/tools/semantic/findSymbol.js.map +1 -1
- package/dist/tools/semantic/lsp.d.ts.map +1 -1
- package/dist/tools/semantic/lsp.js +22 -14
- package/dist/tools/semantic/lsp.js.map +1 -1
- package/hooks/hooks.json +29 -0
- package/hooks/scripts/__tests__/keyword-detector.test.js +199 -0
- package/hooks/scripts/__tests__/pre-tool-guard.test.js +286 -0
- package/hooks/scripts/__tests__/sentinel-guard.test.js +210 -0
- package/hooks/scripts/auto-commit.js +65 -0
- package/hooks/scripts/auto-format.js +64 -0
- package/hooks/scripts/auto-test.js +81 -0
- package/hooks/scripts/code-check.js +139 -0
- package/hooks/scripts/command-log.js +32 -0
- package/hooks/scripts/context-save.js +60 -6
- package/hooks/scripts/hud-status.js +32 -2
- package/hooks/scripts/llm-orchestrate.js +95 -17
- package/hooks/scripts/pr-test-gate.js +52 -0
- package/package.json +1 -1
- package/skills/agents-md/rubrics/what-to-keep.md +49 -0
- package/skills/agents-md/templates/agents-md.md +36 -0
- package/skills/arch-guard/agents/detector.md +48 -0
- package/skills/arch-guard/agents/reporter.md +48 -0
- package/skills/arch-guard/agents/rule-generator.md +49 -0
- package/skills/arch-guard/agents/violation-checker.md +51 -0
- package/skills/arch-guard/frameworks/clean-architecture.md +108 -0
- package/skills/arch-guard/frameworks/solid.md +102 -0
- package/skills/arch-guard/scripts/check-boundaries.js +90 -0
- package/skills/arch-guard/templates/arch-rules.json +47 -0
- package/skills/arch-guard/templates/violation-report.md +53 -0
- package/skills/brand-assets/rubrics/asset-checklist.md +98 -0
- package/skills/brand-assets/templates/brand-guide.md +161 -0
- package/skills/capability-loop/agents/capability-designer.md +61 -0
- package/skills/capability-loop/agents/failure-analyst.md +55 -0
- package/skills/capability-loop/agents/implementer.md +50 -0
- package/skills/capability-loop/agents/tester.md +53 -0
- package/skills/capability-loop/templates/capability-spec.md +118 -0
- package/skills/capability-loop/templates/failure-analysis.md +118 -0
- package/skills/characterization-test/agents/behavior-capturer.md +50 -0
- package/skills/characterization-test/agents/coverage-checker.md +54 -0
- package/skills/characterization-test/agents/reporter.md +50 -0
- package/skills/characterization-test/agents/test-writer.md +49 -0
- package/skills/characterization-test/rubrics/coverage-criteria.md +53 -0
- package/skills/characterization-test/templates/test-template.ts +101 -0
- package/skills/claude-md-guide/rubrics/anti-patterns.md +88 -0
- package/skills/claude-md-guide/templates/claude-md.md +54 -0
- package/skills/commerce-patterns/rubrics/checkout-flow.md +48 -0
- package/skills/commerce-patterns/templates/product-schema.md +85 -0
- package/skills/commit-push-pr/agents/change-analyzer.md +55 -0
- package/skills/commit-push-pr/agents/message-writer.md +50 -0
- package/skills/commit-push-pr/agents/pr-writer.md +58 -0
- package/skills/commit-push-pr/agents/reviewer.md +52 -0
- package/skills/commit-push-pr/rubrics/commit-message.md +73 -0
- package/skills/commit-push-pr/templates/pr-body.md +63 -0
- package/skills/context7-usage/rubrics/when-to-use.md +50 -0
- package/skills/create-prd/agents/edge-case-finder.md +48 -0
- package/skills/create-prd/agents/prioritizer.md +60 -0
- package/skills/create-prd/agents/requirements-writer.md +48 -0
- package/skills/create-prd/agents/researcher.md +55 -0
- package/skills/create-prd/agents/reviewer.md +54 -0
- package/skills/create-prd/frameworks/jobs-to-be-done.md +96 -0
- package/skills/create-prd/frameworks/rice-scoring.md +97 -0
- package/skills/create-prd/orchestrator.md +70 -0
- package/skills/create-prd/rubrics/completeness.md +58 -0
- package/skills/create-prd/templates/prd.md +139 -0
- package/skills/design-audit/agents/a11y-auditor.md +43 -0
- package/skills/design-audit/agents/performance-auditor.md +46 -0
- package/skills/design-audit/agents/responsive-auditor.md +46 -0
- package/skills/design-audit/agents/scorer.md +47 -0
- package/skills/design-audit/agents/slop-detector.md +47 -0
- package/skills/design-audit/frameworks/core-web-vitals.md +107 -0
- package/skills/design-audit/frameworks/wcag-checklist.md +64 -0
- package/skills/design-audit/orchestrator.md +64 -0
- package/skills/design-audit/rubrics/ai-slop-patterns.md +83 -0
- package/skills/design-audit/rubrics/scoring.md +63 -0
- package/skills/design-audit/templates/report.md +88 -0
- package/skills/design-critique/rubrics/ux-heuristics.md +143 -0
- package/skills/design-critique/templates/critique-report.md +86 -0
- package/skills/design-distill/templates/design-system.md +132 -0
- package/skills/design-normalize/rubrics/token-naming.md +117 -0
- package/skills/design-normalize/templates/token-audit.md +89 -0
- package/skills/design-polish/rubrics/polish-checklist.md +68 -0
- package/skills/design-polish/templates/polish-report.md +64 -0
- package/skills/design-teach/rubrics/brand-personality.md +73 -0
- package/skills/design-teach/templates/design-context.json +36 -0
- package/skills/e2e-commerce/templates/test-scenarios.md +170 -0
- package/skills/event-comms/templates/email-invite.md +99 -0
- package/skills/event-comms/templates/sns-post.md +133 -0
- package/skills/event-ops/rubrics/contingency.md +85 -0
- package/skills/event-ops/templates/d-day-checklist.md +65 -0
- package/skills/event-planning/rubrics/timeline.md +70 -0
- package/skills/event-planning/templates/event-plan.md +91 -0
- package/skills/exec-plan/agents/decomposer.md +47 -0
- package/skills/exec-plan/agents/dependency-mapper.md +44 -0
- package/skills/exec-plan/agents/estimator.md +43 -0
- package/skills/exec-plan/agents/validator.md +55 -0
- package/skills/exec-plan/orchestrator.md +70 -0
- package/skills/exec-plan/rubrics/complexity-scoring.md +75 -0
- package/skills/exec-plan/templates/plan.md +147 -0
- package/skills/git-worktree/rubrics/when-to-use.md +55 -0
- package/skills/handoff/agents/context-summarizer.md +51 -0
- package/skills/handoff/agents/document-writer.md +63 -0
- package/skills/handoff/agents/state-collector.md +53 -0
- package/skills/handoff/agents/verifier.md +48 -0
- package/skills/handoff/rubrics/completeness.md +62 -0
- package/skills/handoff/templates/handoff.md +107 -0
- package/skills/parallel-research/agents/best-practices.md +43 -0
- package/skills/parallel-research/agents/codebase-patterns.md +46 -0
- package/skills/parallel-research/agents/framework-docs.md +45 -0
- package/skills/parallel-research/agents/security-advisory.md +46 -0
- package/skills/parallel-research/agents/synthesizer.md +52 -0
- package/skills/parallel-research/experts/best-practices.md +50 -0
- package/skills/parallel-research/experts/codebase-patterns.md +70 -0
- package/skills/parallel-research/experts/framework-docs.md +65 -0
- package/skills/parallel-research/experts/security-advisory.md +69 -0
- package/skills/parallel-research/orchestrator.md +65 -0
- package/skills/parallel-research/templates/synthesis.md +101 -0
- package/skills/prioritization-frameworks/rubrics/frameworks.md +79 -0
- package/skills/prioritization-frameworks/templates/scoring-matrix.md +69 -0
- package/skills/priority-todos/rubrics/prioritization.md +70 -0
- package/skills/priority-todos/templates/todo-board.md +59 -0
- package/skills/seo-checklist/frameworks/structured-data.md +153 -0
- package/skills/seo-checklist/rubrics/content-seo.md +42 -0
- package/skills/seo-checklist/rubrics/technical-seo.md +48 -0
- package/skills/techdebt/agents/analyzer.md +50 -0
- package/skills/techdebt/agents/fixer.md +41 -0
- package/skills/techdebt/agents/reviewer.md +47 -0
- package/skills/techdebt/agents/scanner.md +44 -0
- package/skills/techdebt/orchestrator.md +70 -0
- package/skills/techdebt/rubrics/severity.md +51 -0
- package/skills/techdebt/scripts/scan.js +90 -0
- package/skills/techdebt/templates/report.md +86 -0
- package/skills/tool-fallback/rubrics/fallback-chain.md +58 -0
- package/skills/typescript-advanced-types/rubrics/type-patterns.md +109 -0
- package/skills/ui-ux-pro-max/rubrics/interaction-states.md +83 -0
- package/skills/ui-ux-pro-max/rubrics/responsive-breakpoints.md +99 -0
- package/skills/user-personas/rubrics/research-methods.md +56 -0
- package/skills/user-personas/templates/persona.md +89 -0
- package/skills/vercel-react-best-practices/rubrics/performance.md +82 -0
- package/skills/vercel-react-best-practices/rubrics/server-components.md +86 -0
- package/skills/vibe-docs/SKILL.md +171 -0
- package/skills/vibe-docs/templates/architecture.md +80 -0
- package/skills/vibe-docs/templates/readme.md +84 -0
- package/skills/vibe-docs/templates/release-notes.md +74 -0
- package/skills/vibe-figma/rubrics/extraction-checklist.md +51 -0
- package/skills/vibe-figma/templates/figma-handoff.md +96 -0
- package/skills/vibe-figma-analyze/rubrics/analysis-dimensions.md +53 -0
- package/skills/vibe-figma-codegen/rubrics/code-quality.md +54 -0
- package/skills/vibe-figma-consolidate/templates/consolidation-report.md +95 -0
- package/skills/vibe-figma-convert/rubrics/conversion-rules.md +83 -0
- package/skills/vibe-figma-convert/templates/component.md +152 -0
- package/skills/vibe-figma-extract/rubrics/image-rules.md +67 -0
- package/skills/vibe-figma-frame/rubrics/frame-selection.md +55 -0
- package/skills/vibe-figma-pipeline/rubrics/pipeline-stages.md +96 -0
- package/skills/vibe-figma-rules/rubrics/naming-conventions.md +70 -0
- package/skills/vibe-figma-style/rubrics/style-mapping.md +100 -0
- package/skills/video-production/rubrics/quality-checklist.md +58 -0
- package/skills/video-production/templates/production-plan.md +104 -0
|
@@ -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
|
+
```
|