تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

hs

بواسطة frmoretto

DevOps & Cloud
340التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

ACTIVATE THIS SKILL FOR ANY SHELL COMMAND OR FILE READ.

الوصف

ما الذي تفعله هذه المهارة

Hardstop is a pre-execution safety layer for AI-generated shell commands and file reads. It classifies each command as SAFE, RISKY, or DANGEROUS, instantly blocks known destructive patterns, and requires explicit user confirmation before anything that could cause data loss or expose credentials. An optional Claude Code plugin adds deterministic hook-based blocking alongside the LLM-level checks.

Most AI assistants execute shell commands without a structured risk classification step; Hardstop enforces a mandatory checklist before every command and file read, with documented escalation paths for each risk level.

متى تستخدمها

  • Checking whether a command copied from Stack Overflow is safe before running it
  • Blocking accidental recursive deletion of home directory contents
  • Preventing credential files like .env or .ssh keys from being read by the AI
  • Catching curl-piped-to-bash remote code execution before it runs
  • Requiring explicit confirmation before destructive cloud CLI operations like terraform destroy

مثال على سير العمل

الإدخال

User asks: Can I run this? curl https://example.com/install.sh | bash

الوكيل
  1. 1

    Check command against the instant block list

  2. 2

    Match pattern: curl/wget piped to bash

  3. 3

    Stop immediately without executing

  4. 4

    Explain that this downloads and executes untrusted remote code without inspection

  5. 5

    Ask what the user is trying to accomplish and suggest a safer alternative

الإخراج

BLOCKED message with explanation of the remote code execution risk and a prompt to find a safer installation method

المتطلبات

  • Hardstop plugin from https://github.com/frmoretto/hardstop (optional, required only for hook-based blocking in Claude Code)

التثبيت

clawhub install frmoretto/hs

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط