@justin_666/square-couplets-master-skills 1.0.16 → 1.0.17
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/constants.js
CHANGED
|
@@ -46,7 +46,7 @@ Lighting: soft studio lighting, gentle glow on gold details, museum-quality artw
|
|
|
46
46
|
Composition:
|
|
47
47
|
The diamond-shaped Doufang fills the majority of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping).
|
|
48
48
|
The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off.
|
|
49
|
-
The Doufang should occupy
|
|
49
|
+
The Doufang should occupy 95% of the image area, maximizing visual impact.
|
|
50
50
|
Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall.
|
|
51
51
|
|
|
52
52
|
Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio.
|
|
@@ -54,7 +54,7 @@ Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ra
|
|
|
54
54
|
Framing requirements:
|
|
55
55
|
- The entire diamond-shaped Doufang must be fully visible inside the image.
|
|
56
56
|
- No part of the artwork is cut off, cropped, out of frame, or touching the image borders.
|
|
57
|
-
- Minimal margins - the Doufang should fill most of the frame (
|
|
57
|
+
- Minimal margins - the Doufang should fill most of the frame ( 95% of image area).
|
|
58
58
|
|
|
59
59
|
Text requirements:
|
|
60
60
|
- The Chinese characters must be clear, correct, readable.
|
|
@@ -144,7 +144,7 @@ Your generated "imagePrompt" must follow this logic:
|
|
|
144
144
|
1. **Framing**:
|
|
145
145
|
- The entire diamond Doufang must be fully contained within the 1:1 frame.
|
|
146
146
|
- Minimal, elegant margins - just enough to prevent edge cropping (approximately 2-5% of frame width).
|
|
147
|
-
- The Doufang should fill most of the frame (
|
|
147
|
+
- The Doufang should fill most of the frame ( 95% of the image area).
|
|
148
148
|
- No cropping, no touching edges, no cut-off.
|
|
149
149
|
2. **Text Quality**:
|
|
150
150
|
- Calligraphy must be clear, professional, and correctly written.
|
|
@@ -157,7 +157,7 @@ Your generated "imagePrompt" must follow this logic:
|
|
|
157
157
|
Composition:
|
|
158
158
|
The diamond-shaped Doufang fills the majority of the 1:1 frame, centered with minimal elegant margins (just enough to prevent edge cropping, approximately 2-5% of frame width).
|
|
159
159
|
The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off.
|
|
160
|
-
The Doufang should occupy
|
|
160
|
+
The Doufang should occupy 95% of the image area, maximizing visual impact.
|
|
161
161
|
Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall.
|
|
162
162
|
|
|
163
163
|
Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio.
|
|
@@ -165,7 +165,7 @@ Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ra
|
|
|
165
165
|
Framing requirements:
|
|
166
166
|
- The entire diamond-shaped Doufang must be fully visible inside the image.
|
|
167
167
|
- No part of the artwork is cut off, cropped, out of frame, or touching the image borders.
|
|
168
|
-
- Minimal margins - the Doufang should fill most of the frame (
|
|
168
|
+
- Minimal margins - the Doufang should fill most of the frame ( 95% of image area).
|
|
169
169
|
|
|
170
170
|
Text requirements:
|
|
171
171
|
- The Chinese characters must be clear, correct, readable.
|
|
@@ -228,7 +228,7 @@ export const getSimpleUserInputPrompt = (userKeyword) => {
|
|
|
228
228
|
export const getImageGenerationPromptWithReference = (basePrompt) => {
|
|
229
229
|
return `${basePrompt}
|
|
230
230
|
|
|
231
|
-
IMPORTANT COMPOSITION NOTE: The diamond-shaped Doufang should fill
|
|
231
|
+
IMPORTANT COMPOSITION NOTE: The diamond-shaped Doufang should fill 95% of the frame with minimal margins (2-5% of frame width). Avoid excessive white space or wide margins. Maximize the visual impact by making the Doufang artwork occupy most of the image area.
|
|
232
232
|
|
|
233
233
|
Note: The reference image provided above should be used as a visual style guide. Follow the style, color palette, and artistic approach described in the prompt, which was generated based on analysis of this reference image.`;
|
|
234
234
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justin_666/square-couplets-master-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Claude Agent Skills for generating Chinese New Year Doufang (diamond-shaped couplet) artwork using Google Gemini AI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/doufang-skills.js",
|
|
@@ -67,6 +67,30 @@ function findServicesPath() {
|
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
// Load environment variables helper
|
|
71
|
+
async function loadEnvironmentVariables() {
|
|
72
|
+
try {
|
|
73
|
+
const dotenv = await import('dotenv');
|
|
74
|
+
const envLocalPath = join(projectRoot, '.env.local');
|
|
75
|
+
const envPath = join(projectRoot, '.env');
|
|
76
|
+
const cwdEnvLocalPath = join(process.cwd(), '.env.local');
|
|
77
|
+
const cwdEnvPath = join(process.cwd(), '.env');
|
|
78
|
+
|
|
79
|
+
if (existsSync(envLocalPath)) {
|
|
80
|
+
dotenv.config({ path: envLocalPath });
|
|
81
|
+
} else if (existsSync(envPath)) {
|
|
82
|
+
dotenv.config({ path: envPath });
|
|
83
|
+
} else if (existsSync(cwdEnvLocalPath)) {
|
|
84
|
+
dotenv.config({ path: cwdEnvLocalPath });
|
|
85
|
+
} else if (existsSync(cwdEnvPath)) {
|
|
86
|
+
dotenv.config({ path: cwdEnvPath });
|
|
87
|
+
} else {
|
|
88
|
+
dotenv.config();
|
|
89
|
+
}
|
|
90
|
+
} catch (e) {
|
|
91
|
+
// dotenv not available, continue without it (will use environment variables)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
70
94
|
|
|
71
95
|
async function main() {
|
|
72
96
|
try {
|
|
@@ -31,7 +31,7 @@ When user provides a keyword or wish phrase, generate a professional Doufang art
|
|
|
31
31
|
- **Decorative elements**: Symbolic elements that visually represent the keyword (e.g., horse, dragon, pine tree, crane, gold ingots, clouds, mountains, sun, plum blossoms)
|
|
32
32
|
- **Style**: Traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class
|
|
33
33
|
- **Composition**:
|
|
34
|
-
- Doufang fills
|
|
34
|
+
- Doufang fills 95% of the frame
|
|
35
35
|
- Centered with minimal elegant margins (2-5% of frame width, just enough to prevent edge cropping)
|
|
36
36
|
- Fully visible inside the frame, not touching edges
|
|
37
37
|
- **Quality**: Ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio
|
|
@@ -56,7 +56,7 @@ When user provides a keyword or wish phrase, generate a professional Doufang art
|
|
|
56
56
|
```json
|
|
57
57
|
{
|
|
58
58
|
"blessingPhrase": "招財進寶",
|
|
59
|
-
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '招財進寶'. Around the calligraphy: symbolic elements that visually represent wealth - gold ingots, coins, treasure chests, and prosperity symbols, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills
|
|
59
|
+
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '招財進寶'. Around the calligraphy: symbolic elements that visually represent wealth - gold ingots, coins, treasure chests, and prosperity symbols, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills 95% of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off. Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall. Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio."
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ When user provides a keyword or wish phrase, generate a professional Doufang art
|
|
|
68
68
|
```json
|
|
69
69
|
{
|
|
70
70
|
"blessingPhrase": "延年益壽",
|
|
71
|
-
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '延年益壽'. Around the calligraphy: symbolic elements that visually represent health and longevity - pine trees, cranes, peaches, and bamboo, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills
|
|
71
|
+
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '延年益壽'. Around the calligraphy: symbolic elements that visually represent health and longevity - pine trees, cranes, peaches, and bamboo, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills 95% of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off. Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall. Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio."
|
|
72
72
|
}
|
|
73
73
|
```
|
|
74
74
|
|
|
@@ -80,13 +80,13 @@ When user provides a keyword or wish phrase, generate a professional Doufang art
|
|
|
80
80
|
```json
|
|
81
81
|
{
|
|
82
82
|
"blessingPhrase": "萬馬奔騰",
|
|
83
|
-
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '萬馬奔騰'. Around the calligraphy: symbolic elements that visually represent energy and vitality - galloping horses, flowing clouds, dynamic movement, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills
|
|
83
|
+
"imagePrompt": "A diamond-shaped Chinese New Year Doufang couplet on antique gold-flecked red Xuan paper. Central theme: bold, powerful, energetic traditional Chinese ink wash calligraphy of the characters '萬馬奔騰'. Around the calligraphy: symbolic elements that visually represent energy and vitality - galloping horses, flowing clouds, dynamic movement, painted in traditional Chinese ink painting style. Style: traditional Chinese ink painting mixed with realistic illustration, elegant, prestigious, festive but high-class, not cartoon. Material & texture: real Xuan paper texture, gold flecks, red rice paper, visible paper fibers, natural ink diffusion, subtle embossed gold foil details. Color theme: deep Chinese red, gold, black ink, warm highlights. Lighting: soft studio lighting, gentle glow on gold details, museum-quality artwork. Composition: The diamond-shaped Doufang fills 95% of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off. Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall. Quality: ultra high detail, 8k, masterpiece, professional artwork, 1:1 aspect ratio."
|
|
84
84
|
}
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
## Key Requirements
|
|
88
88
|
|
|
89
|
-
- The Doufang should fill **
|
|
89
|
+
- The Doufang should fill **95% of the frame** (not less)
|
|
90
90
|
- Minimal margins: **2-5% of frame width** (just enough to prevent edge cropping)
|
|
91
91
|
- **No excessive white space** or wide margins
|
|
92
92
|
- Traditional Chinese artistic style (ink wash, calligraphy)
|
|
@@ -26,11 +26,11 @@ When user reports that generated images have excessive white margins, poor compo
|
|
|
26
26
|
|
|
27
27
|
**Replace with:**
|
|
28
28
|
- ✅ "centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping)"
|
|
29
|
-
- ✅ "minimal margins - the Doufang should fill most of the frame (
|
|
30
|
-
- ✅ "The Doufang should occupy
|
|
29
|
+
- ✅ "minimal margins - the Doufang should fill most of the frame (95% of image area)"
|
|
30
|
+
- ✅ "The Doufang should occupy 95% of the image area, maximizing visual impact"
|
|
31
31
|
|
|
32
32
|
3. **Add explicit composition instructions:**
|
|
33
|
-
- Add: "The Doufang should fill
|
|
33
|
+
- Add: "The Doufang should fill 95% of the frame"
|
|
34
34
|
- Add: "Minimal margins (2-5% of frame width)"
|
|
35
35
|
- Add: "Maximize visual impact by making the Doufang occupy most of the frame"
|
|
36
36
|
- Add: "Avoid excessive white space or wide margins"
|
|
@@ -61,7 +61,7 @@ When user reports that generated images have excessive white margins, poor compo
|
|
|
61
61
|
|
|
62
62
|
**After:**
|
|
63
63
|
```
|
|
64
|
-
"...The Doufang should occupy
|
|
64
|
+
"...The Doufang should occupy 95% of the image area, maximizing visual impact..."
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
### Rule 3: Composition Emphasis
|
|
@@ -72,7 +72,7 @@ When user reports that generated images have excessive white margins, poor compo
|
|
|
72
72
|
|
|
73
73
|
**After:**
|
|
74
74
|
```
|
|
75
|
-
"...minimal margins - the Doufang should fill most of the frame (
|
|
75
|
+
"...minimal margins - the Doufang should fill most of the frame (95% of image area)..."
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
## Examples
|
|
@@ -86,7 +86,7 @@ A diamond-shaped Chinese New Year Doufang centered in a 1:1 frame with wide whit
|
|
|
86
86
|
|
|
87
87
|
**Optimized Prompt:**
|
|
88
88
|
```
|
|
89
|
-
A diamond-shaped Chinese New Year Doufang fills the majority of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The Doufang should occupy
|
|
89
|
+
A diamond-shaped Chinese New Year Doufang fills the majority of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The Doufang should occupy 95% of the image area, maximizing visual impact. The artwork is a masterpiece of traditional ink-wash fusion...
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
### Example 2: Improving Composition Instructions
|
|
@@ -98,7 +98,7 @@ Composition: The diamond-shaped Doufang is fully visible and centered, with gene
|
|
|
98
98
|
|
|
99
99
|
**Optimized Prompt:**
|
|
100
100
|
```
|
|
101
|
-
Composition: The diamond-shaped Doufang fills
|
|
101
|
+
Composition: The diamond-shaped Doufang fills 95% of the 1:1 frame, centered with minimal elegant margins (approximately 2-5% of frame width, just enough to prevent edge cropping). The entire artwork is fully visible inside the frame, not touching any edge, not cropped, not cut off. The Doufang should occupy most of the image area, maximizing visual impact. Clean background, symmetrical, perfectly framed, suitable for printing and hanging on wall.
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
### Example 3: Complete Prompt Optimization
|
|
@@ -115,7 +115,7 @@ Framing requirements:
|
|
|
115
115
|
```
|
|
116
116
|
Framing requirements:
|
|
117
117
|
- The entire diamond-shaped Doufang must be fully visible inside the image.
|
|
118
|
-
- Minimal margins - the Doufang should fill most of the frame (
|
|
118
|
+
- Minimal margins - the Doufang should fill most of the frame (95% of image area).
|
|
119
119
|
- No cropping, no touching edges, no cut-off.
|
|
120
120
|
- Maximize visual impact by making the Doufang occupy most of the frame.
|
|
121
121
|
```
|
|
@@ -123,7 +123,7 @@ Framing requirements:
|
|
|
123
123
|
## Key Optimization Principles
|
|
124
124
|
|
|
125
125
|
1. **Never use "wide" or "generous" margins** - Always specify minimal margins (2-5%)
|
|
126
|
-
2. **Always specify frame fill percentage** -
|
|
126
|
+
2. **Always specify frame fill percentage** - 95% of image area
|
|
127
127
|
3. **Emphasize visual impact** - Over safety margins
|
|
128
128
|
4. **Be specific about margin size** - "2-5% of frame width"
|
|
129
129
|
5. **Clarify purpose** - "just enough to prevent edge cropping"
|