← 返回 Skills 市场
130
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install swap
功能描述
Configure Linux swap — create swap file, set swappiness, persist via fstab, resize swap.
安全使用建议
This skill appears to do what it says, but it runs root-level commands that can be destructive. Before using it: (1) run the 'check current swap status' commands yourself and back up /etc/fstab (sudo cp /etc/fstab /etc/fstab.bak) so you can revert changes, (2) prefer verifying there isn't already a swap entry before appending to fstab to avoid duplicates, (3) be aware dd can be slow and fallocate may not be safe on all filesystems (e.g., some CoW filesystems), (4) ensure you have console/SSH access in case disabling swap impacts system stability, and (5) only run these steps on systems you control. If you want safer automation, add idempotency checks and fstab validation steps (or use a tool like systemd-swap or a configuration management tool) before applying changes.
功能分析
Type: OpenClaw Skill
Name: swap
Version: 1.0.0
The skill provides standard and legitimate instructions for managing Linux swap files, including creation, resizing, and persistence via /etc/fstab. All commands used (such as fallocate, mkswap, swapon, and sysctl) are appropriate for the stated purpose, and there is no evidence of malicious intent, data exfiltration, or unauthorized persistence mechanisms in SKILL.md.
能力评估
Purpose & Capability
Name/description match the instructions: all commands and file edits (swapon, mkswap, swapoff, fallocate/dd, sysctl, /etc/fstab) are exactly what a swap-management helper would need. No unrelated binaries, credentials, or network endpoints are requested.
Instruction Scope
Instructions are explicit and stay within swap configuration (checking swap, creating files, formatting, enabling, editing /etc/fstab, setting vm.swappiness). However several operations are potentially destructive (swapoff, dd, recreating /swapfile) and the guidance appends to /etc/fstab without idempotency checks or backups. The skill does not instruct verifying existing fstab entries or backing up /etc/fstab before appending, which is a reliability/safety concern rather than an incoherence.
Install Mechanism
Instruction-only skill with no install spec and no downloads — lowest-risk install mechanism. The metadata correctly lists binaries the instructions reference.
Credentials
No environment variables, secrets, or unrelated service credentials are requested. The skill operates on local system files and commands as expected for its function.
Persistence & Privilege
Skill does modify a system file (/etc/fstab) and kernel parameter (vm.swappiness) which is appropriate for its purpose. It does not request permanent platform-level privileges or always-on inclusion.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install swap - 安装完成后,直接呼叫该 Skill 的名称或使用
/swap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the swap skill for Linux.
- Supports creating, resizing, and configuring swap files.
- Guides persisting swap via /etc/fstab.
- Includes steps for setting and persisting the swappiness parameter.
- Offers verification commands after each operation.
元数据
常见问题
swap 是什么?
Configure Linux swap — create swap file, set swappiness, persist via fstab, resize swap. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。
如何安装 swap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install swap」即可一键安装,无需额外配置。
swap 是免费的吗?
是的,swap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
swap 支持哪些平台?
swap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 swap?
由 zjxylc(@zjxylc)开发并维护,当前版本 v1.0.0。
推荐 Skills