foliko 1.1.36 → 1.1.39

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.
Files changed (168) hide show
  1. package/.agent/agents/network-requester.md +44 -0
  2. package/.agent/agents/poster-designer.md +52 -0
  3. package/.agent/agents/ui-designer.md +1 -1
  4. package/.agent/data/default.json +23 -407
  5. package/.agent/data/email/processed-emails.json +1 -0
  6. package/.agent/data/plugins-state.json +103 -200
  7. package/.agent/data/scheduler/tasks.json +1 -86
  8. package/.agent/data/web/web-config.json +5 -0
  9. package/.agent/data/weixin/images/file_1776188148383jpg +0 -0
  10. package/.agent/data/weixin/images/file_1776188458326.jpg +0 -0
  11. package/.agent/data/weixin/images/file_1776188689423.jpg +0 -0
  12. package/.agent/data/weixin/images/file_1776188813604.jpg +0 -0
  13. package/.agent/data/weixin/images/file_1776189097450.jpg +0 -0
  14. package/.agent/data/weixin/videos/file_1776188318431.mp4 +0 -0
  15. package/.agent/mcp_config.json +4 -17
  16. package/.agent/memory/user/mof6gk94-kneeuh.md +9 -0
  17. package/.agent/package.json +8 -0
  18. package/.agent/plugins/marknative/README.md +134 -0
  19. package/.agent/plugins/marknative/fonts/SegoeUI Emoji.ttf +0 -0
  20. package/.agent/plugins/marknative/fonts.zip +0 -0
  21. package/.agent/plugins/marknative/index.js +256 -0
  22. package/.agent/plugins/marknative/package.json +12 -0
  23. package/.agent/plugins/test-plugin.py +99 -0
  24. package/.agent/plugins.json +11 -5
  25. package/.agent/python-scripts/test_sample.py +24 -0
  26. package/.agent/sessions/cli_default.json +2415 -349
  27. package/.agent/sessions/default.json +82 -0
  28. package/.agent/sessions/qq_c2c_D960F12877541624D7B2C836110B3D0F.json +25 -0
  29. package/.agent/sessions/test-clean.json +26 -0
  30. package/.agent/sessions/test-compress.json +1462 -0
  31. package/.agent/sessions/test-session.json +13 -0
  32. package/.agent/sessions/weixin_test.json +22 -0
  33. package/.agent/sessions/weixin_test_user_123.json +11 -0
  34. package/.agent/skills/agent-browser/SKILL.md +311 -0
  35. package/.agent/skills/agent-browser/TEST_PLAN.md +200 -0
  36. package/.agent/skills/sysinfo/SKILL.md +38 -0
  37. package/.agent/skills/sysinfo/system-info.sh +130 -0
  38. package/.agent/skills/workflow/SKILL.md +324 -0
  39. package/.agent/test-agent.js +35 -0
  40. package/.agent/weixin.json +6 -0
  41. package/.agent/workflows/email-digest.json +50 -0
  42. package/.agent/workflows/file-backup.json +21 -0
  43. package/.agent/workflows/get-ip-notify.json +32 -0
  44. package/.agent/workflows/news-aggregator.json +93 -0
  45. package/.agent/workflows/news-dashboard-v2.json +94 -0
  46. package/.agent/workflows/notification-batch.json +32 -0
  47. package/.claude/settings.local.json +2 -1
  48. package/.env.example +56 -56
  49. package/README.md +441 -441
  50. package/cli/src/utils/debounce.js +6 -3
  51. package/docs/qq-bot.md +976 -0
  52. package/package.json +3 -1
  53. package/plugins/qq-plugin.js +939 -0
  54. package/plugins/scheduler-plugin.js +17 -17
  55. package/skills/find-skills/AGENTS.md +162 -162
  56. package/skills/find-skills/SKILL.md +133 -133
  57. package/src/core/agent-chat.js +11 -6
  58. package/temp_img.md +1 -0
  59. package/website_v2/styles/animations.css +7 -7
  60. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +0 -26
  61. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +0 -97
  62. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +0 -101
  63. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +0 -31
  64. package/.agent/.shared/ui-ux-pro-max/data/products.csv +0 -97
  65. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +0 -24
  66. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +0 -45
  67. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +0 -53
  68. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +0 -56
  69. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +0 -53
  70. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +0 -53
  71. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +0 -51
  72. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +0 -59
  73. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +0 -52
  74. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +0 -54
  75. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +0 -61
  76. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +0 -54
  77. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +0 -51
  78. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +0 -50
  79. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +0 -59
  80. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +0 -58
  81. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +0 -101
  82. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +0 -100
  83. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +0 -31
  84. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  85. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  86. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +0 -258
  87. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +0 -1067
  88. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +0 -106
  89. package/.agent/ARCHITECTURE.md +0 -288
  90. package/.agent/data/ambient/goals.json +0 -1
  91. package/.agent/data/puppeteer-sessions/undefined.json +0 -6
  92. package/.agent/data/weixin-media/2026-04-08/img_1775618677512.jpg +0 -0
  93. package/.agent/data/weixin-media/2026-04-08/img_1775619073340.jpg +0 -0
  94. package/.agent/data/weixin-media/2026-04-08/img_1775619097536.jpg +0 -0
  95. package/.agent/data/weixin-media/2026-04-08/img_1775619209388.jpg +0 -0
  96. package/.agent/memory/feedback/mnygjgox-ualjip.md +0 -11
  97. package/.agent/memory/feedback/mnzugpej-esdwsr.md +0 -9
  98. package/.agent/memory/feedback/mo2quxke-saxs56.md +0 -9
  99. package/.agent/memory/feedback/mo9l6nw9-sm1ye2.md +0 -13
  100. package/.agent/memory/feedback/mo9uxkb3-bbxz3x.md +0 -9
  101. package/.agent/memory/feedback/mo9wpqy0-ftsez9.md +0 -13
  102. package/.agent/memory/feedback/mo9x2ps4-p7huqq.md +0 -11
  103. package/.agent/memory/feedback/mo9x2uay-z7ndjn.md +0 -9
  104. package/.agent/memory/feedback/mo9x2y7d-9wecyx.md +0 -9
  105. package/.agent/memory/feedback/mo9x39q3-nn7myt.md +0 -9
  106. package/.agent/memory/feedback/mo9xfir9-4g8a8j.md +0 -9
  107. package/.agent/memory/feedback/mo9xfui8-ujqrc6.md +0 -9
  108. package/.agent/memory/feedback/mocnx1wx-qtxxlh.md +0 -9
  109. package/.agent/memory/project/mnqx54u5-loqtoe.md +0 -9
  110. package/.agent/memory/project/mnqx84cv-mx6dmd.md +0 -9
  111. package/.agent/memory/project/mnsacuyr-hgtk5n.md +0 -20
  112. package/.agent/memory/project/mnu5hy2x-bjsg7u.md +0 -9
  113. package/.agent/memory/project/mny28ot4-8qe9au.md +0 -9
  114. package/.agent/memory/project/mnztftxj-af82rh.md +0 -9
  115. package/.agent/memory/project/mo0y04d0-bmaefl.md +0 -9
  116. package/.agent/memory/project/mo2iztxb-3c7v81.md +0 -9
  117. package/.agent/memory/project/mo2ssa5x-tpi1p3.md +0 -9
  118. package/.agent/memory/reference/mnre3cww-penbo1.md +0 -9
  119. package/.agent/memory/reference/mns9wn48-luerua.md +0 -14
  120. package/.agent/memory/reference/mns9yz5c-thc2s0.md +0 -16
  121. package/.agent/memory/reference/mnsfy4um-910f1o.md +0 -23
  122. package/.agent/memory/reference/mnsg37dp-lmfj18.md +0 -32
  123. package/.agent/memory/reference/mnsll60q-0j911u.md +0 -36
  124. package/.agent/memory/reference/mnsmlb5y-nej31u.md +0 -16
  125. package/.agent/memory/reference/mnssle72-yrot96.md +0 -9
  126. package/.agent/memory/reference/mnygj8nb-bjthmc.md +0 -20
  127. package/.agent/memory/reference/mnzfvs4m-ufyg9a.md +0 -12
  128. package/.agent/memory/user/mnsfuon6-l416q1.md +0 -21
  129. package/.agent/memory/user/mnsg9kut-95m7rf.md +0 -20
  130. package/.agent/memory/user/mnu2eo1v-yy6fhe.md +0 -9
  131. package/.agent/memory/user/mnu2etuo-8u8jk8.md +0 -9
  132. package/.agent/memory/user/mnx0rk6g-gsznjj.md +0 -9
  133. package/.agent/memory/user/mnyf1riz-4yo5yz.md +0 -9
  134. package/.agent/memory/user/mnzuh4cw-zvee8w.md +0 -13
  135. package/.agent/memory/user/mnzvewyj-jl67cq.md +0 -9
  136. package/.agent/memory/user/mnzwh9xo-43ys3f.md +0 -9
  137. package/.agent/memory/user/mo0ycvpn-eebsxc.md +0 -9
  138. package/.agent/memory/user/mo2k8c8n-132r2u.md +0 -9
  139. package/.agent/memory/user/mo6y2dei-5cf537.md +0 -13
  140. package/.agent/memory/user/mo9xsdo6-8vylww.md +0 -13
  141. package/.agent/plugins/puppeteer-plugin/README.md +0 -147
  142. package/.agent/plugins/puppeteer-plugin/index.js +0 -1422
  143. package/.agent/plugins/puppeteer-plugin/package.json +0 -9
  144. package/.agent/rules/GEMINI.md +0 -273
  145. package/.agent/rules/allow-rule.md +0 -77
  146. package/.agent/rules/log-rule.md +0 -83
  147. package/.agent/rules/security-rule.md +0 -93
  148. package/.agent/scripts/auto_preview.py +0 -148
  149. package/.agent/scripts/checklist.py +0 -217
  150. package/.agent/scripts/session_manager.py +0 -120
  151. package/.agent/scripts/verify_all.py +0 -327
  152. package/.agent/skills/doc.md +0 -177
  153. package/.agent/skills/fk-poster/SKILL.md +0 -1129
  154. package/.agent/skills/fkbuilder/SKILL.md +0 -730
  155. package/.agent/skills/mmx-cli/SKILL.md +0 -431
  156. package/.agent/workflows/brainstorm.md +0 -113
  157. package/.agent/workflows/create.md +0 -59
  158. package/.agent/workflows/debug.md +0 -103
  159. package/.agent/workflows/deploy.md +0 -176
  160. package/.agent/workflows/enhance.md +0 -63
  161. package/.agent/workflows/orchestrate.md +0 -237
  162. package/.agent/workflows/plan.md +0 -89
  163. package/.agent/workflows/preview.md +0 -81
  164. package/.agent/workflows/simple-test.md +0 -42
  165. package/.agent/workflows/status.md +0 -86
  166. package/.agent/workflows/structured-orchestrate.md +0 -180
  167. package/.agent/workflows/test.md +0 -144
  168. package/.agent/workflows/ui-ux-pro-max.md +0 -296
