← Back to Skills Marketplace
zjxylc

swap

by zjxylc · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
130
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install swap
Description
Configure Linux swap — create swap file, set swappiness, persist via fstab, resize swap.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install swap
  3. After installation, invoke the skill by name or use /swap
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug swap
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is swap?

Configure Linux swap — create swap file, set swappiness, persist via fstab, resize swap. It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.

How do I install swap?

Run "/install swap" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is swap free?

Yes, swap is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does swap support?

swap is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created swap?

It is built and maintained by zjxylc (@zjxylc); the current version is v1.0.0.

💬 Comments