@leotang92/dsh-claude-motion 0.0.0-stage → 0.1.1
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/LICENSE +27 -0
- package/NOTICE.md +25 -0
- package/README.md +21 -2
- package/cordis.patch.yml +7 -0
- package/docs/DETAIL.md +32 -0
- package/docs/DETAIL.zh.md +17 -0
- package/icon.svg +8 -0
- package/lib/client.js +1800 -0
- package/lib/index.js +878 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +69 -4
- package/skills/claude-motion/SKILL.md +689 -0
- package/skills/claude-motion/artifact-type/reference/by-hand.md +84 -0
- package/skills/claude-motion/artifact-type/reference/film-api.md +278 -0
- package/skills/claude-motion/artifact-type/reference/finalize.md +213 -0
- package/skills/claude-motion/artifact-type/reference/motion.md +260 -0
- package/skills/claude-motion/artifact-type/reference/plan.md +239 -0
- package/skills/claude-motion/artifact-type/reference/questions.md +240 -0
- package/skills/claude-motion/artifact-type/reference/recreate-ui.md +140 -0
- package/skills/claude-motion/artifact-type/reference/render-offline.md +126 -0
- package/skills/claude-motion/artifact-type/reference/rough-cut.md +251 -0
- package/skills/claude-motion/artifact-type/reference/sound.md +106 -0
- package/skills/claude-motion/artifact-type/reference/styles.md +230 -0
- package/skills/claude-motion/artifact-type/reference/walkthrough.md +83 -0
- package/skills/claude-motion/scripts/artifact.mjs +8390 -0
- package/skills/claude-motion/scripts/editor/artifact-type/anthropicons-fizzy-lake-DtzHkSJH.woff2 +0 -0
- package/skills/claude-motion/scripts/editor/artifact-type/app.css +1 -0
- package/skills/claude-motion/scripts/editor/artifact-type/app.js +17230 -0
- package/skills/claude-motion/scripts/editor/index.html +145 -0
- package/skills/claude-motion/scripts/editor/local-host.js +12 -0
- package/skills/claude-motion/scripts/editor/share-ui.js +208 -0
- package/skills/claude-motion/scripts/editor/third-party-licenses.txt +970 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
This MIT License covers only the original plugin host code adapted from
|
|
2
|
+
Jim Liu 宝玉's baoyu-design DeepSeek Harness plugins, and the packaging work in
|
|
3
|
+
this repository. It does not cover material from Anthropic or third-party
|
|
4
|
+
open-source code listed in NOTICE.md, which keep their own terms.
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 Jim Liu 宝玉
|
|
9
|
+
Copyright (c) 2026 tanglei168
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Notices
|
|
2
|
+
|
|
3
|
+
These DeepSeek Harness plugins package the design skills vendored from
|
|
4
|
+
[JimLiu/baoyu-design](https://github.com/JimLiu/baoyu-design), plus the
|
|
5
|
+
baoyu-design DeepSeek Harness plugin host (`lib/`, `cordis.patch.yml`,
|
|
6
|
+
`locale/`, `docs/`, `icon.svg`).
|
|
7
|
+
|
|
8
|
+
## 1. Plugin host and packaging: MIT
|
|
9
|
+
|
|
10
|
+
- Jim Liu 宝玉's DeepSeek Harness plugin host code (MIT).
|
|
11
|
+
- Packaging in this repository (MIT).
|
|
12
|
+
|
|
13
|
+
See LICENSE.
|
|
14
|
+
|
|
15
|
+
## 2. Material from Anthropic: not MIT
|
|
16
|
+
|
|
17
|
+
Skill instructions, Artifact-type reference docs, reconstructed editors, icon
|
|
18
|
+
fonts, and related material stay Anthropic's. This packaging grants no license
|
|
19
|
+
to that material. Full upstream terms:
|
|
20
|
+
https://github.com/JimLiu/baoyu-design/blob/main/NOTICE.md
|
|
21
|
+
|
|
22
|
+
## 3. Third-party open-source code
|
|
23
|
+
|
|
24
|
+
Editor bundles keep their own licenses in each skill's
|
|
25
|
+
`scripts/editor/third-party-licenses.txt` when present.
|
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @leotang92/dsh-claude-motion
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin that adds the **claude-motion** skill from
|
|
4
|
+
[this repository](https://github.com/tanglei168/T-skills): The agent writes short animated films and plays them in a local Motion player.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
In the DeepSeek Harness desktop app: **Plugins** → **Add plugin** → enter `@leotang92/dsh-claude-motion` in **Package name or
|
|
9
|
+
address** → **Install**, and turn the plugin on. From the command line, for a CLI profile such as `web`:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
dsh plugin --profile web add @leotang92/dsh-claude-motion
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then quit and reopen the app, start a new session, and type `/claude-motion`.
|
|
16
|
+
|
|
17
|
+
To pin a version: `@leotang92/dsh-claude-motion@0.1.1`.
|
|
18
|
+
|
|
19
|
+
## Source
|
|
20
|
+
|
|
21
|
+
Skill files come from `tools/claude-motion/` in this repository. The plugin host (`lib/`) is adapted from
|
|
22
|
+
baoyu-design's DeepSeek Harness plugins under MIT; Anthropic material stays Anthropic's. See NOTICE.md.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @leotang92/dsh-claude-motion bundle patch: installing the package (the Plugins page, or
|
|
2
|
+
# `dsh plugin --profile <name> add <spec>`) adds it to the profile's bundles,
|
|
3
|
+
# and this layer mounts its one plugin row, which registers the claude-motion
|
|
4
|
+
# skill with the profile's skill registry.
|
|
5
|
+
- insert:
|
|
6
|
+
- id: claude-motion
|
|
7
|
+
name: "@leotang92/dsh-claude-motion"
|
package/docs/DETAIL.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Claude Motion
|
|
2
|
+
|
|
3
|
+
Adds the **claude-motion** skill to DeepSeek Harness. Ask for a short animated film ("a 15-second explainer of how our
|
|
4
|
+
sync works", "a logo sting for the launch") and the agent writes it as code, scene by scene, into a folder in your
|
|
5
|
+
workspace (`designs/<name>/` unless you name another). It starts a local Motion player and gives you its link; the film
|
|
6
|
+
fills in there as the agent writes it.
|
|
7
|
+
|
|
8
|
+
## Using it
|
|
9
|
+
|
|
10
|
+
- Ask in plain words, or type `/claude-motion` to call the skill by name. It works best with your own material:
|
|
11
|
+
screenshots, a logo, brand colours, fonts.
|
|
12
|
+
- Open the link the agent gives you. In the desktop app it opens in the right sidebar's Browser, beside the
|
|
13
|
+
conversation (Settings → General → Open chat links in: **In-App Sidebar**, the default).
|
|
14
|
+
- In the player you play and scrub the film. Its **Continue**, **Finalize**, **Make the animation** and **Ask Agent**
|
|
15
|
+
buttons send their request to the agent, like a comment: it shows in the chat as a card and the agent takes it from
|
|
16
|
+
there, even when the conversation is idle. When the agent isn't waiting (after restarting the app, until it opens the
|
|
17
|
+
film again), they copy the request instead, and you paste it into the chat.
|
|
18
|
+
- Comment on a moment: the comments button in the bar at the top turns comment mode on. Click the picture to comment on
|
|
19
|
+
that moment and point, drag for a box, or press R to mark a stretch of time. Tick **Send to Agent** and the agent picks
|
|
20
|
+
it up at once, even when the conversation is idle: it changes the film and replies in the comment. The comment also
|
|
21
|
+
shows in the chat as a card; **View thread** on the card opens it in the player. The box is there while comments can
|
|
22
|
+
reach the agent, which starts each time it gives you the link. After restarting the app, ask the agent to open the
|
|
23
|
+
film again to bring it back.
|
|
24
|
+
- Export: the download button under the film encodes MP4 or GIF in the page and saves it to your downloads.
|
|
25
|
+
- To change a film later, ask the agent to revise its folder.
|
|
26
|
+
- A workspace that has its own `claude-motion` skill (in `.agents/skills/` or `.dsh/skills/`) uses that copy instead
|
|
27
|
+
of this plugin's.
|
|
28
|
+
|
|
29
|
+
## What runs where
|
|
30
|
+
|
|
31
|
+
The player is a small server on 127.0.0.1 that the skill's script starts in the background, one per film. It reads and
|
|
32
|
+
writes only that film's folder. The desktop app's own Node runtime runs it; nothing else is installed.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Claude 动画
|
|
2
|
+
|
|
3
|
+
给 DeepSeek Harness 加上 **claude-motion** 技能。让 Agent 做一段短动画("做一段 15 秒的动画,讲清楚我们的同步是怎么工作的"、"给发布会做一个 logo 片头"),它会用代码一幕一幕地把动画写进工作区里的一个文件夹(默认是 `designs/<名字>/`,也可以指定别的)。写的时候它会启动本地 Motion 播放器,把链接给你,你可以在播放器里看着动画一点点成形。
|
|
4
|
+
|
|
5
|
+
## 怎么用
|
|
6
|
+
|
|
7
|
+
- 直接用自然语言提要求,或者输入 `/claude-motion` 点名调用这个技能。给它你自己的素材效果最好:截图、logo、品牌色、字体。
|
|
8
|
+
- 打开 Agent 给的链接。桌面版里它会在右侧栏的浏览器里打开,和对话并排(设置 → 通用 → 聊天链接打开方式:**应用内侧栏**,默认就是这个)。
|
|
9
|
+
- 播放器里可以播放、拖动进度。页面上的 **Continue**、**Finalize**、**Make the animation** 和 **Ask Agent** 按钮和评论一样,会把请求直接发给 Agent:对话里出现一张卡片,Agent 接着去做,对话空闲时也一样。Agent 没在等的时候(比如重启应用后、还没让它再打开这段动画),按钮会改成复制请求,你把它粘贴到对话里发出去。
|
|
10
|
+
- 给某个时刻留评论:点顶部栏的评论按钮进入评论模式,点画面就是评论那个时刻的那个位置,拖一下是框住一块区域,按 R 是标出一段时间。勾上 **Send to Agent** 发出去,Agent 会马上接手,对话空闲时也一样:它改好动画,再在评论里回复你。评论也会以卡片的形式出现在对话里,点卡片上的 **View thread**(中文界面是「查看评论」)会在播放器里打开这条评论。这个勾选框只在评论能发给 Agent 时出现;Agent 每次给你播放器链接时都会开始等评论。重启应用后,让 Agent 再打开一次这段动画就能恢复。
|
|
11
|
+
- 导出:动画下方的下载按钮会在页面里把动画编码成 MP4 或 GIF,存到下载文件夹。
|
|
12
|
+
- 以后要改,让 Agent 修改那个动画所在的文件夹即可。
|
|
13
|
+
- 如果工作区自己带了 `claude-motion` 技能(在 `.agents/skills/` 或 `.dsh/skills/` 里),这个工作区会用它自己那份,而不是插件里的。
|
|
14
|
+
|
|
15
|
+
## 运行方式
|
|
16
|
+
|
|
17
|
+
播放器是技能脚本在后台启动的一个本地服务(127.0.0.1),一段动画一个,只读写这段动画自己的文件夹。用的是桌面版自带的 Node,不需要另外安装任何东西。
|
package/icon.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#D97757"/>
|
|
3
|
+
<rect x="12" y="13" width="40" height="27" rx="3" fill="#FFF7F2"/>
|
|
4
|
+
<path d="M28.5 20.5v12l10-6z" fill="#D97757"/>
|
|
5
|
+
<rect x="12" y="46" width="40" height="3" rx="1.5" fill="#E9B8A3"/>
|
|
6
|
+
<rect x="12" y="46" width="17" height="3" rx="1.5" fill="#FFF7F2"/>
|
|
7
|
+
<circle cx="29" cy="47.5" r="3.5" fill="#FFF7F2"/>
|
|
8
|
+
</svg>
|