Skip to content
Back to skills

Terminal Docs

ASecurity

Reference terminal documentation for TTY/PTY, streams, signals, and cross-platform patterns

  • 35 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmentpythongoshellbashdebuggingsecuritydocumentation

Works with

  • cursor
  • terminal

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add mwguerra/claude-code-plugins --skill terminal-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Terminal Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Terminal Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mwguerra-terminal-docs/badge)](https://www.skillsdirectory.com/skills/mwguerra-terminal-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: terminal-docs
description: Reference terminal documentation for TTY/PTY, streams, signals, and cross-platform patterns
---

# Terminal Documentation Reference Skill

## Overview

This skill provides access to comprehensive terminal and shell systems documentation. Use this skill to look up exact configurations, code patterns, and best practices for terminal-related development.

## Documentation Location

All documentation is stored in:
`/home/mwguerra/projects/mwguerra/claude-code-plugins/terminal-specialist/skills/terminal-docs/references/`

## Directory Structure

```
references/
├── 01-fundamentals.md      # TTY/PTY concepts, terminal stack, device files
├── 02-streams.md           # stdin, stdout, stderr, buffering behavior
├── 03-exit-codes.md        # Exit status, POSIX codes, signal exits
├── 04-shells.md            # Shell types, startup files, options
├── 05-dimensions.md        # Terminal size, SIGWINCH, resize handling
├── 06-modes.md             # Canonical/raw mode, termios flags
├── 07-job-control.md       # Sessions, process groups, background jobs
├── 08-environment.md       # TERM, PATH, locale, prompt variables
├── 09-signals.md           # Signal handling, keyboard signals
├── 10-escape-sequences.md  # ANSI codes, colors, cursor control
├── 11-redirection.md       # Pipes, file descriptors, here docs
├── 12-windows.md           # Windows console, ConPTY, PowerShell
├── 13-cross-platform.md    # Portable patterns, platform differences
└── 14-advanced.md          # tmux, screen, recording, graphics
```

## Usage

### When to Use This Skill

1. Before implementing terminal-related functionality
2. When debugging I/O or stream issues
3. To verify correct escape sequence syntax
4. To understand terminal mode behavior
5. For signal handling patterns
6. For cross-platform compatibility guidance

### Search Workflow

1. **Identify Topic**: Determine what documentation is needed
2. **Navigate to File**: Go to relevant documentation file
3. **Read Documentation**: Extract exact patterns
4. **Apply Knowledge**: Use in implementation

### Common Lookups

| Topic | File |
|-------|------|
| Terminal architecture | `01-fundamentals.md` |
| Stream buffering | `02-streams.md` |
| Exit codes | `03-exit-codes.md` |
| Shell configuration | `04-shells.md` |
| Terminal size | `05-dimensions.md` |
| Raw mode | `06-modes.md` |
| Job control | `07-job-control.md` |
| Environment variables | `08-environment.md` |
| Signal handling | `09-signals.md` |
| ANSI escape codes | `10-escape-sequences.md` |
| Pipes and redirection | `11-redirection.md` |
| Windows console | `12-windows.md` |
| Cross-platform | `13-cross-platform.md` |
| Multiplexers | `14-advanced.md` |

## Documentation Reading Pattern

When reading documentation:

1. **Find the right file**: Match topic to documentation file
2. **Read the overview**: Understand the concept
3. **Extract code examples**: Copy exact patterns
4. **Note platform specifics**: Consider Unix/Windows differences
5. **Check best practices**: Apply safety and portability tips

## Example Usage

### Looking up ANSI Color Codes

1. Navigate to `10-escape-sequences.md`
2. Find Colors section
3. Extract:
   - 4-bit color codes (30-37, 40-47)
   - 256-color format
   - True color format
   - tput commands

### Looking up Signal Handling

1. Navigate to `09-signals.md`
2. Find relevant section (Bash, C, Python)
3. Extract:
   - Signal handler setup
   - Signal-safe patterns
   - Cleanup handlers

### Looking up Cross-Platform Input

1. Navigate to `13-cross-platform.md`
2. Find Key Input section
3. Extract:
   - Unix termios pattern
   - Windows msvcrt pattern
   - Platform detection code

## Output

After reading documentation, provide:

1. **Exact code pattern** from docs
2. **Platform considerations**
3. **Best practices noted**
4. **Safety/security notes**
5. **Alternative approaches if applicable**

Files in this skill

  • SKILL.md3.9 KB
  • references/01-fundamentals.md18.5 KB
  • references/02-streams.md4.7 KB
  • references/03-exit-codes.md4.6 KB
  • references/04-shells.md5.8 KB
  • references/05-dimensions.md11.9 KB
  • references/06-modes.md6.1 KB
  • references/07-job-control.md6.5 KB
  • references/08-environment.md5.5 KB
  • references/09-signals.md5.9 KB
  • references/10-escape-sequences.md7 KB
  • references/11-redirection.md5.4 KB
  • references/12-windows.md7.4 KB
  • references/13-cross-platform.md7.4 KB
  • references/14-advanced.md6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.