Back to Skills

system-service-ops

systemd service 诊断 workflow:read-first 地查看 status、journal 与最近故障。

ProductivityIntermediateexec_command

Install this agent skill to your local

Open in App
skillsy install hypoxanthineovo/hypoxanthine-agent@system-service-ops
Quick Stats
v1
Updated Jun 3, 2026
Added Jun 3, 2026
SKILL.md

System Service Ops 使用指南

定位 (Positioning)

system-service-opssystemd service 的 read-first 诊断 workflow,用于在提出动作建议前先核实状态和日志。

适用场景 (Use When)

  • 用户要查看某个 service 的当前状态、最近报错或是否需要 restart。
  • 问题处于服务层,而不是整机资源层。

工具与接口 (Tools)

  • 通过 exec_command 运行 systemctljournalctl,并受 exec_profile=systemd 约束。

标准流程 (Workflow)

  1. 运行 systemctl status <service> 查看当前状态。
  2. 运行 journalctl -u <service> --since "5 min ago" 或合适时间窗查看近期日志。
  3. 总结状态、最近故障和后续动作建议。

边界与风险 (Guardrails)

  • 默认保持只读。
  • 不要直接执行 stopdisableshutdownreboot
  • 如果判断可能需要 restart,先解释影响,再等待用户明确请求,或切换到明确允许重启动作的专用 skill。