@su-record/vibe 2.8.24 → 2.8.26
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/SKILL.md +122 -206
- 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/SKILL.md +13 -175
- 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,96 @@
|
|
|
1
|
+
# Pipeline Stage Descriptions and Failure Handling
|
|
2
|
+
|
|
3
|
+
> This skill is merged into vibe-figma-consolidate (D-4). This rubric describes each stage of the Figma-to-code pipeline and what to do when a stage fails.
|
|
4
|
+
|
|
5
|
+
## Stage Map
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Phase 0: Setup
|
|
9
|
+
└─ Detect stack → Determine feature key → Create directories
|
|
10
|
+
|
|
11
|
+
Phase 1: Storyboard
|
|
12
|
+
└─ Classify frames → Analyze SPEC/CONFIG/PAGE → Generate component shells
|
|
13
|
+
|
|
14
|
+
Phase 2: Design (per breakpoint)
|
|
15
|
+
├─ 2-1: Style scaffold
|
|
16
|
+
├─ 2-2: Classify mode (normal/literal) per section
|
|
17
|
+
├─ 2-3: Split tall frames if needed
|
|
18
|
+
└─ 2-4: Section loop
|
|
19
|
+
├─ a. get_design_context
|
|
20
|
+
├─ b. Download all assets
|
|
21
|
+
├─ c. Convert code
|
|
22
|
+
├─ d. Refactor component template
|
|
23
|
+
└─ e. Verify section
|
|
24
|
+
|
|
25
|
+
Phase 3: Verification
|
|
26
|
+
├─ Automated grep checks
|
|
27
|
+
└─ Screenshot comparison
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Stage Failure Handling
|
|
31
|
+
|
|
32
|
+
### Phase 0 Failures
|
|
33
|
+
|
|
34
|
+
| Failure | Resolution |
|
|
35
|
+
|---------|-----------|
|
|
36
|
+
| Cannot detect stack | Ask user: "Vue or React? SCSS or Tailwind?" |
|
|
37
|
+
| Directory already exists | Proceed — do not overwrite existing files unless replacing |
|
|
38
|
+
|
|
39
|
+
### Phase 1 Failures
|
|
40
|
+
|
|
41
|
+
| Failure | Resolution |
|
|
42
|
+
|---------|-----------|
|
|
43
|
+
| Metadata too large (>100K chars) | Save to file, parse with Bash/Python to extract frame list |
|
|
44
|
+
| No SPEC frame found | Continue without feature requirements; note missing in report |
|
|
45
|
+
| No CONFIG frame | Use default scale factors (mobile: 480/720=0.667, PC: 1920/2560=0.75) |
|
|
46
|
+
| Storyboard URL is "없음" | Skip Phase 1, go directly to Phase 2 |
|
|
47
|
+
|
|
48
|
+
### Phase 2-a Failures (get_design_context)
|
|
49
|
+
|
|
50
|
+
| Failure | Retry | Escalation |
|
|
51
|
+
|---------|-------|-----------|
|
|
52
|
+
| Timeout on first call | Retry once with `excludeScreenshot: true` | Split frame → per-child calls |
|
|
53
|
+
| Timeout after split | Retry individual child once | `get_screenshot` + visual estimation |
|
|
54
|
+
| Empty response | Retry once | Skip section, log in consolidation report |
|
|
55
|
+
|
|
56
|
+
Maximum retries per section: 2. After 2 failures: use screenshot fallback. Never loop more than 3 times on the same section.
|
|
57
|
+
|
|
58
|
+
### Phase 2-b Failures (Asset Download)
|
|
59
|
+
|
|
60
|
+
| Failure | Resolution |
|
|
61
|
+
|---------|-----------|
|
|
62
|
+
| 0-byte file | Retry once with same curl command |
|
|
63
|
+
| 404 URL | Try `get_metadata` → sub-node → `get_design_context` for fresh URL |
|
|
64
|
+
| All retries failed | Log missing asset; continue with other assets; mark section as needs-review |
|
|
65
|
+
|
|
66
|
+
Single asset failure does not block the entire section unless it is a critical background image.
|
|
67
|
+
|
|
68
|
+
### Phase 2-e Section Verification Failures
|
|
69
|
+
|
|
70
|
+
| Check Failed | Action |
|
|
71
|
+
|-------------|--------|
|
|
72
|
+
| Figma URL in output | Find and replace all occurrences; re-verify |
|
|
73
|
+
| 0-byte or missing image | Re-download; if impossible, use placeholder only with TODO comment |
|
|
74
|
+
| Empty template | Do not proceed to next section until fixed |
|
|
75
|
+
| Build error | Fix TypeScript/template error; re-build |
|
|
76
|
+
|
|
77
|
+
### Phase 3 Failures (Screenshot Comparison)
|
|
78
|
+
|
|
79
|
+
| Priority | Issue Type | Action |
|
|
80
|
+
|----------|-----------|--------|
|
|
81
|
+
| P1 | Image missing, wrong layout, unstyled text | Fix immediately; re-verify before continuing |
|
|
82
|
+
| P2 | Spacing delta, slight color difference | Fix if time allows; defer if P1=0 and deadline is tight |
|
|
83
|
+
| P3 | Pixel-perfect micro-adjustments | Deferred to `/design-polish` pass |
|
|
84
|
+
|
|
85
|
+
P1 = 0 is required before the feature is considered complete. P2/P3 are best-effort.
|
|
86
|
+
|
|
87
|
+
## Design Quality Pipeline (Post-completion)
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
/design-normalize → normalize inconsistent values
|
|
91
|
+
/design-audit → automated audit (quick pass)
|
|
92
|
+
/design-critique → thorough visual critique
|
|
93
|
+
/design-polish → final polish pass
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Run at minimum: `/design-normalize` → `/design-audit --quick` before committing.
|
|
@@ -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
|
+
```
|