terminal-docs
Reference terminal documentation for TTY/PTY, streams, signals, and cross-platform patterns
What this skill does
# 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**
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.