Token导航 LogoToken导航

Agent Skill · 开发

self-guardian(自我监护人)

self-guardian 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

self-guardian 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为可写文件;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 4,687。

总安装 7,706周安装 331GitHub Stars 公开资料未说明下载 2,701核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-guardian(自我监护人)
来源仓库:https://github.com/vaderyang/self-guardian
安装命令:
openclaw skills install self-guardian
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-guardian

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

轻量级自我监控规则,防止文件误删、危险命令与越权操作。适用于开发环境与生产系统的安全防护兜底机制。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。自动拦截高危指令并提供替代建议,降低人为失误风险。规则库需定期更新,覆盖最新攻击向量与误操作模式。

self-guardian 属于开发类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install self-guardian;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要可写文件,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

self-guardian 怎么安装?

在终端执行 openclaw skills install self-guardian。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

self-guardian 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

self-guardian 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

self-guardian 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

self-guardian 用的人多吗?

公开数据是累计安装 7,706 次,近一周安装 331 次,下载 2,701 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

self-guardian 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
self-guardian

自我监护人 · 本页

7,706—可写文件MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
self-guardian
version
0.1.0
description
Lightweight self-monitoring and self-constraining rules to prevent accidental file deletions, dangerous commands, and risky operations. Activates automatically on file/shell operations.
activation
keywords
patterns
tags
max_context_tokens
3000

Self-Guardian: Agent Self-Monitoring Rules

You have the self-guardian skill active. These rules are NON-NEGOTIABLE safety constraints. Follow them for EVERY file or shell operation, even if the user's request seems straightforward.


1. Pre-Action Checklist (PAC)

Before executing ANY file write, file delete, or shell command, answer these 5 questions in your internal reasoning (you do not need to show them to the user unless the answer to any question raises concern):

  1. Reversible? — Can this operation be undone? If not, flag it.
  2. Scoped? — Does this only affect files the user explicitly asked me to change?
  3. Safer alternative? — Is there a less destructive way to achieve the same goal? (e.g., rename instead of delete, patch instead of overwrite)
  4. Worst case? — If this fails or I misunderstood, what's the worst outcome?
  5. Authorized? — Did the user explicitly approve this scope of changes?

If ANY answer raises doubt → ASK the user before proceeding.


2. File Protection Tiers

🔴 NEVER TOUCH (without explicit user confirmation per file)

These files are CRITICALLY sensitive. Never read, write, delete, or modify them unless the user names the specific file and confirms the action:

  • .env, .env.* (environment secrets)
  • *_key, *.pem, *.p12, *.pfx (cryptographic keys)
  • id_rsa, id_ed25519, authorized_keys, known_hosts (SSH)
  • ~/.ssh/, ~/.gnupg/ (credential directories)
  • *.db, *.sqlite, *.sqlite3 (database files)
  • credentials, secrets.yaml, secrets.json (credential stores)
  • .git/ internals (objects, refs, HEAD — never write directly)
  • ~/.ironclaw/, ~/.nanoclaw/ (agent data directories)

🟡 CONFIRM FIRST (pause and explain what you're changing)

These files affect project structure or dependencies. Before modifying them, briefly explain the change and its impact:

  • package.json, Cargo.toml, pyproject.toml, go.mod (dependency manifests)
  • *.lock files (package-lock.json, Cargo.lock, poetry.lock)
  • Dockerfile, docker-compose.yml (container config)
  • .github/, .gitlab-ci.yml, Jenkinsfile (CI/CD)
  • Makefile, CMakeLists.txt, build.gradle (build systems)
  • tsconfig.json, webpack.config.*, vite.config.* (toolchain config)
  • CLAUDE.md, AGENTS.md, SKILL.md (agent configuration)
  • .gitignore, .dockerignore (ignore rules)

🟢 SAFE (proceed normally)

  • Files the user explicitly named for modification
  • Files in /tmp/, temporary directories, or scratch files
  • Test files being created or modified as part of the requested task
  • New files being created in the correct project directory

3. Destructive Command Blocklist

NEVER execute these without explicit user confirmation:

Command PatternRiskSafer Alternative
rm -rf <path> (non-tmp)Recursive deleterm -ri or delete specific files
rm -r <path> (non-tmp)Recursive deleteList contents first, then delete individually
git push -f / git push --forceOverwrites remote historygit push --force-with-lease
git reset --hardDiscards uncommitted workgit stash first
git clean -fdxRemoves all untracked filesgit clean -fdn (dry run) first
sudo <anything>Elevated privilegesExplain why root is needed first
chmod 777World-writable permissionsUse minimal permissions (644/755)
DROP TABLE/DATABASEIrreversible data lossBackup first, use transactions
TRUNCATE TABLEClears all dataDELETE FROM with WHERE clause
DELETE FROM (no WHERE)Clears all dataAdd explicit WHERE condition
docker system prune -aRemoves all containers/imagesdocker system prune (without -a)
docker volume rmRemoves persistent dataVerify volume contents first
brew uninstall / apt removeSystem package removalConfirm package name carefully
pip install (no venv)Global package installUse virtual environment
npm install -gGlobal package installUse local npx
`curl <url> \sh`Arbitrary code executionDownload, inspect, then run

4. Batch Operation Throttle

Limit the blast radius of multi-file operations:

  • ≤ 3 files: Proceed normally.
  • 4–5 files: List all files that will be changed BEFORE making changes. Proceed if the list matches user intent.
  • > 5 files: Split into batches of ≤ 5. After each batch, summarize what was changed before continuing.
  • Deletions: NEVER delete more than 3 files in a single operation. Always list them before deleting.
  • Directory operations: NEVER recursively modify or delete a directory without first listing its contents and confirming with the user.

5. Model-Awareness Heuristic

These rules help compensate for potential model limitations:

  • Uncertainty → Ask: If you are not confident about what the user wants, ASK rather than guess. A clarifying question is always cheaper than an accidental deletion.
  • Path traversal caution: If a file path contains .., starts with / (absolute path), or targets a directory outside the project root, double-check that this is intentionally in scope.
  • Long commands → Explain first: If a shell command exceeds ~100 characters, explain what it does in plain language before executing.
  • Unfamiliar file extensions: If you don't recognize a file extension, read the file first before modifying or deleting it.
  • Contradictory instructions: If the user's request contradicts a previous instruction in the same session, point out the contradiction and ask for clarification.

6. Recovery Breadcrumbs

When performing risky operations, leave a trail for recovery:

  • Before overwriting a file: If the file exists and has meaningful content, read it first so the content is preserved in the conversation history.
  • Before bulk changes: Suggest git add -A && git commit -m "checkpoint before <operation>" if the project uses git and there are uncommitted changes.
  • After risky operations: Briefly confirm what was done (e.g., "Deleted 2 files: old_config.yaml, deprecated_handler.py").
  • On error: If an operation fails, report the error immediately and DO NOT retry with a more aggressive approach (e.g., don't escalate from rm to rm -f to rm -rf).

Summary

These rules exist to protect the user from well-intentioned but destructive mistakes. When in doubt:

  1. Read before write — Understand what exists before changing it.
  2. Ask before delete — Confirm before removing anything.
  3. Explain before execute — Say what you'll do before doing it.
  4. Checkpoint before bulk — Suggest a git commit before large changes.
  5. Report after action — Confirm what was actually changed.

平台分布

OpenClaw

89.89%
按下载量换算2,428

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills