heraspec 0.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/LICENSE +22 -0
- package/README.md +57 -0
- package/bin/heraspec.js +3803 -0
- package/bin/heraspec.js.map +7 -0
- package/dist/core/templates/skills/CHANGELOG.md +117 -0
- package/dist/core/templates/skills/README-template.md +58 -0
- package/dist/core/templates/skills/README.md +36 -0
- package/dist/core/templates/skills/content-optimization-skill.md +104 -0
- package/dist/core/templates/skills/data/charts.csv +26 -0
- package/dist/core/templates/skills/data/colors.csv +97 -0
- package/dist/core/templates/skills/data/landing.csv +31 -0
- package/dist/core/templates/skills/data/pages-proposed.csv +22 -0
- package/dist/core/templates/skills/data/pages.csv +10 -0
- package/dist/core/templates/skills/data/products.csv +97 -0
- package/dist/core/templates/skills/data/prompts.csv +24 -0
- package/dist/core/templates/skills/data/stacks/flutter.csv +53 -0
- package/dist/core/templates/skills/data/stacks/html-tailwind.csv +56 -0
- package/dist/core/templates/skills/data/stacks/nextjs.csv +53 -0
- package/dist/core/templates/skills/data/stacks/react-native.csv +52 -0
- package/dist/core/templates/skills/data/stacks/react.csv +54 -0
- package/dist/core/templates/skills/data/stacks/svelte.csv +54 -0
- package/dist/core/templates/skills/data/stacks/swiftui.csv +51 -0
- package/dist/core/templates/skills/data/stacks/vue.csv +50 -0
- package/dist/core/templates/skills/data/styles.csv +59 -0
- package/dist/core/templates/skills/data/typography.csv +58 -0
- package/dist/core/templates/skills/data/ux-guidelines.csv +100 -0
- package/dist/core/templates/skills/documents-skill.md +114 -0
- package/dist/core/templates/skills/e2e-test-skill.md +119 -0
- package/dist/core/templates/skills/integration-test-skill.md +118 -0
- package/dist/core/templates/skills/module-codebase-skill.md +110 -0
- package/dist/core/templates/skills/scripts/CODE_EXPLANATION.md +394 -0
- package/dist/core/templates/skills/scripts/SEARCH_ALGORITHMS_COMPARISON.md +421 -0
- package/dist/core/templates/skills/scripts/SEARCH_MODES_GUIDE.md +238 -0
- package/dist/core/templates/skills/scripts/core.py +385 -0
- package/dist/core/templates/skills/scripts/search.py +73 -0
- package/dist/core/templates/skills/suggestion-skill.md +118 -0
- package/dist/core/templates/skills/templates/accessibility-checklist.md +40 -0
- package/dist/core/templates/skills/templates/example-prompt-full-theme.md +333 -0
- package/dist/core/templates/skills/templates/page-types-guide.md +338 -0
- package/dist/core/templates/skills/templates/pages-proposed-summary.md +273 -0
- package/dist/core/templates/skills/templates/pre-delivery-checklist.md +42 -0
- package/dist/core/templates/skills/templates/prompt-template-full-theme.md +313 -0
- package/dist/core/templates/skills/templates/responsive-design.md +40 -0
- package/dist/core/templates/skills/ui-ux-skill.md +584 -0
- package/dist/core/templates/skills/unit-test-skill.md +111 -0
- package/dist/index.js +1736 -0
- package/package.json +71 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
# Example Prompts: Creating Full Theme Packages
|
|
2
|
+
|
|
3
|
+
## Example Prompt 1: Healthcare & Spa Service Theme
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Create a complete website package for professional healthcare and spa services with the following requirements:
|
|
7
|
+
|
|
8
|
+
**Requirements:**
|
|
9
|
+
- Product type: Beauty & Wellness Service
|
|
10
|
+
- Style: Elegant, minimal, soft, professional
|
|
11
|
+
- Industry: Healthcare/Beauty
|
|
12
|
+
- Stack: html-tailwind (default)
|
|
13
|
+
- Create all pages: home, about, services, blog listing, blog post details, category, pricing, faq, contact
|
|
14
|
+
|
|
15
|
+
**Process:**
|
|
16
|
+
1. Use skill ui-ux to search for design intelligence
|
|
17
|
+
2. Create shared components first (Header, Footer, Button, Card)
|
|
18
|
+
3. Implement each page in order: Home → About → Services → Category → Post Details → Pricing → FAQ → Contact
|
|
19
|
+
4. Ensure consistency in colors, typography, spacing
|
|
20
|
+
5. Responsive and accessible
|
|
21
|
+
|
|
22
|
+
**Notes:**
|
|
23
|
+
- Use search scripts with hybrid mode for best results
|
|
24
|
+
- Follow pre-delivery checklist
|
|
25
|
+
- Split components into separate files
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Example Prompt 2: E-Commerce Theme
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Create a complete website package for an online fashion store with the following requirements:
|
|
34
|
+
|
|
35
|
+
**Requirements:**
|
|
36
|
+
- Product type: E-commerce Luxury
|
|
37
|
+
- Style: Elegant, premium, sophisticated
|
|
38
|
+
- Industry: Fashion/Retail
|
|
39
|
+
- Stack: Next.js with Tailwind CSS
|
|
40
|
+
- Create all pages: home, about, product category, product details, cart, checkout, thank you, faq, contact
|
|
41
|
+
|
|
42
|
+
**Process:**
|
|
43
|
+
1. Use skill ui-ux to search:
|
|
44
|
+
- Product type recommendations
|
|
45
|
+
- Style guide with hybrid mode
|
|
46
|
+
- Color palette
|
|
47
|
+
- Typography
|
|
48
|
+
- Page types (home, product category, product details, cart, checkout, thank you)
|
|
49
|
+
- UX guidelines for e-commerce
|
|
50
|
+
- Next.js stack guidelines
|
|
51
|
+
|
|
52
|
+
2. Create design system:
|
|
53
|
+
- Color palette from search results
|
|
54
|
+
- Typography from search results
|
|
55
|
+
- Component library (Button, Card, Form, etc.)
|
|
56
|
+
|
|
57
|
+
3. Implement pages:
|
|
58
|
+
- Home with hero, featured products, testimonials
|
|
59
|
+
- Product category with filters
|
|
60
|
+
- Product details with gallery, add to cart
|
|
61
|
+
- Cart with quantity controls
|
|
62
|
+
- Checkout with form validation
|
|
63
|
+
- Thank you with order confirmation
|
|
64
|
+
|
|
65
|
+
4. Ensure:
|
|
66
|
+
- Conversion optimization
|
|
67
|
+
- Mobile-first responsive
|
|
68
|
+
- Accessibility (WCAG AA)
|
|
69
|
+
- Performance optimization
|
|
70
|
+
|
|
71
|
+
**Notes:**
|
|
72
|
+
- Use vector/hybrid mode for better semantic search
|
|
73
|
+
- Follow e-commerce best practices from search results
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Example Prompt 3: SaaS Landing Theme
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Create a complete website package for a project management SaaS platform with the following requirements:
|
|
82
|
+
|
|
83
|
+
**Requirements:**
|
|
84
|
+
- Product type: SaaS (General)
|
|
85
|
+
- Style: Modern, clean, professional, tech-forward
|
|
86
|
+
- Industry: B2B SaaS
|
|
87
|
+
- Stack: React with Tailwind CSS
|
|
88
|
+
- Create all pages: home, about, pricing, features, faq, contact, login, register, dashboard
|
|
89
|
+
|
|
90
|
+
**Process:**
|
|
91
|
+
1. Use skill ui-ux to search design intelligence:
|
|
92
|
+
```bash
|
|
93
|
+
# Search with hybrid mode for best results
|
|
94
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "SaaS project management" --domain product --mode hybrid
|
|
95
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "modern clean professional tech" --domain style --mode hybrid
|
|
96
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "SaaS" --domain color
|
|
97
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "professional modern" --domain typography --mode vector
|
|
98
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "home homepage" --domain pages
|
|
99
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "pricing plans tiers" --domain pages
|
|
100
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "login sign-in" --domain pages
|
|
101
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "dashboard account" --domain pages
|
|
102
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "responsive layout" --stack react --mode vector
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
2. Create shared components:
|
|
106
|
+
- Header with navigation
|
|
107
|
+
- Footer
|
|
108
|
+
- Button variants (primary, secondary, outline)
|
|
109
|
+
- Card components
|
|
110
|
+
- Form components
|
|
111
|
+
- Modal components
|
|
112
|
+
|
|
113
|
+
3. Implement pages in order:
|
|
114
|
+
- Home: Hero, features, testimonials, CTA
|
|
115
|
+
- About: Mission, team, values
|
|
116
|
+
- Pricing: Plans comparison, FAQ
|
|
117
|
+
- Features: Feature showcase
|
|
118
|
+
- FAQ: Accordion with search
|
|
119
|
+
- Contact: Form + info
|
|
120
|
+
- Login/Register: Auth forms
|
|
121
|
+
- Dashboard: User dashboard with stats
|
|
122
|
+
|
|
123
|
+
4. Ensure:
|
|
124
|
+
- Consistent design system
|
|
125
|
+
- Responsive design
|
|
126
|
+
- Accessibility
|
|
127
|
+
- Performance
|
|
128
|
+
|
|
129
|
+
**Notes:**
|
|
130
|
+
- Use search results to implement correct colors, fonts, styles
|
|
131
|
+
- Follow SaaS design patterns from search results
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Example Prompt 4: Blog/Content Site Theme
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
Create a complete website package for a technology blog with the following requirements:
|
|
140
|
+
|
|
141
|
+
**Requirements:**
|
|
142
|
+
- Product type: Content/News
|
|
143
|
+
- Style: Clean, readable, modern
|
|
144
|
+
- Industry: Technology/Education
|
|
145
|
+
- Stack: Next.js with Tailwind CSS
|
|
146
|
+
- Create all pages: home, blog listing, category, post details, about, contact, search results
|
|
147
|
+
|
|
148
|
+
**Process:**
|
|
149
|
+
1. Use skill ui-ux to search:
|
|
150
|
+
- Style recommendations for content sites
|
|
151
|
+
- Typography for readability
|
|
152
|
+
- Color palette for reading experience
|
|
153
|
+
- Page types (home, blog listing, category, post details, search results)
|
|
154
|
+
|
|
155
|
+
2. Create components:
|
|
156
|
+
- Header with navigation and search
|
|
157
|
+
- Footer
|
|
158
|
+
- Post card component
|
|
159
|
+
- Category filter
|
|
160
|
+
- Search bar
|
|
161
|
+
- Author card
|
|
162
|
+
- Related posts component
|
|
163
|
+
|
|
164
|
+
3. Implement pages:
|
|
165
|
+
- Home: Featured posts, recent posts, categories
|
|
166
|
+
- Blog listing: Post grid with pagination
|
|
167
|
+
- Category: Filtered post listing
|
|
168
|
+
- Post details: Full article with author, related posts
|
|
169
|
+
- Search results: Search with filters
|
|
170
|
+
- About: Author/company info
|
|
171
|
+
- Contact: Contact form
|
|
172
|
+
|
|
173
|
+
4. Ensure:
|
|
174
|
+
- Readability is priority
|
|
175
|
+
- SEO optimization
|
|
176
|
+
- Fast loading
|
|
177
|
+
- Social sharing
|
|
178
|
+
|
|
179
|
+
**Notes:**
|
|
180
|
+
- Focus on typography and readability
|
|
181
|
+
- Use vector mode for better semantic search
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Example Prompt 5: Portfolio/Creative Agency Theme
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
Create a complete website package for a creative agency with the following requirements:
|
|
190
|
+
|
|
191
|
+
**Requirements:**
|
|
192
|
+
- Product type: Creative Agency
|
|
193
|
+
- Style: Bold, creative, modern, artistic
|
|
194
|
+
- Industry: Design/Marketing
|
|
195
|
+
- Stack: React with Tailwind CSS
|
|
196
|
+
- Create all pages: home, about, portfolio, services, team, contact, case studies
|
|
197
|
+
|
|
198
|
+
**Process:**
|
|
199
|
+
1. Use skill ui-ux to search:
|
|
200
|
+
- Creative agency style recommendations
|
|
201
|
+
- Bold, artistic color palettes
|
|
202
|
+
- Creative typography
|
|
203
|
+
- Portfolio page patterns
|
|
204
|
+
- Motion-driven design patterns
|
|
205
|
+
|
|
206
|
+
2. Create components:
|
|
207
|
+
- Animated hero section
|
|
208
|
+
- Portfolio grid with filters
|
|
209
|
+
- Service cards
|
|
210
|
+
- Team member cards
|
|
211
|
+
- Case study components
|
|
212
|
+
|
|
213
|
+
3. Implement pages:
|
|
214
|
+
- Home: Bold hero, featured work, services preview
|
|
215
|
+
- About: Agency story, mission
|
|
216
|
+
- Portfolio: Project grid with filters and lightbox
|
|
217
|
+
- Services: Service offerings
|
|
218
|
+
- Team: Team members
|
|
219
|
+
- Case studies: Detailed project showcases
|
|
220
|
+
- Contact: Contact form
|
|
221
|
+
|
|
222
|
+
4. Ensure:
|
|
223
|
+
- Creative and unique
|
|
224
|
+
- Smooth animations
|
|
225
|
+
- Showcase work effectively
|
|
226
|
+
- Professional but artistic
|
|
227
|
+
|
|
228
|
+
**Notes:**
|
|
229
|
+
- Use motion-driven patterns from search results
|
|
230
|
+
- Focus on visual impact
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Standard Prompt Structure
|
|
236
|
+
|
|
237
|
+
When creating prompts, should include:
|
|
238
|
+
|
|
239
|
+
### 1. Basic Information
|
|
240
|
+
```
|
|
241
|
+
**Requirements:**
|
|
242
|
+
- Product type: [SaaS, E-commerce, Service, etc.]
|
|
243
|
+
- Style: [minimal, elegant, modern, etc.]
|
|
244
|
+
- Industry: [Healthcare, Fintech, etc.]
|
|
245
|
+
- Stack: [html-tailwind, react, nextjs, etc.]
|
|
246
|
+
- Pages: [list pages to create]
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 2. Clear Process
|
|
250
|
+
```
|
|
251
|
+
**Process:**
|
|
252
|
+
1. Use skill ui-ux to search design intelligence
|
|
253
|
+
2. Create shared components
|
|
254
|
+
3. Implement pages in order
|
|
255
|
+
4. Ensure consistency and quality
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### 3. Specific Search Commands (Optional)
|
|
259
|
+
```
|
|
260
|
+
**Search commands:**
|
|
261
|
+
```bash
|
|
262
|
+
python3 heraspec/skills/ui-ux/scripts/search.py "..." --domain ... --mode hybrid
|
|
263
|
+
```
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### 4. Special Notes
|
|
267
|
+
```
|
|
268
|
+
**Notes:**
|
|
269
|
+
- Use appropriate search modes
|
|
270
|
+
- Follow best practices
|
|
271
|
+
- Check pre-delivery checklist
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Tips for Effective Prompts
|
|
277
|
+
|
|
278
|
+
1. **Be specific about product type and style** - Helps search more accurately
|
|
279
|
+
2. **List all pages to create clearly** - Agent knows exact scope
|
|
280
|
+
3. **Mention search modes** - Encourages using hybrid/vector for better results
|
|
281
|
+
4. **Require consistency** - Ensures unified design system
|
|
282
|
+
5. **Mention stack** - Agent will search stack-specific guidelines
|
|
283
|
+
6. **Require accessibility** - Ensures WCAG compliance
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## Short Prompt Example
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
Create a complete website package for [product type] with style [style keywords].
|
|
291
|
+
Use skill ui-ux to search design intelligence with hybrid mode.
|
|
292
|
+
Create pages: [list pages].
|
|
293
|
+
Stack: [stack].
|
|
294
|
+
Ensure responsive, accessible, and consistent design system.
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Detailed Prompt Example
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
Create a complete website package for [product type] with the following requirements:
|
|
303
|
+
|
|
304
|
+
**Information:**
|
|
305
|
+
- Product type: [type]
|
|
306
|
+
- Style: [keywords]
|
|
307
|
+
- Industry: [industry]
|
|
308
|
+
- Stack: [stack]
|
|
309
|
+
- Pages: [list]
|
|
310
|
+
|
|
311
|
+
**Process:**
|
|
312
|
+
1. Search design intelligence with skill ui-ux (use hybrid mode)
|
|
313
|
+
2. Create shared components (Header, Footer, Button, Card)
|
|
314
|
+
3. Implement pages: [order]
|
|
315
|
+
4. Verify with pre-delivery checklist
|
|
316
|
+
|
|
317
|
+
**Quality Requirements:**
|
|
318
|
+
- Consistent design system
|
|
319
|
+
- Responsive (320px, 768px, 1024px, 1440px)
|
|
320
|
+
- Accessible (WCAG AA)
|
|
321
|
+
- Performance optimized
|
|
322
|
+
- Follow search results from ui-ux skill
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Important Notes
|
|
328
|
+
|
|
329
|
+
1. **Always mention skill ui-ux** - Agent will know to use this skill
|
|
330
|
+
2. **Encourage using search modes** - Hybrid/Vector for better results
|
|
331
|
+
3. **Require multi-page** - Agent will create full package instead of just landing page
|
|
332
|
+
4. **Mention consistency** - Ensures all pages use same design system
|
|
333
|
+
5. **Require checklist** - Agent will verify before delivering
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
# Page Types Guide - Multi-Page Website Package
|
|
2
|
+
|
|
3
|
+
This guide provides templates and best practices for creating complete website packages with multiple page types.
|
|
4
|
+
|
|
5
|
+
## Default Page Set
|
|
6
|
+
|
|
7
|
+
When creating a complete website package (not just a landing page), the default set includes:
|
|
8
|
+
|
|
9
|
+
1. **Home** - Main homepage
|
|
10
|
+
2. **About** - Company/story page
|
|
11
|
+
3. **Post Details** - Blog/article detail page
|
|
12
|
+
4. **Category** - Blog/category listing page
|
|
13
|
+
5. **Pricing** - Pricing/plans page
|
|
14
|
+
6. **FAQ** - Frequently asked questions
|
|
15
|
+
7. **Contact** - Contact form and information
|
|
16
|
+
8. **Product Category** - E-commerce category listing
|
|
17
|
+
9. **Product Details** - E-commerce product detail page
|
|
18
|
+
|
|
19
|
+
## Page Type Templates
|
|
20
|
+
|
|
21
|
+
### 1. Home Page
|
|
22
|
+
|
|
23
|
+
**Purpose**: Main entry point, first impression, conversion focus
|
|
24
|
+
|
|
25
|
+
**Key Sections**:
|
|
26
|
+
- Hero with headline and primary CTA
|
|
27
|
+
- Value proposition (what makes you different)
|
|
28
|
+
- Key features (3-5 features with icons)
|
|
29
|
+
- Social proof (testimonials, logos, stats)
|
|
30
|
+
- Secondary CTA section
|
|
31
|
+
- Footer with navigation
|
|
32
|
+
|
|
33
|
+
**Layout Pattern**: Hero-Centric or Feature-Rich Showcase
|
|
34
|
+
|
|
35
|
+
**Search Query**: `python3 scripts/search.py "home homepage" --domain pages`
|
|
36
|
+
|
|
37
|
+
### 2. About Page
|
|
38
|
+
|
|
39
|
+
**Purpose**: Build trust, humanize brand, show expertise
|
|
40
|
+
|
|
41
|
+
**Key Sections**:
|
|
42
|
+
- Page header with title
|
|
43
|
+
- Mission/Vision statement
|
|
44
|
+
- Story/Timeline (how you started)
|
|
45
|
+
- Team grid (photos + roles)
|
|
46
|
+
- Values/Principles
|
|
47
|
+
- Optional: Stats/metrics
|
|
48
|
+
- Optional: CTA
|
|
49
|
+
|
|
50
|
+
**Layout Pattern**: Storytelling-Driven or Trust & Authority
|
|
51
|
+
|
|
52
|
+
**Search Query**: `python3 scripts/search.py "about company story" --domain pages`
|
|
53
|
+
|
|
54
|
+
### 3. Post Details (Blog Article)
|
|
55
|
+
|
|
56
|
+
**Purpose**: Content consumption, readability, SEO
|
|
57
|
+
|
|
58
|
+
**Key Sections**:
|
|
59
|
+
- Breadcrumbs navigation
|
|
60
|
+
- Article title + meta (date, author, category)
|
|
61
|
+
- Featured image
|
|
62
|
+
- Content body (readable typography)
|
|
63
|
+
- Author bio card
|
|
64
|
+
- Related posts grid
|
|
65
|
+
- Optional: Comments section
|
|
66
|
+
- Social share buttons
|
|
67
|
+
|
|
68
|
+
**Layout Pattern**: Minimal & Direct or Content-First
|
|
69
|
+
|
|
70
|
+
**Search Query**: `python3 scripts/search.py "post article blog" --domain pages`
|
|
71
|
+
|
|
72
|
+
### 4. Category Page (Blog/Content)
|
|
73
|
+
|
|
74
|
+
**Purpose**: Content discovery, filtering, browsing
|
|
75
|
+
|
|
76
|
+
**Key Sections**:
|
|
77
|
+
- Category header with title
|
|
78
|
+
- Category description
|
|
79
|
+
- Filter/search bar (optional)
|
|
80
|
+
- Post grid (cards or list view)
|
|
81
|
+
- Pagination
|
|
82
|
+
- Optional: Sidebar with widgets
|
|
83
|
+
|
|
84
|
+
**Layout Pattern**: Minimal & Direct or Bento Box Grid
|
|
85
|
+
|
|
86
|
+
**Search Query**: `python3 scripts/search.py "category archive listing" --domain pages`
|
|
87
|
+
|
|
88
|
+
### 5. Pricing Page
|
|
89
|
+
|
|
90
|
+
**Purpose**: Conversion, clear pricing, address objections
|
|
91
|
+
|
|
92
|
+
**Key Sections**:
|
|
93
|
+
- Hero headline
|
|
94
|
+
- Price comparison cards (3-4 tiers)
|
|
95
|
+
- Feature comparison table
|
|
96
|
+
- FAQ section (address common objections)
|
|
97
|
+
- Optional: Testimonials
|
|
98
|
+
- Final CTA
|
|
99
|
+
|
|
100
|
+
**Layout Pattern**: Pricing-Focused Landing
|
|
101
|
+
|
|
102
|
+
**Search Query**: `python3 scripts/search.py "pricing plans tiers" --domain pages`
|
|
103
|
+
|
|
104
|
+
### 6. FAQ Page
|
|
105
|
+
|
|
106
|
+
**Purpose**: Reduce support tickets, self-service
|
|
107
|
+
|
|
108
|
+
**Key Sections**:
|
|
109
|
+
- Hero with search bar
|
|
110
|
+
- Popular categories/tabs
|
|
111
|
+
- FAQ accordion (expandable Q&A)
|
|
112
|
+
- Contact/support CTA (for unresolved questions)
|
|
113
|
+
- Related articles
|
|
114
|
+
|
|
115
|
+
**Layout Pattern**: FAQ/Documentation Landing
|
|
116
|
+
|
|
117
|
+
**Search Query**: `python3 scripts/search.py "faq questions help" --domain pages`
|
|
118
|
+
|
|
119
|
+
### 7. Contact Page
|
|
120
|
+
|
|
121
|
+
**Purpose**: Lead capture, customer support
|
|
122
|
+
|
|
123
|
+
**Key Sections**:
|
|
124
|
+
- Hero/Header
|
|
125
|
+
- Contact form (name, email, message - max 3-4 fields)
|
|
126
|
+
- Contact information cards (address, phone, email)
|
|
127
|
+
- Optional: Map embed
|
|
128
|
+
- Social media links
|
|
129
|
+
- Success message feedback
|
|
130
|
+
|
|
131
|
+
**Layout Pattern**: Minimal & Direct or Trust & Authority
|
|
132
|
+
|
|
133
|
+
**Search Query**: `python3 scripts/search.py "contact get-in-touch" --domain pages`
|
|
134
|
+
|
|
135
|
+
### 8. Product Category (E-commerce)
|
|
136
|
+
|
|
137
|
+
**Purpose**: Product discovery, filtering, browsing
|
|
138
|
+
|
|
139
|
+
**Key Sections**:
|
|
140
|
+
- Category header
|
|
141
|
+
- Filter/sort bar
|
|
142
|
+
- Product grid (cards with images, titles, prices)
|
|
143
|
+
- Pagination or infinite scroll
|
|
144
|
+
- Optional: Sidebar filters
|
|
145
|
+
- Quick view modal (optional)
|
|
146
|
+
|
|
147
|
+
**Layout Pattern**: E-commerce Clean or Bento Box Grid
|
|
148
|
+
|
|
149
|
+
**Search Query**: `python3 scripts/search.py "product-category shop catalog" --domain pages`
|
|
150
|
+
|
|
151
|
+
### 9. Product Details (E-commerce)
|
|
152
|
+
|
|
153
|
+
**Purpose**: Conversion, product information, purchase decision
|
|
154
|
+
|
|
155
|
+
**Key Sections**:
|
|
156
|
+
- Breadcrumbs
|
|
157
|
+
- Product image gallery (with zoom)
|
|
158
|
+
- Product title + price
|
|
159
|
+
- Product description
|
|
160
|
+
- Add to cart form + options (size, color, quantity)
|
|
161
|
+
- Specifications table
|
|
162
|
+
- Reviews/ratings section
|
|
163
|
+
- Related products grid
|
|
164
|
+
|
|
165
|
+
**Layout Pattern**: Conversion-Optimized or Feature-Rich Showcase
|
|
166
|
+
|
|
167
|
+
**Search Query**: `python3 scripts/search.py "product-detail single-product" --domain pages`
|
|
168
|
+
|
|
169
|
+
## Implementation Workflow
|
|
170
|
+
|
|
171
|
+
### Step 1: Search Page Type Template
|
|
172
|
+
|
|
173
|
+
For each page type, search the pages database:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
python3 scripts/search.py "<page-type-keywords>" --domain pages
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Step 2: Search Design System
|
|
180
|
+
|
|
181
|
+
For consistent design across all pages:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# Product type
|
|
185
|
+
python3 scripts/search.py "<product-type>" --domain product
|
|
186
|
+
|
|
187
|
+
# Style
|
|
188
|
+
python3 scripts/search.py "<style-keywords>" --domain style
|
|
189
|
+
|
|
190
|
+
# Color palette
|
|
191
|
+
python3 scripts/search.py "<product-type>" --domain color
|
|
192
|
+
|
|
193
|
+
# Typography
|
|
194
|
+
python3 scripts/search.py "<typography-keywords>" --domain typography
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Step 3: Create Shared Components
|
|
198
|
+
|
|
199
|
+
Before creating individual pages, create shared components:
|
|
200
|
+
|
|
201
|
+
- **Header/Navigation** - Consistent across all pages
|
|
202
|
+
- **Footer** - Consistent across all pages
|
|
203
|
+
- **Button styles** - Primary, secondary, CTA
|
|
204
|
+
- **Card components** - For features, products, posts
|
|
205
|
+
- **Form components** - For contact, search
|
|
206
|
+
- **Layout wrapper** - Consistent spacing and max-width
|
|
207
|
+
|
|
208
|
+
### Step 4: Implement Pages in Order
|
|
209
|
+
|
|
210
|
+
Recommended order:
|
|
211
|
+
|
|
212
|
+
1. **Home** - Establishes design system
|
|
213
|
+
2. **About** - Uses same header/footer
|
|
214
|
+
3. **Category** - Reuses card components
|
|
215
|
+
4. **Post Details** - Uses category navigation
|
|
216
|
+
5. **Pricing** - Standalone but consistent
|
|
217
|
+
6. **FAQ** - Standalone but consistent
|
|
218
|
+
7. **Contact** - Standalone but consistent
|
|
219
|
+
8. **Product Category** (if e-commerce)
|
|
220
|
+
9. **Product Details** (if e-commerce)
|
|
221
|
+
|
|
222
|
+
### Step 5: Ensure Consistency
|
|
223
|
+
|
|
224
|
+
- Same color palette across all pages
|
|
225
|
+
- Same typography (heading + body fonts)
|
|
226
|
+
- Same spacing system (Tailwind spacing scale)
|
|
227
|
+
- Same navigation structure
|
|
228
|
+
- Same footer content
|
|
229
|
+
- Consistent button styles
|
|
230
|
+
- Consistent card styles
|
|
231
|
+
|
|
232
|
+
## Code Organization
|
|
233
|
+
|
|
234
|
+
### File Structure
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
src/
|
|
238
|
+
├── components/
|
|
239
|
+
│ ├── shared/
|
|
240
|
+
│ │ ├── Header.tsx (or Header.html)
|
|
241
|
+
│ │ ├── Footer.tsx (or Footer.html)
|
|
242
|
+
│ │ ├── Button.tsx
|
|
243
|
+
│ │ └── Card.tsx
|
|
244
|
+
│ ├── home/
|
|
245
|
+
│ │ ├── Hero.tsx
|
|
246
|
+
│ │ └── Features.tsx
|
|
247
|
+
│ ├── about/
|
|
248
|
+
│ │ ├── Team.tsx
|
|
249
|
+
│ │ └── Timeline.tsx
|
|
250
|
+
│ └── ...
|
|
251
|
+
├── pages/
|
|
252
|
+
│ ├── index.html (or Home.tsx)
|
|
253
|
+
│ ├── about.html (or About.tsx)
|
|
254
|
+
│ ├── blog/
|
|
255
|
+
│ │ ├── [slug].html (or PostDetails.tsx)
|
|
256
|
+
│ │ └── category/[category].html
|
|
257
|
+
│ ├── pricing.html
|
|
258
|
+
│ ├── faq.html
|
|
259
|
+
│ ├── contact.html
|
|
260
|
+
│ └── products/
|
|
261
|
+
│ ├── category/[category].html
|
|
262
|
+
│ └── [slug].html
|
|
263
|
+
└── styles/
|
|
264
|
+
├── globals.css (or tailwind.config.js)
|
|
265
|
+
└── components.css
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Component Reusability
|
|
269
|
+
|
|
270
|
+
- Extract common patterns into components
|
|
271
|
+
- Use props/variables for customization
|
|
272
|
+
- Keep components under 200-300 lines
|
|
273
|
+
- One component per file
|
|
274
|
+
|
|
275
|
+
## Best Practices
|
|
276
|
+
|
|
277
|
+
### Navigation
|
|
278
|
+
|
|
279
|
+
- Consistent navigation across all pages
|
|
280
|
+
- Active state indication (current page highlighted)
|
|
281
|
+
- Mobile-responsive hamburger menu
|
|
282
|
+
- Breadcrumbs for deep pages (3+ levels)
|
|
283
|
+
|
|
284
|
+
### Responsive Design
|
|
285
|
+
|
|
286
|
+
- Mobile-first approach
|
|
287
|
+
- Test at: 320px, 768px, 1024px, 1440px
|
|
288
|
+
- No horizontal scroll on mobile
|
|
289
|
+
- Touch-friendly targets (44x44px minimum)
|
|
290
|
+
|
|
291
|
+
### Performance
|
|
292
|
+
|
|
293
|
+
- Lazy load images below fold
|
|
294
|
+
- Optimize images (WebP format, appropriate sizes)
|
|
295
|
+
- Minimize JavaScript
|
|
296
|
+
- Use CSS for animations when possible
|
|
297
|
+
|
|
298
|
+
### Accessibility
|
|
299
|
+
|
|
300
|
+
- Semantic HTML
|
|
301
|
+
- ARIA labels where needed
|
|
302
|
+
- Keyboard navigation
|
|
303
|
+
- Focus indicators
|
|
304
|
+
- Alt text for images
|
|
305
|
+
- Form labels
|
|
306
|
+
- Color contrast (4.5:1 minimum)
|
|
307
|
+
|
|
308
|
+
## Example: Complete Website Package
|
|
309
|
+
|
|
310
|
+
**User Request**: "Tạo gói website đầy đủ cho dịch vụ chăm sóc da"
|
|
311
|
+
|
|
312
|
+
**Agent Workflow**:
|
|
313
|
+
|
|
314
|
+
1. Search product type: `python3 scripts/search.py "beauty spa wellness service" --domain product`
|
|
315
|
+
2. Search style: `python3 scripts/search.py "elegant minimal soft" --domain style`
|
|
316
|
+
3. Search color: `python3 scripts/search.py "beauty spa wellness" --domain color`
|
|
317
|
+
4. Search typography: `python3 scripts/search.py "elegant luxury" --domain typography`
|
|
318
|
+
|
|
319
|
+
5. For each page type:
|
|
320
|
+
- `python3 scripts/search.py "home homepage" --domain pages`
|
|
321
|
+
- `python3 scripts/search.py "about company" --domain pages`
|
|
322
|
+
- `python3 scripts/search.py "post article" --domain pages`
|
|
323
|
+
- `python3 scripts/search.py "category archive" --domain pages`
|
|
324
|
+
- `python3 scripts/search.py "pricing plans" --domain pages`
|
|
325
|
+
- `python3 scripts/search.py "faq questions" --domain pages`
|
|
326
|
+
- `python3 scripts/search.py "contact" --domain pages`
|
|
327
|
+
|
|
328
|
+
6. Create shared components (Header, Footer, Button, Card)
|
|
329
|
+
7. Implement pages in recommended order
|
|
330
|
+
8. Ensure consistency across all pages
|
|
331
|
+
9. Verify with pre-delivery checklist
|
|
332
|
+
|
|
333
|
+
## Notes
|
|
334
|
+
|
|
335
|
+
- **Default pages**: If user doesn't specify, create all 9 default pages
|
|
336
|
+
- **Custom pages**: User can specify which pages to create
|
|
337
|
+
- **E-commerce pages**: Only create Product Category and Product Details if product type is e-commerce
|
|
338
|
+
- **Consistency**: Most important - all pages should feel like one cohesive website
|