@fewangsit/wangsvue-gsts 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
@@ -1,70 +1,70 @@
1
- ---
2
- name: 'wangsvue-code-review'
3
- description: 'Reviews generated Wangsvue code against mandatory architectural principles and enforcement checklists. Invoke after generating code or before completion.'
4
- ---
5
-
6
- # Wangsvue Code Review Protocol
7
-
8
- This skill enforces the strict quality standards for Wangsvue code. Use this checklist to review any generated code before considering the task complete.
9
-
10
- ## 🚨 Mandatory Architectural Principles
11
-
12
- ### 1. Total Wangsvue Exclusivity
13
-
14
- - [ ] **Strict Prohibition:** NO usage of PrimeVue, Element Plus, Vuetify, or other libraries.
15
- - [ ] **Compliance:** ONLY use props, slots, events, and patterns defined in Wangsvue MCP or Knowledge Base.
16
-
17
- ### 2. Zero Assumption Policy
18
-
19
- - [ ] **Verification:** Are all prop names, slot names, icon names, and enum values verified via MCP?
20
- - [ ] **No Guessing:** If it's not in the MCP result, it doesn't exist.
21
-
22
- ### 3. MCP-First Verification
23
-
24
- - [ ] **Component Discovery:** Was `list_all_components()` called to find specialized components?
25
- - [ ] **Type Resolution:** Were all literal values (icons, severity, sizes) verified with `resolve_type_definition`?
26
- - [ ] **Example Check:** Did you check `get_example` for intended usage patterns?
27
-
28
- ## ✅ Final Enforcement Checklist (Every File Must Pass)
29
-
30
- ### 1. SFC Structure & Organization
31
-
32
- - [ ] **Structure:** `<script setup>` → `<template>` → `<style>` (only if needed).
33
- - [ ] **Script Order:** Imports → Props/Emits → Lifecycle → Variables → Methods (follows Vue Code Structure MD).
34
- - [ ] **Project Structure:** Business logic is in `components/modules/`, NOT in views.
35
- - [ ] **App.vue:** Only contains `<router-view />`, no business logic.
36
-
37
- ### 2. Import Protocol
38
-
39
- - [ ] **Exact Paths:** ALL imports match MCP results EXACTLY (no modifications).
40
- - [ ] **Type Imports:** `type` keyword used for all type imports (from `resolve_type_definition`).
41
- - [ ] **Separation:** Component imports (main package) separated from Type imports (specific modules).
42
-
43
- ### 3. Testing & Attributes
44
-
45
- - [ ] **Data Attributes:** `data-wv-name` on root element, `data-wv-section` on significant sections.
46
-
47
- ### 4. Code Quality
48
-
49
- - [ ] **Linter:** `pnpm lint` must pass with exit code 0. After fixing ESLint errors, check editor `#problems_and_diagnostics` and fix any remaining issues.
50
- - [ ] **No Generic HTML:** specialized components used instead of `<div>` (e.g., `Card` instead of `div.bg-white`).
51
- - [ ] **No Manual CSS:** No styling on Wangsvue components (trust the design system).
52
- - [ ] **Exact Pixel Values:** 21px remains 21px, do not round to 20px (h-5).
53
-
54
- ## ❌ Automatic Failure Indicators (IMMEDIATE STOP)
55
-
56
- If ANY of these are found, the code is rejected:
57
-
58
- - **Guessing:** Guessing icon names (`edit-line` vs `edit`) or enum values.
59
- - **Manual Styles:** Writing `<div class="bg-white p-4">` instead of `<Card>`.
60
- - **CSS Vars:** Using `bg-[var(--color)]` instead of Tailwind tokens (`bg-general-50`).
61
- - **Wrong Imports:** Mixing component and type paths, or forgetting `type` keyword.
62
- - **Double Wrapping:** `<div><Breadcrumb /></div>` (remove the div).
63
- - **Fat Views:** Putting data, columns, or handlers in view components instead of modules.
64
- - **Custom Patterns:** Implementing custom solutions when documentation provides a standard approach.
65
- - **Optimization:** "Optimizing" documented patterns instead of following them exactly.
66
-
67
- ## Review Decision
68
-
69
- - **PASS:** All checklists checked, no failure indicators.
70
- - **FAIL:** Any unchecked item or presence of failure indicator. **Fix immediately.**
1
+ ---
2
+ name: 'wangsvue-code-review'
3
+ description: 'Reviews generated Wangsvue code against mandatory architectural principles and enforcement checklists. Invoke after generating code or before completion.'
4
+ ---
5
+
6
+ # Wangsvue Code Review Protocol
7
+
8
+ This skill enforces the strict quality standards for Wangsvue code. Use this checklist to review any generated code before considering the task complete.
9
+
10
+ ## 🚨 Mandatory Architectural Principles
11
+
12
+ ### 1. Total Wangsvue Exclusivity
13
+
14
+ - [ ] **Strict Prohibition:** NO usage of PrimeVue, Element Plus, Vuetify, or other libraries.
15
+ - [ ] **Compliance:** ONLY use props, slots, events, and patterns defined in Wangsvue MCP or Knowledge Base.
16
+
17
+ ### 2. Zero Assumption Policy
18
+
19
+ - [ ] **Verification:** Are all prop names, slot names, icon names, and enum values verified via MCP?
20
+ - [ ] **No Guessing:** If it's not in the MCP result, it doesn't exist.
21
+
22
+ ### 3. MCP-First Verification
23
+
24
+ - [ ] **Component Discovery:** Was `list_all_components()` called to find specialized components?
25
+ - [ ] **Type Resolution:** Were all literal values (icons, severity, sizes) verified with `resolve_type_definition`?
26
+ - [ ] **Example Check:** Did you check `get_example` for intended usage patterns?
27
+
28
+ ## ✅ Final Enforcement Checklist (Every File Must Pass)
29
+
30
+ ### 1. SFC Structure & Organization
31
+
32
+ - [ ] **Structure:** `<script setup>` → `<template>` → `<style>` (only if needed).
33
+ - [ ] **Script Order:** Imports → Props/Emits → Lifecycle → Variables → Methods (follows Vue Code Structure MD).
34
+ - [ ] **Project Structure:** Business logic is in `components/modules/`, NOT in views.
35
+ - [ ] **App.vue:** Only contains `<router-view />`, no business logic.
36
+
37
+ ### 2. Import Protocol
38
+
39
+ - [ ] **Exact Paths:** ALL imports match MCP results EXACTLY (no modifications).
40
+ - [ ] **Type Imports:** `type` keyword used for all type imports (from `resolve_type_definition`).
41
+ - [ ] **Separation:** Component imports (main package) separated from Type imports (specific modules).
42
+
43
+ ### 3. Testing & Attributes
44
+
45
+ - [ ] **Data Attributes:** `data-wv-name` on root element, `data-wv-section` on significant sections.
46
+
47
+ ### 4. Code Quality
48
+
49
+ - [ ] **Linter:** `pnpm lint` must pass with exit code 0. After fixing ESLint errors, check editor `#problems_and_diagnostics` and fix any remaining issues.
50
+ - [ ] **No Generic HTML:** specialized components used instead of `<div>` (e.g., `Card` instead of `div.bg-white`).
51
+ - [ ] **No Manual CSS:** No styling on Wangsvue components (trust the design system).
52
+ - [ ] **Exact Pixel Values:** 21px remains 21px, do not round to 20px (h-5).
53
+
54
+ ## ❌ Automatic Failure Indicators (IMMEDIATE STOP)
55
+
56
+ If ANY of these are found, the code is rejected:
57
+
58
+ - **Guessing:** Guessing icon names (`edit-line` vs `edit`) or enum values.
59
+ - **Manual Styles:** Writing `<div class="bg-white p-4">` instead of `<Card>`.
60
+ - **CSS Vars:** Using `bg-[var(--color)]` instead of Tailwind tokens (`bg-general-50`).
61
+ - **Wrong Imports:** Mixing component and type paths, or forgetting `type` keyword.
62
+ - **Double Wrapping:** `<div><Breadcrumb /></div>` (remove the div).
63
+ - **Fat Views:** Putting data, columns, or handlers in view components instead of modules.
64
+ - **Custom Patterns:** Implementing custom solutions when documentation provides a standard approach.
65
+ - **Optimization:** "Optimizing" documented patterns instead of following them exactly.
66
+
67
+ ## Review Decision
68
+
69
+ - **PASS:** All checklists checked, no failure indicators.
70
+ - **FAIL:** Any unchecked item or presence of failure indicator. **Fix immediately.**
@@ -1,91 +1,91 @@
1
- ---
2
- name: 'wangsvue-workflow'
3
- description: 'Enforces the 5-step mandatory workflow for Wangsvue development, including component discovery protocols. Invoke when starting a new task, feature, or component implementation.'
4
- ---
5
-
6
- # Wangsvue Mandatory Workflow
7
-
8
- This skill guides you through the 5 mandatory steps for any Wangsvue development task. You MUST follow these steps in order.
9
-
10
- ## The 5-Step Workflow
11
-
12
- ### Step 1: Standard Synchronization
13
-
14
- **Action:** Read relevant MD files before starting.
15
-
16
- - **Files to Check:** Vue Code Structure, Project Structure, Code Consistency Guidelines.
17
- - **Goal:** Ensure you are aligned with the latest architectural standards.
18
-
19
- ### Step 2: Technical Discovery (MCP First)
20
-
21
- **Action:** Use MCP tools to find components and types.
22
-
23
- - **Command:** `mcp_wangsvue_mcp_list_all_components()`
24
- - **Command:** `mcp_wangsvue_mcp_analyze_component(componentId, format: "toon")`
25
- - **Command:** `mcp_wangsvue_mcp_resolve_type_definition(types: [...])`
26
- - **Goal:** Get the correct component ID, import paths, and TypeScript contracts.
27
- - **Rule:** NEVER write import statements without MCP verification.
28
-
29
- #### 🔍 Discovery Protocol (Detailed)
30
-
31
- **Always ask:** "Does Wangsvue have a specialized component for this?"
32
-
33
- **Keyword Search Guide:**
34
-
35
- - **Functional Components:**
36
-
37
- - Filter? → Search "filter"
38
- - Download? → Search "download" (e.g., `ButtonDownload`)
39
- - Bulk actions? → Search "bulk" (e.g., `ButtonBulkAction`)
40
- - Search? → Search "search" (e.g., `ButtonSearch`)
41
- - Upload? → Search "upload" (e.g., `FileUpload`)
42
- - Copy? → Search "copy" (e.g., `ButtonCopy`)
43
-
44
- - **Structural Components:**
45
- - Card/Container? → Search "card" (for background, padding, border)
46
- - Form wrapper? → Search "form"
47
- - Modal/Popup? → Search "dialog", "dialogconfirm"
48
- - Loading? → Search "loading"
49
-
50
- **Mental Shift Required:**
51
-
52
- - **❌ OLD:** "I need a container with background" → `<div class="bg-white p-4">`
53
- - **✅ NEW:** "I need a container" → Search components → Find `Card`
54
- - **❌ OLD:** "I need a button for download" → `<Button>`
55
- - **✅ NEW:** "I need download functionality" → Search components → Find `ButtonDownload`
56
-
57
- ### Step 3: Pattern Extraction (Documentation)
58
-
59
- **Action:** Use MCP tools to see real usage patterns.
60
-
61
- 1. **Mandatory Discovery:** Call `mcp_wangsvue_docs_get_sections(component)` FIRST to see available section IDs.
62
- 2. **Extraction:** Call `mcp_wangsvue_docs_get_example(component, section)` using the exact ID found in step 1.
63
-
64
- - **Goal:** Understand intended usage, built-in features, and architecture.
65
- - **Rule:** NEVER guess a section name. NEVER assume an example exists without checking sections.
66
- - **Rule:** Follow examples EXACTLY. Do not create custom interpretations.
67
-
68
- **Questions to Ask:**
69
-
70
- - "Does this component handle its own state?" (e.g., `DataTable` handles pagination)
71
- - "Does it integrate with Router?" (e.g., `TabMenu`)
72
- - "Does it use a store?" (e.g., `Breadcrumb` uses `useBreadcrumbStore`)
73
-
74
- ### Step 4: Synthesis (Strict Implementation)
75
-
76
- **Action:** Implement the code following strict structure rules.
77
-
78
- - **Structure:** Script → Template → Style.
79
- - **Organization:** Imports → Props/Emits → Lifecycle → Variables → Methods.
80
- - **Logic:** Business logic in `components/modules/`, NOT in views.
81
- - **Views:** Lightweight, only import and compose from modules.
82
- - **Attributes:** Ensure `data-wv-name` and `data-wv-section` are present.
83
-
84
- ### Step 5: Validation (The "Black Box" Linter Rule)
85
-
86
- Launch skill `wangsvue-code-review`.
87
-
88
- ## Repetition Protocol
89
-
90
- Before starting, affirm:
91
- "I WILL DISCOVER SPECIALIZED COMPONENTS FIRST. I WILL CALL GET_SECTIONS BEFORE GET_EXAMPLE. I WILL NOT GUESS SECTION NAMES OR IMPORTS. I WILL FOLLOW DOCUMENTED PATTERNS EXACTLY. I WILL RUN PNPM LINT."
1
+ ---
2
+ name: 'wangsvue-workflow'
3
+ description: 'Enforces the 5-step mandatory workflow for Wangsvue development, including component discovery protocols. Invoke when starting a new task, feature, or component implementation.'
4
+ ---
5
+
6
+ # Wangsvue Mandatory Workflow
7
+
8
+ This skill guides you through the 5 mandatory steps for any Wangsvue development task. You MUST follow these steps in order.
9
+
10
+ ## The 5-Step Workflow
11
+
12
+ ### Step 1: Standard Synchronization
13
+
14
+ **Action:** Read relevant MD files before starting.
15
+
16
+ - **Files to Check:** Vue Code Structure, Project Structure, Code Consistency Guidelines.
17
+ - **Goal:** Ensure you are aligned with the latest architectural standards.
18
+
19
+ ### Step 2: Technical Discovery (MCP First)
20
+
21
+ **Action:** Use MCP tools to find components and types.
22
+
23
+ - **Command:** `mcp_wangsvue_mcp_list_all_components()`
24
+ - **Command:** `mcp_wangsvue_mcp_analyze_component(componentId, format: "toon")`
25
+ - **Command:** `mcp_wangsvue_mcp_resolve_type_definition(types: [...])`
26
+ - **Goal:** Get the correct component ID, import paths, and TypeScript contracts.
27
+ - **Rule:** NEVER write import statements without MCP verification.
28
+
29
+ #### 🔍 Discovery Protocol (Detailed)
30
+
31
+ **Always ask:** "Does Wangsvue have a specialized component for this?"
32
+
33
+ **Keyword Search Guide:**
34
+
35
+ - **Functional Components:**
36
+
37
+ - Filter? → Search "filter"
38
+ - Download? → Search "download" (e.g., `ButtonDownload`)
39
+ - Bulk actions? → Search "bulk" (e.g., `ButtonBulkAction`)
40
+ - Search? → Search "search" (e.g., `ButtonSearch`)
41
+ - Upload? → Search "upload" (e.g., `FileUpload`)
42
+ - Copy? → Search "copy" (e.g., `ButtonCopy`)
43
+
44
+ - **Structural Components:**
45
+ - Card/Container? → Search "card" (for background, padding, border)
46
+ - Form wrapper? → Search "form"
47
+ - Modal/Popup? → Search "dialog", "dialogconfirm"
48
+ - Loading? → Search "loading"
49
+
50
+ **Mental Shift Required:**
51
+
52
+ - **❌ OLD:** "I need a container with background" → `<div class="bg-white p-4">`
53
+ - **✅ NEW:** "I need a container" → Search components → Find `Card`
54
+ - **❌ OLD:** "I need a button for download" → `<Button>`
55
+ - **✅ NEW:** "I need download functionality" → Search components → Find `ButtonDownload`
56
+
57
+ ### Step 3: Pattern Extraction (Documentation)
58
+
59
+ **Action:** Use MCP tools to see real usage patterns.
60
+
61
+ 1. **Mandatory Discovery:** Call `mcp_wangsvue_docs_get_sections(component)` FIRST to see available section IDs.
62
+ 2. **Extraction:** Call `mcp_wangsvue_docs_get_example(component, section)` using the exact ID found in step 1.
63
+
64
+ - **Goal:** Understand intended usage, built-in features, and architecture.
65
+ - **Rule:** NEVER guess a section name. NEVER assume an example exists without checking sections.
66
+ - **Rule:** Follow examples EXACTLY. Do not create custom interpretations.
67
+
68
+ **Questions to Ask:**
69
+
70
+ - "Does this component handle its own state?" (e.g., `DataTable` handles pagination)
71
+ - "Does it integrate with Router?" (e.g., `TabMenu`)
72
+ - "Does it use a store?" (e.g., `Breadcrumb` uses `useBreadcrumbStore`)
73
+
74
+ ### Step 4: Synthesis (Strict Implementation)
75
+
76
+ **Action:** Implement the code following strict structure rules.
77
+
78
+ - **Structure:** Script → Template → Style.
79
+ - **Organization:** Imports → Props/Emits → Lifecycle → Variables → Methods.
80
+ - **Logic:** Business logic in `components/modules/`, NOT in views.
81
+ - **Views:** Lightweight, only import and compose from modules.
82
+ - **Attributes:** Ensure `data-wv-name` and `data-wv-section` are present.
83
+
84
+ ### Step 5: Validation (The "Black Box" Linter Rule)
85
+
86
+ Launch skill `wangsvue-code-review`.
87
+
88
+ ## Repetition Protocol
89
+
90
+ Before starting, affirm:
91
+ "I WILL DISCOVER SPECIALIZED COMPONENTS FIRST. I WILL CALL GET_SECTIONS BEFORE GET_EXAMPLE. I WILL NOT GUESS SECTION NAMES OR IMPORTS. I WILL FOLLOW DOCUMENTED PATTERNS EXACTLY. I WILL RUN PNPM LINT."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-gsts",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Global Settings Tagsamurai VueJS Component Library",
6
6
  "type": "module",