audio-generation
Guide to audio generation and understanding in MassGen. Covers text-to-speech, music, sound…
Develop and debug the MassGen Textual TUI with deterministic replay, snapshot regression tests, and targeted runtime checks.
$ npx -y skills add massgen/massgen --skill textual-ui-developer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/textual-ui-developerContext preview
The summary Claude sees to decide when to auto-load this skill.
Develop and debug the MassGen Textual TUI with deterministic replay, snapshot regression tests, and targeted runtime checks.
name: textual-ui-developer description: Develop and debug the MassGen Textual TUI with deterministic replay, snapshot regression tests, and targeted runtime checks.
Use this skill to improve the MassGen Textual UI while minimizing flaky reproduction and API cost.
Prefer deterministic workflows before live model runs:
1. Reproduce from recorded/synthetic events (`events.jsonl`) with no API calls. 2. Confirm behavior in the real shell using `--tui-real`. 3. Encode findings into tests (unit, transcript golden, snapshot). 4. Use live `massgen --display textual` or `--textual-serve` only when needed.
# Full frontend/TUI test suite uv run pytest massgen/tests/frontend -q # Timeline transcript goldens uv run pytest massgen/tests/frontend/test_timeline_transcript_golden.py -q UPDATE_GOLDENS=1 uv run pytest massgen/tests/frontend/test_timeline_transcript_golden.py -q # Snapshot scaffold tests uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py -q uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py --snapshot-update -q uv run pytest massgen/tests/frontend/test_timeline_snapshot_scaffold.py -q --snapshot-report snapshot_report.html uv run python scripts/render_snapshot_svgs.py --real-tui-only # Event replay (no API cost) uv run python scripts/dump_timeline_from_events.py /path/to/events.jsonl [agent_id] uv run python scripts/dump_timeline_from_events.py --tui /path/to/events.jsonl [agent_id] uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl [agent_id] # Example synthetic fixture uv run python scripts/dump_timeline_from_events.py --tui-real massgen/tests/frontend/fixtures/synthetic_tui_events.jsonl agent_a
Start with transcript replay to verify timeline semantics quickly:
uv run python scripts/dump_timeline_from_events.py /path/to/events.jsonl agent_a
Then inspect visually:
# Lightweight timeline-focused view uv run python scripts/dump_timeline_from_events.py --tui /path/to/events.jsonl agent_a # Full runtime TextualApp shell uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl agent_a
Optional speed control for real replay:
MASSGEN_TUI_REPLAY_SPEED=8 uv run python scripts/dump_timeline_from_events.py --tui-real /path/to/events.jsonl agent_a
Exit replay with `q`.
Pick the narrowest layer that captures the bug:
When iterating specifically on final-answer visualization:
1. Validate header semantics in unit tests (winner line, tie-break markers, vote line formatting) in `test_timeline_section_widget.py`. 2. Regenerate only final-presentation snapshots if intended UI changed:
3. Verify runtime shell appearance with no API cost:
4. Run full frontend suite before finalizing:
If snapshot tests mismatch:
1. Open `snapshot_report.html`. 2. Check `Show difference` toggle interpretation:
3. If change is intentional, regenerate with `--snapshot-update`. 4. Re-run the frontend suite to confirm stability.
For visual/UI tasks, do not rely on test pass/fail alone. You must read screenshots directly before finalizing:
1. Review the snapshot images in `snapshot_report.html` (current vs historical). 2. Keep `Show difference` OFF first to verify raw rendering; then optionally use ON for pixel-level drift. 3. If screenshots are provided in chat/task context, inspect those images directly and compare against expected runtime appearance. 4. If your viewer cannot open `.svg`, render via browser engine:
5. Call out any mismatch between rendered snapshots and expected real TUI look, even if tests pass. 6. Only conclude "visual change verified" after explicit screenshot review.
Use live runs only after deterministic checks pass:
# Native terminal TUI uv run massgen --display textual # Browser-hosted Textual uv run massgen --textual-serve
🚀 MassGen is an open-source multi-agent scaling system that runs in your terminal, autonomously orchestrating frontier models and agents to collaborate, reason, and produce high-quality results. | Join us on Discord: discord.massgen.ai
Guide to audio generation and understanding in MassGen. Covers text-to-speech, music, sound…
Complete guide for integrating a new LLM backend into MassGen. Use when adding a new provider…
Guide for creating evolving skills - detailed workflow plans that capture what you'll do,…
This skill should be used when agents need to search codebases for text patterns or…
Guide to image generation and editing in MassGen. Use when creating images, editing existing…
Guide for creating properly structured YAML configuration files for MassGen. This skill…