Token导航 LogoToken导航

Agent Skill · 开发

safety-checks(安全检查)

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

safety-checks 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 2,032。

总安装 21,255周安装 913GitHub Stars 公开资料未说明下载 7,450核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install safety-checks

这个 Skill 是做什么的

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

safety-checks 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。适用于模型验证、运行时安全和回退机制检查等场景。通过 openclaw skills install 命令从 ClawHub 安装并使用。

安装前需确认权限范围和维护状态,注意可能涉及配置检查和模型固定操作。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

safety-checks 怎么安装?

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

safety-checks 支持哪些 AI 工具?

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

safety-checks 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

safety-checks 是免费的吗?

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

safety-checks 用的人多吗?

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

safety-checks 安全吗?

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

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

值得选的地方

  • 专注 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有提醒
safety-checks

安全检查 · 本页

21,255—需要联网MIT-0通过

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

SKILL.md 原文

name
safety-checks
version
1.5.2
description
Verify before you trust — model pinning, fallbacks, and runtime safety validation
author
Live Neon <contact@liveneon.dev>
homepage
https://github.com/live-neon/skills/tree/main/agentic/safety-checks
repository
leegitw/safety-checks
license
MIT
tags
[agentic, safety, validation, model-pinning, fallback, runtime-verification, cache, guardrails]
layer
safety
status
active
alias
sc
metadata
openclaw
requires
config
workspace

safety-checks (安全)

Unified skill for runtime safety verification including model version pinning, fallback chain validation, cache staleness detection, and cross-session state checks. Consolidates 4 granular skills into a single safety verification suite.

Trigger: 事前検証 (pre-flight) or HEARTBEAT

Source skills: model-pinner, fallback-checker, cache-validator, cross-session-safety-check (from extensions)

Installation

openclaw install leegitw/safety-checks

Dependencies: leegitw/constraint-engine (for enforcement integration)

# Install with dependencies
openclaw install leegitw/context-verifier
openclaw install leegitw/failure-memory
openclaw install leegitw/constraint-engine
openclaw install leegitw/safety-checks

Standalone usage: Model pinning and cache checks work independently. Full integration with constraint enforcement requires constraint-engine.

Data handling: This skill performs local-only operations. All checks (model version comparison, cache age verification, file lock detection) are local file/metadata operations — no data is sent to any model, API, or external service. Results are written to output/safety/ in your workspace.

What This Solves

AI systems can silently degrade — model versions drift, caches go stale, sessions accumulate state. This skill catches these issues before they cause problems:

  1. Model pinning — verify you're using the model you expect
  2. Fallback validation — ensure degraded-mode paths exist and work
  3. Cache checks — detect stale or corrupted cached data
  4. Session hygiene — identify cross-session state contamination

The insight: Runtime verification catches what static rules miss. Check the system state, not just the configuration.

Usage

/sc <sub-command> [arguments]

Sub-Commands

CommandCJKLogicTrigger
/sc model機種model.version→pinned✓∨drift✗HEARTBEAT
/sc fallback代替chain.exists→safe✓∨missing✗HEARTBEAT
/sc cache快取response.age>TTL→stale✗HEARTBEAT
/sc session会話cross_session.state→clean✓∨interference✗HEARTBEAT

Arguments

/sc model

ArgumentRequiredDescription
--expectedNoExpected model version (default: from config)
--strictNoFail on any version mismatch

/sc fallback

ArgumentRequiredDescription
--chainNoSpecific fallback chain to check in config

Note: This command validates that fallback configurations exist in your config file. It does NOT make network calls or test actual connectivity. It's a config file audit.

/sc cache

ArgumentRequiredDescription
--ttlNoTTL in seconds (default: 3600)
--clearNoClear stale cache entries

/sc session

ArgumentRequiredDescription
--check-stateNoCheck for state leakage between sessions
--clear-stateNoClear any leaked state

Configuration

Configuration is loaded from (in order of precedence):

  1. .openclaw/safety-checks.yaml (OpenClaw standard)
  2. .claude/safety-checks.yaml (Claude Code compatibility)
  3. Defaults (built-in)

