System Controller: Delegating Linux Desktop and Hardware Control to Agents

Preface

In environments such as Cursor and Claude Code, Agents excel at reading/writing code and running terminal commands. However, once a task involves local machine operations like switching windows, adjusting volume, clicking UI elements, reading serial ports, or calling Home Assistant, the Agent often can only offer a list of suggestions, leaving you to perform the actual actions yourself. The System Controller introduced below is a Linux system control Skill published by @user_e02e04b8 on SkillHub (the list page name is Linux System Controller, and the package metadata name is system-controller). It uses a set of independently callable Python CLIs to unify window, process, hardware, serial, IoT, and GUI automation into a single entry point, enabling the Agent to directly execute scripts according to the rules in SKILL.md rather than stopping at verbal guidance.

The official URL in the task clue, https://api.skillhub.cn/user_e02e04b8/system-controller, currently responds with HTTP 405, so its content cannot be fetched directly. The features, commands, and dependencies described below are based on the SkillHub installation instructions and the documentation of the same-named Skill synced from the 360 Security Skill Center. The human-readable SkillHub list page is: https://skillhub.cn/skills/user_e02e04b8/linux-system-controller.

What Is This

System Controller is positioned as a Unified Linux System Control Interface: it supports comprehensive control of desktop applications, system hardware, serial devices, and IoT platforms. It is published by SkillHub user user_e02e04b8 and categorized under it-ops-security (IT Operations & Security) on SkillHub. The platform displays approximately 470 downloads (based on the SkillHub statistics you provided).

The overall workflow can be summarized as: user natural language request → Agent understands intent → calls the corresponding Python script under scripts/ → completes system operations on the local machine.

Core Features

The Skill divides its capabilities into six modules, each corresponding to an independent CLI script, with no dependencies between scripts.

Module Script Functional Scope
Window Manager scripts/window_manager.py Desktop window control
Process Manager scripts/process_manager.py System process management
Hardware Controller scripts/hardware_controller.py Volume, brightness, power, network, USB, etc.
Serial Communication scripts/serial_comm.py Arduino / serial devices
IoT Controller scripts/iot_controller.py Home Assistant, generic HTTP, Mijia guidance
GUI Controller scripts/gui_controller.py Mouse, keyboard, screenshots, OCR, image recognition

Window Manager: Based on xdotool and wmctrl, supports list, activate, close, minimize, maximize, resize, move, etc.; the documentation requires running list before closing or focusing windows.

Process Manager: list, kill, start, info, system; before terminating a process, you should query it by name and confirm first.

Hardware Controller: Volume (get/set/mute/unmute), screen brightness, power (lock/sleep/hibernate/shutdown/restart), network and WiFi, USB listing, etc.; destructive operations such as shutdown, restart, and sleep require user confirmation.

Serial Communication: List ports, send/receive, chat, monitor; before operating, run list to confirm the port.

IoT Controller: Home Assistant REST (requires URL and token), generic HTTP GET/POST/PUT; for smart home scenarios, the user provides endpoints and credentials.

GUI Controller: Mouse move/click/drag/scroll, keyboard input and hotkeys, fullscreen/region/active-window screenshots, OCR (depends on tesseract-ocr), find and click by template or color, etc.; enables pyautogui failsafe (moving the mouse to a screen corner can abort operations).

When the requested device or software is not covered by the above modules, SKILL.md suggests trying in order: process startup → window list → fullscreen screenshot → OCR → image click → direct mouse/keyboard control → HTTP API → USB/serial list, and then explaining the limitations.

Installation & Activation

Environment Requirements

  • OS: Linux (supports X11 / Wayland)
  • Python: 3.6+
  • System tools (required items listed in the documentation): xdotool, wmctrl, tesseract-ocr, alsa-utils

The dependency declarations in the Metadata are as follows (satisfy them locally per the instructions after installing the Skill):

{
  "python": [
    "pyserial>=3.5",
    "requests>=2.28.0",
    "pyautogui>=0.9.54",
    "pillow>=9.0.0",
    "pytesseract>=0.3.10"
  ],
  "system": [
    "apt-get update && apt-get install -y xdotool wmctrl tesseract-ocr alsa-utils"
  ]
}

