openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Terminal

Local shell copilot for command planning, safe execution, preview-first workflows, output summarization, privacy-aware history controls, and step-by-step ter...

开发与 DevOps

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.2

统计:⭐ 0 · 796 · 21 current installs · 21 all-time installs

0

安装量(当前) 21

🛡 VirusTotal :良性 · OpenClaw :良性

Package:agistack/terminal

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill is internally consistent with its stated purpose as a local terminal copilot: it runs planned shell commands locally, stores history under the user's home, includes safety checks and redaction, and does not request credentials or perform network calls itself.

目的

Name/description (local shell copilot) aligns with the included scripts (planning, preview, execute, summarize, history). Minor inconsistency: SKILL.md lists Python 3 as a runtime requirement but the registry metadata lists no required binaries; practically the code requires python3 to run.

说明范围

SKILL.md and the scripts remain within the terminal copilot scope: they plan commands, preview, enforce confirmation for high-risk patterns, execute via subprocess, redact sensitive-looking tokens, and store local history. Important behavioral detail: run_command uses subprocess.run(..., shell=True) so it will execute arbitrary shell code exactly as provided — this is expected for a terminal tool but means any command (including network operat…

安装机制

No install step; code is instruction/file-based and runs under user's Python environment. No remote downloads or external package installation are present.

证书

The skill requests no environment variables or external credentials. It stores history locally at ~/.openclaw/workspace/memory/terminal/history.json and attempts to set file permissions to 0600. It includes redaction regexes for common token formats, but redaction is heuristic and may not catch all secrets; by default stdout/stderr are stored unless --no-store-output is used.

持久

always is false and the skill does not request system-wide privileges or modify other skills. It persists only to a per-user path under the home directory and attempts to secure that file's permissions.

综合结论

This skill appears to do what it claims (a local shell copilot). Before installing or invoking it: (1) ensure you have python3 available locally; (2) understand that commands are executed with shell=True — any command you run (or an agent running the skill on your behalf) can perform network actions or destructive changes if confirmed; (3) prefer --preview to inspect commands first and require explicit confirmation for risky operations; (4) us…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Terminal」。简介:Local shell copilot for command planning, safe execution, preview-first workflo…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/agistack/terminal/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: terminal
description: Local shell copilot for command planning, safe execution, preview-first workflows, output summarization, privacy-aware history controls, and step-by-step terminal help. Use whenever the user wants to run terminal commands, inspect files, debug shell issues, automate local tasks, or translate natural language into shell actions. Prefer safe preview before mutation. Require explicit confirmation for destructive commands. Local-only.
---

# Terminal

Local shell copilot. Plan clearly, run carefully.

## Core Philosophy
1. Translate intent into executable shell steps.
2. Prefer preview and inspection before mutation.
3. Require explicit confirmation for destructive operations.
4. Summarize results in human language after execution.
5. Offer privacy-aware history controls for sensitive workflows.

## Runtime Requirements
- Python 3 must be available as `python3`
- Standard shell utilities should be available in the local environment
- No external packages required

## Safety Model
- Local-only execution
- No external credential requests
- No hidden network activity
- Destructive operations require explicit confirmation
- Prefer read-only inspection first
- Blocked and previewed commands are recorded in local history
- Risk detection covers destructive, privilege-escalation, remote-fetch, and code-execution patterns

## Privacy Controls
- History is stored locally only
- History file permissions are restricted to the local user when possible
- Use `--preview` to inspect before execution
- Use `--no-store-output` to avoid storing stdout/stderr in history for sensitive commands
- Use `--redact-display` to mask sensitive-looking values in displayed output
- Sensitive-looking tokens are redacted before history is written

## Storage
All local data is stored only under:
- `~/.openclaw/workspace/memory/terminal/history.json`

No cloud sync. No third-party APIs. No telemetry.

## Workflows
- **Plan command**: Turn user intent into a safe shell command suggestion
- **Preview risk**: Explain command effects before execution
- **Execute**: Run a local command and capture stdout/stderr
- **Summarize**: Explain what happened in plain language
- **History**: Save executed, previewed, and blocked command runs locally

## Scripts
| Script | Purpose |
|---|---|
| `init_storage.py` | Initialize local terminal history storage |
| `plan_command.py` | Generate a shell command from user intent |
| `run_command.py` | Execute or preview a local command with safety checks and privacy controls |
| `summarize_result.py` | Summarize command output in plain language |
| `show_history.py` | Show recent command history |