@wangs-ui/skills 1.1.3 → 1.1.7
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/README.md +38 -0
- package/dist/bin.js +1 -1
- package/dist/index.js +1 -1
- package/dist/skills/create-form/SKILL.md +176 -176
- package/dist/skills/data-table/SKILL.md +68 -68
- package/dist/skills/dialog-modal/SKILL.md +58 -58
- package/dist/skills/i18n-usage/SKILL.md +232 -232
- package/dist/skills/layout-navigation/SKILL.md +62 -62
- package/dist/skills/react19-compiler-typescript/SKILL.md +388 -388
- package/dist/skills/typescript-strict-typing/SKILL.md +317 -317
- package/dist/skills/wangs-ui-components/SKILL.md +108 -108
- package/dist/src-D9yM6BcB.js +246 -0
- package/package.json +1 -1
- package/skills/create-form/SKILL.md +176 -176
- package/skills/data-table/SKILL.md +68 -68
- package/skills/dialog-modal/SKILL.md +58 -58
- package/skills/i18n-usage/SKILL.md +232 -232
- package/skills/layout-navigation/SKILL.md +62 -62
- package/skills/react19-compiler-typescript/SKILL.md +388 -388
- package/skills/typescript-strict-typing/SKILL.md +317 -317
- package/skills/wangs-ui-components/SKILL.md +108 -108
- package/dist/src-BDMQAPi_.js +0 -246
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: layout-navigation
|
|
3
|
-
description: Architecture, navigation hierarchies, and MCP discovery protocol for AppLayout, Sidebar, Breadcrumb, and Tabs in Wangs UI.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Skill: Application Layout & Navigation Hierarchy
|
|
7
|
-
|
|
8
|
-
Use this skill when constructing application shells, multi-level sidebars, page headers, breadcrumbs, or tabbed views with `@wangs-ui/react-core`.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## 1. MCP Inspection Protocol (Mandatory Single Source of Truth)
|
|
13
|
-
|
|
14
|
-
Do **NOT** guess layout block slots, sidebar item interfaces, or breadcrumb props. Query the MCP server dynamically to inspect exact contracts and live story implementations:
|
|
15
|
-
|
|
16
|
-
### Inspect Layout & Navigation Contracts:
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
get-documentation({ "id": "applayout" })
|
|
20
|
-
get-documentation({ "id": "sidebar" })
|
|
21
|
-
get-documentation({ "id": "breadcrumb" })
|
|
22
|
-
get-documentation({ "id": "tabs" })
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Inspect Live Story Implementations:
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
get-documentation-for-story({ "id": "applayout", "storyName": "Default" })
|
|
29
|
-
get-documentation-for-story({ "id": "sidebar", "storyName": "Default" })
|
|
30
|
-
get-documentation-for-story({ "id": "breadcrumb", "storyName": "Default" })
|
|
31
|
-
get-documentation-for-story({ "id": "tabs", "storyName": "Default" })
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Inspect Knowledge Graph & Usages:
|
|
35
|
-
|
|
36
|
-
```json
|
|
37
|
-
query_graph({ "query": "AppLayout" })
|
|
38
|
-
query_graph({ "query": "Sidebar" })
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 2. Layout Architecture & Mental Model
|
|
44
|
-
|
|
45
|
-
1. **Top-Level App Shell (`AppLayout`)**:
|
|
46
|
-
Provides structured slots for `sidebar`, `header`, and main content view, handling responsive viewport scaling and mobile navigation overlays.
|
|
47
|
-
2. **Hierarchical Menu (`Sidebar`)**:
|
|
48
|
-
Renders single and nested navigation items, active route indicators, collapsible state, and notification badges.
|
|
49
|
-
3. **Breadcrumb Trail (`Breadcrumb`)**:
|
|
50
|
-
Maintains clear navigational hierarchy on page headers.
|
|
51
|
-
4. **Tabbed Sub-Views (`Tabs`)**:
|
|
52
|
-
Organizes complex entity detail views or multi-section settings into distinct tabbed panels.
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## 3. Mandatory Implementation Rules
|
|
57
|
-
|
|
58
|
-
1. **Query MCP for Current Code Patterns**: Inspect `applayout` and `sidebar` stories via MCP before assembling the layout.
|
|
59
|
-
2. **Strict Subpath Imports**: Import layout blocks via `@wangs-ui/react-core/blocks/*` and primitives via `@wangs-ui/react-core/primitive/*`.
|
|
60
|
-
3. **Consistent Spacing Grid**: Use standard container padding (`p-6` or `p-xxl`) across page contents.
|
|
61
|
-
4. **Page Hierarchy Alignment**: Every page view inside the layout must provide a clear `.heading-1` hierarchy and synchronized breadcrumbs.
|
|
62
|
-
5. **Translate Navigation Labels**: Wrap all sidebar item labels and breadcrumb texts in `t('...')` from `@wangs-ui/react-i18n`.
|
|
1
|
+
---
|
|
2
|
+
name: layout-navigation
|
|
3
|
+
description: Architecture, navigation hierarchies, and MCP discovery protocol for AppLayout, Sidebar, Breadcrumb, and Tabs in Wangs UI.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skill: Application Layout & Navigation Hierarchy
|
|
7
|
+
|
|
8
|
+
Use this skill when constructing application shells, multi-level sidebars, page headers, breadcrumbs, or tabbed views with `@wangs-ui/react-core`.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 1. MCP Inspection Protocol (Mandatory Single Source of Truth)
|
|
13
|
+
|
|
14
|
+
Do **NOT** guess layout block slots, sidebar item interfaces, or breadcrumb props. Query the MCP server dynamically to inspect exact contracts and live story implementations:
|
|
15
|
+
|
|
16
|
+
### Inspect Layout & Navigation Contracts:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
get-documentation({ "id": "applayout" })
|
|
20
|
+
get-documentation({ "id": "sidebar" })
|
|
21
|
+
get-documentation({ "id": "breadcrumb" })
|
|
22
|
+
get-documentation({ "id": "tabs" })
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Inspect Live Story Implementations:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
get-documentation-for-story({ "id": "applayout", "storyName": "Default" })
|
|
29
|
+
get-documentation-for-story({ "id": "sidebar", "storyName": "Default" })
|
|
30
|
+
get-documentation-for-story({ "id": "breadcrumb", "storyName": "Default" })
|
|
31
|
+
get-documentation-for-story({ "id": "tabs", "storyName": "Default" })
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Inspect Knowledge Graph & Usages:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
query_graph({ "query": "AppLayout" })
|
|
38
|
+
query_graph({ "query": "Sidebar" })
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 2. Layout Architecture & Mental Model
|
|
44
|
+
|
|
45
|
+
1. **Top-Level App Shell (`AppLayout`)**:
|
|
46
|
+
Provides structured slots for `sidebar`, `header`, and main content view, handling responsive viewport scaling and mobile navigation overlays.
|
|
47
|
+
2. **Hierarchical Menu (`Sidebar`)**:
|
|
48
|
+
Renders single and nested navigation items, active route indicators, collapsible state, and notification badges.
|
|
49
|
+
3. **Breadcrumb Trail (`Breadcrumb`)**:
|
|
50
|
+
Maintains clear navigational hierarchy on page headers.
|
|
51
|
+
4. **Tabbed Sub-Views (`Tabs`)**:
|
|
52
|
+
Organizes complex entity detail views or multi-section settings into distinct tabbed panels.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. Mandatory Implementation Rules
|
|
57
|
+
|
|
58
|
+
1. **Query MCP for Current Code Patterns**: Inspect `applayout` and `sidebar` stories via MCP before assembling the layout.
|
|
59
|
+
2. **Strict Subpath Imports**: Import layout blocks via `@wangs-ui/react-core/blocks/*` and primitives via `@wangs-ui/react-core/primitive/*`.
|
|
60
|
+
3. **Consistent Spacing Grid**: Use standard container padding (`p-6` or `p-xxl`) across page contents.
|
|
61
|
+
4. **Page Hierarchy Alignment**: Every page view inside the layout must provide a clear `.heading-1` hierarchy and synchronized breadcrumbs.
|
|
62
|
+
5. **Translate Navigation Labels**: Wrap all sidebar item labels and breadcrumb texts in `t('...')` from `@wangs-ui/react-i18n`.
|