What problem does it solve?
This Skill solves the challenge of implementing stable, multi-session terminal experiences that correctly render streamed ANSI output and keep sessions isolated from one another.
Core Features & Use Cases
- Three-layer PTY terminal design: Connects a browser UI (xterm.js) to the server event/routing layer and then to a dedicated PTY-backed CLI layer for each session.
- Production-ready PTY spawn configuration: Specifies TERM/ENV settings, terminal size, and working directory wiring to ensure correct colors, resizing behavior, and consistent runtime behavior.
- Session robustness controls: Covers circular output buffering to prevent memory leaks, graceful shutdown to avoid zombies, and worktree isolation to prevent concurrent session conflicts.
Quick Start
Use the pty-architecture Skill to generate an implementation plan for a PTY-backed multi-session terminal that uses node-pty, stream parsing, and isolated per-session working directories.