/cc-authoring:vhs-claude-plugin-demosfrom cc-authoring
Make a hero GIF demo of a Claude Code plugin using VHS (charmbracelet/vhs). Use when: (1) writing a plugin README and want a terminal-demo GIF, (2) recording a screencast of a CLI that is ALSO wrapped by Claude Code slash commands, (3) the plugin has both slash commands (e.g. `/kb-query`) and an underlying shell CLI (e.g. `kb search`), (4) seeing HuggingFace/transformers progress-bar spam in recordings, (5) the CLI requires CWD inside a data dir but uv/poetry project lives elsewhere. Covers the slash-vs-CLI verb mismatch trap, deterministic /tmp scratch setup, hidden env-var blocks, and `uv run --project` for split CWD.
Ships in cc-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You want to make a hero GIF for a Claude Code plugin's README using VHS. The plugin exposes slash commands like /kb-init, /kb-ingest, /kb-query. You want to record those.
But: VHS records terminals. Slash commands run inside Claude Code's TUI, not in a plain shell. Recording the TUI is fragile — model latency varies, permission prompts interrupt, output is hard to time deterministically. And many Claude Code plugins wrap an underlying shell CLI where the slash-command verb often differs from the CLI verb (e.g. /kb-query is actually kb search under the hood, /kb-compile is mechanical-only while the LLM orchestration lives in the slash command).
1. Demo the shell CLI, not the slash commands. Slash commands are wrappers. The underlying CLI gives a clean, deterministic, fast terminal recording. VHS is a TTY recorder; the TUI is too unpredictable.
2. Verify CLI verbs first — don't trust the slash-command names. Before writing the tape, run <cli> --help and <cli> <subcmd> --help for each step. The slash-command verb may not match. Common mismatches:
/kb-query → kb search/kb-compile (orchestrates the LLM) → kb compile --write-note ... (mechanical only)3. Use a /tmp scratch dir for re-render determinism. Set up the demo working area inside the tape so re-renders produce identical output:
Hide
Type "rm -rf /tmp/vhs-demo && mkdir -p /tmp/vhs-demo && cd /tmp/vhs-demo" Enter
Show
4. Silence noisy ML libraries inside a Hide block:
Hide
Type "export HF_HUB_DISABLE_PROGRESS_BARS=1" Enter
Type "export TRANSFORMERS_VERBOSITY=error" Enter
Type "export TOKENIZERS_PARALLELISM=false" Enter
Show
Without this, sentence-transformers will dump progress bars and download chatter into the recording.
5. Split CWD from uv project context with uv run --project. If your CLI needs CWD inside a wiki/data dir (e.g. needs to find a .kb-config.yml) but uv needs the project root for dependency resolution, alias it inside Hide:
Hide
Type "alias kb='uv run --project /abs/path/to/uv/project kb'" Enter
Show
Visible commands then look clean: kb init, kb ingest, etc., while uv silently resolves from the project root.
6. Tape config defaults that work for plugin READMEs:
Output docs/demos/<plugin>.gif
Set Shell zsh
Set FontSize 14
Set Width 1000
Set Height 600
Set Theme "Dracula"
Set TypingSpeed 60ms
1000×600 produces ~300-500 KB for a 25-40s demo — well under GitHub's image display limits and renders crisply on a README.
7. Pacing. Sleep 1500ms after commands whose output the viewer needs to read. Sleep 500ms between fast setup commands. Total target: 25-40s rendered.
vhs path/to/demo.tape produces a .gif under 3 MBfile demo.gif reports GIF image data, version 89a, <W> x <H>vhs path/to/demo.tape from a clean state — the /tmp scratch reset means output should be byte-identical (or close — embedding scores may vary slightly)Output docs/demos/my-plugin.gif
Set Shell zsh
Set FontSize 14
Set Width 1000
Set Height 600
Set Theme "Dracula"
Set TypingSpeed 60ms
Hide
Type "rm -rf /tmp/vhs-demo && mkdir -p /tmp/vhs-demo && cd /tmp/vhs-demo" Enter
Type "export HF_HUB_DISABLE_PROGRESS_BARS=1 TRANSFORMERS_VERBOSITY=error TOKENIZERS_PARALLELISM=false" Enter
Type "alias kb='uv run --project /abs/path/to/plugin/core kb'" Enter
Type "clear" Enter
Show
Type "kb init my-wiki && cd my-wiki" Enter
Sleep 1s
Type 'kb ingest --mode text --source "Functional options is a Go pattern..."' Enter
Sleep 1500ms
Type 'kb compile --write-note --title "Functional options" --knowledge-type pattern --tags code-quality,api-design --confidence high --source "ingest-001" --body "..."' Enter
Sleep 1500ms
Type "kb index --full" Enter
Sleep 2s
Type 'kb search "Go patterns" --limit 3' Enter
Sleep 3s
brew install vhs (~25 MB with deps: ttyd, libuv, libwebsockets, json-c)Hide/Show blocks are essential — without them, env-var setup and aliases pollute the visible recording/kb-test), prefer that — fewer side effectsdocs/demos/<plugin>.tape + docs/demos/<plugin>.gif. Commit BOTH (tape for reproducibility, gif for the README)<cli> --help firstkb style CLIs that need a config file in CWD: use a directory-aware alias rather than pushd/popd inside the tape — it's cleaner and won't show up in recordingskb index --full once outside the tape) so the recording shows fast inference--project flag: https://docs.astral.sh/uv/reference/cli/#uv-runWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cajias/claude-skills --plugin cc-authoring16 skills in this plugin
/apm-marketplace-authoring-gotchasEight APM-marketplace-authoring gotchas discovered during real
migrations from hand-authored .claude-plugin/marketplace.json to
APM-managed and from CC-native plugin authoring.
Use when: (1) running APM's packaging step (with or without
`--dry-run`) or its marketplace-check command in a repo with an
`apm.yml`; (2) wiring CI for an APM
marketplace; (3) the CI staleness check (repack, then `git diff
--quiet`) fails despite a clean local; (4) prettier reformats
`marketplace.json` after APM's packer writes it; (5) APM exit code 1 on
local-path-only marketplaces; (6) confused by `packages:` in apm.yml
vs `plugins:` in marketplace.json; (7) commitlint rejects a commit
with `footer-leading-blank` despite no apparent footer; (8) `apm
compile -t claude` exits 0 with zero output and no compiled plugin
appears; (9) husky+lint-staged pre-commit blocks the FIRST marketplace
commit with markdownlint `MD040/fenced-code-language` errors on a
SKILL.md file copied verbatim from `~/.claude/skills/`. The gotchas
form a chain — fixing one usually surfaces the next.
/apm-plugin-distribution-pathsCanonical authoring layout for an APM (microsoft/apm)
package, plus the decision matrix for whether you need a `marketplace:` block.
Use when: (1) you've run `apm init` and are unsure where SKILL.md / agent .md
/ command .md files belong (answer: under `.apm/`, NOT at repo root); (2)
you've authored CC-native files at `commands/agents/skills/` at repo root and
wonder if that's "right" (it works as fallback layout #3 "Claude plugin", but
it's not the canonical authoring path); (3) you're trying to choose between
the three layouts APM recognizes (one-skill repo, multi-primitive `.apm/`,
Claude plugin); (4) `apm targets` fails with "No such command" in CLI 0.12.1
(subcommand doesn't exist); (5) `apm validate` fails with "No such command"
in CLI 0.12.1 (use APM's packaging command in dry-run mode instead); (6) wondering whether
`apm compile -t claude` will generate output for a hand-authored CC-native
plugin (it won't; it's a no-op for layout #3); (7) wondering if you need a
`marketplace:` block in apm.yml (you don't, for a single-plugin repo).
Covers the canonical `.apm/` source layout, the source-to-plugin remap
table, the three-layout choice, and the four distribution paths.