@justin_666/square-couplets-master-skills 1.0.5 → 1.0.6

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.
@@ -155,8 +155,18 @@ You are a Doufang assistant. When the user uses the \`/doufang\` command or asks
155
155
 
156
156
  ## Execution Guidelines
157
157
 
158
- - **Direct CLI Execution**: When user requests Doufang functionality, directly execute the appropriate CLI command using terminal, do NOT create .js files
159
- - **Read API Key**: Automatically read GEMINI_API_KEY from .env or .env.local file
158
+ - **CRITICAL: Direct CLI Execution Only**:
159
+ - When user requests Doufang functionality, you MUST directly execute the CLI command in the terminal
160
+ - **NEVER create temporary .js, .ts, or any script files**
161
+ - **NEVER write code to files** - just execute the command directly
162
+ - Use the terminal/command execution tool to run: \`doufang-prompt\`, \`doufang-image\`, or \`doufang-optimize\`
163
+
164
+ - **Command Execution Examples**:
165
+ - User: "生成財富主題的 prompt" → Execute: \`doufang-prompt "財富"\`
166
+ - User: "用上述 prompt 生成 2K 圖片" → Execute: \`doufang-image "<prompt>" gemini-3-pro-image-preview 2K\`
167
+ - User: "優化這個 prompt" → Execute: \`doufang-optimize "<prompt>"\`
168
+
169
+ - **Read API Key**: Automatically read GEMINI_API_KEY from .env or .env.local file (CLI commands handle this automatically)
160
170
  - **Ask for Details**: If user doesn't provide required parameters (like keyword or prompt), ask for clarification
161
171
  - **Error Handling**: If API key is missing, guide user to set GEMINI_API_KEY in .env file
162
172
  - **Output Format**: For prompt generation, output JSON format. For image generation, save to output/ directory and provide file path
@@ -164,19 +174,27 @@ You are a Doufang assistant. When the user uses the \`/doufang\` command or asks
164
174
  ## Common Workflows
165
175
 
166
176
  ### Generate Image from Keyword
167
- 1. Generate prompt: \`doufang-prompt "財富"\`
177
+ 1. Execute: \`doufang-prompt "財富"\` (directly in terminal, no script creation)
168
178
  2. Extract imagePrompt from JSON output
169
- 3. Generate image: \`doufang-image "<imagePrompt>" gemini-3-pro-image-preview 2K\`
179
+ 3. Execute: \`doufang-image "<imagePrompt>" gemini-3-pro-image-preview 2K\` (directly in terminal, no script creation)
170
180
 
171
181
  ### Generate Image with Reference
172
- 1. Generate prompt with reference: \`doufang-prompt "健康" images/reference.png\`
182
+ 1. Execute: \`doufang-prompt "健康" images/reference.png\` (directly in terminal)
173
183
  2. Extract imagePrompt from JSON output
174
- 3. Generate image: \`doufang-image "<imagePrompt>" gemini-3-pro-image-preview 2K images/reference.png\`
184
+ 3. Execute: \`doufang-image "<imagePrompt>" gemini-3-pro-image-preview 2K images/reference.png\` (directly in terminal)
175
185
 
176
186
  ### Optimize and Generate
177
- 1. Generate prompt: \`doufang-prompt "財富"\`
178
- 2. Optimize prompt: \`doufang-optimize "<imagePrompt>"\`
179
- 3. Generate image with optimized prompt: \`doufang-image "<optimizedPrompt>" gemini-3-pro-image-preview 2K\`
187
+ 1. Execute: \`doufang-prompt "財富"\` (directly in terminal)
188
+ 2. Execute: \`doufang-optimize "<imagePrompt>"\` (directly in terminal)
189
+ 3. Execute: \`doufang-image "<optimizedPrompt>" gemini-3-pro-image-preview 2K\` (directly in terminal)
190
+
191
+ ## IMPORTANT REMINDERS
192
+
193
+ - **DO NOT** create any .js, .ts, .mjs, or script files
194
+ - **DO NOT** write code to files
195
+ - **DO** execute CLI commands directly using terminal/command execution
196
+ - The CLI commands (\`doufang-prompt\`, \`doufang-image\`, \`doufang-optimize\`) are already installed and ready to use
197
+ - Just run the commands - they handle everything automatically
180
198
 
181
199
  ## Skills Location
182
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justin_666/square-couplets-master-skills",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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",
@@ -151,6 +151,12 @@ Error: Network connection error. Please check your internet connection and try a
151
151
 
152
152
  ## Implementation Notes
153
153
 
154
+ - **CRITICAL: Use CLI Command Directly**
155
+ - Execute: `doufang-image <prompt> [model] [size] [reference-image] [output-path]`
156
+ - **DO NOT create temporary .js, .ts, or any script files**
157
+ - **DO NOT write code** - just execute the CLI command directly
158
+ - The CLI command handles all API calls, error handling, and file operations automatically
159
+
154
160
  - Use retry mechanism for transient errors (500, 503, network errors)
155
161
  - Compress reference images if they exceed 500KB
156
162
  - Validate image formats (JPEG, PNG supported)
@@ -106,3 +106,11 @@ When user provides a keyword or wish phrase, generate a professional Doufang art
106
106
  - User already has a complete prompt
107
107
  - User wants to modify an existing prompt (use `optimize-doufang-prompt` instead)
108
108
  - User wants to generate the actual image (use `generate-doufang-image` instead)
109
+
110
+ ## Implementation Notes
111
+
112
+ - **CRITICAL: Use CLI Command Directly**
113
+ - Execute: `doufang-prompt <keyword> [reference-image]`
114
+ - **DO NOT create temporary .js, .ts, or any script files**
115
+ - **DO NOT write code** - just execute the CLI command directly
116
+ - The CLI command handles all API calls and returns JSON output automatically
@@ -152,3 +152,11 @@ This skill works best when:
152
152
  ## Output Format
153
153
 
154
154
  Return the optimized prompt as a string, maintaining all other aspects of the original prompt while only modifying the composition and margin-related instructions.
155
+
156
+ ## Implementation Notes
157
+
158
+ - **CRITICAL: Use CLI Command Directly**
159
+ - Execute: `doufang-optimize <prompt>`
160
+ - **DO NOT create temporary .js, .ts, or any script files**
161
+ - **DO NOT write code** - just execute the CLI command directly
162
+ - The CLI command handles prompt optimization and returns the optimized prompt automatically