{"data":{"slug":"discovered-4cd5899221af07051e7143425e9344a32528764a0bc48a3f","title":"Tui Demo","summary":"Record terminal user interfaces (TUIs) with fictional data and generate animated GIFs for GitHub READMEs, release notes, and pull requests. Use for TUI walkthroughs, asciinema casts, and repeatable documentation recordings.","url":"https:\/\/skillshunter.net\/skills\/discovered-4cd5899221af07051e7143425e9344a32528764a0bc48a3f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-4cd5899221af07051e7143425e9344a32528764a0bc48a3f","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-4cd5899221af07051e7143425e9344a32528764a0bc48a3f.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-4cd5899221af07051e7143425e9344a32528764a0bc48a3f\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the binary is run in offline demo mode or against a local fixture to avoid capturing real credentials or personal details. Prepare a JSON file specifying keystrokes and delays for scripted walkthroughs.","instructions":"---\nname: tui-demo\ndescription: Record real terminal interfaces with fictional data and produce animated GIFs for GitHub READMEs, release notes, and pull requests. Use for TUI walkthroughs, asciinema casts, and repeatable documentation recordings.\n---\n\n# Record a TUI demonstration\n\n1. Run the real binary against its offline demo mode or a local fixture. Use\n   fictional records and keep credentials, live hostnames and personal details\n   out of the capture.\n2. Choose a short workflow with a visible result. Show the starting screen, the\n   relevant navigation and the result. Start near 100 columns by 26 rows.\n3. Record manually with `asciinema rec` or use [record.py](scripts\/record.py)\n   for repeatable keystrokes on macOS or Linux. The script writes an asciicast\n   v2 file from a JSON array. Each step has `keys`, `hold` in seconds and\n   optional `expect` text from the output. Terminal cursor sequences can split\n   words, so check a distinctive fragment.\n4. Render with `agg` and an idle limit at least as long as the longest pause.\n   For scripted casts, pass the recorded final pause explicitly. The renderer\n   coalesces identical frames.\n5. Inspect the opening, key intermediate screens and ending. Check labels,\n   borders, the visible result and the loop.\n6. Put the GIF in the repository\u2019s docs assets and embed it in the README with\n   a relative path, descriptive alt text and the demo command. Verify the\n   GitHub README after publishing.\n\n## Record a scripted walkthrough\n\nThis JSON presses Enter and waits 1.5 seconds.\n\n```json\n[{\"keys\":\"\\r\",\"hold\":1.5,\"expect\":\"Details\"}]\n```\n\n```sh\npython3 scripts\/record.py --ready \"Demo mode\" --steps walkthrough.json \\\n  --output demo.cast -- .\/target\/debug\/example --demo\n```\n\nUse the [Zitadel walkthrough](references\/zitadel-walkthrough.json) with\n`zitadel-tui --demo` and `--ready Northwind` to reproduce the README example.\n\n## Render a scripted cast\n\nUse the terminal reset timestamp and the preceding output timestamp to\ncalculate the final frame delay.\n\n```sh\nhold=$(python3 -c '\nimport json, sys\nwith open(sys.argv[1]) as cast:\n    next(cast)\n    events = [json.loads(line) for line in cast]\nprint(max(0.1, events[-1][0] - events[-2][0]))\n' demo.cast)\nagg --theme github-dark --font-size 15 --idle-time-limit 10 --fps-cap 12 \\\n  --last-frame-duration \"$hold\" demo.cast demo.gif\n```\n","use_cases":["Create animated GIFs for GitHub READMEs","Generate asciinema casts for TUI walkthroughs","Produce repeatable documentation recordings for software demonstrations"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/damacus\/skills\/blob\/5706f70c0058822adf29da9bd7620c7ea780b9d6\/skills\/tui\/tui-demo\/SKILL.md","source_commit":"5706f70c0058822adf29da9bd7620c7ea780b9d6","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:54:46.000000Z","updated_at":"2026-12-02T09:15:01.000000Z","seo_title":"Record Terminal UI Demos and Generate GIFs for GitHub","seo_description":"Record terminal user interfaces with fictional data and generate animated GIFs for GitHub READMEs, release notes, and pull requests using Tui Demo.","seo_keywords":["terminal demo","tui walkthrough","asciinema cast","github gif","software documentation"]}}