← 返回
未分类

RedHat Command Execution

Execute terminal commands safely with preflight checks and risk gating.
安全执行终端命令,包含前置检查和风险门控。
mzfshark mzfshark 来源
未分类 clawhub v1.0.0 1 版本 99692.3 Key: 无需
★ 0
Stars
📥 324
下载
💾 0
安装
1
版本
#dev#latest

概述

SKILL: command-execution

Purpose

Execute terminal commands safely with deterministic preflight checks, risk classification, and auditable outputs.

When to Use

  • Running tests, builds, linters, or migrations.
  • Inspecting the repo (search, list files, check versions).
  • Any command execution that could affect the environment.

Inputs

  • command (required, string): exact command to run.
  • purpose (required, string): why this command is needed.
  • expected_effects (optional, string[]): what should happen (files created, tests run).
  • risk_level (optional, enum: low|medium|high): if known.

Steps

  1. Classify command risk:
    • read-only (safe)
    • write (moderate)
    • destructive/network/system (high)
  2. Block/require confirmation for high-risk patterns:
    • recursive deletes (rm -rf, Remove-Item -Recurse -Force)
    • format/disk ops
    • piping remote scripts (curl ... | sh)
  3. If supported, prefer dry-run flags first (e.g., --dry-run, -n, --check).
  4. Execute the command and capture:
    • exit code
    • stdout/stderr
    • elapsed time (if available)
  5. Interpret results against expected_effects.
  6. If command failed:
    • stop
    • summarize error
    • propose next diagnostic steps

Validation

  • Exit code is checked (not ignored).
  • Output is summarized with the relevant error lines.
  • Side effects match expectation (no surprise modifications).

Output

command: "<command>"
purpose: "<purpose>"
result: "success|blocked|failed"
exit_code: <int|null>
highlights: ["<key output lines>"]
next_steps: ["..."]

Safety Rules

  • Never run destructive commands without explicit user confirmation.
  • Never run unknown installers or remote scripts without review.
  • Prefer minimal, scoped commands (avoid global state changes).

Example

Run tests:

  • command: pnpm test
  • purpose: “Validate behavior after refactor”
  • Output: exit code + failing test names + next diagnostic step.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 21:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Axodus Trading Integration

mzfshark
Integrate trading infrastructure (hummingbot/MCP) with paper-first mode and audit logs.
★ 0 📥 463

Community Onboarding

mzfshark
引导新用户主动参与;简明解释 $NEURONS 并提供安全的后续操作。
★ 0 📥 450

OnChain Analysis

mzfshark
战略性解读区块链数据,以数据支撑的证据和明确的不确定性,识别模式、异常和流向。
★ 0 📥 540