@unityclaw/skills 1.0.8 → 1.1.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/README.md CHANGED
@@ -121,10 +121,19 @@ Only endpoints that **require** field-feishu structures are normalized.
121
121
  - Text array conversion (`string` -> `[{ type: 'text', text: '...' }]`) is applied only for:
122
122
  `jimeng/image`, `jimeng/image/v3`, `sora/video`, `sora/video/stable`, `veo/video`, `jimeng/video`, `doubao/video`.
123
123
  - Label conversion (`'16:9'` -> `{ value: '16:9', label: '16:9' }`) is applied only for endpoints whose `ParameterModel` expects `LabelFieldItem`.
124
+ - For `jimeng/video`, if `action` is omitted SDK infers:
125
+ `i2v` when `attachment` exists, otherwise `t2v`.
124
126
  - For `doubao/video`, duration should use numeric value in `LabelFieldItem.value` when provided (for example `{ value: 5, label: '5' }`).
125
127
  - Endpoints that already support plain strings are kept as-is (no forced conversion).
126
128
  - If you pass full field-feishu structures, SDK keeps them unchanged.
127
129
 
130
+ ## Skill Version Rule
131
+
132
+ - Every `unityclaw-*/SKILL.md` frontmatter `version` is auto-synced to `skills/package.json` version during `npm run build`.
133
+ - Every `SKILL.md` also contains an `SDK Version Check Rule` block:
134
+ - If local `@unityclaw/sdk` version is lower than the skill version, agent should stop and prompt SDK upgrade first.
135
+ - Suggested command: `npm i @unityclaw/sdk@latest`.
136
+
128
137
  ## License
129
138
 
130
139
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unityclaw/skills",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "UnityClaw Skills - Claude Code and OpenClaw skill definitions for AI-powered image/video generation, media analysis, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,8 @@
19
19
  "unityclaw-*/SKILL.md"
20
20
  ],
