mudra-skills 3.0.8 → 3.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/package.json +7 -1
- package/skills/mudra-master/SKILL.md +1 -1
- package/skills/mudra-master/mudra-preview/SKILL.md +1 -1
- package/skills/mudra-master/mudra-preview/references/agent_protocol.json +1 -1
- package/skills/mudra-master/mudra-xr/SKILL.md +1 -1
- package/skills/mudra-preview/SKILL.md +1 -1
- package/skills/mudra-preview/references/agent_protocol.json +1 -1
- package/skills/mudra-xr/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mudra-skills",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Mudra Band skills for Claude Code, Codex, and Antigravity — 2D, 3D/XR, or auto-classified",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mudra-skills": "bin/cli.js"
|
|
8
8
|
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"sync": "node scripts/sync-skills.mjs",
|
|
11
|
+
"validate": "node scripts/validate.mjs",
|
|
12
|
+
"version": "npm run sync",
|
|
13
|
+
"prepack": "npm run sync"
|
|
14
|
+
},
|
|
9
15
|
"author": {
|
|
10
16
|
"name": "Wearable Devices",
|
|
11
17
|
"email": "jabbour.d@wearabledevices.co.il"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mudra-master
|
|
3
|
-
version: 3.0
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
description: Master router for Mudra Band app builds. Use when the user describes an app, experience, prototype, timer, counter, or tool to build with the Mudra Band but has not made clear whether they want a 2D (flat/screen) or 3D (spatial/XR/VR/AR) version. This skill classifies the prompt deterministically and hands off the original prompt verbatim to either mudra-preview (2D) or mudra-xr (3D), asking exactly one 2D-or-3D disambiguation question only when the dimension cannot be inferred. Do not use for pure code edits, repo questions, or any request that is not a Mudra-app build.
|
|
5
5
|
---
|
|
6
6
|
# Mudra Master Skill
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mudra-preview
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
description: Generate a working Mudra Band interactive app preview as a single-file HTML. Use when the user describes a Mudra-controlled experience (gesture, pressure, navigation, IMU, SNC), wants to prototype a Mudra Companion app, or asks to build/preview a Mudra app.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"code_examples": {
|
|
650
650
|
"javascript": {
|
|
651
651
|
"description": "Basic WebSocket connection and signal handling (new Dart server protocol)",
|
|
652
|
-
"code": "const ws = new WebSocket('ws://127.0.0.1:8766');\nconst subscriptionRecord = new Set();\nconst backoffSchedule = [1000, 2000, 5000, 10000];\nlet backoffIndex = 0;\nlet suppressReconnect = false;\nlet reconnectTimer = null;\nlet lastBandConnected = false;\n\nfunction subscribe(signal) {\n subscriptionRecord.add(signal);\n ws.send(JSON.stringify({ command: 'subscribe', signal }));\n}\n\nfunction connect() {\n const socket = new WebSocket('ws://127.0.0.1:8766');\n\n socket.onopen = () => {\n backoffIndex = 0;\n socket.send(JSON.stringify({ command: 'get_status' }));\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n };\n\n socket.onmessage = (event) => {\n const msg = JSON.parse(event.data);\n if (msg.type === 'status') {\n const bandConnected = Boolean(msg.data.device.firmware && msg.data.device.serial_number);\n const hand = bandConnected ? msg.data.device.hand : 'None';\n updateConnectionLabel(bandConnected, hand);\n if (bandConnected && !lastBandConnected) {\n // Band just reconnected — replay subscriptions \n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n }\n lastBandConnected = bandConnected;\n }\n if (msg.type === 'error' && msg.data.error === 'client_already_connected') {\n suppressReconnect = true;\n showAlreadyInUseMessage();\n }\n if (msg.type === 'gesture') handleGesture(msg.data);\n if (msg.type === 'pressure') handlePressure(msg.data);\n if (msg.type === 'navigation') handleNavigation(msg.data);\n };\n\n socket.onclose = () => {\n if (suppressReconnect) return;\n showReconnecting();\n const delay = backoffSchedule[Math.min(backoffIndex, backoffSchedule.length - 1)];\n backoffIndex = Math.min(backoffIndex + 1, backoffSchedule.length - 1);\n reconnectTimer = setTimeout(connect, delay);\n };\n}"
|
|
652
|
+
"code": "const ws = new WebSocket('ws://127.0.0.1:8766');\nconst subscriptionRecord = new Set();\nconst backoffSchedule = [1000, 2000, 5000, 10000];\nlet backoffIndex = 0;\nlet suppressReconnect = false;\nlet reconnectTimer = null;\nlet lastBandConnected = false;\n\nfunction subscribe(signal) {\n subscriptionRecord.add(signal);\n ws.send(JSON.stringify({ command: 'subscribe', signal }));\n}\n\nfunction connect() {\n const socket = new WebSocket('ws://127.0.0.1:8766');\n\n socket.onopen = () => {\n backoffIndex = 0;\n socket.send(JSON.stringify({ command: 'get_status' }));\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n };\n\n socket.onmessage = (event) => {\n const msg = JSON.parse(event.data);\n if (msg.type === 'status') {\n const bandConnected = Boolean(msg.data.device.firmware && msg.data.device.serial_number);\n const hand = bandConnected ? msg.data.device.hand : 'None';\n updateConnectionLabel(bandConnected, hand);\n if (bandConnected && !lastBandConnected) {\n // Band just reconnected — replay subscriptions (FR-018a)\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n }\n lastBandConnected = bandConnected;\n }\n if (msg.type === 'error' && msg.data.error === 'client_already_connected') {\n suppressReconnect = true;\n showAlreadyInUseMessage();\n }\n if (msg.type === 'gesture') handleGesture(msg.data);\n if (msg.type === 'pressure') handlePressure(msg.data);\n if (msg.type === 'navigation') handleNavigation(msg.data);\n };\n\n socket.onclose = () => {\n if (suppressReconnect) return;\n showReconnecting();\n const delay = backoffSchedule[Math.min(backoffIndex, backoffSchedule.length - 1)];\n backoffIndex = Math.min(backoffIndex + 1, backoffSchedule.length - 1);\n reconnectTimer = setTimeout(connect, delay);\n };\n}"
|
|
653
653
|
},
|
|
654
654
|
"test_gesture": {
|
|
655
655
|
"description": "Simulate a gesture for testing without device",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mudra-preview
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.1.0
|
|
4
4
|
description: Generate a working Mudra Band interactive app preview as a single-file HTML. Use when the user describes a Mudra-controlled experience (gesture, pressure, navigation, IMU, SNC), wants to prototype a Mudra Companion app, or asks to build/preview a Mudra app.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"code_examples": {
|
|
650
650
|
"javascript": {
|
|
651
651
|
"description": "Basic WebSocket connection and signal handling (new Dart server protocol)",
|
|
652
|
-
"code": "const ws = new WebSocket('ws://127.0.0.1:8766');\nconst subscriptionRecord = new Set();\nconst backoffSchedule = [1000, 2000, 5000, 10000];\nlet backoffIndex = 0;\nlet suppressReconnect = false;\nlet reconnectTimer = null;\nlet lastBandConnected = false;\n\nfunction subscribe(signal) {\n subscriptionRecord.add(signal);\n ws.send(JSON.stringify({ command: 'subscribe', signal }));\n}\n\nfunction connect() {\n const socket = new WebSocket('ws://127.0.0.1:8766');\n\n socket.onopen = () => {\n backoffIndex = 0;\n socket.send(JSON.stringify({ command: 'get_status' }));\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n };\n\n socket.onmessage = (event) => {\n const msg = JSON.parse(event.data);\n if (msg.type === 'status') {\n const bandConnected = Boolean(msg.data.device.firmware && msg.data.device.serial_number);\n const hand = bandConnected ? msg.data.device.hand : 'None';\n updateConnectionLabel(bandConnected, hand);\n if (bandConnected && !lastBandConnected) {\n // Band just reconnected — replay subscriptions\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n }\n lastBandConnected = bandConnected;\n }\n if (msg.type === 'error' && msg.data.error === 'client_already_connected') {\n suppressReconnect = true;\n showAlreadyInUseMessage();\n }\n if (msg.type === 'gesture') handleGesture(msg.data);\n if (msg.type === 'pressure') handlePressure(msg.data);\n if (msg.type === 'navigation') handleNavigation(msg.data);\n };\n\n socket.onclose = () => {\n if (suppressReconnect) return;\n showReconnecting();\n const delay = backoffSchedule[Math.min(backoffIndex, backoffSchedule.length - 1)];\n backoffIndex = Math.min(backoffIndex + 1, backoffSchedule.length - 1);\n reconnectTimer = setTimeout(connect, delay);\n };\n}"
|
|
652
|
+
"code": "const ws = new WebSocket('ws://127.0.0.1:8766');\nconst subscriptionRecord = new Set();\nconst backoffSchedule = [1000, 2000, 5000, 10000];\nlet backoffIndex = 0;\nlet suppressReconnect = false;\nlet reconnectTimer = null;\nlet lastBandConnected = false;\n\nfunction subscribe(signal) {\n subscriptionRecord.add(signal);\n ws.send(JSON.stringify({ command: 'subscribe', signal }));\n}\n\nfunction connect() {\n const socket = new WebSocket('ws://127.0.0.1:8766');\n\n socket.onopen = () => {\n backoffIndex = 0;\n socket.send(JSON.stringify({ command: 'get_status' }));\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n };\n\n socket.onmessage = (event) => {\n const msg = JSON.parse(event.data);\n if (msg.type === 'status') {\n const bandConnected = Boolean(msg.data.device.firmware && msg.data.device.serial_number);\n const hand = bandConnected ? msg.data.device.hand : 'None';\n updateConnectionLabel(bandConnected, hand);\n if (bandConnected && !lastBandConnected) {\n // Band just reconnected — replay subscriptions (FR-018a)\n subscriptionRecord.forEach(signal => socket.send(JSON.stringify({ command: 'subscribe', signal })));\n }\n lastBandConnected = bandConnected;\n }\n if (msg.type === 'error' && msg.data.error === 'client_already_connected') {\n suppressReconnect = true;\n showAlreadyInUseMessage();\n }\n if (msg.type === 'gesture') handleGesture(msg.data);\n if (msg.type === 'pressure') handlePressure(msg.data);\n if (msg.type === 'navigation') handleNavigation(msg.data);\n };\n\n socket.onclose = () => {\n if (suppressReconnect) return;\n showReconnecting();\n const delay = backoffSchedule[Math.min(backoffIndex, backoffSchedule.length - 1)];\n backoffIndex = Math.min(backoffIndex + 1, backoffSchedule.length - 1);\n reconnectTimer = setTimeout(connect, delay);\n };\n}"
|
|
653
653
|
},
|
|
654
654
|
"test_gesture": {
|
|
655
655
|
"description": "Simulate a gesture for testing without device",
|
package/skills/mudra-xr/SKILL.md
CHANGED