agi-terminal-helperA practical runbook for using OpenClaw exec safely (sandbox-first, explicit confirmations, and debugging playbooks).
Install via ClawdBot CLI:
clawdbot install liuwujijay/agi-terminal-helperThis skill is not a “generic terminal tips” template.
It’s a concrete runbook for how to use OpenClaw’s exec tool effectively in a real workspace (like your /Users/.../clawd workspace), with attention to:
OpenClaw skills are loaded from bundled skills, ~/.openclaw/skills, and with workspace taking precedence. :contentReference[oaicite:12]{index=12}
Before calling exec, I will say:
When debugging or orienting:
pwd, ls -la, git status, rg, cat, head, tailUse the sandbox for:
Important nuance:
If a session is sandboxed, the sandbox does not inherit host process.env.
Global env and skills.entries. apply to host runs only; sandbox env must be set separately. :contentReference[oaicite:13]{index=13}
I will require the user to confirm before:
~/.ssh, keychains, browser profilessudo, launchctl changes)When diagnosing OpenClaw itself, I’ll work inside your workspace (example: /Users/proman/clawd) and be explicit about it.
Typical commands:
ls -la ./skillsfind ./skills -maxdepth 2 -name SKILL.md -printgit status (if the workspace is a git repo)which peekaboo || echo "peekaboo not on PATH"Prefer multiple small commands over one “do everything” pipeline. This makes it easier to review and safer to approve.
When supported, run with a short yield and then poll a process session.
Examples you can adapt:
exec: make test (with a short yield)process: poll (using the returned session id)(Exact parameter names depend on your tool surface, but the pattern is: yield → poll.)
1) Confirm skill location/precedence:
/skills and that wins precedence. :contentReference[oaicite:14]{index=14}2) Verify the skill folder has SKILL.md and valid frontmatter.
3) If you changed files, ensure watcher is enabled:
skills.load.watch: true is the default pattern. :contentReference[oaicite:15]{index=15}This is usually macOS TCC context + daemon behavior. A common fix is enabling PeekabooBridge in OpenClaw.app:
Then validate:
peekaboo bridge status --verbose should select a host (OpenClaw.app) rather than local (in-process). :contentReference[oaicite:17]{index=17}ClawHub has a quality gate (language-aware word counting and heuristics) that rejects docs that are too thin/templated. :contentReference[oaicite:18]{index=18}
Fix by adding:
curl | sh) without explicit user request and review.pwdls -lagit statusrg -n "error|warn|TODO" .uname -anode -v && python -VIf you want raw, direct execution (no model involvement), use /term.
Generated Mar 1, 2026
Developers can use this skill to safely set up and configure their local development environments, including installing dependencies, checking git status, and verifying tools like Node.js or Python versions. It helps avoid system-wide changes by defaulting to sandboxed execution for untrusted operations.
IT professionals can leverage this skill to diagnose issues in workspaces, such as checking skill loading problems or verifying permissions on macOS. It provides structured playbooks for common problems like Peekaboo failures, ensuring safe exploration before making changes.
DevOps engineers can use the skill to manage long-running processes like builds or tests in a controlled manner, using background execution and polling patterns. It emphasizes explicit confirmation for risky operations, reducing errors in deployment or automation tasks.
Instructors and students in coding bootcamps or workshops can utilize this skill to safely run commands in sandboxed environments while learning terminal usage. It prevents accidental data loss by enforcing read-only exploration and confirmation for writes.
Contributors to open source projects can employ this skill to navigate and test codebases without affecting their host systems. It helps verify skill documentation and sync issues with platforms like ClawHub, ensuring quality and compliance.
Offer this skill as part of a premium subscription for developers, providing advanced features like priority support, custom sandbox configurations, and integration with CI/CD tools. Revenue is generated through monthly or annual user fees.
Sell enterprise licenses to large organizations for internal use in IT departments or development teams, including customization, training, and dedicated support. Revenue comes from one-time purchases or annual contracts with volume discounts.
Provide a basic version of the skill for free to attract users, then monetize through premium add-ons such as advanced debugging tools, extended sandbox capabilities, or integration with third-party services. Revenue is driven by upsells and in-app purchases.
đź’¬ Integration Tip
Integrate this skill by ensuring it loads from the correct workspace directory and configuring environment variables separately for sandboxed executions to avoid conflicts with host settings.
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Command-line tool to manage Google Workspace services including Gmail, Calendar, Drive, Sheets, Docs, Slides, Contacts, Tasks, People, Groups, and Keep.
Runs shell commands inside a dedicated tmux session named claw, captures, and returns the output, with safety checks for destructive commands.
A modern text-based browser. Renders web pages in the terminal using headless Firefox.
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
NotebookLM CLI wrapper via `node {baseDir}/scripts/notebooklm.mjs`. Use for auth, notebooks, chat, sources, notes, sharing, research, and artifact generation/download.