Skip to content
kakahu2015Public

About

SSH remote management skill with ControlMaster connection reuse, Python-assisted automation, batch execution, auditing, and safety controls for AI agents.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

SSH/Linux Ops Skill v3

OpenClaw's general-purpose Linux operations skill. SKILL.md is authoritative.

Purpose

Composable, auditable, gated Linux primitives for remote ops. The Agent owns diagnosis and decisions; the skill owns boundaries, gates, audit, and rollback hooks.

Client Integrations

  • OpenClaw: agent bundle in opencalw/.
  • Codex CLI: local adapter in codex/SKILL.md.
  • Observed local versions: see the version record. Codex CLI, OpenClaw, and the Linux Ops skill have separate version numbers.

License

Copyright (C) 2026 kaka. This project is licensed under the GNU General Public License version 3 only (GPL-3.0-only). See LICENSE or the official license text.

Quick Start

Key rule: hosts.yaml contains aliases; real host values live in .secrets; the runtime maps them automatically.

  • Alias = the name written in hosts.yaml.
  • Real value = the actual host address and key path loaded by the runtime.
  • The runtime first loads the matching real value, then falls back to the alias entry.

/keys/<name> in hosts.yaml is only sample notation. A real /keys mount is not required.

cp hosts.example.yaml hosts.yaml
mkdir -p .secrets
cp .secrets/host.env.example .secrets/demo-host-01.env   # sample alias file; runtime resolves the matching value
bash scripts/validate_hosts.sh hosts.yaml --allow-real-hosts

For Agent-run work, use decision record + gate:

python3 scripts/validate_decision.py examples/decision-record.observe.json --quiet
python3 scripts/validate_autonomy.py autonomy.example.yaml --quiet
bash scripts/agent_gate.sh --decision examples/decision-record.observe.json --policy autonomy.example.yaml --dry-run
bash scripts/agent_gate.sh --decision examples/decision-record.observe.json --policy autonomy.example.yaml --execute

Direct primitive examples are for manual troubleshooting reference only:

bash scripts/sys.sh demo-host-01 summary
bash scripts/composite.sh demo-host-01 quick

Directory Map

  • SKILL.md: authoritative rules
  • scripts/: primitives, gate, validators
  • schemas/: decision, audit, result schemas
  • examples/: sample decision records
  • docs/: historical notes and design background

About

SSH remote management skill with ControlMaster connection reuse, Python-assisted automation, batch execution, auditing, and safety controls for AI agents.

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages