terminal-expert

Guide terminal implementation in VS Code extensions using xterm.js and PTY integration.

Updated May 16, 2026
One-click install
npx skills add https://github.com/LuminairPrime/skill-tree-chopper --skill terminal-expert-luminairprime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-expert
Source: https://github.com/LuminairPrime/skill-tree-chopper/tree/main/vendors/s-hiraokuvscode-sidebar-terminal/.claude/skills/terminal-expert
Command: npx skills add https://github.com/LuminairPrime/skill-tree-chopper --skill terminal-expert-luminairprime

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @xterm/xterm, @xterm/addon-fit, @xterm/addon-webgl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill provides comprehensive knowledge and expert-level guidance for implementing terminal features in VS Code extensions, addressing the challenges of terminal architecture, PTY integration, and performance optimization.

Core Features & Use Cases

  • Unified Expert-Level Guidance: Covers terminal implementation details for xterm.js API and addons, VS Code terminal architecture, PTY integration, session persistence, input handling, and shell integration.
  • Use Case: Ideal for developers who need to implement advanced terminal features in VS Code extensions, ensuring consistency with the official VS Code terminal implementation.

Quick Start

To set up a basic terminal in your VS Code extension using this skill, include the following in your code: import { Terminal } from '@xterm/xterm'; const terminal = new Terminal({}); terminal.open(document.body);

Frequently Asked Questions about terminal-expert

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

FAQPage Schema
How do I integrate xterm.js into a VS Code extension terminal?

VS Code terminal session persistence involves maintaining PTY processes across extension reloads by reconnecting the xterm.js frontend to existing backend processes. This skill covers expert techniques for implementing session persistence and consistent shell integration.

What is the best way to handle PTY integration for VS Code terminals?

PTY integration for VS Code terminals is best handled by bridging the xterm.js frontend with a pseudo-terminal process, managing input handling, and ensuring performance optimization. This skill delivers expert-level guidance on architecting this PTY integration reliably.

Do I need xterm.js addons to optimize terminal rendering in VS Code?

You need xterm.js addons like @xterm/addon-fit for dimension matching and @xterm/addon-webgl for hardware-accelerated rendering to optimize terminal performance in VS Code. This skill explains how to leverage these dependencies for advanced terminal implementations.

Can I implement shell integration and session persistence in a VS Code extension terminal?

Implementing shell integration and session persistence in a VS Code extension terminal is possible by managing PTY lifecycle events and state recovery through the xterm.js API. This skill provides the necessary expert guidance for these advanced features.

Why does my VS Code terminal implementation have performance issues with xterm.js?

Terminal performance issues in VS Code often stem from missing @xterm/addon-webgl rendering, improper PTY data handling, or lack of @xterm/addon-fit configuration. This skill offers expert guidance on performance optimization and terminal architecture consistency.