opencodekit 0.9.2 → 0.11.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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +116 -47
- package/dist/template/.opencode/agent/build.md +16 -48
- package/dist/template/.opencode/agent/explore.md +13 -34
- package/dist/template/.opencode/agent/planner.md +41 -11
- package/dist/template/.opencode/agent/review.md +2 -23
- package/dist/template/.opencode/agent/rush.md +24 -65
- package/dist/template/.opencode/agent/scout.md +5 -21
- package/dist/template/.opencode/agent/vision.md +0 -14
- package/dist/template/.opencode/command/accessibility-check.md +293 -30
- package/dist/template/.opencode/command/analyze-mockup.md +406 -20
- package/dist/template/.opencode/command/analyze-project.md +439 -30
- package/dist/template/.opencode/command/brainstorm.md +288 -5
- package/dist/template/.opencode/command/commit.md +226 -17
- package/dist/template/.opencode/command/create.md +138 -35
- package/dist/template/.opencode/command/design-audit.md +477 -29
- package/dist/template/.opencode/command/design.md +609 -6
- package/dist/template/.opencode/command/edit-image.md +223 -20
- package/dist/template/.opencode/command/finish.md +162 -71
- package/dist/template/.opencode/command/fix-ci.md +296 -24
- package/dist/template/.opencode/command/fix-types.md +345 -13
- package/dist/template/.opencode/command/fix-ui.md +293 -13
- package/dist/template/.opencode/command/fix.md +256 -9
- package/dist/template/.opencode/command/generate-diagram.md +327 -26
- package/dist/template/.opencode/command/generate-icon.md +266 -22
- package/dist/template/.opencode/command/generate-image.md +232 -12
- package/dist/template/.opencode/command/generate-pattern.md +234 -20
- package/dist/template/.opencode/command/generate-storyboard.md +231 -21
- package/dist/template/.opencode/command/handoff.md +202 -30
- package/dist/template/.opencode/command/implement.md +162 -50
- package/dist/template/.opencode/command/import-plan.md +247 -51
- package/dist/template/.opencode/command/init.md +154 -35
- package/dist/template/.opencode/command/integration-test.md +405 -24
- package/dist/template/.opencode/command/issue.md +171 -21
- package/dist/template/.opencode/command/new-feature.md +382 -54
- package/dist/template/.opencode/command/plan.md +144 -118
- package/dist/template/.opencode/command/pr.md +229 -28
- package/dist/template/.opencode/command/quick-build.md +234 -5
- package/dist/template/.opencode/command/research-and-implement.md +436 -12
- package/dist/template/.opencode/command/research-ui.md +444 -34
- package/dist/template/.opencode/command/research.md +173 -45
- package/dist/template/.opencode/command/restore-image.md +416 -22
- package/dist/template/.opencode/command/resume.md +439 -63
- package/dist/template/.opencode/command/revert-feature.md +341 -64
- package/dist/template/.opencode/command/review-codebase.md +193 -4
- package/dist/template/.opencode/command/skill-create.md +506 -14
- package/dist/template/.opencode/command/skill-optimize.md +487 -16
- package/dist/template/.opencode/command/status.md +320 -60
- package/dist/template/.opencode/command/summarize.md +374 -33
- package/dist/template/.opencode/command/triage.md +355 -0
- package/dist/template/.opencode/command/ui-review.md +292 -25
- package/dist/template/.opencode/plugin/README.md +110 -98
- package/dist/template/.opencode/plugin/compactor.ts +95 -171
- package/dist/template/.opencode/plugin/enforcer.ts +177 -127
- package/dist/template/.opencode/plugin/injector.ts +150 -0
- package/dist/template/.opencode/plugin/lib/notify.ts +86 -0
- package/dist/template/.opencode/plugin/notification.ts +57 -123
- package/dist/template/.opencode/plugin/truncator.ts +60 -166
- package/dist/template/.opencode/skill/mqdh/SKILL.md +161 -0
- package/dist/template/.opencode/skill/playwriter/SKILL.md +148 -0
- package/dist/template/.opencode/skill/v0/SKILL.md +154 -0
- package/package.json +1 -1
|
@@ -1,27 +1,247 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Generate images using Gemini image models
|
|
3
|
-
argument-hint: "<prompt> [--style=<style>] [--pro]"
|
|
3
|
+
argument-hint: "<prompt> [--style=<style>] [--aspect=<ratio>] [--size=<size>] [--count=<n>] [--pro]"
|
|
4
4
|
agent: vision
|
|
5
5
|
model: proxypal/gemini-3-pro-image-preview
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Generate Image: $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
Generate
|
|
10
|
+
Generate images based on natural language prompts.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Parse Arguments
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
| Argument | Default | Options |
|
|
15
|
+
| ---------- | -------- | -------------------------------- |
|
|
16
|
+
| Prompt | required | Natural language description |
|
|
17
|
+
| `--style` | none | See style presets below |
|
|
18
|
+
| `--aspect` | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4 |
|
|
19
|
+
| `--size` | default | default, hd, 2k |
|
|
20
|
+
| `--count` | 1 | 1-4 variations |
|
|
21
|
+
| `--pro` | false | Use Pro model for higher quality |
|
|
22
|
+
| `--png` | false | Output PNG instead of JPEG |
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Style Presets
|
|
27
|
+
|
|
28
|
+
Use `--style=<name>` to apply consistent aesthetics:
|
|
29
|
+
|
|
30
|
+
| Style | Description | Best For |
|
|
31
|
+
| ---------------- | -------------------------------------- | --------------------------- |
|
|
32
|
+
| `photorealistic` | High-detail photography | Products, portraits, scenes |
|
|
33
|
+
| `cinematic` | Movie-quality lighting, depth of field | Drama, atmosphere |
|
|
34
|
+
| `illustration` | Clean vector-style artwork | Icons, diagrams, UI |
|
|
35
|
+
| `watercolor` | Soft, painterly textures | Art, backgrounds |
|
|
36
|
+
| `anime` | Japanese animation style | Characters, scenes |
|
|
37
|
+
| `3d-render` | CGI/Blender-style render | Products, architecture |
|
|
38
|
+
| `sketch` | Pencil/charcoal drawing | Concepts, wireframes |
|
|
39
|
+
| `pixel-art` | Retro 8-bit/16-bit style | Games, nostalgia |
|
|
40
|
+
| `oil-painting` | Classical art texture | Portraits, landscapes |
|
|
41
|
+
| `minimalist` | Simple shapes, flat colors | Logos, icons |
|
|
42
|
+
| `isometric` | 3D isometric view | Diagrams, games |
|
|
43
|
+
| `vintage` | Aged, retro photograph look | Nostalgia, branding |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Aspect Ratios
|
|
48
|
+
|
|
49
|
+
| Ratio | Dimensions | Use Case |
|
|
50
|
+
| ------ | ------------------ | -------------------------------------- |
|
|
51
|
+
| `1:1` | Square | Social media, avatars, icons |
|
|
52
|
+
| `16:9` | Landscape wide | Hero images, banners, video thumbnails |
|
|
53
|
+
| `9:16` | Portrait tall | Mobile, stories, vertical content |
|
|
54
|
+
| `4:3` | Landscape standard | Presentations, traditional photos |
|
|
55
|
+
| `3:4` | Portrait standard | Portraits, product photos |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Prompt Engineering
|
|
60
|
+
|
|
61
|
+
### Good Prompt Structure
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
[Subject] + [Action/Pose] + [Environment] + [Style] + [Lighting] + [Quality modifiers]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Example:**
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
A golden retriever playing fetch in a sunny park,
|
|
71
|
+
soft afternoon light, shallow depth of field,
|
|
72
|
+
professional photography, 8k, highly detailed
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Quality Modifiers (add to any prompt)
|
|
76
|
+
|
|
77
|
+
| Modifier | Effect |
|
|
78
|
+
| -------------------------- | ------------------------ |
|
|
79
|
+
| "highly detailed" | Increases fine detail |
|
|
80
|
+
| "8k" / "4k" | Suggests high resolution |
|
|
81
|
+
| "professional photography" | Photorealistic quality |
|
|
82
|
+
| "sharp focus" | Crisp subject |
|
|
83
|
+
| "soft lighting" | Gentle, flattering light |
|
|
84
|
+
| "dramatic lighting" | High contrast, mood |
|
|
85
|
+
| "shallow depth of field" | Blurred background |
|
|
86
|
+
| "studio lighting" | Clean, even light |
|
|
87
|
+
|
|
88
|
+
### Negative Prompts
|
|
89
|
+
|
|
90
|
+
Include what to avoid in your prompt:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
A modern logo design, clean lines, minimalist,
|
|
94
|
+
avoid: text, watermarks, busy backgrounds, gradients
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Common exclusions:
|
|
98
|
+
|
|
99
|
+
- "no text" / "avoid text"
|
|
100
|
+
- "no watermarks"
|
|
101
|
+
- "no people"
|
|
102
|
+
- "avoid clutter"
|
|
103
|
+
- "no blurry elements"
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Examples by Category
|
|
108
|
+
|
|
109
|
+
### Product Photography
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Product shot
|
|
113
|
+
/generate-image A sleek wireless headphone on white background, studio lighting, product photography --style=photorealistic --aspect=4:3
|
|
114
|
+
|
|
115
|
+
# Lifestyle product
|
|
116
|
+
/generate-image Coffee mug on wooden desk with morning light, cozy atmosphere, shallow depth of field --style=cinematic --aspect=16:9
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### UI/Design Assets
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Icon
|
|
123
|
+
/generate-image A simple cloud upload icon, flat design, blue and white --style=minimalist --aspect=1:1
|
|
124
|
+
|
|
125
|
+
# Illustration
|
|
126
|
+
/generate-image Team collaboration illustration, people working together, modern flat style --style=illustration --aspect=16:9
|
|
127
|
+
|
|
128
|
+
# Pattern
|
|
129
|
+
/generate-image Seamless geometric pattern, navy and gold, art deco style --style=minimalist --aspect=1:1
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Marketing/Social
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Hero image
|
|
136
|
+
/generate-image Futuristic city skyline at sunset, cyberpunk aesthetic, neon lights --style=cinematic --aspect=16:9 --pro
|
|
17
137
|
|
|
18
|
-
|
|
138
|
+
# Social media
|
|
139
|
+
/generate-image Abstract gradient background, purple and blue, smooth waves --style=minimalist --aspect=1:1
|
|
19
140
|
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
141
|
+
# Story format
|
|
142
|
+
/generate-image Mountain landscape with hiker, adventure theme, dramatic sky --style=photorealistic --aspect=9:16
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Concept Art
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Character
|
|
149
|
+
/generate-image Fantasy warrior character, detailed armor, dynamic pose --style=illustration --aspect=3:4 --pro
|
|
150
|
+
|
|
151
|
+
# Environment
|
|
152
|
+
/generate-image Abandoned space station interior, sci-fi, atmospheric lighting --style=cinematic --aspect=16:9
|
|
153
|
+
|
|
154
|
+
# Creature
|
|
155
|
+
/generate-image Friendly dragon mascot, cute, approachable, cartoon style --style=illustration --aspect=1:1
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Batch Generation
|
|
161
|
+
|
|
162
|
+
Use `--count` to generate variations:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
# Generate 4 variations
|
|
166
|
+
/generate-image Modern logo concepts for a tech startup --style=minimalist --count=4
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Output:
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
Generated 4 images:
|
|
173
|
+
├── tech-logo-v1.png
|
|
174
|
+
├── tech-logo-v2.png
|
|
175
|
+
├── tech-logo-v3.png
|
|
176
|
+
└── tech-logo-v4.png
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Output
|
|
182
|
+
|
|
183
|
+
### Standard Output
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
## Image Generated
|
|
187
|
+
|
|
188
|
+
**Prompt:** "A golden retriever in a sunny park"
|
|
189
|
+
**Style:** photorealistic
|
|
190
|
+
**Aspect:** 16:9
|
|
191
|
+
**Size:** HD
|
|
192
|
+
**Output:** `.opencode/memory/design/images/golden-retriever-park-001.jpg`
|
|
193
|
+
|
|
194
|
+
### Generation Details
|
|
195
|
+
|
|
196
|
+
- Model: gemini-3-pro-image-preview
|
|
197
|
+
- Enhanced prompt: [show the full prompt used]
|
|
198
|
+
- Generation time: 4.2s
|
|
199
|
+
|
|
200
|
+
### Refinements
|
|
201
|
+
|
|
202
|
+
- "Make the dog larger in frame"
|
|
203
|
+
- "Add more vibrant colors"
|
|
204
|
+
- "Change to sunset lighting"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Limitations
|
|
210
|
+
|
|
211
|
+
| Limitation | Details |
|
|
212
|
+
| ------------------ | ------------------------------------ |
|
|
213
|
+
| **Text in images** | AI struggles to render readable text |
|
|
214
|
+
| **Specific faces** | Cannot generate real people |
|
|
215
|
+
| **Hands/fingers** | Often produces artifacts |
|
|
216
|
+
| **Exact counts** | "5 birds" may show 4 or 6 |
|
|
217
|
+
| **Brand logos** | May refuse or distort |
|
|
218
|
+
| **Complex scenes** | Many elements = inconsistency |
|
|
219
|
+
| **Precise layout** | Spatial positioning is approximate |
|
|
220
|
+
|
|
221
|
+
### Tips to Avoid Issues
|
|
222
|
+
|
|
223
|
+
- Don't request text - add it in post-processing
|
|
224
|
+
- Keep subject count low (1-3 main elements)
|
|
225
|
+
- Be specific about what's important
|
|
226
|
+
- Use style presets for consistency
|
|
227
|
+
- Generate multiple variations, pick best
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Storage
|
|
232
|
+
|
|
233
|
+
Images saved to: `.opencode/memory/design/images/`
|
|
234
|
+
|
|
235
|
+
Filename pattern: `[subject]-[style]-[timestamp].{jpg|png}`
|
|
236
|
+
|
|
237
|
+
---
|
|
24
238
|
|
|
25
|
-
|
|
239
|
+
## Related Commands
|
|
26
240
|
|
|
27
|
-
|
|
241
|
+
| Need | Command |
|
|
242
|
+
| ------------------- | ------------------- |
|
|
243
|
+
| Edit existing image | `/edit-image` |
|
|
244
|
+
| Generate icon | `/generate-icon` |
|
|
245
|
+
| Generate diagram | `/generate-diagram` |
|
|
246
|
+
| Analyze image | `/analyze-mockup` |
|
|
247
|
+
| Create pattern | `/generate-pattern` |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Generate seamless patterns and textures
|
|
3
|
-
argument-hint: "<description> [type
|
|
3
|
+
argument-hint: "<description> [--type=<type>] [--style=<style>] [--colors=<palette>] [--density=<level>] [--size=<px>]"
|
|
4
4
|
agent: vision
|
|
5
5
|
model: proxypal/gemini-3-pro-image-preview
|
|
6
6
|
---
|
|
@@ -9,33 +9,247 @@ model: proxypal/gemini-3-pro-image-preview
|
|
|
9
9
|
|
|
10
10
|
Generate seamless, tileable patterns and textures.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Parse Arguments
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
| Argument | Default | Options |
|
|
15
|
+
| --------------- | --------- | ------------------------------------- |
|
|
16
|
+
| Description | required | What the pattern depicts |
|
|
17
|
+
| `--type` | geometric | geometric, organic, abstract, texture |
|
|
18
|
+
| `--style` | none | See style presets below |
|
|
19
|
+
| `--colors` | auto | Hex colors or preset name |
|
|
20
|
+
| `--density` | medium | sparse, medium, dense |
|
|
21
|
+
| `--size` | 512 | 256, 512, 1024, 2048 |
|
|
22
|
+
| `--repeat` | tile | tile, mirror, half-drop, brick |
|
|
23
|
+
| `--format` | png | png, svg, both |
|
|
24
|
+
| `--transparent` | false | Transparent background |
|
|
15
25
|
|
|
16
|
-
|
|
17
|
-
- Type (default: geometric)
|
|
18
|
-
- Color palette (optional)
|
|
26
|
+
---
|
|
19
27
|
|
|
20
|
-
## Types
|
|
28
|
+
## Pattern Types
|
|
21
29
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
30
|
+
| Type | Description | Best For |
|
|
31
|
+
| ----------- | ----------------------------------------------- | ----------------------------- |
|
|
32
|
+
| `geometric` | Shapes, grids, lines, polygons | Modern UI, tech, corporate |
|
|
33
|
+
| `organic` | Nature-inspired, flowing, irregular | Wellness, eco, natural brands |
|
|
34
|
+
| `abstract` | Artistic, experimental, non-representational | Creative, bold designs |
|
|
35
|
+
| `texture` | Material surfaces (wood, marble, fabric, paper) | Backgrounds, realism |
|
|
26
36
|
|
|
27
|
-
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Style Presets
|
|
40
|
+
|
|
41
|
+
| Style | Description | Characteristics |
|
|
42
|
+
| -------------- | ------------------------------ | ----------------------------------- |
|
|
43
|
+
| `art-deco` | 1920s geometric elegance | Gold, black, symmetry, fan shapes |
|
|
44
|
+
| `memphis` | 1980s bold & playful | Bright colors, squiggles, dots |
|
|
45
|
+
| `scandinavian` | Nordic minimalism | Muted colors, simple shapes, nature |
|
|
46
|
+
| `japanese` | Traditional Japanese motifs | Waves, clouds, cherry blossoms |
|
|
47
|
+
| `moroccan` | Islamic geometric patterns | Intricate tiles, symmetry |
|
|
48
|
+
| `terrazzo` | Speckled stone aggregate | Colorful chips on neutral base |
|
|
49
|
+
| `botanical` | Plant and floral elements | Leaves, flowers, vines |
|
|
50
|
+
| `retro` | Mid-century modern | Atomic age, boomerangs, starbursts |
|
|
51
|
+
| `tribal` | Ethnic and indigenous patterns | Bold lines, earth tones |
|
|
52
|
+
| `digital` | Tech/circuit inspired | Lines, nodes, grid patterns |
|
|
53
|
+
| `watercolor` | Soft, painterly texture | Bleeding edges, wash effects |
|
|
54
|
+
| `noise` | Grain and static textures | Film grain, static, subtle texture |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Color Palette Presets
|
|
59
|
+
|
|
60
|
+
Use `--colors=<preset>` or specify hex values:
|
|
61
|
+
|
|
62
|
+
| Preset | Colors | Mood |
|
|
63
|
+
| --------- | ------------------------- | --------------------- |
|
|
64
|
+
| `mono` | Single color + variations | Clean, minimal |
|
|
65
|
+
| `duotone` | Two contrasting colors | Bold, striking |
|
|
66
|
+
| `earth` | Browns, greens, tans | Natural, organic |
|
|
67
|
+
| `ocean` | Blues, teals, white | Calm, professional |
|
|
68
|
+
| `sunset` | Orange, pink, purple | Warm, vibrant |
|
|
69
|
+
| `forest` | Greens, browns, gold | Earthy, grounded |
|
|
70
|
+
| `pastel` | Soft, muted colors | Gentle, friendly |
|
|
71
|
+
| `neon` | Bright, saturated colors | Energetic, bold |
|
|
72
|
+
| `neutral` | Grays, beige, white | Sophisticated, subtle |
|
|
73
|
+
| `jewel` | Deep, rich colors | Luxurious, premium |
|
|
74
|
+
|
|
75
|
+
**Custom colors:**
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
--colors=#FF5722,#4CAF50,#2196F3
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Density Levels
|
|
84
|
+
|
|
85
|
+
| Density | Description | Use Case |
|
|
86
|
+
| -------- | --------------------------- | ---------------------------- |
|
|
87
|
+
| `sparse` | Few elements, lots of space | Subtle backgrounds, overlays |
|
|
88
|
+
| `medium` | Balanced coverage | General purpose |
|
|
89
|
+
| `dense` | Tightly packed elements | Bold statements, textures |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Repeat Modes
|
|
94
|
+
|
|
95
|
+
| Mode | Description | Visual |
|
|
96
|
+
| ----------- | ------------------------- | ---------------- |
|
|
97
|
+
| `tile` | Direct repeat in grid | ▢▢▢ / ▢▢▢ / ▢▢▢ |
|
|
98
|
+
| `mirror` | Flip alternating tiles | ▢◻▢ / ◻▢◻ / ▢◻▢ |
|
|
99
|
+
| `half-drop` | Offset by half vertically | ▢▢▢ / ·▢▢ / ▢▢▢ |
|
|
100
|
+
| `brick` | Offset like brickwork | ▢▢▢ / ·▢▢▢ / ▢▢▢ |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Use Cases
|
|
105
|
+
|
|
106
|
+
### UI Backgrounds
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Subtle hero background
|
|
110
|
+
/generate-pattern soft gradient noise --type=texture --density=sparse --colors=neutral --transparent
|
|
111
|
+
|
|
112
|
+
# Card pattern overlay
|
|
113
|
+
/generate-pattern geometric grid --style=digital --density=sparse --colors=#0066CC --transparent
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Print & Packaging
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Gift wrap
|
|
120
|
+
/generate-pattern festive geometric shapes --style=memphis --colors=pastel --size=2048
|
|
121
|
+
|
|
122
|
+
# Fabric print
|
|
123
|
+
/generate-pattern botanical leaves --style=scandinavian --colors=forest --repeat=half-drop
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Branding
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Corporate pattern
|
|
130
|
+
/generate-pattern subtle diagonal lines --type=geometric --colors=#1a1a1a --density=sparse
|
|
131
|
+
|
|
132
|
+
# Playful brand pattern
|
|
133
|
+
/generate-pattern abstract shapes and dots --style=memphis --colors=neon
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Textures
|
|
28
137
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
138
|
+
```bash
|
|
139
|
+
# Paper texture
|
|
140
|
+
/generate-pattern subtle paper grain --type=texture --colors=#FAFAFA --density=medium
|
|
141
|
+
|
|
142
|
+
# Marble surface
|
|
143
|
+
/generate-pattern marble veins --type=texture --colors=#FFFFFF,#CCCCCC,#999999 --size=1024
|
|
144
|
+
|
|
145
|
+
# Wood grain
|
|
146
|
+
/generate-pattern oak wood grain --type=texture --colors=earth
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Examples by Style
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Art Deco
|
|
155
|
+
/generate-pattern fan shapes and gold lines --style=art-deco --colors=#1a1a1a,#D4AF37
|
|
156
|
+
|
|
157
|
+
# Japanese
|
|
158
|
+
/generate-pattern waves and clouds --style=japanese --colors=ocean
|
|
159
|
+
|
|
160
|
+
# Terrazzo
|
|
161
|
+
/generate-pattern colorful stone chips --style=terrazzo --colors=pastel --size=1024
|
|
162
|
+
|
|
163
|
+
# Moroccan
|
|
164
|
+
/generate-pattern intricate tile pattern --style=moroccan --colors=jewel
|
|
165
|
+
|
|
166
|
+
# Scandinavian
|
|
167
|
+
/generate-pattern simple leaf shapes --style=scandinavian --colors=#2D4739,#F5F5DC
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
32
171
|
|
|
33
172
|
## Output
|
|
34
173
|
|
|
35
|
-
|
|
174
|
+
### File Structure
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
.opencode/memory/design/patterns/[name]/
|
|
178
|
+
├── pattern-512.png # Main pattern tile
|
|
179
|
+
├── pattern-512.svg # Vector version (if --format=svg)
|
|
180
|
+
├── pattern-preview.png # 3x3 tiled preview
|
|
181
|
+
├── pattern-dark.png # Dark variant (if applicable)
|
|
182
|
+
└── usage.css # CSS snippet
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### CSS Snippet
|
|
186
|
+
|
|
187
|
+
```css
|
|
188
|
+
/* Generated pattern usage */
|
|
189
|
+
.pattern-background {
|
|
190
|
+
background-image: url("pattern-512.png");
|
|
191
|
+
background-repeat: repeat;
|
|
192
|
+
background-size: 128px 128px; /* Adjust for desired scale */
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* With overlay for text readability */
|
|
196
|
+
.pattern-overlay {
|
|
197
|
+
background:
|
|
198
|
+
linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
|
|
199
|
+
url("pattern-512.png");
|
|
200
|
+
background-repeat: repeat;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* CSS-only alternative (if simple enough) */
|
|
204
|
+
.pattern-css {
|
|
205
|
+
background: repeating-linear-gradient(
|
|
206
|
+
45deg,
|
|
207
|
+
#f0f0f0,
|
|
208
|
+
#f0f0f0 10px,
|
|
209
|
+
#ffffff 10px,
|
|
210
|
+
#ffffff 20px
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## Requirements
|
|
218
|
+
|
|
219
|
+
- **Seamless tiling**: Must repeat perfectly in all directions
|
|
220
|
+
- **Edge matching**: No visible seams when tiled
|
|
221
|
+
- **Consistent density**: Even distribution across tile
|
|
222
|
+
- **Color accuracy**: Match specified palette exactly
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Tips for Better Patterns
|
|
227
|
+
|
|
228
|
+
1. **Be specific**: "Geometric triangles" > "shapes"
|
|
229
|
+
2. **Reference styles**: "Like William Morris wallpaper"
|
|
230
|
+
3. **Specify scale**: "Large-scale floral" vs "micro pattern"
|
|
231
|
+
4. **Consider use**: "For dark text overlay" guides contrast
|
|
232
|
+
5. **Test at scale**: Preview at intended display size
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Limitations
|
|
237
|
+
|
|
238
|
+
| Limitation | Workaround |
|
|
239
|
+
| ----------------------- | ------------------------------------------- |
|
|
240
|
+
| Complex illustrations | Use simpler, repeated motifs |
|
|
241
|
+
| Photorealistic textures | Use `--type=texture` with specific material |
|
|
242
|
+
| Exact brand assets | Provide reference, use as base |
|
|
243
|
+
| Perfect symmetry | May need manual adjustment |
|
|
244
|
+
| Text in patterns | Add text in post-processing |
|
|
245
|
+
|
|
246
|
+
---
|
|
36
247
|
|
|
37
|
-
|
|
38
|
-
- Tiled preview showing seamless repeat
|
|
39
|
-
- CSS snippet for background usage
|
|
248
|
+
## Related Commands
|
|
40
249
|
|
|
41
|
-
|
|
250
|
+
| Need | Command |
|
|
251
|
+
| -------------- | ----------------- |
|
|
252
|
+
| Generate image | `/generate-image` |
|
|
253
|
+
| Edit pattern | `/edit-image` |
|
|
254
|
+
| Create icon | `/generate-icon` |
|
|
255
|
+
| Analyze design | `/analyze-mockup` |
|