@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,54 @@
|
|
|
1
|
+
# Code Generation Quality Checklist
|
|
2
|
+
|
|
3
|
+
> This skill is merged into vibe-figma-convert. Use this checklist to validate generated component and style files before moving to the next section.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
- [ ] Component file exists at `components/{feature}/{ComponentName}.vue` (or `.tsx`)
|
|
8
|
+
- [ ] Template is not empty — at least one visible HTML element with content
|
|
9
|
+
- [ ] No `placeholder` text remaining in any attribute or text node
|
|
10
|
+
- [ ] No `src=""` or `href=""` empty attributes
|
|
11
|
+
|
|
12
|
+
## Assets
|
|
13
|
+
|
|
14
|
+
- [ ] All `const img...` variables from reference code are replaced with local `/images/{feature}/` paths
|
|
15
|
+
- [ ] No `figma.com/api` URLs in any generated file
|
|
16
|
+
- [ ] Every image path references a file that was actually downloaded (cross-check image map)
|
|
17
|
+
- [ ] Decorative images have `alt="" aria-hidden="true"`
|
|
18
|
+
- [ ] Content images have descriptive `alt` text
|
|
19
|
+
|
|
20
|
+
## Styles (Normal Mode)
|
|
21
|
+
|
|
22
|
+
- [ ] No `<style>` block inside the component file
|
|
23
|
+
- [ ] No inline `style=""` attribute (exception: dynamic `:style` for mask-image)
|
|
24
|
+
- [ ] External layout file exists at `styles/{feature}/layout/_{section}.scss`
|
|
25
|
+
- [ ] External components file exists at `styles/{feature}/components/_{section}.scss`
|
|
26
|
+
- [ ] `_tokens.scss` updated with any new unique color/spacing/typography values
|
|
27
|
+
|
|
28
|
+
## Styles (Literal Mode)
|
|
29
|
+
|
|
30
|
+
- [ ] `<style scoped>` block present in component
|
|
31
|
+
- [ ] No external SCSS files created for this section
|
|
32
|
+
- [ ] All `position: absolute` coordinates are scaled by scaleFactor
|
|
33
|
+
- [ ] `mix-blend-mode`, `rotate`, `blur`, `mask-image` values preserved verbatim
|
|
34
|
+
- [ ] `%` values not scaled (only `px` values are scaled)
|
|
35
|
+
|
|
36
|
+
## TypeScript / Script
|
|
37
|
+
|
|
38
|
+
- [ ] JSDoc comment present with `[기능 정의]`, `[인터랙션]`, `[상태]` sections
|
|
39
|
+
- [ ] No `any` type — use explicit interfaces or `unknown`
|
|
40
|
+
- [ ] Mock data arrays have 3–7 items (not empty `[]`)
|
|
41
|
+
- [ ] Event handler stubs exist with `// TODO:` body
|
|
42
|
+
- [ ] Explicit return types on all functions
|
|
43
|
+
|
|
44
|
+
## Responsive
|
|
45
|
+
|
|
46
|
+
- [ ] Base styles target the smallest viewport (mobile-first)
|
|
47
|
+
- [ ] Desktop overrides use `@media (min-width: {$bp-pc})` or the project mixin
|
|
48
|
+
- [ ] No existing base styles deleted when adding breakpoint overrides
|
|
49
|
+
|
|
50
|
+
## Build
|
|
51
|
+
|
|
52
|
+
- [ ] No TypeScript compile errors in the generated file
|
|
53
|
+
- [ ] No missing imports (components, composables, types)
|
|
54
|
+
- [ ] Template references only props/data/computed that are declared in `<script setup>`
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Consolidation Report — {{FEATURE_NAME}}
|
|
2
|
+
|
|
3
|
+
**Feature Key:** {{FEATURE_KEY}}
|
|
4
|
+
**Date:** {{DATE}}
|
|
5
|
+
**Phase:** Post-implementation verification
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Summary
|
|
10
|
+
|
|
11
|
+
| Metric | Value |
|
|
12
|
+
|--------|-------|
|
|
13
|
+
| Total sections | {{SECTION_COUNT}} |
|
|
14
|
+
| Sections passing | {{PASS_COUNT}} |
|
|
15
|
+
| P1 issues found | {{P1_COUNT}} |
|
|
16
|
+
| P2 issues found | {{P2_COUNT}} |
|
|
17
|
+
| Assets downloaded | {{ASSET_COUNT}} |
|
|
18
|
+
| Build status | {{BUILD_STATUS}} |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Automated Grep Results
|
|
23
|
+
|
|
24
|
+
| Check | Result | Details |
|
|
25
|
+
|-------|--------|---------|
|
|
26
|
+
| `figma.com/api` in generated files | {{PASS/FAIL}} | {{COUNT}} occurrences |
|
|
27
|
+
| `<style` in `components/{{FEATURE_KEY}}/` | {{PASS/FAIL}} | {{COUNT}} occurrences |
|
|
28
|
+
| `style="` in `components/{{FEATURE_KEY}}/` | {{PASS/FAIL}} | {{COUNT}} occurrences |
|
|
29
|
+
| `placeholder` in components | {{PASS/FAIL}} | {{COUNT}} occurrences |
|
|
30
|
+
| `src=""` in components | {{PASS/FAIL}} | {{COUNT}} occurrences |
|
|
31
|
+
| Images in `public/images/{{FEATURE_KEY}}/` | {{PASS/FAIL}} | {{COUNT}} files |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Section Review
|
|
36
|
+
|
|
37
|
+
| # | Section | Component | Mode | Screenshot Match | P1 | P2 |
|
|
38
|
+
|---|---------|-----------|------|-----------------|----|----|
|
|
39
|
+
| 1 | {{SECTION_NAME}} | `{{ComponentName}}.vue` | {{normal/literal}} | {{match %}} | {{count}} | {{count}} |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## P1 Issues (Must Fix)
|
|
44
|
+
|
|
45
|
+
### {{SECTION_NAME}} — {{ISSUE_TITLE}}
|
|
46
|
+
|
|
47
|
+
**Type:** {{image-missing / layout-mismatch / text-unstyled / asset-wrong-path}}
|
|
48
|
+
**Description:** {{DESCRIPTION}}
|
|
49
|
+
**Fix:** {{FIX_INSTRUCTION}}
|
|
50
|
+
**Status:** {{open / fixed}}
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## P2 Issues (Recommended)
|
|
55
|
+
|
|
56
|
+
### {{SECTION_NAME}} — {{ISSUE_TITLE}}
|
|
57
|
+
|
|
58
|
+
**Type:** {{spacing-delta / color-delta / font-size-delta}}
|
|
59
|
+
**Description:** {{DESCRIPTION}} (delta: {{DELTA}})
|
|
60
|
+
**Fix:** {{FIX_INSTRUCTION}}
|
|
61
|
+
**Status:** {{open / deferred}}
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## File Manifest
|
|
66
|
+
|
|
67
|
+
### Components
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
components/{{FEATURE_KEY}}/
|
|
71
|
+
{{FILE_LIST}}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Styles
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
styles/{{FEATURE_KEY}}/
|
|
78
|
+
{{FILE_LIST}}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Assets
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
public/images/{{FEATURE_KEY}}/
|
|
85
|
+
{{FILE_LIST}}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Next Steps
|
|
91
|
+
|
|
92
|
+
- [ ] P1 count = 0 (required before handoff)
|
|
93
|
+
- [ ] Run `/design-normalize` → `/design-audit --quick`
|
|
94
|
+
- [ ] Optional: `/design-critique` → `/design-polish` for thorough review
|
|
95
|
+
- [ ] Commit with feature key tag: `feat({{FEATURE_KEY}}): figma design implementation`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# React+Tailwind → Project Stack Conversion Rules
|
|
2
|
+
|
|
3
|
+
## Mode Selection (Do This First)
|
|
4
|
+
|
|
5
|
+
Classify each section before writing any code. Literal mode if ANY of:
|
|
6
|
+
- 15+ asset URLs in the section
|
|
7
|
+
- Fractional coordinates (`left-[117.13px]`)
|
|
8
|
+
- `mix-blend-*` on any layer
|
|
9
|
+
- `rotate-[Ndeg]` or `-scale-y-100`
|
|
10
|
+
- `mask-image` usage
|
|
11
|
+
- `blur-[Npx]` filter
|
|
12
|
+
- BG cropped from 2560px+ source
|
|
13
|
+
|
|
14
|
+
Normal mode only when ALL of:
|
|
15
|
+
- Flex/grid layout, no absolute coordinates (or integer-only)
|
|
16
|
+
- Fewer than 10 asset URLs
|
|
17
|
+
- No blend/rotate/mask/blur
|
|
18
|
+
|
|
19
|
+
## Normal Mode Rules
|
|
20
|
+
|
|
21
|
+
- Extract CSS values from Tailwind classes — never estimate
|
|
22
|
+
- Apply `scaleFactor` to all `px` values; never to colors, opacity, z-index, line-height (unitless)
|
|
23
|
+
- Put layout properties in `layout/_section.scss`, visual/text properties in `components/_section.scss`
|
|
24
|
+
- No `<style>` block in the component file
|
|
25
|
+
- No inline `style=""` attribute in the template
|
|
26
|
+
|
|
27
|
+
## Literal Mode Rules
|
|
28
|
+
|
|
29
|
+
- Preserve the full HTML nesting structure 1:1
|
|
30
|
+
- Keep all absolute coordinates, fractional px values (rounded after scaling)
|
|
31
|
+
- Keep all `mix-blend-mode`, `rotate`, `mask-image`, `blur` values unchanged
|
|
32
|
+
- Put all styles in `<style scoped>` inside the component
|
|
33
|
+
- Do not create external SCSS files for literal sections
|
|
34
|
+
|
|
35
|
+
## Tailwind Class Gotchas
|
|
36
|
+
|
|
37
|
+
| Tailwind | Correct CSS | Common Mistake |
|
|
38
|
+
|----------|------------|----------------|
|
|
39
|
+
| `size-full` | `width: 100%; height: 100%` | Only setting `width: 100%` |
|
|
40
|
+
| `inset-0` | `inset: 0` (shorthand) | Expanding to 4 properties |
|
|
41
|
+
| `inset-[-18.13%]` | `inset: -18.13%` | Scaling the % value |
|
|
42
|
+
| `overflow-clip` | `overflow: clip` | Using `overflow: hidden` |
|
|
43
|
+
| `leading-[1.4]` | `line-height: 1.4` | Applying scaleFactor |
|
|
44
|
+
| `max-w-none` | `max-width: none` | Omitting entirely |
|
|
45
|
+
| `object-cover` on `<img>` | `object-fit: cover` + parent `overflow: hidden` | Forgetting parent clip |
|
|
46
|
+
| `pointer-events-none` | `pointer-events: none` | Omitting for decorative layers |
|
|
47
|
+
| `text-white` | `color: #FFFFFF` | Using `color: white` |
|
|
48
|
+
| `font-black` | `font-weight: 900` | Using `font-weight: bold` |
|
|
49
|
+
|
|
50
|
+
## Scale Application
|
|
51
|
+
|
|
52
|
+
Apply `× scaleFactor` to:
|
|
53
|
+
- `px` sizes: font-size, padding, margin, gap, border-radius, width, height, top, left, bottom, right
|
|
54
|
+
- `px` in box-shadow, blur filter, letter-spacing
|
|
55
|
+
|
|
56
|
+
Do NOT scale:
|
|
57
|
+
- Color values
|
|
58
|
+
- Opacity values
|
|
59
|
+
- `%` values
|
|
60
|
+
- Unitless line-height
|
|
61
|
+
- z-index
|
|
62
|
+
- `mix-blend-mode` values
|
|
63
|
+
- `rotate` degree values
|
|
64
|
+
|
|
65
|
+
## Sprite / Overflow Image Pattern
|
|
66
|
+
|
|
67
|
+
When `left` is a large negative %, it is a sprite crop — do NOT scale:
|
|
68
|
+
```css
|
|
69
|
+
/* Correct */
|
|
70
|
+
left: -129.09%;
|
|
71
|
+
width: 229.09%;
|
|
72
|
+
|
|
73
|
+
/* Wrong — do not scale % values */
|
|
74
|
+
left: -86.09%; /* -129.09 × 0.667 — incorrect */
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Class Naming (Literal Mode)
|
|
78
|
+
|
|
79
|
+
Source priority: `data-name` attribute → `data-node-id`
|
|
80
|
+
- `data-name="BG"` → `.bg`
|
|
81
|
+
- `data-name="Light"` → `.light`
|
|
82
|
+
- No `data-name` → `.node-{nodeId}` (replace `:` with `-`)
|
|
83
|
+
- Conflicts: append parent name prefix (`.heroLight`, `.kidLight`)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Component Output Template
|
|
2
|
+
|
|
3
|
+
Use this template when generating a section component from Figma reference code.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Normal Mode (External SCSS)
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<!-- components/{{FEATURE_KEY}}/{{ComponentName}}.vue -->
|
|
11
|
+
<template>
|
|
12
|
+
<section class="{{sectionName}}">
|
|
13
|
+
<!-- BG Layer (if section has background image) -->
|
|
14
|
+
<div class="{{sectionName}}Bg">
|
|
15
|
+
<img src="/images/{{FEATURE_KEY}}/{{bg-file}}.webp" alt="" aria-hidden="true" />
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<!-- Content Layer -->
|
|
19
|
+
<div class="{{sectionName}}Content">
|
|
20
|
+
<!-- Title image (if present) -->
|
|
21
|
+
<div class="{{sectionName}}Title">
|
|
22
|
+
<img src="/images/{{FEATURE_KEY}}/{{title-file}}.webp" alt="{{TITLE_ALT_TEXT}}" />
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!-- Repeating items (from storyboard mock data) -->
|
|
26
|
+
<ul class="{{sectionName}}List">
|
|
27
|
+
<li
|
|
28
|
+
v-for="item in items"
|
|
29
|
+
:key="item.id"
|
|
30
|
+
class="{{sectionName}}Item"
|
|
31
|
+
>
|
|
32
|
+
<img :src="item.image" :alt="item.label" />
|
|
33
|
+
<p class="{{sectionName}}ItemLabel">{{ item.label }}</p>
|
|
34
|
+
</li>
|
|
35
|
+
</ul>
|
|
36
|
+
|
|
37
|
+
<!-- CTA Button -->
|
|
38
|
+
<button class="{{sectionName}}Btn" @click="handleAction">
|
|
39
|
+
{{BUTTON_LABEL}}
|
|
40
|
+
</button>
|
|
41
|
+
</div>
|
|
42
|
+
</section>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script setup lang="ts">
|
|
46
|
+
/**
|
|
47
|
+
* {{SECTION_DISPLAY_NAME}}
|
|
48
|
+
*
|
|
49
|
+
* [기능 정의]
|
|
50
|
+
* - {{FEATURE_REQUIREMENT_1}}
|
|
51
|
+
* - {{FEATURE_REQUIREMENT_2}}
|
|
52
|
+
*
|
|
53
|
+
* [인터랙션]
|
|
54
|
+
* ① {{INTERACTION_1}}
|
|
55
|
+
* ② {{INTERACTION_2}}
|
|
56
|
+
*
|
|
57
|
+
* [상태] {{STATE_LIST}}
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
interface {{ItemType}} {
|
|
61
|
+
id: number
|
|
62
|
+
label: string
|
|
63
|
+
image: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const items: {{ItemType}}[] = [
|
|
67
|
+
{ id: 1, label: '{{MOCK_LABEL_1}}', image: '/images/{{FEATURE_KEY}}/{{mock-img-1}}.webp' },
|
|
68
|
+
{ id: 2, label: '{{MOCK_LABEL_2}}', image: '/images/{{FEATURE_KEY}}/{{mock-img-2}}.webp' },
|
|
69
|
+
{ id: 3, label: '{{MOCK_LABEL_3}}', image: '/images/{{FEATURE_KEY}}/{{mock-img-3}}.webp' },
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
const emit = defineEmits<{
|
|
73
|
+
action: []
|
|
74
|
+
}>()
|
|
75
|
+
|
|
76
|
+
function handleAction(): void {
|
|
77
|
+
// TODO: {{ACTION_DESCRIPTION}}
|
|
78
|
+
emit('action')
|
|
79
|
+
}
|
|
80
|
+
</script>
|
|
81
|
+
<!-- styles: styles/{{FEATURE_KEY}}/layout/_{{section}}.scss + components/_{{section}}.scss -->
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Literal Mode (Scoped CSS)
|
|
87
|
+
|
|
88
|
+
```vue
|
|
89
|
+
<!-- components/{{FEATURE_KEY}}/{{ComponentName}}.vue -->
|
|
90
|
+
<template>
|
|
91
|
+
<section class="{{sectionName}}">
|
|
92
|
+
<!-- 1:1 structure from reference code — preserve all nesting -->
|
|
93
|
+
<div class="bg">
|
|
94
|
+
<img src="/images/{{FEATURE_KEY}}/{{bg-file}}.webp" alt="" aria-hidden="true" />
|
|
95
|
+
</div>
|
|
96
|
+
<div class="titleArea">
|
|
97
|
+
<img src="/images/{{FEATURE_KEY}}/{{title-file}}.webp" alt="{{TITLE_ALT_TEXT}}" />
|
|
98
|
+
</div>
|
|
99
|
+
<!-- Re-insert Phase 1 functional elements at appropriate positions -->
|
|
100
|
+
<button class="ctaBtn" @click="handleAction">{{BUTTON_LABEL}}</button>
|
|
101
|
+
</section>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
<script setup lang="ts">
|
|
105
|
+
/**
|
|
106
|
+
* {{SECTION_DISPLAY_NAME}}
|
|
107
|
+
* [기능 정의] {{FEATURE_REQUIREMENT_1}}
|
|
108
|
+
* [인터랙션] ① {{INTERACTION_1}}
|
|
109
|
+
* [상태] {{STATE_LIST}}
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
function handleAction(): void {
|
|
113
|
+
// TODO: {{ACTION_DESCRIPTION}}
|
|
114
|
+
}
|
|
115
|
+
</script>
|
|
116
|
+
|
|
117
|
+
<style scoped>
|
|
118
|
+
.{{sectionName}} {
|
|
119
|
+
position: relative;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: {{SECTION_HEIGHT_SCALED}}px; /* {{SECTION_HEIGHT_ORIGINAL}} × {{SCALE_FACTOR}} */
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.bg {
|
|
126
|
+
position: absolute;
|
|
127
|
+
inset: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.bg img {
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 100%;
|
|
133
|
+
object-fit: cover;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.titleArea {
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: {{TITLE_TOP_SCALED}}px; /* {{TITLE_TOP_ORIGINAL}} × {{SCALE_FACTOR}} */
|
|
139
|
+
left: 50%;
|
|
140
|
+
transform: translateX(-50%);
|
|
141
|
+
width: {{TITLE_WIDTH_SCALED}}px;
|
|
142
|
+
height: {{TITLE_HEIGHT_SCALED}}px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* {{RESPONSIVE_BREAKPOINT}} */
|
|
146
|
+
@media (min-width: {{BP_PC}}px) {
|
|
147
|
+
.{{sectionName}} {
|
|
148
|
+
height: {{SECTION_HEIGHT_PC_SCALED}}px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
152
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Image Extraction Rules
|
|
2
|
+
|
|
3
|
+
## Format
|
|
4
|
+
|
|
5
|
+
- Output format: `.webp` always — never `.png`, `.jpg`, `.svg` from MCP asset URLs
|
|
6
|
+
- Exception: SVG icons referenced as inline code (not MCP URLs) stay as `.svg`
|
|
7
|
+
- Do not convert or re-encode after download — use the raw bytes from `curl`
|
|
8
|
+
|
|
9
|
+
## Naming
|
|
10
|
+
|
|
11
|
+
Convert the JavaScript variable name to kebab-case:
|
|
12
|
+
|
|
13
|
+
| Variable | File Name |
|
|
14
|
+
|----------|-----------|
|
|
15
|
+
| `img21` | `img-21.webp` |
|
|
16
|
+
| `imgTitle` | `title.webp` (strip leading `img` prefix) |
|
|
17
|
+
| `imgSnowParticle12` | `snow-particle-12.webp` |
|
|
18
|
+
| `imgImgBannerStatic` | `banner-static.webp` (collapse double `img`) |
|
|
19
|
+
| `imgBtnShare` | `btn-share.webp` |
|
|
20
|
+
|
|
21
|
+
Rules:
|
|
22
|
+
- Strip leading `img` prefix before converting to kebab-case
|
|
23
|
+
- Numbers stay as-is: `item11` → `item-11`
|
|
24
|
+
- Acronyms lowercased: `BTN` → `btn`, `BG` → `bg`
|
|
25
|
+
|
|
26
|
+
## Destination
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
public/images/{feature}/ ← Vue/Nuxt
|
|
30
|
+
static/images/{feature}/ ← Nuxt 2 legacy
|
|
31
|
+
public/{feature}/ ← Next.js (under /public)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Always use the directory confirmed in Phase 0 setup.
|
|
35
|
+
|
|
36
|
+
## Size Limits
|
|
37
|
+
|
|
38
|
+
| Type | Warn threshold | Block threshold |
|
|
39
|
+
|------|---------------|----------------|
|
|
40
|
+
| Background image | 500 KB | 2 MB |
|
|
41
|
+
| Content image | 200 KB | 1 MB |
|
|
42
|
+
| Decorative image | 100 KB | 500 KB |
|
|
43
|
+
| Total per section | 3 MB | 10 MB |
|
|
44
|
+
|
|
45
|
+
If a file exceeds the warn threshold, log it. Never block the download — size checks are advisory.
|
|
46
|
+
|
|
47
|
+
## Download Rules
|
|
48
|
+
|
|
49
|
+
- [ ] Download ALL `const img...` variables — zero omissions ("core assets only" is forbidden)
|
|
50
|
+
- [ ] Use `curl -sL "{url}" -o {dest}` — silent, follow redirects
|
|
51
|
+
- [ ] After download: `ls -la {dir}` — verify file exists and size > 0
|
|
52
|
+
- [ ] On 0-byte file: retry once. On second failure: log and continue (do not block code gen for a single failed decorative image)
|
|
53
|
+
- [ ] On missing asset (visible in screenshot but no URL): use `get_metadata` → sub-node `get_design_context` → `get_screenshot` fallback chain
|
|
54
|
+
|
|
55
|
+
## Image Mapping Table
|
|
56
|
+
|
|
57
|
+
After all downloads, produce a mapping before writing any component code:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
const imageMap = {
|
|
61
|
+
imgTitle: '/images/{feature}/title.webp',
|
|
62
|
+
img21: '/images/{feature}/img-21.webp',
|
|
63
|
+
// ...every variable
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
This map is the only source for `src` values in generated components. No raw Figma URLs in output code.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Frame Selection Rubric
|
|
2
|
+
|
|
3
|
+
> This skill is merged into vibe-figma-extract. Use this rubric to select the right frames before calling `get_design_context`.
|
|
4
|
+
|
|
5
|
+
## Frame Classification by Name Pattern
|
|
6
|
+
|
|
7
|
+
| Pattern in Name | Class | Action |
|
|
8
|
+
|----------------|-------|--------|
|
|
9
|
+
| "기능 정의서", "정책", "spec", "policy" | SPEC | `get_design_context` — extract text requirements |
|
|
10
|
+
| "해상도", "브라우저", "config", "resolution" | CONFIG | `get_design_context` — extract scale factor |
|
|
11
|
+
| "공통", "GNB", "Footer", "Popup", "shared", "common" | SHARED | Read if referenced; skip if project already has them |
|
|
12
|
+
| "화면설계", "메인 -", "section", numbered frames | PAGE | Core implementation targets |
|
|
13
|
+
|
|
14
|
+
## Selection Priority
|
|
15
|
+
|
|
16
|
+
1. SPEC frame (1 frame) — read first, informs all feature requirements
|
|
17
|
+
2. CONFIG frame (1 frame) — establishes scale factors for both breakpoints
|
|
18
|
+
3. PAGE frames — top-level only (e.g. `3.1`, `3.2`, not `3.1.1`, `3.1.2`)
|
|
19
|
+
4. SHARED frames — only if component does not already exist in the project
|
|
20
|
+
|
|
21
|
+
Never read sub-case frames (e.g. `3.1.1`, `3.2.1`) during Phase 1. Read them in Phase 2 only if a sub-state is needed for a specific interaction.
|
|
22
|
+
|
|
23
|
+
## Tall Frame Decision Tree
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Frame height > 1500px?
|
|
27
|
+
YES → Split before calling get_design_context
|
|
28
|
+
1. get_metadata(nodeId) → get child node list
|
|
29
|
+
2. Call get_design_context per child node
|
|
30
|
+
3. Merge results as one logical section
|
|
31
|
+
NO → Call get_design_context directly
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Height thresholds from real data:
|
|
35
|
+
- Safe direct call: up to ~900px
|
|
36
|
+
- Risk zone: 900–1500px (attempt once, split on timeout)
|
|
37
|
+
- Always split: 1500px+
|
|
38
|
+
|
|
39
|
+
## Skipping Frames
|
|
40
|
+
|
|
41
|
+
Skip a frame entirely when:
|
|
42
|
+
- Name contains "OLD", "archive", "deprecated", "참고", "예시" (reference only)
|
|
43
|
+
- Frame is a copy/duplicate of another already processed frame
|
|
44
|
+
- Frame is a component definition (Figma component, not an instance) — use its instances instead
|
|
45
|
+
|
|
46
|
+
## Viewport Frames
|
|
47
|
+
|
|
48
|
+
When multiple frames represent the same section at different widths:
|
|
49
|
+
- Smallest width = mobile (Phase 2 base URL)
|
|
50
|
+
- Larger widths = desktop breakpoints (Phase 2 subsequent URLs)
|
|
51
|
+
- Process mobile first, then add desktop as responsive layer — never the reverse
|
|
52
|
+
|
|
53
|
+
## Frame Count Warning
|
|
54
|
+
|
|
55
|
+
If total PAGE frames > 10, confirm with the user before proceeding. Large frame counts may indicate the Figma file covers multiple pages that should be separate feature implementations.
|
|
@@ -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
|