No description
- JavaScript 100%
| skills/demo-publish | ||
| LICENSE | ||
| MANIFEST.json | ||
| package.json | ||
| README.md | ||
demo-publish
把一个技能/项目的能力做成演示:专用 iTerm tab 逐条执行只读命令并读屏校验、全程录屏、按需压 MP4,最后发到 Telegram 频道并给出可直接粘贴的分享文案
以 Pi package(技能形态)发布。技能本体在 skills/demo-publish/。
- 平台:macOS
- 许可:GPL-3.0-or-later(全文见 LICENSE)
安装
pi install git:gitea.vhkd.top/pi-hub/demo-publish.git@v0.1.0
装完 pi-skill list 能看到 demo-publish,pi-skill demo-publish check 会告诉还缺什么。
先准备什么
pi-skill(命令),安装:随 skill-interface 提供(~/.local/bin/pi-skill);编排终端、录屏、压缩、发送都通过它转发到对应技能macos-screencast(命令),安装:见技能 macos-screencast-cli(在该包目录跑 make install-cli);录屏可执行文件;windows 子命令用来定位要录的窗口ffprobe(命令),安装:brew install ffmpeg;读视频时长写进 caption / status;压缩本身走 video-compress
常用命令
| 命令 | 说明 |
|---|---|
check |
自检:依赖齐不齐、iTerm 窗口能不能录、TG 能不能发(第一次用先跑它) |
survey |
扫技能的可演示面,生成 plan.json(只挑只读/幂等命令) |
run |
专用 tab 逐条执行 + 读屏校验 + 录屏(过大才压,画质优先),产物落 run 目录 |
send |
把 run 目录的视频 + 文案发到 Telegram(默认只预览,--yes 才真发) |
status |
最近一次演示的稳定字段(步骤是否全过、视频大小/时长、发没发、message_id) |
last |
最近一次演示(status 的同义写法,为了好记) |
用法与对外契约见技能内的 SKILL.md 与 REFERENCE.md。