Skip to content

Skills use Docker-only tools (serviceRestart/serviceLogs) on systemd services #104

Closed

Description

@TMHSDigital

Summary

Several skills tell the agent to use the Docker-only tools (homelab_serviceRestart, homelab_serviceLogs) on native systemd services such as sshd, fail2ban, smbd, and the restic timer. Those calls fail or report the wrong state.

Where

  • skills/ssh-management/SKILL.md:31,42,74,92-93
  • skills/security-hardening/SKILL.md:71,74,136-137
  • skills/storage-management/SKILL.md:128-129
  • skills/backup-recovery/SKILL.md:65
  • skills/ansible-workflows/SKILL.md:111-112
  • Tool behavior: homelab_serviceRestart runs docker restart (mcp-server/src/tools/serviceRestart.ts:24); homelab_serviceLogs runs docker logs (serviceLogs.ts:26)

Details

Examples from the skills:

  • "Restart sshd via homelab_serviceRestart"
  • restarting fail2ban and smbd, which run natively according to CLAUDE.md
  • "Monitor progress via homelab_serviceLogs on the backup service", although restic runs as a systemd timer

Impact

During SSH, firewall, Samba, and backup work, the agent calls tools that cannot succeed.

Suggested fix

  • For logs of native services, point to homelab_journalLogs with a unit filter.
  • For status, point to homelab_systemdServices.
  • For restarts, either document homelab_nodeExec with systemctl restart <unit> and confirm: true, or add a gated systemd restart tool.

Acceptance criteria

  • No skill uses serviceRestart or serviceLogs for non-container services

Getting started

  • Relevant files: the SKILL.md files listed above
  • How to run tests: pytest tests/ -v

Filed by repo-audit/full-audit at 9cfe5e3. Severity: medium. Effort: M. audit-key: documentation|skills/ssh-management/SKILL.md|homelab_serviceRestart

Activity

  1. added
    documentation
    help wanted
    severity: medium
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationhelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions