No description
  • JavaScript 71.3%
  • Python 21.8%
  • Shell 6.3%
  • Go Template 0.6%
Find a file
2026-11-18 12:25:12 +08:00
runtime release v0.1.1 2026-11-18 12:25:12 +08:00
skills release v0.1.1 2026-11-18 12:25:12 +08:00
LICENSE release v0.1.0 2026-10-03 01:50:15 +08:00
MANIFEST.json release v0.1.1 2026-11-18 12:25:12 +08:00
package.json release v0.1.1 2026-11-18 12:25:12 +08:00
README.md release v0.1.1 2026-11-18 12:25:12 +08:00

demo-publish

把一个技能/项目的能力做成演示:专用 iTerm tab 逐条执行只读命令并读屏校验、全程录屏、按需压 MP4,最后发到 Telegram 频道并给出可直接粘贴的分享文案

以 Pi package(技能形态)发布。技能本体在 skills/demo-publish/。 依赖(iterm-workspace-ctl、macos-screencast、video-compress、telegram、skill-interface)随包夹带在 skills/ 下,克隆或安装后脚本可直接运行。

  • 平台:macOS
  • 许可:GPL-3.0-or-later(全文见 LICENSE)

安装

pi install git:forgejo.vhkd.top/pi-hub/demo-publish.git@v0.1.1

装完 pi-skill list 能看到 demo-publish,pi-skill demo-publish check 会告诉还缺什么。

先准备什么

  • pi-skill(命令),安装:随 skill-interface 提供(~/.local/bin/pi-skill);编排终端、录屏、压缩、发送都通过它转发到对应技能
  • macos-screencast(命令),安装:git clone https://forgejo.vhkd.top/pi-hub/macos-screencast-cli.git && cd macos-screencast-cli && make install-cli(不需要 Emacs);录屏可执行文件;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。