@wipal/agent-team 1.0.3 → 1.1.0
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/.claude/commands/skills/discover.md +127 -0
- package/.claude/commands/skills/install.md +225 -0
- package/.claude/commands/skills/review.md +234 -0
- package/.claude/commands/utils/learn.md +142 -0
- package/.claude/commands/utils/retrospect.md +62 -0
- package/.claude/commands/utils/switch.md +113 -0
- package/.claude/commands/utils/sync.md +183 -0
- package/.claude/rules/common/general-rules.md +6 -0
- package/.claude/rules/role-rules/dev-be-rules.md +241 -0
- package/.claude/rules/role-rules/dev-fe-rules.md +76 -0
- package/.claude/skills/SKILL-INDEX.md +24 -5
- package/.claude/skills/core/knowledge-graph/SKILL.md +214 -0
- package/.claude/skills/core/sequential-thinking/SKILL.md +112 -0
- package/.claude/skills/core/sequential-thinking/references/advanced.md +122 -0
- package/.claude/skills/core/sequential-thinking/references/examples.md +274 -0
- package/.claude/skills/domain/architecture/c4-architecture/SKILL.md +314 -0
- package/.claude/skills/domain/architecture/c4-architecture/references/advanced-patterns.md +552 -0
- package/.claude/skills/domain/architecture/c4-architecture/references/c4-syntax.md +492 -0
- package/.claude/skills/domain/architecture/c4-architecture/references/common-mistakes.md +437 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/SKILL.md +238 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/advanced-features.md +556 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/architecture-diagrams.md +192 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/c4-diagrams.md +410 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/class-diagrams.md +361 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/erd-diagrams.md +510 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/flowcharts.md +450 -0
- package/.claude/skills/domain/architecture/mermaid-diagrams/references/sequence-diagrams.md +394 -0
- package/.claude/skills/domain/backend/testing-be/SKILL.md +121 -17
- package/.claude/skills/domain/design/design-system/SKILL.md +169 -0
- package/.claude/skills/domain/design/html-css-output/SKILL.md +253 -0
- package/.claude/skills/domain/design/mockup-creation/SKILL.md +230 -0
- package/.claude/skills/domain/design/responsive-design/SKILL.md +207 -0
- package/.claude/skills/domain/design/ui-design/SKILL.md +124 -0
- package/.claude/skills/domain/frontend/testing-fe/SKILL.md +143 -38
- package/.claude/skills/domain/frontend/ui-ux-pro-max/README.md +45 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/SKILL.md +404 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/charts.csv +26 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/colors.csv +97 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/icons.csv +101 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/landing.csv +31 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/products.csv +97 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/styles.csv +68 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/typography.csv +58 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/core.py +253 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.claude/skills/domain/frontend/ui-ux-pro-max/scripts/search.py +114 -0
- package/.claude/skills/domain/product/requirements-clarity/SKILL.md +340 -0
- package/.claude/skills/skills-registry.yaml +103 -8
- package/README.md +107 -33
- package/README.npm.md +252 -0
- package/TUTORIAL.md +256 -0
- package/bin/agent-team.js +26 -7
- package/config/roles.yaml +107 -0
- package/docs/01-architecture.md +699 -0
- package/docs/02-setup-guide.md +634 -0
- package/docs/03-skills-guide.md +628 -0
- package/docs/04-workflows.md +792 -0
- package/docs/05-model-strategy.md +550 -0
- package/docs/06-extend-guide.md +1226 -0
- package/docs/07-quick-reference.md +578 -0
- package/docs/08-skills-discovery.md +342 -0
- package/docs/README.md +134 -0
- package/docs/rqm.md +560 -0
- package/package.json +10 -4
- package/scripts/postinstall.js +46 -0
- package/src/commands/add.js +131 -67
- package/src/commands/init.js +419 -9
- package/src/commands/list.js +20 -16
- package/src/commands/projects.js +127 -0
- package/src/commands/setup-hooks.js +261 -0
- package/src/index.js +0 -1
- package/src/utils/file-utils.js +147 -50
- package/src/utils/global-registry.js +224 -0
- package/templates/CLAUDE.md.tmpl +128 -20
- package/templates/MEMORY.md.tmpl +119 -0
- package/templates/agent.md.tmpl +205 -0
- package/templates/code/nestjs-controller.ts.tmpl +49 -0
- package/templates/code/nestjs-dto.ts.tmpl +63 -0
- package/templates/code/nestjs-service.ts.tmpl +45 -0
- package/templates/code/react-component.tsx.tmpl +24 -0
- package/templates/code/react-hook.ts.tmpl +54 -0
- package/templates/code/test.spec.ts.tmpl +50 -0
- package/templates/code/vue-component.vue.tmpl +49 -0
- package/templates/code/vue-composable.ts.tmpl +54 -0
- package/templates/knowledge.md.tmpl +152 -17
- package/templates/meeting-notes.md.tmpl +110 -0
- package/templates/memory/hooks.memory.json +50 -0
- package/templates/memory/settings.memory.json +16 -0
- package/templates/reports/bug-report.md.tmpl +164 -0
- package/templates/reports/code-review.md.tmpl +201 -0
- package/templates/reports/sprint-report.md.tmpl +218 -0
- package/templates/roles/ba.md +53 -0
- package/templates/roles/designer.md +82 -0
- package/templates/roles/dev-be.md +49 -0
- package/templates/roles/dev-fe.md +49 -0
- package/templates/roles/devops.md +53 -0
- package/templates/roles/pm.md +49 -0
- package/templates/roles/qa.md +53 -0
- package/templates/roles/sa.md +49 -0
- package/templates/roles/tech-lead.md +132 -0
- package/templates/skills/memory/memory-status.md +78 -0
- package/templates/skills/memory/recall.md +160 -0
- package/templates/skills/memory/reflect.md +168 -0
- package/templates/skills/memory/remember.md +105 -0
- package/templates/tasks/lessons.md.tmpl +77 -0
- package/templates/tasks/todo.md.tmpl +53 -0
- package/src/commands/switch.js +0 -53
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-system
|
|
3
|
+
description: |
|
|
4
|
+
Design system creation with tokens, components, and patterns.
|
|
5
|
+
Use when building or maintaining design systems, creating component libraries.
|
|
6
|
+
Triggers: design-system, tokens, components, design tokens, component library
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
category: design
|
|
9
|
+
tags:
|
|
10
|
+
- design-system
|
|
11
|
+
- design-tokens
|
|
12
|
+
- components
|
|
13
|
+
- patterns
|
|
14
|
+
depends_on: [ui-design]
|
|
15
|
+
recommends: []
|
|
16
|
+
used_by: []
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Design System Guide
|
|
20
|
+
|
|
21
|
+
Framework for creating consistent, scalable design systems.
|
|
22
|
+
|
|
23
|
+
## Design Tokens
|
|
24
|
+
|
|
25
|
+
Design tokens are the visual design atoms of the design system.
|
|
26
|
+
|
|
27
|
+
### Color Tokens
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
/* Primitive Colors */
|
|
31
|
+
--color-blue-500: #3B82F6;
|
|
32
|
+
--color-green-500: #10B981;
|
|
33
|
+
--color-red-500: #EF4444;
|
|
34
|
+
|
|
35
|
+
/* Semantic Tokens */
|
|
36
|
+
--color-primary: var(--color-blue-500);
|
|
37
|
+
--color-success: var(--color-green-500);
|
|
38
|
+
--color-error: var(--color-red-500);
|
|
39
|
+
|
|
40
|
+
/* Component Tokens */
|
|
41
|
+
--button-primary-bg: var(--color-primary);
|
|
42
|
+
--button-primary-hover: var(--color-blue-600);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Spacing Tokens
|
|
46
|
+
|
|
47
|
+
```css
|
|
48
|
+
--space-1: 4px;
|
|
49
|
+
--space-2: 8px;
|
|
50
|
+
--space-3: 12px;
|
|
51
|
+
--space-4: 16px;
|
|
52
|
+
--space-5: 20px;
|
|
53
|
+
--space-6: 24px;
|
|
54
|
+
--space-8: 32px;
|
|
55
|
+
--space-10: 40px;
|
|
56
|
+
--space-12: 48px;
|
|
57
|
+
--space-16: 64px;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Typography Tokens
|
|
61
|
+
|
|
62
|
+
```css
|
|
63
|
+
/* Font Families */
|
|
64
|
+
--font-sans: system-ui, -apple-system, sans-serif;
|
|
65
|
+
--font-mono: ui-monospace, monospace;
|
|
66
|
+
|
|
67
|
+
/* Font Sizes */
|
|
68
|
+
--text-xs: 0.75rem; /* 12px */
|
|
69
|
+
--text-sm: 0.875rem; /* 14px */
|
|
70
|
+
--text-base: 1rem; /* 16px */
|
|
71
|
+
--text-lg: 1.125rem; /* 18px */
|
|
72
|
+
--text-xl: 1.25rem; /* 20px */
|
|
73
|
+
--text-2xl: 1.5rem; /* 24px */
|
|
74
|
+
|
|
75
|
+
/* Font Weights */
|
|
76
|
+
--font-normal: 400;
|
|
77
|
+
--font-medium: 500;
|
|
78
|
+
--font-semibold: 600;
|
|
79
|
+
--font-bold: 700;
|
|
80
|
+
|
|
81
|
+
/* Line Heights */
|
|
82
|
+
--leading-tight: 1.25;
|
|
83
|
+
--leading-normal: 1.5;
|
|
84
|
+
--leading-relaxed: 1.75;
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Shadow Tokens
|
|
88
|
+
|
|
89
|
+
```css
|
|
90
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
91
|
+
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
92
|
+
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
93
|
+
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Border Radius Tokens
|
|
97
|
+
|
|
98
|
+
```css
|
|
99
|
+
--radius-sm: 4px;
|
|
100
|
+
--radius-md: 8px;
|
|
101
|
+
--radius-lg: 12px;
|
|
102
|
+
--radius-xl: 16px;
|
|
103
|
+
--radius-full: 9999px;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Component Structure
|
|
107
|
+
|
|
108
|
+
### Anatomy
|
|
109
|
+
|
|
110
|
+
Every component should have:
|
|
111
|
+
1. **Base styles**: Default appearance
|
|
112
|
+
2. **Variants**: Size, color, style variations
|
|
113
|
+
3. **States**: Hover, focus, active, disabled
|
|
114
|
+
4. **Slots**: Areas for content injection
|
|
115
|
+
|
|
116
|
+
### Naming Convention
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
[component]-[variant]-[state]-[part]
|
|
120
|
+
|
|
121
|
+
Examples:
|
|
122
|
+
- button-primary-hover
|
|
123
|
+
- input-lg-error
|
|
124
|
+
- card-outlined-header
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Pattern Library
|
|
128
|
+
|
|
129
|
+
### Layout Patterns
|
|
130
|
+
|
|
131
|
+
| Pattern | Use Case |
|
|
132
|
+
| ------- | -------- |
|
|
133
|
+
| Stack | Vertical spacing between children |
|
|
134
|
+
| Cluster | Horizontal grouping with wrap |
|
|
135
|
+
| Sidebar | Main content + side panel |
|
|
136
|
+
| Split | Two equal columns |
|
|
137
|
+
| Center | Centered content with max-width |
|
|
138
|
+
|
|
139
|
+
### Component Patterns
|
|
140
|
+
|
|
141
|
+
| Pattern | Description |
|
|
142
|
+
| ------- | ----------- |
|
|
143
|
+
| Compound | Multiple components work together |
|
|
144
|
+
| Render Props | Flexible content rendering |
|
|
145
|
+
| Slots | Named content areas |
|
|
146
|
+
| Variants | Style variations |
|
|
147
|
+
|
|
148
|
+
## Documentation Standards
|
|
149
|
+
|
|
150
|
+
Each component needs:
|
|
151
|
+
|
|
152
|
+
1. **Description**: What it does
|
|
153
|
+
2. **Usage**: When to use it
|
|
154
|
+
3. **Props/API**: Configuration options
|
|
155
|
+
4. **Examples**: Code snippets
|
|
156
|
+
5. **Accessibility**: A11y considerations
|
|
157
|
+
|
|
158
|
+
## Maintenance
|
|
159
|
+
|
|
160
|
+
### Version Control
|
|
161
|
+
- Document all changes
|
|
162
|
+
- Use semantic versioning
|
|
163
|
+
- Provide migration guides
|
|
164
|
+
|
|
165
|
+
### Deprecation Process
|
|
166
|
+
1. Mark as deprecated
|
|
167
|
+
2. Provide alternative
|
|
168
|
+
3. Set removal date
|
|
169
|
+
4. Remove in major version
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: html-css-output
|
|
3
|
+
description: |
|
|
4
|
+
Converting designs to semantic HTML and CSS properties for developers.
|
|
5
|
+
Use when creating design handoff documentation or converting designs to code specs.
|
|
6
|
+
Triggers: html, css, design-to-code, handoff, markup, styles
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
category: design
|
|
9
|
+
tags:
|
|
10
|
+
- html
|
|
11
|
+
- css
|
|
12
|
+
- design-to-code
|
|
13
|
+
- handoff
|
|
14
|
+
depends_on: [ui-design, design-system]
|
|
15
|
+
recommends: []
|
|
16
|
+
used_by: []
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# HTML/CSS Output Format
|
|
20
|
+
|
|
21
|
+
Standard format for design handoff to developers.
|
|
22
|
+
|
|
23
|
+
## Output Structure
|
|
24
|
+
|
|
25
|
+
Every design should include:
|
|
26
|
+
1. HTML structure
|
|
27
|
+
2. CSS properties
|
|
28
|
+
3. Design tokens used
|
|
29
|
+
4. Responsive notes
|
|
30
|
+
|
|
31
|
+
## Component Documentation Template
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
## Component: [Name]
|
|
35
|
+
|
|
36
|
+
### Description
|
|
37
|
+
[Brief description of the component]
|
|
38
|
+
|
|
39
|
+
### Variants
|
|
40
|
+
- Default
|
|
41
|
+
- [Variant 1]
|
|
42
|
+
- [Variant 2]
|
|
43
|
+
|
|
44
|
+
### States
|
|
45
|
+
- Default
|
|
46
|
+
- Hover
|
|
47
|
+
- Focus
|
|
48
|
+
- Active
|
|
49
|
+
- Disabled
|
|
50
|
+
|
|
51
|
+
### HTML Structure
|
|
52
|
+
```html
|
|
53
|
+
<!-- Component code here -->
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### CSS Properties
|
|
57
|
+
```css
|
|
58
|
+
/* Component styles here */
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Design Tokens
|
|
62
|
+
- --color-[name]: [value]
|
|
63
|
+
- --space-[name]: [value]
|
|
64
|
+
- --font-[name]: [value]
|
|
65
|
+
|
|
66
|
+
### Responsive Notes
|
|
67
|
+
- Mobile: [behavior]
|
|
68
|
+
- Tablet: [behavior]
|
|
69
|
+
- Desktop: [behavior]
|
|
70
|
+
|
|
71
|
+
### Accessibility
|
|
72
|
+
- [A11y considerations]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Example Output
|
|
76
|
+
|
|
77
|
+
### Component: Button
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<!-- Button Component -->
|
|
81
|
+
<!-- Variant: Primary -->
|
|
82
|
+
<!-- Size: Medium -->
|
|
83
|
+
<button class="btn btn-primary btn-md" type="button">
|
|
84
|
+
<span class="btn__icon" aria-hidden="true">
|
|
85
|
+
<!-- Icon SVG here -->
|
|
86
|
+
</span>
|
|
87
|
+
<span class="btn__text">Button Label</span>
|
|
88
|
+
</button>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```css
|
|
92
|
+
/* Design Tokens */
|
|
93
|
+
--btn-primary-bg: #3B82F6;
|
|
94
|
+
--btn-primary-hover: #2563EB;
|
|
95
|
+
--btn-primary-active: #1D4ED8;
|
|
96
|
+
--btn-primary-text: #FFFFFF;
|
|
97
|
+
--btn-radius: 8px;
|
|
98
|
+
--btn-padding-x: 16px;
|
|
99
|
+
--btn-padding-y: 10px;
|
|
100
|
+
|
|
101
|
+
/* Base Styles */
|
|
102
|
+
.btn {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
gap: 8px;
|
|
107
|
+
font-family: var(--font-sans);
|
|
108
|
+
font-weight: var(--font-medium);
|
|
109
|
+
border-radius: var(--btn-radius);
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
transition: all 150ms ease;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Size: Medium */
|
|
115
|
+
.btn-md {
|
|
116
|
+
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
117
|
+
font-size: 14px;
|
|
118
|
+
line-height: 1.25;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Variant: Primary */
|
|
122
|
+
.btn-primary {
|
|
123
|
+
background-color: var(--btn-primary-bg);
|
|
124
|
+
color: var(--btn-primary-text);
|
|
125
|
+
border: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-primary:hover {
|
|
129
|
+
background-color: var(--btn-primary-hover);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.btn-primary:active {
|
|
133
|
+
background-color: var(--btn-primary-active);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.btn-primary:focus-visible {
|
|
137
|
+
outline: 2px solid var(--btn-primary-bg);
|
|
138
|
+
outline-offset: 2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.btn-primary:disabled {
|
|
142
|
+
opacity: 0.5;
|
|
143
|
+
cursor: not-allowed;
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Spacing Output
|
|
148
|
+
|
|
149
|
+
Always use spacing tokens:
|
|
150
|
+
|
|
151
|
+
```css
|
|
152
|
+
/* Correct */
|
|
153
|
+
.element {
|
|
154
|
+
padding: var(--space-4);
|
|
155
|
+
margin-bottom: var(--space-2);
|
|
156
|
+
gap: var(--space-3);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Avoid magic numbers */
|
|
160
|
+
.element {
|
|
161
|
+
padding: 15px; /* Use token instead */
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Typography Output
|
|
166
|
+
|
|
167
|
+
```css
|
|
168
|
+
.text-heading {
|
|
169
|
+
font-family: var(--font-sans);
|
|
170
|
+
font-size: var(--text-2xl);
|
|
171
|
+
font-weight: var(--font-bold);
|
|
172
|
+
line-height: var(--leading-tight);
|
|
173
|
+
color: var(--color-text-primary);
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Layout Output
|
|
178
|
+
|
|
179
|
+
```css
|
|
180
|
+
/* Flexbox */
|
|
181
|
+
.layout-horizontal {
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
gap: var(--space-4);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Grid */
|
|
189
|
+
.layout-grid {
|
|
190
|
+
display: grid;
|
|
191
|
+
grid-template-columns: repeat(3, 1fr);
|
|
192
|
+
gap: var(--space-6);
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Color Output Format
|
|
197
|
+
|
|
198
|
+
```css
|
|
199
|
+
/* Background */
|
|
200
|
+
background-color: var(--color-surface-primary);
|
|
201
|
+
|
|
202
|
+
/* Text */
|
|
203
|
+
color: var(--color-text-primary);
|
|
204
|
+
|
|
205
|
+
/* Border */
|
|
206
|
+
border-color: var(--color-border-default);
|
|
207
|
+
|
|
208
|
+
/* Shadow (use token) */
|
|
209
|
+
box-shadow: var(--shadow-md);
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Accessibility Annotations
|
|
213
|
+
|
|
214
|
+
Include these in your output:
|
|
215
|
+
|
|
216
|
+
```html
|
|
217
|
+
<!-- Accessible button with icon -->
|
|
218
|
+
<button
|
|
219
|
+
class="btn btn-icon"
|
|
220
|
+
type="button"
|
|
221
|
+
aria-label="Close dialog"
|
|
222
|
+
>
|
|
223
|
+
<svg aria-hidden="true" focusable="false">
|
|
224
|
+
<!-- Icon -->
|
|
225
|
+
</svg>
|
|
226
|
+
</button>
|
|
227
|
+
|
|
228
|
+
<!-- Form input with label -->
|
|
229
|
+
<div class="form-field">
|
|
230
|
+
<label for="email" class="form-label">
|
|
231
|
+
Email address
|
|
232
|
+
</label>
|
|
233
|
+
<input
|
|
234
|
+
id="email"
|
|
235
|
+
type="email"
|
|
236
|
+
class="form-input"
|
|
237
|
+
aria-describedby="email-hint"
|
|
238
|
+
/>
|
|
239
|
+
<span id="email-hint" class="form-hint">
|
|
240
|
+
We'll never share your email.
|
|
241
|
+
</span>
|
|
242
|
+
</div>
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Checklist Before Handoff
|
|
246
|
+
|
|
247
|
+
- [ ] All spacing uses tokens
|
|
248
|
+
- [ ] All colors use tokens
|
|
249
|
+
- [ ] Typography uses tokens
|
|
250
|
+
- [ ] Responsive breakpoints documented
|
|
251
|
+
- [ ] States defined (hover, focus, disabled)
|
|
252
|
+
- [ ] Accessibility attributes included
|
|
253
|
+
- [ ] Component variants documented
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mockup-creation
|
|
3
|
+
description: |
|
|
4
|
+
Creating wireframes and mockups using DrawIO MCP for BA and Designer workflows.
|
|
5
|
+
Use when creating wireframes, mockups, or low-fidelity designs for UI/UX.
|
|
6
|
+
Triggers: mockup, wireframe, drawio, diagram, prototype, sketch
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
category: design
|
|
9
|
+
tags:
|
|
10
|
+
- mockup
|
|
11
|
+
- wireframe
|
|
12
|
+
- drawio
|
|
13
|
+
- diagram
|
|
14
|
+
depends_on: [ui-design]
|
|
15
|
+
recommends: []
|
|
16
|
+
used_by: []
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Mockup Creation with DrawIO
|
|
20
|
+
|
|
21
|
+
Guide for creating wireframes and mockups using DrawIO MCP.
|
|
22
|
+
|
|
23
|
+
## When to Use DrawIO vs Mermaid
|
|
24
|
+
|
|
25
|
+
| Use DrawIO | Use Mermaid |
|
|
26
|
+
| ---------- | ----------- |
|
|
27
|
+
| Wireframes | Flowcharts |
|
|
28
|
+
| UI mockups | Sequence diagrams |
|
|
29
|
+
| Low-fidelity designs | Class diagrams |
|
|
30
|
+
| Complex layouts | Simple diagrams |
|
|
31
|
+
| Editable outputs | Quick documentation |
|
|
32
|
+
|
|
33
|
+
## DrawIO MCP Tools
|
|
34
|
+
|
|
35
|
+
### Available Tools
|
|
36
|
+
|
|
37
|
+
1. **open_drawio_mermaid**: Create diagram from Mermaid syntax
|
|
38
|
+
2. **open_drawio_xml**: Create diagram from DrawIO XML
|
|
39
|
+
3. **open_drawio_csv**: Create diagram from CSV data
|
|
40
|
+
|
|
41
|
+
## Workflow
|
|
42
|
+
|
|
43
|
+
### Step 1: Plan Your Mockup
|
|
44
|
+
|
|
45
|
+
Before using DrawIO:
|
|
46
|
+
1. List the components needed
|
|
47
|
+
2. Sketch layout structure
|
|
48
|
+
3. Identify sections and their relationships
|
|
49
|
+
|
|
50
|
+
### Step 2: Create Wireframe
|
|
51
|
+
|
|
52
|
+
Use DrawIO MCP to create the wireframe:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Use DrawIO MCP to create a wireframe with:
|
|
56
|
+
- Header section with logo and navigation
|
|
57
|
+
- Hero section with headline and CTA
|
|
58
|
+
- Features grid (3 columns)
|
|
59
|
+
- Footer with links
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Step 3: Save Locally
|
|
63
|
+
|
|
64
|
+
DrawIO opens in browser. Save the file:
|
|
65
|
+
1. File -> Save As
|
|
66
|
+
2. Choose location in project folder
|
|
67
|
+
3. Use naming convention: `[page]-wireframe-[date].drawio`
|
|
68
|
+
|
|
69
|
+
## Wireframe Components
|
|
70
|
+
|
|
71
|
+
### Common Elements
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Page Structure
|
|
75
|
+
|
|
76
|
+
- Header
|
|
77
|
+
- Logo
|
|
78
|
+
- Navigation
|
|
79
|
+
- Actions (login, signup)
|
|
80
|
+
- Main Content
|
|
81
|
+
- Hero
|
|
82
|
+
- Features
|
|
83
|
+
- Content blocks
|
|
84
|
+
- Footer
|
|
85
|
+
- Links
|
|
86
|
+
- Social
|
|
87
|
+
- Copyright
|
|
88
|
+
|
|
89
|
+
## UI Components
|
|
90
|
+
|
|
91
|
+
- Buttons (primary, secondary, ghost)
|
|
92
|
+
- Form inputs (text, select, checkbox)
|
|
93
|
+
- Cards (image, title, description)
|
|
94
|
+
- Lists (bullet, numbered, cards)
|
|
95
|
+
- Navigation (tabs, breadcrumbs, pagination)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Naming Convention
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
[project]-[page]-[type]-[version].drawio
|
|
102
|
+
|
|
103
|
+
Examples:
|
|
104
|
+
- myapp-home-wireframe-v1.drawio
|
|
105
|
+
- myapp-dashboard-mockup-v2.drawio
|
|
106
|
+
- myapp-checkout-flow-v1.drawio
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Wireframe to Design Handoff
|
|
110
|
+
|
|
111
|
+
After wireframe approval:
|
|
112
|
+
|
|
113
|
+
1. **Document the structure**
|
|
114
|
+
```markdown
|
|
115
|
+
## Home Page Wireframe
|
|
116
|
+
|
|
117
|
+
### Sections
|
|
118
|
+
1. Header (fixed)
|
|
119
|
+
2. Hero (full-width)
|
|
120
|
+
3. Features (3-column grid)
|
|
121
|
+
4. Testimonials (carousel)
|
|
122
|
+
5. CTA (centered)
|
|
123
|
+
6. Footer
|
|
124
|
+
|
|
125
|
+
### Components Used
|
|
126
|
+
- Button (primary, secondary)
|
|
127
|
+
- Card (feature)
|
|
128
|
+
- Testimonial card
|
|
129
|
+
- Navigation
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
2. **Export for reference**
|
|
133
|
+
- PNG for quick reference
|
|
134
|
+
- Keep .drawio for edits
|
|
135
|
+
|
|
136
|
+
3. **Add annotations**
|
|
137
|
+
- Component names
|
|
138
|
+
- Interaction notes
|
|
139
|
+
- Responsive behavior
|
|
140
|
+
|
|
141
|
+
## BA Workflow Integration
|
|
142
|
+
|
|
143
|
+
### For Requirements Gathering
|
|
144
|
+
|
|
145
|
+
1. Create low-fidelity wireframe
|
|
146
|
+
2. Review with stakeholders
|
|
147
|
+
3. Iterate based on feedback
|
|
148
|
+
4. Document decisions
|
|
149
|
+
5. Handoff to Designer
|
|
150
|
+
|
|
151
|
+
### Documentation
|
|
152
|
+
|
|
153
|
+
```markdown
|
|
154
|
+
## [Feature Name] Wireframe
|
|
155
|
+
|
|
156
|
+
**File**: `docs/wireframes/[name].drawio`
|
|
157
|
+
|
|
158
|
+
### Purpose
|
|
159
|
+
[Brief description]
|
|
160
|
+
|
|
161
|
+
### User Flow
|
|
162
|
+
1. User lands on page
|
|
163
|
+
2. User sees [content]
|
|
164
|
+
3. User interacts with [element]
|
|
165
|
+
4. System responds with [action]
|
|
166
|
+
|
|
167
|
+
### Requirements
|
|
168
|
+
- [ ] Requirement 1
|
|
169
|
+
- [ ] Requirement 2
|
|
170
|
+
|
|
171
|
+
### Notes
|
|
172
|
+
- Design notes here
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Designer Workflow Integration
|
|
176
|
+
|
|
177
|
+
### From Wireframe to Design
|
|
178
|
+
|
|
179
|
+
1. Review BA wireframe
|
|
180
|
+
2. Create high-fidelity version
|
|
181
|
+
3. Apply design system
|
|
182
|
+
4. Document HTML/CSS properties
|
|
183
|
+
5. Handoff to Developer
|
|
184
|
+
|
|
185
|
+
### File Organization
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
project/
|
|
189
|
+
├── docs/
|
|
190
|
+
│ └── wireframes/
|
|
191
|
+
│ ├── home-wireframe-v1.drawio
|
|
192
|
+
│ └── dashboard-wireframe-v1.drawio
|
|
193
|
+
├── designs/
|
|
194
|
+
│ └── mockups/
|
|
195
|
+
│ ├── home-mockup-v1.fig
|
|
196
|
+
│ └── dashboard-mockup-v1.fig
|
|
197
|
+
└── design-system/
|
|
198
|
+
└── tokens.css
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Best Practices
|
|
202
|
+
|
|
203
|
+
1. **Start simple**: Low-fidelity first
|
|
204
|
+
2. **Get feedback early**: Don't over-polish
|
|
205
|
+
3. **Document decisions**: Why choices were made
|
|
206
|
+
4. **Version control**: Keep previous versions
|
|
207
|
+
5. **Consistent naming**: Follow convention
|
|
208
|
+
6. **Single source of truth**: One file per page
|
|
209
|
+
|
|
210
|
+
## Common Patterns
|
|
211
|
+
|
|
212
|
+
### Landing Page
|
|
213
|
+
- Hero (headline, CTA)
|
|
214
|
+
- Features (benefits)
|
|
215
|
+
- Social proof (testimonials)
|
|
216
|
+
- Pricing (if applicable)
|
|
217
|
+
- CTA (final conversion)
|
|
218
|
+
|
|
219
|
+
### Dashboard
|
|
220
|
+
- Sidebar navigation
|
|
221
|
+
- Header with search/user
|
|
222
|
+
- Metrics cards
|
|
223
|
+
- Data tables/charts
|
|
224
|
+
- Quick actions
|
|
225
|
+
|
|
226
|
+
### Form Page
|
|
227
|
+
- Progress indicator (multi-step)
|
|
228
|
+
- Clear labels
|
|
229
|
+
- Validation feedback
|
|
230
|
+
- Submit/Cancel actions
|