21
21
  "scripts": {
22
- "build": "tsup src/index.ts src/cli.ts --format cjs,esm --dts --clean",
22
+ "sync:skill-metadata": "node scripts/sync-skill-metadata.mjs",
23
+ "build": "npm run sync:skill-metadata && tsup src/index.ts src/cli.ts --format cjs,esm --dts --clean",
23
24
  "dev": "tsup src/index.ts src/cli.ts --format cjs,esm --dts --watch",
24
25
  "typecheck": "tsc --noEmit",
25
26
  "prepublishOnly": "npm run build"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-document-convert
3
3
  description: Convert documents between formats (PDF, Word, PPT, Excel, Image)
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -413,3 +413,12 @@ console.log('Downloaded Files:', result.attachments);
413
413
 
414
414
  - [unityclaw-document-translation](../unityclaw-document-translation/SKILL.md) - Translate documents
415
415
  - [unityclaw-image-compress](../unityclaw-image-compress/SKILL.md) - Compress images before conversion
416
+
417
+ <!-- SDK_VERSION_RULE_START -->
418
+ ## SDK Version Check Rule
419
+
420
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
421
+ - Required minimum SDK version: `1.1.0`
422
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
423
+ - Suggested command: `npm i @unityclaw/sdk@latest`
424
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-document-translation
3
3
  description: Translate documents between multiple languages while preserving formatting
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -307,3 +307,12 @@ console.log('Downloaded Files:', result.attachments);
307
307
 
308
308
  - [unityclaw-document-convert](../unityclaw-document-convert/SKILL.md) - Convert document formats
309
309
  - [unityclaw-media-analysis](../unityclaw-media-analysis/SKILL.md) - Analyze video/audio content
310
+
311
+ <!-- SDK_VERSION_RULE_START -->
312
+ ## SDK Version Check Rule
313
+
314
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
315
+ - Required minimum SDK version: `1.1.0`
316
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
317
+ - Suggested command: `npm i @unityclaw/sdk@latest`
318
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-idp-business-extraction
3
3
  description: Extract fields from business documents (business license, business card)
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -52,3 +52,12 @@ await client.idp.extract('business_license', {
52
52
 
53
53
  - This skill groups enterprise scenarios to avoid over-generic routing.
54
54
  - Output fields vary between license and card extraction.
55
+
56
+ <!-- SDK_VERSION_RULE_START -->
57
+ ## SDK Version Check Rule
58
+
59
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
60
+ - Required minimum SDK version: `1.1.0`
61
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
62
+ - Suggested command: `npm i @unityclaw/sdk@latest`
63
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-idp-contract-extraction
3
3
  description: Extract structured fields from contract files
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -52,3 +52,12 @@ await client.idp.extract('contract', {
52
52
 
53
53
  - Preferred for long contract OCR + key field extraction scenarios.
54
54
  - Read extracted data from `result.response.data`.
55
+
56
+ <!-- SDK_VERSION_RULE_START -->
57
+ ## SDK Version Check Rule
58
+
59
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
60
+ - Required minimum SDK version: `1.1.0`
61
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
62
+ - Suggested command: `npm i @unityclaw/sdk@latest`
63
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-idp-invoice-extraction
3
3
  description: Extract fields from invoice and ticket documents (VAT, train, taxi)
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -54,3 +54,12 @@ await client.idp.extract('vat_invoice', {
54
54
 
55
55
  - Files can be image/PDF according to each underlying IDP type.
56
56
  - Output schema differs by type; parse from `result.response.data`.
57
+
58
+ <!-- SDK_VERSION_RULE_START -->
59
+ ## SDK Version Check Rule
60
+
61
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
62
+ - Required minimum SDK version: `1.1.0`
63
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
64
+ - Suggested command: `npm i @unityclaw/sdk@latest`
65
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-idp-personal-documents
3
3
  description: Extract structured fields from personal identity documents (ID card, vehicle license, bank card)
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -58,3 +58,12 @@ await client.idp.extract('id_card', {
58
58
 
59
59
  - This category is split from invoice/business/contract to improve skill routing success.
60
60
  - Output fields vary by type; read from `result.response.data`.
61
+
62
+ <!-- SDK_VERSION_RULE_START -->
63
+ ## SDK Version Check Rule
64
+
65
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
66
+ - Required minimum SDK version: `1.1.0`
67
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
68
+ - Suggested command: `npm i @unityclaw/sdk@latest`
69
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-image-compress
3
3
  description: Compress images with quality control to reduce file size
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -263,3 +263,12 @@ console.log('Local Attachments:', result.attachments);
263
263
  ## Related Skills
264
264
 
265
265
  - [unityclaw-image-generation](../unityclaw-image-generation/SKILL.md) - Generate images before compression
266
+
267
+ <!-- SDK_VERSION_RULE_START -->
268
+ ## SDK Version Check Rule
269
+
270
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
271
+ - Required minimum SDK version: `1.1.0`
272
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
273
+ - Suggested command: `npm i @unityclaw/sdk@latest`
274
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-image-generation
3
3
  description: Generate high-quality images using Gemini or JiMeng (Doubao) models
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -302,3 +302,12 @@ console.log('Task Folder:', result.taskFolder); // e.g., "~/Documents/tasks/2026
302
302
 
303
303
  - [unityclaw-image-compress](../unityclaw-image-compress/SKILL.md) - Compress generated images
304
304
  - [unityclaw-video-generation-kling](../unityclaw-video-generation-kling/SKILL.md) - Generate videos
305
+
306
+ <!-- SDK_VERSION_RULE_START -->
307
+ ## SDK Version Check Rule
308
+
309
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
310
+ - Required minimum SDK version: `1.1.0`
311
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
312
+ - Suggested command: `npm i @unityclaw/sdk@latest`
313
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-media-analysis
3
3
  description: Analyze video and audio content to extract subtitles, summaries, and insights
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -347,3 +347,12 @@ console.log('Task Folder:', result.taskFolder);
347
347
 
348
348
  - [unityclaw-document-translation](../unityclaw-document-translation/SKILL.md) - Translate transcripts
349
349
  - [unityclaw-video-generation-kling](../unityclaw-video-generation-kling/SKILL.md) - Generate videos
350
+
351
+ <!-- SDK_VERSION_RULE_START -->
352
+ ## SDK Version Check Rule
353
+
354
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
355
+ - Required minimum SDK version: `1.1.0`
356
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
357
+ - Suggested command: `npm i @unityclaw/sdk@latest`
358
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-media-download-xhs
3
3
  description: Download Xiaohongshu media and return cover/video URLs
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -38,3 +38,12 @@ if (result.success && result.response?.data) {
38
38
 
39
39
  - API: `/api/xiaohongshu/download`
40
40
  - field-feishu: `xiaohongshu/download`
41
+
42
+ <!-- SDK_VERSION_RULE_START -->
43
+ ## SDK Version Check Rule
44
+
45
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
46
+ - Required minimum SDK version: `1.1.0`
47
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
48
+ - Suggested command: `npm i @unityclaw/sdk@latest`
49
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-media-stats
3
3
  description: Extract social media post metrics (play, like, comment, share, etc.) from links
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -38,3 +38,12 @@ if (result.success && result.response?.data) {
38
38
 
39
39
  - API: `/api/media_stats`
40
40
  - field-feishu: `media_stats`
41
+
42
+ <!-- SDK_VERSION_RULE_START -->
43
+ ## SDK Version Check Rule
44
+
45
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
46
+ - Required minimum SDK version: `1.1.0`
47
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
48
+ - Suggested command: `npm i @unityclaw/sdk@latest`
49
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-media-user-info
3
3
  description: Extract social media user profile metrics from homepage links
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -38,3 +38,12 @@ if (result.success && result.response?.data) {
38
38
 
39
39
  - API: `/api/media_user_info`
40
40
  - field-feishu: `media_user_info`
41
+
42
+ <!-- SDK_VERSION_RULE_START -->
43
+ ## SDK Version Check Rule
44
+
45
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
46
+ - Required minimum SDK version: `1.1.0`
47
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
48
+ - Suggested command: `npm i @unityclaw/sdk@latest`
49
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-video-frame-extract
3
3
  description: Extract first/last/specified-time frame from video attachments
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -39,3 +39,12 @@ if (result.success && result.response?.data?.[0]) {
39
39
 
40
40
  - API: `/api/video/frame`
41
41
  - field-feishu: `video/frame`
42
+
43
+ <!-- SDK_VERSION_RULE_START -->
44
+ ## SDK Version Check Rule
45
+
46
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
47
+ - Required minimum SDK version: `1.1.0`
48
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
49
+ - Suggested command: `npm i @unityclaw/sdk@latest`
50
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-video-generation-jimeng-doubao
3
3
  description: Generate videos with JiMeng or Doubao models (text-to-video and image-to-video)
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -65,6 +65,18 @@ SDK will auto-upload local files and fill `tmp_url`.
65
65
  ## Notes For Agent
66
66
 
67
67
  - Prefer `doubao` for generic prompts if user did not specify model family.
68
- - For JiMeng, ensure `action` and `aspect_ratio` are provided.
68
+ - For JiMeng, `aspect_ratio` is required; `action` is recommended.
69
+ - If JiMeng `action` is omitted, SDK will infer:
70
+ - `i2v` when `attachment` exists
71
+ - `t2v` when `attachment` is empty
69
72
  - For Doubao, prefer numeric duration values (`5`, `10`) instead of string duration.
70
73
  - Always check `result.success` first, then read `result.response.data`.
74
+
75
+ <!-- SDK_VERSION_RULE_START -->
76
+ ## SDK Version Check Rule
77
+
78
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
79
+ - Required minimum SDK version: `1.1.0`
80
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
81
+ - Suggested command: `npm i @unityclaw/sdk@latest`
82
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-video-generation-kling
3
3
  description: Generate AI videos using Kling model with multi-version support
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -266,3 +266,12 @@ console.log('Downloaded Videos:', result.attachments);
266
266
 
267
267
  - [unityclaw-video-generation-jimeng-doubao](../unityclaw-video-generation-jimeng-doubao/SKILL.md) - JiMeng and Doubao video models
268
268
  - [unityclaw-video-generation-wan-minimax](../unityclaw-video-generation-wan-minimax/SKILL.md) - Wan and MiniMax video models
269
+
270
+ <!-- SDK_VERSION_RULE_START -->
271
+ ## SDK Version Check Rule
272
+
273
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
274
+ - Required minimum SDK version: `1.1.0`
275
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
276
+ - Suggested command: `npm i @unityclaw/sdk@latest`
277
+ <!-- SDK_VERSION_RULE_END -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: unityclaw-video-generation-wan-minimax
3
3
  description: Generate videos with Wan and MiniMax models for cinematic or controllable workflows
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  metadata:
6
6
  openclaw:
7
7
  requires:
@@ -68,3 +68,12 @@ SDK will auto-upload local files and fill `tmp_url`.
68
68
  - If model family is not specified, default to Wan for cinematic control.
69
69
  - Keep prompt concise and explicit; avoid overlong instructions.
70
70
  - Always check `result.success` first, then read `result.response.data`.
71
+
72
+ <!-- SDK_VERSION_RULE_START -->
73
+ ## SDK Version Check Rule
74
+
75
+ - Before invoking this skill, check local `@unityclaw/sdk` version.
76
+ - Required minimum SDK version: `1.1.0`
77
+ - If local SDK version is lower than this skill version, stop and prompt user to upgrade SDK first.
78
+ - Suggested command: `npm i @unityclaw/sdk@latest`
79
+ <!-- SDK_VERSION_RULE_END -->