Skip to content

Destynova2/cli-code-skills / cli-forge-demo

cli-forge-demo

Verified

Generate a reproducible live-demo kit for any project: a staged demo script (DEMO.md), deterministic seed and idempotent reset wired into the project's own task runner (make / just / task / npm / ansible / flux / chainsaw — never an imposed .sh), a pre-flight checklist, and a backup recording. Picks the best delivery support for the project (live, terminal GIF via VHS, asciinema cast/SVG, subtitled video, or a self-guided 'next-next' interactive walkthrough) and lets you force one. Tunes dramaturgy to the audience: technique, fonctionnel, commercial, or pédagogique. Use when the user says 'demo', 'démo', 'live demo', 'demo script', 'demo gif', 'record a demo', 'show this off', 'walkthrough', 'interactive tutorial', 'present OpenBao', 'sprint review demo', 'sales demo', 'pitch demo', 'reproducible demo', 'reset demo data', 'seed demo', 'demo magic', 'asciinema', 'vhs tape', 'demo that does not break'. Do NOT use for slide decks (use cli-forge-prez) or for a README (use cli-forge-readme).

FileKindSize
README.mdmarkdown983 B
SKILL.mdskill md15.0 KB
references/anti-patterns.mdmarkdown3.4 KB
references/demo-md-template.mdmarkdown2.3 KB
references/dramaturgy.mdmarkdown3.7 KB
references/gif-video.mdmarkdown3.4 KB
references/interactive.mdmarkdown2.7 KB
references/staging.mdmarkdown4.4 KB
references/tiers.mdmarkdown3.7 KB
references/tooling.mdmarkdown4.1 KB

references/tooling.md

View on GitHub
# Tooling — Runner Detection + Recording Stack

> **When to read:** Step 2 (runner) and Step 4 (support artifact). Golden rule: **meet the project where it lives. Never impose a stray `.sh`.**

## Part A — Detect the runner, emit targets there

Probe the repo root (and one level down) and route to the **first** match:

| Probe | Runner | Targets to add |
|---|---|---|
| `Makefile` / `GNUmakefile` | **make** | `demo`, `demo-seed`, `demo-reset`, `demo-gif` |
| `Taskfile.yml` / `Taskfile.yaml` | **go-task** | `demo:run`, `demo:seed`, `demo:reset`, `demo:gif` |
| `justfile` / `.justfile` | **just** | `demo`, `demo-seed`, `demo-reset` |
| `package.json` with `scripts` | **npm/pnpm/yarn** | `"demo:run"`, `"demo:seed"`, `"demo:reset"` |
| `ansible/` or `*.yml` playbooks | **ansible** | `playbooks/demo.yml` with tags `seed` / `reset` / `run` |
| `flux-system/` or `kustomization.yaml` | **flux/kustomize** | `demo` overlay namespace + seed `Job` + `make` wrapper |
| `*.chainsaw.yaml` / chainsaw configured | **chainsaw** | step assertions for k8s demo (doubles as test) |
| `mise.toml` / `.mise.toml` | **mise** | `[tasks.demo*]` |
| `nix` / `flake.nix` | **nix** | `apps.demo` / a `devShell` demo command |
| **none of the above** | propose one | recommend `make` or `just`; only then a documented POSIX `sh` block, clearly fenced |

### Target contract (whatever the runner)

- **seed** — populate deterministic demo state; idempotent; fixed seed + fixed clock; separate from app seed data.
- **reset** — return to `s0`; idempotent (`reset` twice = same state); fast enough to run between takes.
- **run** — (optional) drive the scripted live run.
- **gif / record** — (optional) render the understudy via the recording stack below.

Example `Makefile` shape (adapt to detected runner):

```make
DEMO := docs/demos/quickstart

demo-seed:    ## deterministic demo data (fixed seed + clock)
	SEED=1337 SOURCE_DATE_EPOCH=1700000000 ./... # project's own data tool

demo-reset:   ## idempotent return to s0
	git checkout -- . && git clean -fdq $(DEMO)/_work || true
	$(MAKE) demo-seed

demo-gif:     ## render the understudy
	vhs $(DEMO)/demo.tape

demo: demo-reset ## run the scripted demo
	# drive beats, or open DEMO.md
```

> Use the project's container/orchestration verbs where relevant: `compose down -v && compose up -d` to reset a stack, `kubectl delete ns demo --wait && kubectl apply -k overlays/demo` for k8s.

## Part B — Recording / delivery stack

### Terminal GIF as code — **VHS** (charmbracelet) — preferred for CLI demos
- `.tape` file = the recording **as code** → GIF / MP4 / WebM / PNG frames.
- Reproducible and reviewable in PRs; can serve as an **integration test** (compare against a golden render).
- Needs `ttyd` + `ffmpeg` on PATH.
- See `gif-video.md` for tape syntax, sizing, and caption patterns.

### Terminal recording — **asciinema**
- `asciinema rec demo.cast` → lightweight text `.cast`.
- Convert: **`agg`** → animated GIF; **`svg-term-cli`** / **`termsvg`** / **termtosvg** → animated SVG for READMEs (selectable text, tiny).
- `asciinema-scripted` (YAML) for fully scripted casts.
- The `.cast` is an excellent **understudy**: plays in a terminal or embeds on a page, no video weight.

### Scripted live typing — **demo-magic** (only if the project has no better runner)
- `pe`/`pei` simulate typing then run on ENTER; `Hide`/`Show` equivalents for backstage setup.
- Prefer wiring the live run into the project's runner; reach for demo-magic only as a portable fallback.

### Video + subtitles
- Any screen recorder for GUI/web demos (VHS is terminal-only).
- **Always** ship a `.vtt` (WebVTT) caption track — accessibility is non-negotiable. Keep captions ≤ 2 lines, synced to beats.

## Decision: gif vs cast vs video

| Want | Use |
|---|---|
| Reproducible, scripted, terminal, in CI | **VHS** `.tape` |
| Tiny, selectable-text, README embed | **asciinema** → `svg-term` |
| Quick share, terminal, no setup | **asciinema** → `agg` GIF |
| GUI / web / spoken narration | **screencast + WebVTT** |

When unsure and the demo is terminal-based: **VHS**. It is the most reproducible and the only one that doubles as a test.
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall