What problem does it solve?
It eliminates brittle, manual OS-specific setup by automatically detecting the running environment and choosing the correct command execution pathway.
Core Features & Use Cases
- Cross-platform OS detection: Identifies Termux first, then maps runtime/host details into an internal OS type and system info (including HomeDir, shell, architecture hints, and tooling availability like Brew/Pkg).
- Correct execution strategy selection: Routes commands through the safest appropriate runner for context, including plain execution, logged execution, sudo-backed execution, and Termux pkg execution.
- Installer decision support: Provides a clear decision tree for adding new OS support (extend enum, add detection, update priority, and wire installer steps) and for implementing backup/restore operations using consistent system primitives.
- Use case: When an installer needs to install prerequisites, this skill helps you decide whether to use pacman with sudo, Homebrew on macOS, or pkg on Termux, while also emitting step logs when requested.
Quick Start
Ask the AI to update Gentleman.Dots system detection to support a new OS by extending the OSType enum, implementing the detection function, placing it correctly in the Detect() priority order, and wiring the new OS branch into installer.go execution steps.