Installation via SkillHub

First, check or install the skillhub CLI according to SkillHub Installation and Priority Source Configuration. When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.

The installation prompt the official provides to the Agent is:

请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_e02e04b8/linux-system-controller`。

An equivalent manual CLI example (replace <skills directory> with your current client’s path):

command -v skillhub && skillhub --version
skillhub install @user_e02e04b8/linux-system-controller --dir <skills 目录>

Common clients’ skills directories (excerpted from the SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, ask the Agent in your conversation to read the Skill’s SKILL.md when tasks involve local machine control, and invoke scripts according to the safety rules within it.

Other Channels (Optional)

The 360 Security Skill Center provides a same-named linux-system-controller entry and gives another installation command: npx secure-skills-cli add linux-system-controller. If you use the SkillHub package @user_e02e04b8/linux-system-controller as the primary source, it is recommended to prefer the skillhub install from the previous section to avoid version differences when mixing different publishing sources.

Typical Usage

All scripts uniformly adopt a “subcommand + arguments” pattern and are executed from the Skill root directory:

python3 scripts/<script_name>.py <action> [flags]

The following example groups are all taken from the official SKILL documentation and can be reproduced directly on a machine with the dependencies installed.

Windows & Processes

python3 scripts/process_manager.py start "gedit"
python3 scripts/window_manager.py list
python3 scripts/window_manager.py activate --title "WeChat"
python3 scripts/process_manager.py kill --name gedit

Hardware

python3 scripts/hardware_controller.py volume set --level 50
python3 scripts/hardware_controller.py volume mute
python3 scripts/hardware_controller.py screen brightness --level 30
python3 scripts/hardware_controller.py power lock

Serial Ports

python3 scripts/serial_comm.py list
python3 scripts/serial_comm.py send --port /dev/ttyUSB0 --data "LED_ON"

Home Assistant (replace URL and token)

python3 scripts/iot_controller.py homeassistant --url <HA_URL> --token <TOKEN> list
python3 scripts/iot_controller.py homeassistant --url <HA_URL> --token <TOKEN> on --entity-id light.living_room

GUI & OCR

python3 scripts/gui_controller.py screenshot full
python3 scripts/gui_controller.py mouse click --x 500 --y 300
python3 scripts/gui_controller.py keyboard type --text "Hello World"
python3 scripts/gui_controller.py visual ocr

More complete subcommand documentation is in references/command_reference.md inside the Skill package.

Use Cases & Caveats

Who It’s For

  • Users running operations, automated testing, and desktop assistance tasks with an Agent on a Linux workstation
  • Teams that need to combine windows/processes/hardware/serial/smart home/GUI into a single conversational workflow instead of hand-writing scattered shell commands

Limitations & Risks

  1. Platform: Oriented toward Linux graphical desktops; some xdotool capabilities may be limited under Wayland and must be tested in the target environment.
  2. Security: The Skill explicitly requires confirmation before shutdown, restart, killing processes, closing windows, disabling network interfaces, etc.; GUI scripts can affect any area of the current screen, so take a screenshot first when uncertain.
  3. Permissions: Volume, network, power, and serial device operations usually require corresponding user permissions or udev rules.
  4. IoT: Home Assistant and HTTP calls send requests to user-provided addresses; do not put tokens and internal network addresses into public repositories.
  5. Dependencies: OCR quality depends on tesseract-ocr and screen resolution; image matching requires you to provide template file paths.

Conclusion

System Controller breaks down common Linux “desktop + hardware + serial + IoT + GUI” control into six independent CLIs and pairs them with execution and safety rules on the Agent side, making it suitable as an it-ops-security Skill attached to clients like Cursor to drive local machine operations via natural language. Official API entry: https://api.skillhub.cn/user_e02e04b8/system-controller; the list page and installation instructions are also accessible via https://skillhub.cn/skills/user_e02e04b8/linux-system-controller and https://skillhub.cn/install/skillhub.md.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye