gentleman-system

Detect the operating environment and route installer commands to the correct execution runner.

2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/kurojs/EnderDots --skill gentleman-system-kurojs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gentleman-system
Source: https://github.com/kurojs/EnderDots/tree/main/.config/opencode/skills/gentleman-system
Command: npx skills add https://github.com/kurojs/EnderDots --skill gentleman-system-kurojs

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about gentleman-system

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

FAQPage Schema
How do I detect whether my script is running on Termux, macOS, or Linux?

This skill routes commands through the safest appropriate runner for the context, automatically choosing between plain execution, logged execution, sudo-backed execution, and Termux pkg execution.

How do I route installer commands to the correct package manager across different operating systems?

Installer automation routes commands through the safest appropriate runner for context, selecting pacman with sudo, Homebrew on macOS, or pkg on Termux to ensure installers behave correctly across platforms.

How do I add support for a new operating system to an existing installer workflow?

To add new OS support, extend the OSType enum, implement the detection function, place it correctly in the Detect() priority order, and wire the new OS branch into the installer.go execution steps.

Can I emit real-time logs during command execution and system detection?

Yes, the deterministic execution function selection supports optional real-time logs, emitting step logs when requested during installer execution and system tool existence checks.

Does environment-aware command execution work for backup and restore operations?

Yes, the skill provides a decision tree for implementing backup and restore operations using consistent system primitives and correct execution strategy selection across detected environments.