Core Logic

Model Version Pinning

Ensures AI model version matches expected configuration.

How it works: This skill compares the model version reported in your agent's session metadata (e.g., the model name in API responses or agent headers) against the expected version in your config file. It does NOT call the model API to check — it reads the version string that your agent runtime already exposes.

Model version format: {provider}-{model}-{version}-{date}

Examples:

  • anthropic-opus-4-5-20251101
  • openai-gpt-4-turbo-20250301
  • google-gemini-2-pro-20260101
# .openclaw/safety-checks.yaml
model:
  expected: "anthropic-opus-4-5-20251101"  # Provider-neutral format
  strict: true
ConditionResult
Version matches✓ Pinned
Version differs, strict=false⚠ Warning
Version differs, strict=true✗ Fail

Fallback Chain Validation

Config audit only — verifies fallback entries exist in your config file. This does NOT make network calls or test actual connectivity.

Checks that your safety-checks.yaml declares fallback configurations:

# Example config entries this command validates exist:
fallbacks:
  model: ["primary-model", "fallback-model", "cached"]
  storage: ["primary-path", "backup-path"]
CheckWhat It Validates
Model fallbacksConfig lists alternative models
Storage fallbacksConfig lists backup paths

Cache Staleness Detection

Prevents use of outdated cached data:

AgeTTLStatus
< TTLAny✓ Fresh
> TTLNot critical⚠ Stale warning
> TTLCritical✗ Stale fail

Cross-Session State

Detects state leakage between sessions:

CheckExact File CheckedRisk
File locks.openclaw/safety-checks.lockResource contention
Workspace temp filesoutput/safety/temp-*Disk exhaustion
Skill config.openclaw/safety-checks.yaml valuesConfiguration drift

Scope: Checks are limited to this skill's own files only. This skill does NOT scan directories, does NOT read other skills' config files, and does NOT access files outside the specific paths listed above.

Output

/sc model output (pinned)

[MODEL CHECK]
Status: ✓ PINNED

Expected: anthropic-opus-4-5-20251101
Actual:   anthropic-opus-4-5-20251101

Model version matches configuration.

/sc model output (drift)

[MODEL CHECK]
Status: ✗ VERSION DRIFT

Expected: anthropic-opus-4-5-20251101
Actual:   anthropic-opus-4-5-20251201

WARNING: Model version has changed.
This may affect behavior consistency.

Action: Update expected version in settings, or investigate change.

/sc fallback output

[FALLBACK CHECK]
Status: ✓ CONFIGURED

Config file: .openclaw/safety-checks.yaml

Fallback entries found:
  ✓ model.fallbacks: 3 entries defined
  ✓ storage.fallbacks: 2 entries defined

Note: This validates config entries exist, not actual connectivity.
  ✓ Tertiary (memory) - 4GB free

/sc cache output

[CACHE CHECK]
Status: ⚠ STALE ENTRIES FOUND

Cache Statistics:
  Total entries: 156
  Fresh (< 1h): 142
  Stale (> 1h): 14
  Critical stale: 0

Stale entries:
  - api_response_auth (age: 2h 15m)
  - user_preferences (age: 1h 30m)
  - ...

Action: Run /sc cache --clear to remove stale entries.

/sc session output (clean)

[SESSION CHECK]
Status: ✓ CLEAN

No cross-session interference detected.

Checks passed:
  ✓ No stale lock file (.openclaw/safety-checks.lock)
  ✓ No orphan temp files (output/safety/temp-*)
  ✓ Config file valid (.openclaw/safety-checks.yaml)

/sc session output (interference)

[SESSION CHECK]
Status: ✗ INTERFERENCE DETECTED

Issues found:

1. Stale file lock:
   File: .openclaw/safety-checks.lock
   Owner: PID 12345 (not running)
   Action: Remove lock with /sc session --clear-state

2. Orphan temp files (3):
   output/safety/temp-*.log
   Age: > 24 hours
   Action: Remove with /sc session --clear-state

