← Back to Skills Marketplace
lunaviva211-sketch

Low-Spec Optimizer

by lunaviva211-sketch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
258
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install low-spec-optimizer
Description
Optimize OpenClaw performance on machines with limited resources (4GB RAM or less, old CPUs). Use when (1) user mentions slow performance, high RAM usage, or...
README (SKILL.md)

Low-Spec Optimizer

Help OpenClaw run smoothly on machines with limited resources.

Quick Start

Check current resources:

bash \x3Cskill-dir>/scripts/check_resources.sh

Parse output with jq:

bash \x3Cskill-dir>/scripts/check_resources.sh | jq '.alert, .ram.pct, .cpu.pct'

Workflow

1. Check resources before heavy operations

Before spawning subagents, opening browser, or running intensive tasks:

bash \x3Cskill-dir>/scripts/check_resources.sh

Decision matrix based on alert field:

  • OK (\x3C 60% RAM): Proceed normally
  • ELEVATED (60-75%): Limit to 1 subagent, close browser first
  • WARNING (75-90%): Run cleanup, avoid spawning, warn user
  • CRITICAL (> 90%): Emergency cleanup, ask user before proceeding

2. Cleanup when needed

# Dry run first
bash \x3Cskill-dir>/scripts/cleanup_sessions.sh --dry-run

# Execute cleanup
bash \x3Cskill-dir>/scripts/cleanup_sessions.sh

# Aggressive (includes npm/pip/journal)
bash \x3Cskill-dir>/scripts/cleanup_sessions.sh --aggressive

3. Apply config recommendations

For machines with ≤4GB RAM, suggest OpenClaw config changes. See references/config-guide.md for full details.

Key recommendations:

  • Use free/lightweight models (hunter-alpha, GLM-4.5-air)
  • Set thinking to "off" unless needed
  • Limit concurrent subagents to 2 max
  • Always close browser after use
  • Prefer web_fetch over browser automation
  • Use mode: "run" for subagents (auto-cleanup)

4. Proactive monitoring (heartbeat)

During heartbeats on low-spec machines:

bash \x3Cskill-dir>/scripts/check_resources.sh | jq -r '.alert'

If alert is WARNING or CRITICAL, notify the user with specifics:

  • Which process is consuming most memory
  • How much is free
  • Recommended action (cleanup, close apps, restart)

Rules for constrained environments

  1. One browser at a time — never parallel browser sessions
  2. Close everything after use — browser, subagent sessions, temp files
  3. Check before opening — always check RAM before heavy operations
  4. Prefer lightweight alternativesweb_fetch > browser, mode: "run" > mode: "session"
  5. Batch operations — combine tasks instead of spawning separate sessions
  6. Use cron over heartbeat — for precise scheduling, use cron with isolated sessions
Usage Guidance
Review the scripts before installing. Specific concerns: (1) cleanup_sessions.sh uses hard-coded /home/nvi paths — change these to $HOME or a configurable path before running, or you may delete another user's data; (2) the aggressive mode performs npm/pip cache purges and journalctl vacuum without interactive confirmation — run with --dry-run first and inspect output; (3) back up important data and test on a non-production machine; (4) prefer replacing destructive rm -rf calls with safer operations (move to a temp quarantine folder, require explicit confirmation, or restrict to paths known to belong to the agent). If the author provides a configurable path option (or the script uses $HOME) and adds an explicit interactive confirmation for destructive actions, the skill would be much closer to 'benign.'
Capability Analysis
Type: OpenClaw Skill Name: low-spec-optimizer Version: 1.0.0 The 'low-spec-optimizer' skill is designed to monitor system resources and perform routine maintenance to improve performance on resource-constrained machines. The included scripts, 'check_resources.sh' and 'cleanup_sessions.sh', use standard Linux utilities to report on RAM/CPU usage and safely clear temporary caches (e.g., Playwright, npm, pip) and stale session data. The instructions in 'SKILL.md' and 'config-guide.md' provide legitimate operational guidance for managing OpenClaw in low-RAM environments without any evidence of malicious intent, data exfiltration, or unauthorized persistence.
Capability Assessment
Purpose & Capability
The skill claims to be a general optimizer for low-resource machines, but the cleanup script targets hard-coded paths under /home/nvi (.openclaw/sessions, .openclaw/trash, .cache/ms-playwright). A general-purpose optimizer should use $HOME or configurable paths; hard-coded user paths indicate the code was written for a specific environment and is not proportionate to the generic description.
Instruction Scope
SKILL.md instructs running the included scripts (including an 'aggressive' cleanup). The scripts will rm -rf directories and run system-wide cleanup commands (npm cache clean, pip3 cache purge, journalctl vacuum) without prompting for confirmation unless the caller uses --dry-run. SKILL.md says to 'ask user before proceeding' for CRITICAL, but the provided scripts do not implement interactive confirmation, creating a mismatch between documentation and actions.
Install Mechanism
This is an instruction-only skill with local shell scripts and no install spec or external downloads. No network retrieval or third-party package installs are performed by the skill itself, so the install mechanism risk is low.
Credentials
The skill declares no required env vars, but the scripts assume specific filesystem locations (/home/nvi/...), existence of system tools (journalctl, npm, pip3), and a particular OpenClaw layout. Requesting or operating on resources tied to a specific user without exposing that dependency in metadata is disproportionate and surprising to users on other systems.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or global agent configs. Autonomous invocation is allowed by default (not flagged alone). However, because the skill can be invoked and will perform deletions on the local filesystem, its ability to run autonomously raises potential for unwanted destructive actions if invoked without user supervision.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install low-spec-optimizer
  3. After installation, invoke the skill by name or use /low-spec-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: resource monitoring, session cleanup, config recommendations for machines with limited RAM/CPU
Metadata
Slug low-spec-optimizer
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Low-Spec Optimizer?

Optimize OpenClaw performance on machines with limited resources (4GB RAM or less, old CPUs). Use when (1) user mentions slow performance, high RAM usage, or... It is an AI Agent Skill for Claude Code / OpenClaw, with 258 downloads so far.

How do I install Low-Spec Optimizer?

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

Is Low-Spec Optimizer free?

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

Which platforms does Low-Spec Optimizer support?

Low-Spec Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Low-Spec Optimizer?

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

💬 Comments