pty-handling

Spawn and manage PTY sessions with I/O streaming and shell wrapping.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/bermudi/skills --skill pty-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pty-handling
Source: https://github.com/bermudi/skills/tree/main/pty-handling
Command: npx skills add https://github.com/bermudi/skills --skill pty-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PTY Handling provides a cohesive toolkit to manage interactive terminal processes, enabling reliable spawning, I/O streaming, and environment isolation for terminal-based applications such as coding agents and REPLs.

Core Features & Use Cases

  • PTY session spawning across platforms using node-pty or Python equivalents
  • Shell detection and wrapping for zsh and bash to ensure proper command formatting
  • Robust lifecycle management with signals and clean termination
  • Fine-grained PTY dimension control and environment isolation for deterministic behavior
  • Debugging of common PTY errors like EBADF, ENOENT, or zombie processes in long-running tasks

Quick Start

Launch a PTY session and interact with a shell, streaming input and output in real time.

Frequently Asked Questions about pty-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I spawn an interactive shell process with proper I/O streaming?

PTY process management enables interactive shell applications to spawn terminal sessions with real-time I/O streaming and environment isolation. It uses node-pty or Python equivalents to coordinate process lifecycle, shell detection, and clean termination across coding agents and REPLs.

Why does my PTY process leave zombie processes during long-running terminal tasks?

Zombie processes in PTY sessions result from improper lifecycle management and signal handling during long-running terminal tasks. This Skill provides robust process termination with signals and debugging for common PTY errors like EBADF, ENOENT, and zombie processes.

Can I use node-pty for shell wrapping with zsh and bash?

Yes, node-pty supports shell wrapping for zsh and bash to ensure proper command formatting. This Skill applies shell detection and wrapping across platforms, enabling reliable PTY session spawning with configurable dimensions and environment isolation for deterministic behavior.

What's the best way to manage PTY dimensions and environment isolation for deterministic shell behavior?

Managing PTY dimensions and environment isolation requires fine-grained control over terminal configuration. This Skill provides configurable dimensions and isolated environments to ensure deterministic behavior across interactive shell applications, coding agents, and REPLs.

Does PTY handling work across different platforms for spawning terminal processes?

PTY handling works across platforms using node-pty or Python equivalents for spawning terminal processes. It coordinates PTY-based process management with proper I/O streaming, shell detection for zsh and bash, and lifecycle control with signals for interactive shell applications.

How do I debug common PTY errors like EBADF or ENOENT in interactive terminal applications?

Debugging common PTY errors like EBADF or ENOENT requires robust lifecycle management and proper I/O streaming in interactive terminal applications. This Skill provides tools to debug these errors and handle zombie processes in long-running PTY tasks with configurable environments.