@@ -1,431 +0,0 @@
1
- ---
2
- name: mmx-cli
3
- description: Use mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, perform web search, or manage MiniMax API resources from the terminal.
4
- ---
5
-
6
- # MiniMax CLI — Agent Skill Guide
7
-
8
- Use `mmx` to generate text, images, video, speech, music, and perform web search via the MiniMax AI platform.
9
-
10
- ## Prerequisites
11
-
12
- ```bash
13
- # Install
14
- npm install -g mmx-cli
15
-
16
- # Auth (OAuth persists to ~/.mmx/credentials.json, API key persists to ~/.mmx/config.json)
17
- mmx auth login --api-key sk-xxxxx
18
-
19
- # Verify active auth source
20
- mmx auth status
21
-
22
- # Or pass per-call
23
- mmx text chat --api-key sk-xxxxx --message "Hello"
24
- ```
25
-
26
- Region is auto-detected. Override with `--region global` or `--region cn`.
27
-
28
- ---
29
-
30
- ## Agent Flags
31
-
32
- Always use these flags in non-interactive (agent/CI) contexts:
33
-
34
- | Flag | Purpose |
35
- |---|---|
36
- | `--non-interactive` | Fail fast on missing args instead of prompting |
37
- | `--quiet` | Suppress spinners/progress; stdout is pure data |
38
- | `--output json` | Machine-readable JSON output |
39
- | `--async` | Return task ID immediately (video generation) |
40
- | `--dry-run` | Preview the API request without executing |
41
- | `--yes` | Skip confirmation prompts |
42
-
43
- ---
44
-
45
- ## Commands
46
-
47
- ### text chat
48
-
49
- Chat completion. Default model: `MiniMax-M2.7`.
50
-
51
- ```bash
52
- mmx text chat --message <text> [flags]
53
- ```
54
-
55
- | Flag | Type | Description |
56
- |---|---|---|
57
- | `--message <text>` | string, **required**, repeatable | Message text. Prefix with `role:` to set role (e.g. `"system:You are helpful"`, `"user:Hello"`) |
58
- | `--messages-file <path>` | string | JSON file with messages array. Use `-` for stdin |
59
- | `--system <text>` | string | System prompt |
60
- | `--model <model>` | string | Model ID (default: `MiniMax-M2.7`) |
61
- | `--max-tokens <n>` | number | Max tokens (default: 4096) |
62
- | `--temperature <n>` | number | Sampling temperature (0.0, 1.0] |
63
- | `--top-p <n>` | number | Nucleus sampling threshold |
64
- | `--stream` | boolean | Stream tokens (default: on in TTY) |
65
- | `--tool <json-or-path>` | string, repeatable | Tool definition JSON or file path |
66
-
67
- ```bash
68
- # Single message
69
- mmx text chat --message "user:What is MiniMax?" --output json --quiet
70
-
71
- # Multi-turn
72
- mmx text chat \
73
- --system "You are a coding assistant." \
74
- --message "user:Write fizzbuzz in Python" \
75
- --output json
76
-
77
- # From file
78
- cat conversation.json | mmx text chat --messages-file - --output json
79
- ```
80
-
81
- **stdout**: response text (text mode) or full response object (json mode).
82
-
83
- ---
84
-
85
- ### image generate
86
-
87
- Generate images. Model: `image-01`.
88
-
89
- ```bash
90
- mmx image generate --prompt <text> [flags]
91
- ```
92
-
93
- | Flag | Type | Description |
94
- |---|---|---|
95
- | `--prompt <text>` | string, **required** | Image description |
96
- | `--aspect-ratio <ratio>` | string | e.g. `16:9`, `1:1` |
97
- | `--n <count>` | number | Number of images (default: 1) |
98
- | `--subject-ref <params>` | string | Subject reference: `type=character,image=path-or-url` |
99
- | `--out-dir <dir>` | string | Download images to directory |
100
- | `--out-prefix <prefix>` | string | Filename prefix (default: `image`) |
101
-
102
- ```bash
103
- mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
104
- # stdout: image URLs (one per line in quiet mode)
105
-
106
- mmx image generate --prompt "Logo" --n 3 --out-dir ./gen/ --quiet
107
- # stdout: saved file paths (one per line)
108
- ```
109
-
110
- ---
111
-
112
- ### video generate
113
-
114
- Generate video. Default model: `MiniMax-Hailuo-2.3`. This is an async task — by default it polls until completion.
115
-
116
- ```bash
117
- mmx video generate --prompt <text> [flags]
118
- ```
119
-
120
- | Flag | Type | Description |
121
- |---|---|---|
122
- | `--prompt <text>` | string, **required** | Video description |
123
- | `--model <model>` | string | `MiniMax-Hailuo-2.3` (default) or `MiniMax-Hailuo-2.3-Fast` |
124
- | `--first-frame <path-or-url>` | string | First frame image |
125
- | `--callback-url <url>` | string | Webhook URL for completion |
126
- | `--download <path>` | string | Save video to specific file |
127
- | `--async` | boolean | Return task ID immediately |
128
- | `--no-wait` | boolean | Same as `--async` |
129
- | `--poll-interval <seconds>` | number | Polling interval (default: 5) |
130
-
131
- ```bash
132
- # Non-blocking: get task ID
133
- mmx video generate --prompt "A robot." --async --quiet
134
- # stdout: {"taskId":"..."}
135
-
136
- # Blocking: wait and get file path
137
- mmx video generate --prompt "Ocean waves." --download ocean.mp4 --quiet
138
- # stdout: ocean.mp4
139
- ```
140
-
141
- ### video task get
142
-
143
- Query status of a video generation task.
144
-
145
- ```bash
146
- mmx video task get --task-id <id> [--output json]
147
- ```
148
-
149
- ### video download
150
-
151
- Download a completed video by task ID.
152
-
153
- ```bash
154
- mmx video download --file-id <id> [--out <path>]
155
- ```
156
-
157
- ---
158
-
159
- ### speech synthesize
160
-
161
- Text-to-speech. Default model: `speech-2.8-hd`. Max 10k chars.
162
-
163
- ```bash
164
- mmx speech synthesize --text <text> [flags]
165
- ```
166
-
167
- | Flag | Type | Description |
168
- |---|---|---|
169
- | `--text <text>` | string | Text to synthesize |
170
- | `--text-file <path>` | string | Read text from file. Use `-` for stdin |
171
- | `--model <model>` | string | `speech-2.8-hd` (default), `speech-2.6`, `speech-02` |
172
- | `--voice <id>` | string | Voice ID (default: `English_expressive_narrator`) |
173
- | `--speed <n>` | number | Speed multiplier |
174
- | `--volume <n>` | number | Volume level |
175
- | `--pitch <n>` | number | Pitch adjustment |
176
- | `--format <fmt>` | string | Audio format (default: `mp3`) |
177
- | `--sample-rate <hz>` | number | Sample rate (default: 32000) |
178
- | `--bitrate <bps>` | number | Bitrate (default: 128000) |
179
- | `--channels <n>` | number | Audio channels (default: 1) |
180
- | `--language <code>` | string | Language boost |
181
- | `--subtitles` | boolean | Include subtitle timing data |
182
- | `--pronunciation <from/to>` | string, repeatable | Custom pronunciation |
183
- | `--sound-effect <effect>` | string | Add sound effect |
184
- | `--out <path>` | string | Save audio to file |
185
- | `--stream` | boolean | Stream raw audio to stdout |
186
-
187
- ```bash
188
- mmx speech synthesize --text "Hello world" --out hello.mp3 --quiet
189
- # stdout: hello.mp3
190
-
191
- echo "Breaking news." | mmx speech synthesize --text-file - --out news.mp3
192
- ```
193
-
194
- ---
195
-
196
- ### music generate
197
-
198
- Generate music. Responds well to rich, structured descriptions.
199
-
200
- **Model:** `music-2.6-free` — unlimited for API key users, RPM = 3.
201
-
202
- ```bash
203
- mmx music generate --prompt <text> [--lyrics <text>] [flags]
204
- ```
205
-
206
- | Flag | Type | Description |
207
- |---|---|---|
208
- | `--prompt <text>` | string | Music style description (can be detailed) |
209
- | `--lyrics <text>` | string | Song lyrics with structure tags. Required unless `--instrumental` or `--lyrics-optimizer` is used. |
210
- | `--lyrics-file <path>` | string | Read lyrics from file. Use `-` for stdin |
211
- | `--lyrics-optimizer` | boolean | Auto-generate lyrics from prompt. Cannot be used with `--lyrics` or `--instrumental`. |
212
- | `--instrumental` | boolean | Generate instrumental music (no vocals). Cannot be used with `--lyrics`. |
213
- | `--vocals <text>` | string | Vocal style, e.g. `"warm male baritone"`, `"bright female soprano"`, `"duet with harmonies"` |
214
- | `--genre <text>` | string | Music genre, e.g. folk, pop, jazz |
215
- | `--mood <text>` | string | Mood or emotion, e.g. warm, melancholic, uplifting |
216
- | `--instruments <text>` | string | Instruments to feature, e.g. `"acoustic guitar, piano"` |
217
- | `--tempo <text>` | string | Tempo description, e.g. fast, slow, moderate |
218
- | `--bpm <number>` | number | Exact tempo in beats per minute |
219
- | `--key <text>` | string | Musical key, e.g. C major, A minor, G sharp |
220
- | `--avoid <text>` | string | Elements to avoid in the generated music |
221
- | `--use-case <text>` | string | Use case context, e.g. `"background music for video"`, `"theme song"` |
222
- | `--structure <text>` | string | Song structure, e.g. `"verse-chorus-verse-bridge-chorus"` |
223
- | `--references <text>` | string | Reference tracks or artists, e.g. `"similar to Ed Sheeran"` |
224
- | `--extra <text>` | string | Additional fine-grained requirements |
225
- | `--aigc-watermark` | boolean | Embed AI-generated content watermark |
226
- | `--format <fmt>` | string | Audio format (default: `mp3`) |
227
- | `--sample-rate <hz>` | number | Sample rate (default: 44100) |
228
- | `--bitrate <bps>` | number | Bitrate (default: 256000) |
229
- | `--out <path>` | string | Save audio to file |
230
- | `--stream` | boolean | Stream raw audio to stdout |
231
-
232
- At least one of `--prompt` or `--lyrics` is required.
233
-
234
- ```bash
235
- # With lyrics
236
- mmx music generate --prompt "Upbeat pop" --lyrics "La la la..." --out song.mp3 --quiet
237
-
238
- # Auto-generate lyrics from prompt
239
- mmx music generate --prompt "Upbeat pop about summer" --lyrics-optimizer --out summer.mp3 --quiet
240
-
241
- # Instrumental
242
- mmx music generate --prompt "Cinematic orchestral, building tension" --instrumental --out bgm.mp3 --quiet
243
-
244
- # Detailed prompt with vocal characteristics
245
- mmx music generate --prompt "Warm morning folk" \
246
- --vocals "male and female duet, harmonies in chorus" \
247
- --instruments "acoustic guitar, piano" \
248
- --bpm 95 \
249
- --lyrics-file song.txt \
250
- --out duet.mp3
251
- ```
252
-
253
- ---
254
-
255
- ### music cover
256
-
257
- Generate a cover version of a song based on reference audio.
258
-
259
- **Model:** `music-cover-free` — unlimited for API key users, RPM = 3.
260
-
261
- ```bash
262
- mmx music cover --prompt <text> (--audio <url> | --audio-file <path>) [flags]
263
- ```
264
-
265
- | Flag | Type | Description |
266
- |---|---|---|
267
- | `--prompt <text>` | string, **required** | Target cover style, e.g. `"Indie folk, acoustic guitar, warm male vocal"` |
268
- | `--audio <url>` | string | URL of reference audio (mp3, wav, flac, etc. — 6s to 6min, max 50MB) |
269
- | `--audio-file <path>` | string | Local reference audio file (auto base64-encoded) |
270
- | `--lyrics <text>` | string | Cover lyrics. If omitted, extracted from reference audio via ASR. |
271
- | `--lyrics-file <path>` | string | Read lyrics from file. Use `-` for stdin |
272
- | `--seed <number>` | number | Random seed 0–1000000 for reproducible results |
273
- | `--format <fmt>` | string | Audio format: `mp3`, `wav`, `pcm` (default: `mp3`) |
274
- | `--sample-rate <hz>` | number | Sample rate (default: 44100) |
275
- | `--bitrate <bps>` | number | Bitrate (default: 256000) |
276
- | `--channel <n>` | number | Channels: `1` (mono) or `2` (stereo, default) |
277
- | `--out <path>` | string | Save audio to file |
278
- | `--stream` | boolean | Stream raw audio to stdout |
279
-
280
- ```bash
281
- # Cover from URL
282
- mmx music cover --prompt "Indie folk, acoustic guitar, warm male vocal" \
283
- --audio https://filecdn.minimax.chat/public/d20eda57-2e36-45bf-9e12-82d9f2e69a86.mp3 --out cover.mp3 --quiet
284
-
285
- # Cover from local file with custom lyrics
286
- mmx music cover --prompt "Jazz, piano, slow" \
287
- --audio-file original.mp3 --lyrics-file lyrics.txt --out jazz_cover.mp3 --quiet
288
-
289
- # Reproducible result with seed
290
- mmx music cover --prompt "Pop, upbeat" --audio https://filecdn.minimax.chat/public/d20eda57-2e36-45bf-9e12-82d9f2e69a86.mp3 --seed 42 --out cover.mp3
291
- ```
292
-
293
- ---
294
-
295
- ### vision describe
296
-
297
- Image understanding via VLM. Provide either `--image` or `--file-id`, not both.
298
-
299
- ```bash
300
- mmx vision describe (--image <path-or-url> | --file-id <id>) [flags]
301
- ```
302
-
303
- | Flag | Type | Description |
304
- |---|---|---|
305
- | `--image <path-or-url>` | string | Local path or URL (auto base64-encoded) |
306
- | `--file-id <id>` | string | Pre-uploaded file ID (skips base64) |
307
- | `--prompt <text>` | string | Question about the image (default: `"Describe the image."`) |
308
-
309
- ```bash
310
- mmx vision describe --image photo.jpg --prompt "What breed?" --output json
311
- ```
312
-
313
- **stdout**: description text (text mode) or full response (json mode).
314
-
315
- ---
316
-
317
- ### search query
318
-
319
- Web search via MiniMax.
320
-
321
- ```bash
322
- mmx search query --q <query>
323
- ```
324
-
325
- | Flag | Type | Description |
326
- |---|---|---|
327
- | `--q <query>` | string, **required** | Search query |
328
-
329
- ```bash
330
- mmx search query --q "MiniMax AI" --output json --quiet
331
- ```
332
-
333
- ---
334
-
335
- ### quota show
336
-
337
- Display Token Plan usage and remaining quotas.
338
-
339
- ```bash
340
- mmx quota show [--output json]
341
- ```
342
-
343
- ---
344
-
345
- ## Tool Schema Export
346
-
347
- Export all commands as Anthropic/OpenAI-compatible JSON tool schemas:
348
-
349
- ```bash
350
- # All tool-worthy commands (excludes auth/config/update)
351
- mmx config export-schema
352
-
353
- # Single command
354
- mmx config export-schema --command "video generate"
355
- ```
356
-
357
- Use this to dynamically register mmx commands as tools in your agent framework.
358
-
359
- ---
360
-
361
- ## Exit Codes
362
-
363
- | Code | Meaning |
364
- |---|---|
365
- | 0 | Success |
366
- | 1 | General error |
367
- | 2 | Usage error (bad flags, missing args) |
368
- | 3 | Authentication error |
369
- | 4 | Quota exceeded |
370
- | 5 | Timeout |
371
- | 10 | Content filter triggered |
372
-
373
- ---
374
-
375
- ## Piping Patterns
376
-
377
- ```bash
378
- # stdout is always clean data — safe to pipe
379
- mmx text chat --message "Hi" --output json | jq '.content'
380
-
381
- # stderr has progress/spinners — discard if needed
382
- mmx video generate --prompt "Waves" 2>/dev/null
383
-
384
- # Chain: generate image → describe it
385
- URL=$(mmx image generate --prompt "A sunset" --quiet)
386
- mmx vision describe --image "$URL" --quiet
387
-
388
- # Async video workflow
389
- TASK=$(mmx video generate --prompt "A robot" --async --quiet | jq -r '.taskId')
390
- mmx video task get --task-id "$TASK" --output json
391
- mmx video download --task-id "$TASK" --out robot.mp4
392
- ```
393
-
394
- ---
395
-
396
- ## Configuration Precedence
397
-
398
- CLI flags → environment variables → `~/.mmx/config.json` → defaults.
399
-
400
- ```bash
401
- # Persistent config
402
- mmx config set --key region --value cn
403
- mmx config show
404
-
405
- # Environment
406
- export MINIMAX_API_KEY=sk-xxxxx
407
- export MINIMAX_REGION=cn
408
- ```
409
-
410
- ### Default Model Configuration
411
-
412
- Set per-modality defaults so you don't need `--model` every time:
413
-
414
- ```bash
415
- # Set defaults
416
- mmx config set --key default-text-model --value MiniMax-M2.7-highspeed
417
- mmx config set --key default-speech-model --value speech-2.8-hd
418
- mmx config set --key default-video-model --value MiniMax-Hailuo-2.3
419
- mmx config set --key default-music-model --value music-2.6
420
-
421
- # Use without --model
422
- mmx text chat --message "Hello"
423
- mmx speech synthesize --text "Hello" --out hello.mp3
424
- mmx video generate --prompt "Ocean waves"
425
- mmx music generate --prompt "Upbeat pop" --instrumental
426
-
427
- # --model still overrides per-call
428
- mmx text chat --model MiniMax-M2.7 --message "Hello"
429
- ```
430
-
431
- **Resolution priority**: `--model` flag > config default > hardcoded fallback.
@@ -1,113 +0,0 @@
1
- ---
2
- description: Structured brainstorming for projects and features. Explores multiple options before implementation.
3
- ---
4
-
5
- # /brainstorm - Structured Idea Exploration
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- This command activates BRAINSTORM mode for structured idea exploration. Use when you need to explore options before committing to an implementation.
14
-
15
- ---
16
-
17
- ## Behavior
18
-
19
- When `/brainstorm` is triggered:
20
-
21
- 1. **Understand the goal**
22
- - What problem are we solving?
23
- - Who is the user?
24
- - What constraints exist?
25
-
26
- 2. **Generate options**
27
- - Provide at least 3 different approaches
28
- - Each with pros and cons
29
- - Consider unconventional solutions
30
-
31
- 3. **Compare and recommend**
32
- - Summarize tradeoffs
33
- - Give a recommendation with reasoning
34
-
35
- ---
36
-
37
- ## Output Format
38
-
39
- ```markdown
40
- ## 🧠 Brainstorm: [Topic]
41
-
42
- ### Context
43
- [Brief problem statement]
44
-
45
- ---
46
-
47
- ### Option A: [Name]
48
- [Description]
49
-
50
- ✅ **Pros:**
51
- - [benefit 1]
52
- - [benefit 2]
53
-
54
- ❌ **Cons:**
55
- - [drawback 1]
56
-
57
- 📊 **Effort:** Low | Medium | High
58
-
59
- ---
60
-
61
- ### Option B: [Name]
62
- [Description]
63
-
64
- ✅ **Pros:**
65
- - [benefit 1]
66
-
67
- ❌ **Cons:**
68
- - [drawback 1]
69
- - [drawback 2]
70
-
71
- 📊 **Effort:** Low | Medium | High
72
-
73
- ---
74
-
75
- ### Option C: [Name]
76
- [Description]
77
-
78
- ✅ **Pros:**
79
- - [benefit 1]
80
-
81
- ❌ **Cons:**
82
- - [drawback 1]
83
-
84
- 📊 **Effort:** Low | Medium | High
85
-
86
- ---
87
-
88
- ## 💡 Recommendation
89
-
90
- **Option [X]** because [reasoning].
91
-
92
- What direction would you like to explore?
93
- ```
94
-
95
- ---
96
-
97
- ## Examples
98
-
99
- ```
100
- /brainstorm authentication system
101
- /brainstorm state management for complex form
102
- /brainstorm database schema for social app
103
- /brainstorm caching strategy
104
- ```
105
-
106
- ---
107
-
108
- ## Key Principles
109
-
110
- - **No code** - this is about ideas, not implementation
111
- - **Visual when helpful** - use diagrams for architecture
112
- - **Honest tradeoffs** - don't hide complexity
113
- - **Defer to user** - present options, let them decide
@@ -1,59 +0,0 @@
1
- ---
2
- description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
3
- ---
4
-
5
- # /create - Create Application
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Task
12
-
13
- This command starts a new application creation process.
14
-
15
- ### Steps:
16
-
17
- 1. **Request Analysis**
18
- - Understand what the user wants
19
- - If information is missing, use `conversation-manager` skill to ask
20
-
21
- 2. **Project Planning**
22
- - Use `project-planner` agent for task breakdown
23
- - Determine tech stack
24
- - Plan file structure
25
- - Create plan file and proceed to building
26
-
27
- 3. **Application Building (After Approval)**
28
- - Orchestrate with `app-builder` skill
29
- - Coordinate expert agents:
30
- - `database-architect` → Schema
31
- - `backend-specialist` → API
32
- - `frontend-specialist` → UI
33
-
34
- 4. **Preview**
35
- - Start with `auto_preview.py` when complete
36
- - Present URL to user
37
-
38
- ---
39
-
40
- ## Usage Examples
41
-
42
- ```
43
- /create blog site
44
- /create e-commerce app with product listing and cart
45
- /create todo app
46
- /create Instagram clone
47
- /create crm system with customer management
48
- ```
49
-
50
- ---
51
-
52
- ## Before Starting
53
-
54
- If request is unclear, ask these questions:
55
- - What type of application?
56
- - What are the basic features?
57
- - Who will use it?
58
-
59
- Use defaults, add details later.
@@ -1,103 +0,0 @@
1
- ---
2
- description: Debugging command. Activates DEBUG mode for systematic problem investigation.
3
- ---
4
-
5
- # /debug - Systematic Problem Investigation
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## Purpose
12
-
13
- This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
14
-
15
- ---
16
-
17
- ## Behavior
18
-
19
- When `/debug` is triggered:
20
-
21
- 1. **Gather information**
22
- - Error message
23
- - Reproduction steps
24
- - Expected vs actual behavior
25
- - Recent changes
26
-
27
- 2. **Form hypotheses**
28
- - List possible causes
29
- - Order by likelihood
30
-
31
- 3. **Investigate systematically**
32
- - Test each hypothesis
33
- - Check logs, data flow
34
- - Use elimination method
35
-
36
- 4. **Fix and prevent**
37
- - Apply fix
38
- - Explain root cause
39
- - Add prevention measures
40
-
41
- ---
42
-
43
- ## Output Format
44
-
45
- ```markdown
46
- ## 🔍 Debug: [Issue]
47
-
48
- ### 1. Symptom
49
- [What's happening]
50
-
51
- ### 2. Information Gathered
52
- - Error: `[error message]`
53
- - File: `[filepath]`
54
- - Line: [line number]
55
-
56
- ### 3. Hypotheses
57
- 1. ❓ [Most likely cause]
58
- 2. ❓ [Second possibility]
59
- 3. ❓ [Less likely cause]
60
-
61
- ### 4. Investigation
62
-
63
- **Testing hypothesis 1:**
64
- [What I checked] → [Result]
65
-
66
- **Testing hypothesis 2:**
67
- [What I checked] → [Result]
68
-
69
- ### 5. Root Cause
70
- 🎯 **[Explanation of why this happened]**
71
-
72
- ### 6. Fix
73
- ```[language]
74
- // Before
75
- [broken code]
76
-
77
- // After
78
- [fixed code]
79
- ```
80
-
81
- ### 7. Prevention
82
- 🛡️ [How to prevent this in the future]
83
- ```
84
-
85
- ---
86
-
87
- ## Examples
88
-
89
- ```
90
- /debug login not working
91
- /debug API returns 500
92
- /debug form doesn't submit
93
- /debug data not saving
94
- ```
95
-
96
- ---
97
-
98
- ## Key Principles
99
-
100
- - **Ask before assuming** - get full error context
101
- - **Test hypotheses** - don't guess randomly
102
- - **Explain why** - not just what to fix
103
- - **Prevent recurrence** - add tests, validation