Run /sc session --clear-state to remediate.

Integration

  • Layer: Safety
  • Depends on: constraint-engine (for enforcement integration)
  • Used by: constraint-engine (for pre-action safety checks), governance (for health monitoring)

Failure Modes

ConditionBehavior
Invalid sub-commandList available sub-commands
Config not foundUse defaults, warn user
Network unavailableSkip remote checks, warn
Permission deniedError with remediation steps

Next Steps

After invoking this skill:

ConditionAction
Model driftAlert user, suggest config update
Fallback missingAlert user, suggest setup
Cache staleOffer to clear, or auto-clear if configured
Session interferenceClear state, log incident

Workspace Files

This skill reads/writes only within declared paths:

.openclaw/
├── safety-checks.yaml     # Primary config (read)
└── cache/
    └── staleness.log      # Cache check history (read/write)

.claude/
└── safety-checks.yaml     # Claude Code config (read)

output/
└── safety/
    ├── model-checks.log   # Model version history (write)
    ├── fallback-tests.log # Fallback test results (write)
    └── session-state.log  # Session state log (write)

Note: This skill does NOT read .claude/settings.json or any other tool's configuration.

HEARTBEAT Integration

These checks should run periodically via HEARTBEAT:

## P1: Critical (Every Session)
- [ ] Model version pinned? → /sc model
- [ ] Session state clean? → /sc session

## P2: Important (Weekly)
- [ ] Fallback chains healthy? → /sc fallback
- [ ] Cache fresh? → /sc cache

Examples

Model Drift Detection

/sc model --strict
[MODEL CHECK]
Status: ⚠ VERSION DRIFT

Expected: anthropic-opus-4-5-20251101
Actual:   anthropic-opus-4-5-20260101

Model version changed. Review CHANGELOG for behavior changes.

Cache Cleanup

/sc cache --clear
[CACHE CHECK]
Status: ✓ CLEANED

Removed 14 stale entries from .openclaw/cache/
Freed: 2.3 MB

Security Considerations

Local-only processing: All safety checks are local file and metadata operations. No data is sent to any LLM, API, or external service. The "agent's model" is only used to interpret your commands — not to process or transmit your data.

Exact files accessed (read):

  • .openclaw/safety-checks.yaml — your skill configuration
  • .claude/safety-checks.yaml — alternate config location
  • .openclaw/cache/staleness.log — cache check history (if exists)

Exact files written:

  • output/safety/*.log — check results and history

This skill does NOT scan directories or read other skills' config files.

What this skill does NOT access:

  • Other skills' configuration files
  • System environment variables
  • .claude/settings.json or other tool configs
  • Any files outside the three config paths listed above
  • Network resources or external APIs

What this skill does NOT do:

  • Send data to any model or external service
  • Modify files outside output/safety/
  • Execute arbitrary code

Data handling:

  • All checks are read-only except for --clear operations on its own cache/output
  • Results are written to output/safety/ only
  • No data leaves the local machine

Model version clarification: The /sc model command compares the expected version in your config against the model version string reported by your agent runtime (e.g., in session metadata or API headers). It does NOT make API calls to verify the model — it reads information your agent already has.

Provenance note: This skill is developed by Live Neon (https://github.com/live-neon/skills) and published to ClawHub under the leegitw account. Both refer to the same maintainer.

Acceptance Criteria

  • [ ] /sc model verifies model version matches config
  • [ ] /sc model warns or fails on version drift based on strict setting
  • [ ] /sc fallback verifies fallback config entries exist in config file
  • [ ] /sc cache detects entries older than TTL
  • [ ] /sc cache --clear removes stale entries
  • [ ] /sc session detects cross-session state leakage
  • [ ] /sc session --clear-state remediates found issues
  • [ ] All checks integrated with HEARTBEAT

*Consolidated from 4 skills as part of agentic skills consolidation (2026-02-15).*

平台分布

OpenClaw

94.61%
按下载量换算7,048

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills