@mytechtoday/augment-extensions 1.3.0 → 1.3.1
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 -22
- package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
- package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
- package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
- package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
- package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
- package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
- package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
- package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
- package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
- package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
- package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
- package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
- package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
- package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
- package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
- package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
- package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
- package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
- package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
- package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
- package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
- package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
- package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
- package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
- package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
- package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
- package/augment-extensions/visual-design/CHANGELOG.md +132 -132
- package/augment-extensions/visual-design/README.md +255 -255
- package/augment-extensions/visual-design/__tests__/README.md +119 -119
- package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -172
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -214
- package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -157
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -157
- package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -156
- package/augment-extensions/visual-design/domains/other/os-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -158
- package/augment-extensions/visual-design/domains/other/web-app.ts +157 -157
- package/augment-extensions/visual-design/domains/other/website.ts +161 -161
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -506
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -615
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -531
- package/augment-extensions/visual-design/examples/README.md +97 -97
- package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -233
- package/augment-extensions/visual-design/examples/basic-usage.md +216 -216
- package/augment-extensions/visual-design/examples/domain-workflows.md +257 -257
- package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -247
- package/augment-extensions/visual-design/module.json +78 -78
- package/augment-extensions/visual-design/style-selector.ts +177 -177
- package/augment-extensions/visual-design/types.ts +302 -302
- package/augment-extensions/visual-design/visual-design-core.ts +469 -469
- package/augment-extensions/workflows/adr-support/README.md +227 -227
- package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -203
- package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -162
- package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -449
- package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -580
- package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -436
- package/augment-extensions/workflows/adr-support/module.json +112 -112
- package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -372
- package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -443
- package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -486
- package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -362
- package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -427
- package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -465
- package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -405
- package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -543
- package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -191
- package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -172
- package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -235
- package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -197
- package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -68
- package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -84
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
- package/cli/dist/utils/auto-sync.js +19 -19
- package/package.json +5 -3
- package/augment-extensions/workflows/openspec/README.md +0 -96
- package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
- package/augment-extensions/workflows/openspec/module.json +0 -54
- package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
- package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
- package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
- package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts +0 -6
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts.map +0 -1
- package/cli/dist/utils/__tests__/adr-validator.example.js +0 -148
- package/cli/dist/utils/__tests__/adr-validator.example.js.map +0 -1
- package/cli/dist/utils/adr-validator.d.ts +0 -65
- package/cli/dist/utils/adr-validator.d.ts.map +0 -1
- package/cli/dist/utils/adr-validator.js +0 -203
- package/cli/dist/utils/adr-validator.js.map +0 -1
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# Visual Design Module - Usage Examples
|
|
2
|
-
|
|
3
|
-
This directory contains practical examples demonstrating how to use the Visual Design module with Augment AI.
|
|
4
|
-
|
|
5
|
-
## Examples
|
|
6
|
-
|
|
7
|
-
### 1. Basic Usage (`basic-usage.md`)
|
|
8
|
-
- How to query the module
|
|
9
|
-
- Selecting vendor styles
|
|
10
|
-
- Applying design elements
|
|
11
|
-
|
|
12
|
-
### 2. Website Design (`website-design-example.md`)
|
|
13
|
-
- Complete website design workflow
|
|
14
|
-
- Multi-page site structure
|
|
15
|
-
- Navigation and layout patterns
|
|
16
|
-
|
|
17
|
-
### 3. Web Application Design (`web-app-design-example.md`)
|
|
18
|
-
- SPA/PWA design patterns
|
|
19
|
-
- Interactive components
|
|
20
|
-
- State-driven UI
|
|
21
|
-
|
|
22
|
-
### 4. Mobile Application Design (`mobile-app-design-example.md`)
|
|
23
|
-
- Touch-first interactions
|
|
24
|
-
- Native platform patterns (iOS/Android)
|
|
25
|
-
- Responsive mobile layouts
|
|
26
|
-
|
|
27
|
-
### 5. Print Campaign Design (`print-campaign-example.md`)
|
|
28
|
-
- Flyers, posters, banners
|
|
29
|
-
- Print-specific color and typography
|
|
30
|
-
- Layout for physical media
|
|
31
|
-
|
|
32
|
-
### 6. Cross-Platform Design (`cross-platform-example.md`)
|
|
33
|
-
- Consistent design across platforms
|
|
34
|
-
- Platform-specific adaptations
|
|
35
|
-
- Design system tokens
|
|
36
|
-
|
|
37
|
-
### 7. AI Prompt Helper (`ai-prompt-example.md`)
|
|
38
|
-
- Generating image prompts
|
|
39
|
-
- Style-specific prompt templates
|
|
40
|
-
- Multi-platform compatibility
|
|
41
|
-
|
|
42
|
-
### 8. Domain-Specific Workflows (`domain-workflows.md`)
|
|
43
|
-
- Website vs Web-app vs Mobile
|
|
44
|
-
- .NET Application design
|
|
45
|
-
- Linux/Windows platform design
|
|
46
|
-
- Motion Picture design
|
|
47
|
-
|
|
48
|
-
## How to Use These Examples
|
|
49
|
-
|
|
50
|
-
1. **Read the example**: Each example is self-contained with context and goals
|
|
51
|
-
2. **Follow the workflow**: Step-by-step instructions for AI agents
|
|
52
|
-
3. **Adapt to your needs**: Modify examples for your specific use case
|
|
53
|
-
4. **Reference the module**: Use `augx show visual-design` for detailed specs
|
|
54
|
-
|
|
55
|
-
## For AI Agents
|
|
56
|
-
|
|
57
|
-
When working with the Visual Design module:
|
|
58
|
-
|
|
59
|
-
1. **Query the module first**: `augx show visual-design`
|
|
60
|
-
2. **Select appropriate vendor**: Use default priority or user preference
|
|
61
|
-
3. **Choose domain**: Website, Web-app, Mobile, Print, etc.
|
|
62
|
-
4. **Apply design elements**: Color, typography, layout, spacing
|
|
63
|
-
5. **Follow design principles**: Balance, contrast, hierarchy, accessibility
|
|
64
|
-
6. **Generate output**: HTML/CSS, design specs, or mockups
|
|
65
|
-
|
|
66
|
-
## Example Workflow
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# 1. Link the module
|
|
70
|
-
augx link visual-design
|
|
71
|
-
|
|
72
|
-
# 2. View module content
|
|
73
|
-
augx show visual-design
|
|
74
|
-
|
|
75
|
-
# 3. View specific vendor style
|
|
76
|
-
augx show visual-design/google-modern
|
|
77
|
-
|
|
78
|
-
# 4. View specific domain
|
|
79
|
-
augx show visual-design/website
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Testing Your Designs
|
|
83
|
-
|
|
84
|
-
Refer to `__tests__/` directory for:
|
|
85
|
-
- Unit tests for style selectors
|
|
86
|
-
- Integration tests for vendor styles
|
|
87
|
-
- Validation tests for design principles
|
|
88
|
-
|
|
89
|
-
## Additional Resources
|
|
90
|
-
|
|
91
|
-
- **Module README**: `../README.md`
|
|
92
|
-
- **Type Definitions**: `../types.ts`
|
|
93
|
-
- **Core Design Elements**: `../visual-design-core.ts`
|
|
94
|
-
- **Style Selector**: `../style-selector.ts`
|
|
95
|
-
- **Vendor Styles**: `../domains/web-page-styles/`
|
|
96
|
-
- **Domain Styles**: `../domains/other/`
|
|
97
|
-
|
|
1
|
+
# Visual Design Module - Usage Examples
|
|
2
|
+
|
|
3
|
+
This directory contains practical examples demonstrating how to use the Visual Design module with Augment AI.
|
|
4
|
+
|
|
5
|
+
## Examples
|
|
6
|
+
|
|
7
|
+
### 1. Basic Usage (`basic-usage.md`)
|
|
8
|
+
- How to query the module
|
|
9
|
+
- Selecting vendor styles
|
|
10
|
+
- Applying design elements
|
|
11
|
+
|
|
12
|
+
### 2. Website Design (`website-design-example.md`)
|
|
13
|
+
- Complete website design workflow
|
|
14
|
+
- Multi-page site structure
|
|
15
|
+
- Navigation and layout patterns
|
|
16
|
+
|
|
17
|
+
### 3. Web Application Design (`web-app-design-example.md`)
|
|
18
|
+
- SPA/PWA design patterns
|
|
19
|
+
- Interactive components
|
|
20
|
+
- State-driven UI
|
|
21
|
+
|
|
22
|
+
### 4. Mobile Application Design (`mobile-app-design-example.md`)
|
|
23
|
+
- Touch-first interactions
|
|
24
|
+
- Native platform patterns (iOS/Android)
|
|
25
|
+
- Responsive mobile layouts
|
|
26
|
+
|
|
27
|
+
### 5. Print Campaign Design (`print-campaign-example.md`)
|
|
28
|
+
- Flyers, posters, banners
|
|
29
|
+
- Print-specific color and typography
|
|
30
|
+
- Layout for physical media
|
|
31
|
+
|
|
32
|
+
### 6. Cross-Platform Design (`cross-platform-example.md`)
|
|
33
|
+
- Consistent design across platforms
|
|
34
|
+
- Platform-specific adaptations
|
|
35
|
+
- Design system tokens
|
|
36
|
+
|
|
37
|
+
### 7. AI Prompt Helper (`ai-prompt-example.md`)
|
|
38
|
+
- Generating image prompts
|
|
39
|
+
- Style-specific prompt templates
|
|
40
|
+
- Multi-platform compatibility
|
|
41
|
+
|
|
42
|
+
### 8. Domain-Specific Workflows (`domain-workflows.md`)
|
|
43
|
+
- Website vs Web-app vs Mobile
|
|
44
|
+
- .NET Application design
|
|
45
|
+
- Linux/Windows platform design
|
|
46
|
+
- Motion Picture design
|
|
47
|
+
|
|
48
|
+
## How to Use These Examples
|
|
49
|
+
|
|
50
|
+
1. **Read the example**: Each example is self-contained with context and goals
|
|
51
|
+
2. **Follow the workflow**: Step-by-step instructions for AI agents
|
|
52
|
+
3. **Adapt to your needs**: Modify examples for your specific use case
|
|
53
|
+
4. **Reference the module**: Use `augx show visual-design` for detailed specs
|
|
54
|
+
|
|
55
|
+
## For AI Agents
|
|
56
|
+
|
|
57
|
+
When working with the Visual Design module:
|
|
58
|
+
|
|
59
|
+
1. **Query the module first**: `augx show visual-design`
|
|
60
|
+
2. **Select appropriate vendor**: Use default priority or user preference
|
|
61
|
+
3. **Choose domain**: Website, Web-app, Mobile, Print, etc.
|
|
62
|
+
4. **Apply design elements**: Color, typography, layout, spacing
|
|
63
|
+
5. **Follow design principles**: Balance, contrast, hierarchy, accessibility
|
|
64
|
+
6. **Generate output**: HTML/CSS, design specs, or mockups
|
|
65
|
+
|
|
66
|
+
## Example Workflow
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# 1. Link the module
|
|
70
|
+
augx link visual-design
|
|
71
|
+
|
|
72
|
+
# 2. View module content
|
|
73
|
+
augx show visual-design
|
|
74
|
+
|
|
75
|
+
# 3. View specific vendor style
|
|
76
|
+
augx show visual-design/google-modern
|
|
77
|
+
|
|
78
|
+
# 4. View specific domain
|
|
79
|
+
augx show visual-design/website
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Testing Your Designs
|
|
83
|
+
|
|
84
|
+
Refer to `__tests__/` directory for:
|
|
85
|
+
- Unit tests for style selectors
|
|
86
|
+
- Integration tests for vendor styles
|
|
87
|
+
- Validation tests for design principles
|
|
88
|
+
|
|
89
|
+
## Additional Resources
|
|
90
|
+
|
|
91
|
+
- **Module README**: `../README.md`
|
|
92
|
+
- **Type Definitions**: `../types.ts`
|
|
93
|
+
- **Core Design Elements**: `../visual-design-core.ts`
|
|
94
|
+
- **Style Selector**: `../style-selector.ts`
|
|
95
|
+
- **Vendor Styles**: `../domains/web-page-styles/`
|
|
96
|
+
- **Domain Styles**: `../domains/other/`
|
|
97
|
+
|
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
# AI Image Generation Prompt Helper
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
This example demonstrates how to use the Visual Design module to generate effective prompts for AI image generation platforms (Midjourney, DALL-E, Stable Diffusion).
|
|
6
|
-
|
|
7
|
-
## Scenario
|
|
8
|
-
|
|
9
|
-
**Goal**: Generate prompts for creating marketing visuals for a tech startup
|
|
10
|
-
|
|
11
|
-
**Platforms**: Midjourney, DALL-E 3, Stable Diffusion
|
|
12
|
-
|
|
13
|
-
## Using the AI Prompt Helper Domain
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { AI_PROMPT_HELPER_DOMAIN } from './domains/other/ai-prompt-helper';
|
|
17
|
-
import { defaultStyleSelector } from './style-selector';
|
|
18
|
-
|
|
19
|
-
// Get vendor style for color/typography guidance
|
|
20
|
-
const vendorStyle = defaultStyleSelector.selectVendorStyle('google');
|
|
21
|
-
|
|
22
|
-
// Apply AI Prompt Helper domain
|
|
23
|
-
const promptHelper = {
|
|
24
|
-
...vendorStyle,
|
|
25
|
-
domain: AI_PROMPT_HELPER_DOMAIN,
|
|
26
|
-
platform: 'midjourney', // or 'dalle', 'stable-diffusion'
|
|
27
|
-
style: 'modern-tech',
|
|
28
|
-
subject: 'tech startup hero image'
|
|
29
|
-
};
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Example 1: Hero Image for Landing Page
|
|
33
|
-
|
|
34
|
-
### Requirements
|
|
35
|
-
- Modern, professional aesthetic
|
|
36
|
-
- Technology theme
|
|
37
|
-
- Vibrant colors (Google Material 3 palette)
|
|
38
|
-
- High quality, photorealistic
|
|
39
|
-
|
|
40
|
-
### Generated Prompt (Midjourney)
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
A modern tech startup office with diverse team collaborating around a holographic display,
|
|
44
|
-
vibrant purple and blue color scheme (#6750A4, #0078D4),
|
|
45
|
-
natural lighting from large windows,
|
|
46
|
-
clean minimalist interior design,
|
|
47
|
-
photorealistic,
|
|
48
|
-
cinematic composition,
|
|
49
|
-
8k resolution,
|
|
50
|
-
professional photography,
|
|
51
|
-
depth of field,
|
|
52
|
-
--ar 16:9 --v 6 --style raw
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Generated Prompt (DALL-E 3)
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
Create a photorealistic image of a modern tech startup office.
|
|
59
|
-
Show a diverse team of professionals collaborating around a futuristic holographic display.
|
|
60
|
-
Use a vibrant color palette with purple (#6750A4) and blue (#0078D4) accents.
|
|
61
|
-
The scene should have natural lighting from large windows,
|
|
62
|
-
clean minimalist interior design with modern furniture.
|
|
63
|
-
High quality, professional photography style,
|
|
64
|
-
cinematic composition with depth of field.
|
|
65
|
-
16:9 aspect ratio.
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Generated Prompt (Stable Diffusion)
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
modern tech startup office, diverse team collaboration, holographic display,
|
|
72
|
-
vibrant purple and blue colors, natural window lighting, minimalist interior,
|
|
73
|
-
photorealistic, professional photography, cinematic, 8k, depth of field,
|
|
74
|
-
high detail, sharp focus,
|
|
75
|
-
(masterpiece:1.2), (best quality:1.2), (ultra-detailed:1.2)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Example 2: Product Icon
|
|
79
|
-
|
|
80
|
-
### Requirements
|
|
81
|
-
- Simple, recognizable icon
|
|
82
|
-
- Material Design style
|
|
83
|
-
- Flat design with subtle depth
|
|
84
|
-
- 1024x1024 resolution
|
|
85
|
-
|
|
86
|
-
### Generated Prompt (Midjourney)
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
A simple, modern app icon for a productivity tool,
|
|
90
|
-
Material Design 3 style,
|
|
91
|
-
flat design with subtle gradient,
|
|
92
|
-
purple and white color scheme (#6750A4),
|
|
93
|
-
rounded square shape with 20% corner radius,
|
|
94
|
-
minimalist,
|
|
95
|
-
clean lines,
|
|
96
|
-
centered composition,
|
|
97
|
-
--ar 1:1 --v 6 --style raw
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Example 3: Social Media Post
|
|
101
|
-
|
|
102
|
-
### Requirements
|
|
103
|
-
- Instagram post (1080x1080)
|
|
104
|
-
- Eye-catching, vibrant
|
|
105
|
-
- Text overlay space
|
|
106
|
-
- Brand colors
|
|
107
|
-
|
|
108
|
-
### Generated Prompt (DALL-E 3)
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
Create a vibrant social media graphic for Instagram.
|
|
112
|
-
Abstract geometric shapes in purple (#6750A4) and teal (#00BCD4) gradients.
|
|
113
|
-
Modern, energetic composition with plenty of negative space in the center for text overlay.
|
|
114
|
-
Smooth gradients, rounded shapes,
|
|
115
|
-
Material Design 3 aesthetic.
|
|
116
|
-
1:1 square aspect ratio,
|
|
117
|
-
high contrast,
|
|
118
|
-
professional graphic design.
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Prompt Template Structure
|
|
122
|
-
|
|
123
|
-
### Basic Template
|
|
124
|
-
|
|
125
|
-
```
|
|
126
|
-
[Subject] + [Style] + [Color Palette] + [Lighting] + [Composition] + [Quality] + [Technical Parameters]
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Detailed Breakdown
|
|
130
|
-
|
|
131
|
-
1. **Subject**: What you want to generate
|
|
132
|
-
- "modern tech office"
|
|
133
|
-
- "app icon"
|
|
134
|
-
- "abstract background"
|
|
135
|
-
|
|
136
|
-
2. **Style**: Visual aesthetic
|
|
137
|
-
- "Material Design 3"
|
|
138
|
-
- "Fluent Design"
|
|
139
|
-
- "photorealistic"
|
|
140
|
-
- "minimalist"
|
|
141
|
-
- "cinematic"
|
|
142
|
-
|
|
143
|
-
3. **Color Palette**: Specific colors from vendor styles
|
|
144
|
-
- Google: `#6750A4, #EADDFF`
|
|
145
|
-
- Microsoft: `#0078D4, #F3F2F1`
|
|
146
|
-
- Amazon: `#0972D3, #16191F`
|
|
147
|
-
|
|
148
|
-
4. **Lighting**: Light quality and direction
|
|
149
|
-
- "natural window lighting"
|
|
150
|
-
- "soft studio lighting"
|
|
151
|
-
- "dramatic side lighting"
|
|
152
|
-
- "golden hour"
|
|
153
|
-
|
|
154
|
-
5. **Composition**: Layout and framing
|
|
155
|
-
- "centered composition"
|
|
156
|
-
- "rule of thirds"
|
|
157
|
-
- "negative space"
|
|
158
|
-
- "depth of field"
|
|
159
|
-
|
|
160
|
-
6. **Quality**: Output quality descriptors
|
|
161
|
-
- "8k resolution"
|
|
162
|
-
- "high detail"
|
|
163
|
-
- "professional photography"
|
|
164
|
-
- "masterpiece"
|
|
165
|
-
|
|
166
|
-
7. **Technical Parameters**: Platform-specific
|
|
167
|
-
- Midjourney: `--ar 16:9 --v 6 --style raw`
|
|
168
|
-
- DALL-E: Aspect ratio in description
|
|
169
|
-
- Stable Diffusion: `(masterpiece:1.2), (best quality:1.2)`
|
|
170
|
-
|
|
171
|
-
## Platform-Specific Tips
|
|
172
|
-
|
|
173
|
-
### Midjourney
|
|
174
|
-
- Use `--ar` for aspect ratio (16:9, 1:1, 9:16)
|
|
175
|
-
- Use `--v 6` for latest version
|
|
176
|
-
- Use `--style raw` for more photorealistic results
|
|
177
|
-
- Use `--no` to exclude elements
|
|
178
|
-
|
|
179
|
-
### DALL-E 3
|
|
180
|
-
- Be descriptive and specific
|
|
181
|
-
- Use natural language
|
|
182
|
-
- Specify aspect ratio in description
|
|
183
|
-
- Avoid technical jargon
|
|
184
|
-
|
|
185
|
-
### Stable Diffusion
|
|
186
|
-
- Use weighted keywords: `(keyword:1.2)`
|
|
187
|
-
- Use negative prompts: `--neg`
|
|
188
|
-
- Specify model-specific keywords
|
|
189
|
-
- Use quality tags: `masterpiece, best quality`
|
|
190
|
-
|
|
191
|
-
## Combining with Vendor Styles
|
|
192
|
-
|
|
193
|
-
### Google Material 3 Prompts
|
|
194
|
-
|
|
195
|
-
```
|
|
196
|
-
Material Design 3 aesthetic,
|
|
197
|
-
dynamic color theming,
|
|
198
|
-
rounded corners,
|
|
199
|
-
subtle shadows,
|
|
200
|
-
vibrant purple (#6750A4),
|
|
201
|
-
modern and expressive
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### Microsoft Fluent 2 Prompts
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
Fluent Design System,
|
|
208
|
-
Acrylic material effect,
|
|
209
|
-
soft transparency,
|
|
210
|
-
layered depth,
|
|
211
|
-
professional blue (#0078D4),
|
|
212
|
-
clean and corporate
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Amazon Cloudscape Prompts
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
Enterprise dashboard aesthetic,
|
|
219
|
-
neutral color palette,
|
|
220
|
-
data visualization,
|
|
221
|
-
clean and functional,
|
|
222
|
-
AWS blue (#0972D3),
|
|
223
|
-
professional and minimal
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
## Next Steps
|
|
227
|
-
|
|
228
|
-
- Experiment with different prompt structures
|
|
229
|
-
- Test across multiple platforms
|
|
230
|
-
- Refine prompts based on results
|
|
231
|
-
- Build a prompt library for your brand
|
|
232
|
-
- Combine vendor styles with domain-specific keywords
|
|
233
|
-
|
|
1
|
+
# AI Image Generation Prompt Helper
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This example demonstrates how to use the Visual Design module to generate effective prompts for AI image generation platforms (Midjourney, DALL-E, Stable Diffusion).
|
|
6
|
+
|
|
7
|
+
## Scenario
|
|
8
|
+
|
|
9
|
+
**Goal**: Generate prompts for creating marketing visuals for a tech startup
|
|
10
|
+
|
|
11
|
+
**Platforms**: Midjourney, DALL-E 3, Stable Diffusion
|
|
12
|
+
|
|
13
|
+
## Using the AI Prompt Helper Domain
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AI_PROMPT_HELPER_DOMAIN } from './domains/other/ai-prompt-helper';
|
|
17
|
+
import { defaultStyleSelector } from './style-selector';
|
|
18
|
+
|
|
19
|
+
// Get vendor style for color/typography guidance
|
|
20
|
+
const vendorStyle = defaultStyleSelector.selectVendorStyle('google');
|
|
21
|
+
|
|
22
|
+
// Apply AI Prompt Helper domain
|
|
23
|
+
const promptHelper = {
|
|
24
|
+
...vendorStyle,
|
|
25
|
+
domain: AI_PROMPT_HELPER_DOMAIN,
|
|
26
|
+
platform: 'midjourney', // or 'dalle', 'stable-diffusion'
|
|
27
|
+
style: 'modern-tech',
|
|
28
|
+
subject: 'tech startup hero image'
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example 1: Hero Image for Landing Page
|
|
33
|
+
|
|
34
|
+
### Requirements
|
|
35
|
+
- Modern, professional aesthetic
|
|
36
|
+
- Technology theme
|
|
37
|
+
- Vibrant colors (Google Material 3 palette)
|
|
38
|
+
- High quality, photorealistic
|
|
39
|
+
|
|
40
|
+
### Generated Prompt (Midjourney)
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
A modern tech startup office with diverse team collaborating around a holographic display,
|
|
44
|
+
vibrant purple and blue color scheme (#6750A4, #0078D4),
|
|
45
|
+
natural lighting from large windows,
|
|
46
|
+
clean minimalist interior design,
|
|
47
|
+
photorealistic,
|
|
48
|
+
cinematic composition,
|
|
49
|
+
8k resolution,
|
|
50
|
+
professional photography,
|
|
51
|
+
depth of field,
|
|
52
|
+
--ar 16:9 --v 6 --style raw
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Generated Prompt (DALL-E 3)
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Create a photorealistic image of a modern tech startup office.
|
|
59
|
+
Show a diverse team of professionals collaborating around a futuristic holographic display.
|
|
60
|
+
Use a vibrant color palette with purple (#6750A4) and blue (#0078D4) accents.
|
|
61
|
+
The scene should have natural lighting from large windows,
|
|
62
|
+
clean minimalist interior design with modern furniture.
|
|
63
|
+
High quality, professional photography style,
|
|
64
|
+
cinematic composition with depth of field.
|
|
65
|
+
16:9 aspect ratio.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Generated Prompt (Stable Diffusion)
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
modern tech startup office, diverse team collaboration, holographic display,
|
|
72
|
+
vibrant purple and blue colors, natural window lighting, minimalist interior,
|
|
73
|
+
photorealistic, professional photography, cinematic, 8k, depth of field,
|
|
74
|
+
high detail, sharp focus,
|
|
75
|
+
(masterpiece:1.2), (best quality:1.2), (ultra-detailed:1.2)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Example 2: Product Icon
|
|
79
|
+
|
|
80
|
+
### Requirements
|
|
81
|
+
- Simple, recognizable icon
|
|
82
|
+
- Material Design style
|
|
83
|
+
- Flat design with subtle depth
|
|
84
|
+
- 1024x1024 resolution
|
|
85
|
+
|
|
86
|
+
### Generated Prompt (Midjourney)
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
A simple, modern app icon for a productivity tool,
|
|
90
|
+
Material Design 3 style,
|
|
91
|
+
flat design with subtle gradient,
|
|
92
|
+
purple and white color scheme (#6750A4),
|
|
93
|
+
rounded square shape with 20% corner radius,
|
|
94
|
+
minimalist,
|
|
95
|
+
clean lines,
|
|
96
|
+
centered composition,
|
|
97
|
+
--ar 1:1 --v 6 --style raw
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Example 3: Social Media Post
|
|
101
|
+
|
|
102
|
+
### Requirements
|
|
103
|
+
- Instagram post (1080x1080)
|
|
104
|
+
- Eye-catching, vibrant
|
|
105
|
+
- Text overlay space
|
|
106
|
+
- Brand colors
|
|
107
|
+
|
|
108
|
+
### Generated Prompt (DALL-E 3)
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Create a vibrant social media graphic for Instagram.
|
|
112
|
+
Abstract geometric shapes in purple (#6750A4) and teal (#00BCD4) gradients.
|
|
113
|
+
Modern, energetic composition with plenty of negative space in the center for text overlay.
|
|
114
|
+
Smooth gradients, rounded shapes,
|
|
115
|
+
Material Design 3 aesthetic.
|
|
116
|
+
1:1 square aspect ratio,
|
|
117
|
+
high contrast,
|
|
118
|
+
professional graphic design.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Prompt Template Structure
|
|
122
|
+
|
|
123
|
+
### Basic Template
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
[Subject] + [Style] + [Color Palette] + [Lighting] + [Composition] + [Quality] + [Technical Parameters]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Detailed Breakdown
|
|
130
|
+
|
|
131
|
+
1. **Subject**: What you want to generate
|
|
132
|
+
- "modern tech office"
|
|
133
|
+
- "app icon"
|
|
134
|
+
- "abstract background"
|
|
135
|
+
|
|
136
|
+
2. **Style**: Visual aesthetic
|
|
137
|
+
- "Material Design 3"
|
|
138
|
+
- "Fluent Design"
|
|
139
|
+
- "photorealistic"
|
|
140
|
+
- "minimalist"
|
|
141
|
+
- "cinematic"
|
|
142
|
+
|
|
143
|
+
3. **Color Palette**: Specific colors from vendor styles
|
|
144
|
+
- Google: `#6750A4, #EADDFF`
|
|
145
|
+
- Microsoft: `#0078D4, #F3F2F1`
|
|
146
|
+
- Amazon: `#0972D3, #16191F`
|
|
147
|
+
|
|
148
|
+
4. **Lighting**: Light quality and direction
|
|
149
|
+
- "natural window lighting"
|
|
150
|
+
- "soft studio lighting"
|
|
151
|
+
- "dramatic side lighting"
|
|
152
|
+
- "golden hour"
|
|
153
|
+
|
|
154
|
+
5. **Composition**: Layout and framing
|
|
155
|
+
- "centered composition"
|
|
156
|
+
- "rule of thirds"
|
|
157
|
+
- "negative space"
|
|
158
|
+
- "depth of field"
|
|
159
|
+
|
|
160
|
+
6. **Quality**: Output quality descriptors
|
|
161
|
+
- "8k resolution"
|
|
162
|
+
- "high detail"
|
|
163
|
+
- "professional photography"
|
|
164
|
+
- "masterpiece"
|
|
165
|
+
|
|
166
|
+
7. **Technical Parameters**: Platform-specific
|
|
167
|
+
- Midjourney: `--ar 16:9 --v 6 --style raw`
|
|
168
|
+
- DALL-E: Aspect ratio in description
|
|
169
|
+
- Stable Diffusion: `(masterpiece:1.2), (best quality:1.2)`
|
|
170
|
+
|
|
171
|
+
## Platform-Specific Tips
|
|
172
|
+
|
|
173
|
+
### Midjourney
|
|
174
|
+
- Use `--ar` for aspect ratio (16:9, 1:1, 9:16)
|
|
175
|
+
- Use `--v 6` for latest version
|
|
176
|
+
- Use `--style raw` for more photorealistic results
|
|
177
|
+
- Use `--no` to exclude elements
|
|
178
|
+
|
|
179
|
+
### DALL-E 3
|
|
180
|
+
- Be descriptive and specific
|
|
181
|
+
- Use natural language
|
|
182
|
+
- Specify aspect ratio in description
|
|
183
|
+
- Avoid technical jargon
|
|
184
|
+
|
|
185
|
+
### Stable Diffusion
|
|
186
|
+
- Use weighted keywords: `(keyword:1.2)`
|
|
187
|
+
- Use negative prompts: `--neg`
|
|
188
|
+
- Specify model-specific keywords
|
|
189
|
+
- Use quality tags: `masterpiece, best quality`
|
|
190
|
+
|
|
191
|
+
## Combining with Vendor Styles
|
|
192
|
+
|
|
193
|
+
### Google Material 3 Prompts
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
Material Design 3 aesthetic,
|
|
197
|
+
dynamic color theming,
|
|
198
|
+
rounded corners,
|
|
199
|
+
subtle shadows,
|
|
200
|
+
vibrant purple (#6750A4),
|
|
201
|
+
modern and expressive
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Microsoft Fluent 2 Prompts
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
Fluent Design System,
|
|
208
|
+
Acrylic material effect,
|
|
209
|
+
soft transparency,
|
|
210
|
+
layered depth,
|
|
211
|
+
professional blue (#0078D4),
|
|
212
|
+
clean and corporate
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Amazon Cloudscape Prompts
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
Enterprise dashboard aesthetic,
|
|
219
|
+
neutral color palette,
|
|
220
|
+
data visualization,
|
|
221
|
+
clean and functional,
|
|
222
|
+
AWS blue (#0972D3),
|
|
223
|
+
professional and minimal
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Next Steps
|
|
227
|
+
|
|
228
|
+
- Experiment with different prompt structures
|
|
229
|
+
- Test across multiple platforms
|
|
230
|
+
- Refine prompts based on results
|
|
231
|
+
- Build a prompt library for your brand
|
|
232
|
+
- Combine vendor styles with domain-specific keywords
|
|
233
|
+
|