record-demo
БесплатноБез исполняемых скриптовНе проверенRecord or regenerate the mcpc demo GIFs (the README hero docs/images/mcpc-demo.gif and the focused tapes in docs/vhs/) with VHS. Use whenever asked to create…
от apify★ 1 124 звезды на GitHubОб этом скилле
record-demo: VHS demo GIFs for mcpc
The tapes in docs/vhs/*.tape are VHS
scripts that drive a real shell session — VHS types each command, runs it
against a live MCP server, captures the terminal, and renders a GIF. The README
hero is docs/images/mcpc-demo.gif, built from docs/vhs/mcpc-demo.tape.
This file is the accumulated know-how. Read all of it before touching a tape — most rules below were discovered by hitting the wall, and skipping them wastes whole render cycles (~1–2 min each).
The hero flow (mcpc-demo.tape)
A basic-use story across both transports:
mcpc— empty state (no sessions, no profiles)mcpc connect mcp.json:filesystem— local stdio server (auto-names@filesystem)mcpc— session list (now shows the live session)mcpc @filesystem tools-listmcpc @filesystem tools-list --json— JSON output, syntax-highlighted, no jqmcpc connect mcp.apify.com -H "Authorization: Bearer $APIFY_TOKEN"— remote HTTP server (auto-names@apify)mcpc @apify tools-listmcpc @apify tools-get search-actors— inspect one tool's input schemamcpc @apify tools-call search-actors keywords:="web scraper" limit:=3mcpc @apify close
Ten commands run ~45s; there is no hard 30s cap for this flow.
Style conventions (the current standard — match these)
- No
# commentsin the visible script. The commands are self-descriptive. - No
| head, no2>/dev/nullon visible commands. Show real output even if long — it scrolls naturally. (connect≈ 86 lines incl. an "Available commands" list,tools-call search-actors≈ 56, filesystemtools-list --json≈ 300.) - Continuous session — never
clearbetween steps. Put a single blank-lineEnterbefore each command (after the first) so it's separated from the previous output, like a real terminal session. - Colored prompt + bold-white typed commands. In the hidden setup block:
Type 'export PS1="\[\e[1;38;2;25;230;77m\]$\[\e[0m\] \[\e[1;97m\]"' Enter Type "trap 'tput sgr0' DEBUG" EnterPS1is a bold bright-green$, then ends with\[\e[1;97m\]so the typed input renders bold bright-white.- The
DEBUGtrap runstput sgr0before every command so the bold-white input does not bleed into command output.
- Empty state needs a clean home — hidden:
Type 'export MCPC_HOME_DIR="$(mktemp -d)"'somcpcshows "No active MCP sessions / No OAuth profiles". - Color is automatic for non-piped commands — mcpc detects the TTY and emits
color (256-color, plenty vivid). You only need
export FORCE_COLOR=3(+COLORTERM=truecolorfor exact hex) when a command is piped (mcpc turns color off when stdout isn't a TTY). The current tapes avoid pipes, so they don't need it. (The CLI palette lives insrc/cli/output.ts,RAINBOW_SATURATION, bumped to 78% for vividness — that's where the demo colors come from.)
VHS gotchas (these will bite you)
- ASCII prompt symbols only. Multibyte glyphs (
❯,»,▶) break bash prompt rendering under VHS and show up as garbage like92m]. Use$(or>), styled with color + bold. Typequoting: use single quotes around any command containing double quotes. A\"inside a double-quotedTypebreaks VHS's parser. e.g.Type 'mcpc @apify tools-call search-actors keywords:="web scraper" limit:=3'andType 'export PS1="\[\e[…m\]$\[\e[0m\] "'.- Output/Screenshot paths: must not start with a digit (
Output 1-foo.giffails to parse) and must not be long absolute paths (the parser chokes). Use short, letter-leading, relative names and runvhsfromdocs/vhs/. Screenshotis unreliable (frequently exits 2 even though the GIF rendered fine). Don't depend on it — pull frames from the finished GIF instead:ffmpeg -y -ss <seconds> -i x.gif -vframes 1 frame.png, then Read the PNG.- Renders are slow (~1–2 min each: real-time timeline + Chromium + ffmpeg
encode). Render tapes one at a time — a
forloop over several blows the 5-minute command timeout. Extracted frames often land mid-typing; sample a few timestamps around when output should be on screen. - Hidden connects leak into the recording if bash falls behind. When a tape
connects in the hidden setup (so the feature commands run against a ready
session, e.g. tools/scripting/grep), a slow connect lets VHS type ahead; bash
then echoes the buffered commands and runs the
clearafterShow, so the setup spills into frame. Pattern that works: type the connect(s), then one generousSleep(7–8s) so they finish, thenclear, then anotherSleep(~1.5s) beforeShow. (Tapes that connect visibly as their first command don't need this — their hidden setup is just fast exports +clear.)
Stdio servers in a headless / proxied box
npx-launched stdio servers are too slow here. `npx -
Установить record-demo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditAskUserQuestionFAQ
Что делает скилл record-demo?
Record or regenerate the mcpc demo GIFs (the README hero docs/images/mcpc-demo.gif and the focused tapes in docs/vhs/) with VHS. Use whenever asked to create, refresh, restyle, shorten, or fix a terminal demo/animation/GIF of mcpc. The tapes drive real mcpc commands; for the authenticated step this skill ALWAYS prompts for a short-lived, low-permission TEST token first (never production). Captures the VHS + mcpc gotchas learned the hard way — read it fully before editing a tape.
Как установить скилл record-demo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл record-demo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic