Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Alma Linux Remote Plugin

ASecurity

Remote Linux management for Alma via SSH/SFTP with persistent stateful SSH sessions, thread-session binding, NL-to-command bridge, xterm.js websocket terminal bridge, dangerous-command approval flow, strict command policy option, host-key verification modes, RBAC allowlist, and SIEM-friendly redacted audit fields.

207 stars
0 votes
0 copies
0 views
Added 9/4/2026
toolspythonshellbashgit

Works with

terminalcli

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill alma-linux-remote-plugin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Alma Linux Remote Plugin?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Alma Linux Remote Plugin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-alma-linux-remote-plugin/badge)](https://www.skillsdirectory.com/skills/neversight-alma-linux-remote-plugin)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: alma-linux-remote-plugin
description: Remote Linux management for Alma via SSH/SFTP with persistent stateful SSH sessions, thread-session binding, NL-to-command bridge, xterm.js websocket terminal bridge, dangerous-command approval flow, strict command policy option, host-key verification modes, RBAC allowlist, and SIEM-friendly redacted audit fields.
allowed-tools:
  - Bash
  - Read
  - Write
---

# Alma Linux Remote Plugin

Use this project to manage remote Linux hosts from Alma with safety controls.

## Capabilities

- SSH connection test
- Single/batch command execution
  - Primary tools: `run_command`, `run_batch`
  - Compatibility aliases: `execute_command`, `execute_batch`
- Upload/download files via SFTP
- Service status and journal logs
- Dangerous command protection:
  - Manual approval workflow (`approval_id`)
  - Operator RBAC allowlist (`approval.allowed_operators`)
  - Optional one-time confirmation token mode
- Command policy hardening:
  - `policy.strict_policy=false` (compatible mode)
  - `policy.strict_policy=true` (normalized/token-level matching)
- Host key verification policy (`ssh.host_key_policy`):
  - `known_hosts` (RejectPolicy + optional `known_hosts_required`)
  - `reject` (strict reject unknown hosts)
  - `auto_add` (compatibility mode)
- Server profile docs:
  - First remote access auto-creates `server_profiles/<IP>.md`
  - Subsequent remote calls read this profile before connect
- Audit logging (`JSONL`) with SIEM-friendly fields and safety:
  - `request_id` / `trace_id` / `operator_ip`
  - Sensitive fields redacted (`password/token/secret/key/passphrase`)
  - `stdout/stderr` truncated for log safety
- Persistent SSH sessions (stateful shell):
  - `open_session`, `list_sessions`, `close_session`
  - `run_command_in_session`, `write_session`, `read_session`, `resize_session`
  - Session metadata persistence (`session.storage_file`)
- Real terminal bridge (xterm.js + WebSocket):
  - `start_terminal_ws` returns `ws://.../terminal/<session_id>`
  - `stop_terminal_ws` unregisters a session or stops the WS server
- Session key injection:
  - `send_keys_to_session` supports `ESC/UP/DOWN/LEFT/RIGHT/TAB/ENTER`
- Thread-session binding layer:
  - `bind_thread_session`, `get_thread_session`, `unbind_thread_session`
  - `ensure_thread_session` (auto-open and bind when missing)
- NL -> command bridge:
  - `plan_command_from_text` (plan only)
  - `execute_text_in_session` (plan + run in persistent session)

## Install

```bash
git clone https://github.com/adfoke/alma-linux-remote-plugin.git
cd alma-linux-remote-plugin
uv sync --all-extras
```

## Quick Start

```bash
uv run python demo_cli.py --config ./examples/hosts.example.yaml handle health
uv run python demo_cli.py --config ./examples/hosts.example.yaml tools
uv run python demo_cli.py --config ./examples/hosts.example.yaml handle execute_command '{"host_name":"prod-web-1","command":"uptime"}'
uv run python demo_cli.py --config ./examples/hosts.example.yaml handle open_session '{"host_name":"prod-web-1"}'
uv run python demo_cli.py --config ./examples/hosts.example.yaml handle list_sessions '{"status":"all"}'
uv run python demo_cli.py --config ./examples/hosts.example.yaml plan-text thread-a prod-web-1 "帮我看下磁盘和内存"
uv run python demo_cli.py --config ./examples/hosts.example.yaml exec-text thread-a prod-web-1 "查看 nginx 状态和最近日志"
uv run python demo_cli.py --config ./examples/hosts.example.yaml handle send_keys_to_session '{"session_id":"<SESSION_ID>","keys":["ESC",":wq","ENTER"]}'
```

English doc: `README.en.md`

## Safety Workflow (dangerous command)

1. Run dangerous command → receive `approval_required` and `approval_id`
2. Approver calls `approve_request` with allowed `operator`
3. Re-run command with `approval_id`

## Code Audit Notes

- `plugin.py` now uses `_with_connected_client(...)` to consolidate repeated connect/close patterns.
- Added focused tests for `ssh_client.py` and `terminal_ws.py` to keep critical path coverage high.

## Quality Gate

```bash
uv run ruff check src tests demo_cli.py
uv run pytest --cov=src/alma_linux_remote_plugin --cov-report=term-missing --cov-fail-under=65
```

## Main Entrypoint

- Runtime adapter: `src/alma_linux_remote_plugin/runtime_adapter.py`
- Plugin metadata: `plugin.yaml`

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →