Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

sentryskillssentryskills 效率

Agent Skill

sentryskills 用于辅助安全审计、权限检查和凭据风险排查,适合在 OpenClaw 中需要复核安全边界、认证流程或敏感配置时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,560

周安装

144

GitHub Stars

1

下载量

1,117
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install sentryskills

简介

sentryskills 在每项任务上运行安全防护,防范提示注入与代码漏洞。

  • 适合在 OpenClaw 中强化执行环境安全性,降低误操作风险。
  • 通过 clawhub 安装并使用 openclaw skills install sentryskills 命令部署。
  • 需定期更新规则库,并结合人工复核应对新型攻击向量。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
sentryskills
description
SentrySkills - Automatic security guard that runs on EVERY task. Protects against prompt injection, data leaks, unsafe commands, and code vulnerabilities with zero external dependencies.
license
MIT-0

SentrySkills - Always-On Security Guard

SentrySkills is designed to run AUTOMATICALLY on every task. It provides three-stage protection (preflight → runtime → output) with predictive risk analysis.

⚠️ Installation ≠ Automatic Activation

After installing SentrySkills, you must configure your AGENTS.md to make it run automatically. See install/first_time_setup.md for details.

How It Works

On every task, SentrySkills:

  1. Preflight - Analyzes user intent and planned actions
  2. Runtime - Monitors behavior during execution
  3. Output - Redacts sensitive data before response
  4. Predictive - Warns about potential risks

Quick Enable (One Command)

Add this to your ~/.codex/AGENTS.md:

cat >> ~/.codex/AGENTS.md << 'EOF'
# SentrySkills - Security First
Before EVERY response, run:
python ~/.codex/sentryskills/shared/scripts/self_guard_runtime_hook_template.py \
  input.json \
  --policy-profile balanced \
  --out result.json
Then check result.json for final_action and follow it.
EOF

Restart Codex and you're protected!

When to Use SentrySkills

Use SentrySkills when you need AI agents to operate safely with:

  • Sensitive data access - Agents reading credentials, secrets, or private information
  • System modifications - Agents executing commands, writing files, or changing configurations
  • External communications - Agents making network requests or calling external APIs
  • Code generation - Agents producing code that might contain vulnerabilities
  • Production environments - Any scenario where security cannot be compromised
  • Multi-turn conversations - Detect subtle manipulation across multiple interactions

Examples:

✅ Use: When an agent needs to read environment variables or config files
✅ Use: When an agent is asked to execute shell commands
✅ Use: When an agent generates database queries or API calls
✅ Use: When an agent modifies system files or configurations
❌ Skip: Simple read-only queries on public documentation
❌ Skip: Basic explanations without system access

Skill Package Structure

This is a skill package that orchestrates multiple sub-skills:

  1. using-sentryskills - User-facing entry point
  2. sentryskills-orchestrator - Central coordination
  3. sentryskills-preflight - Pre-execution checks
  4. sentryskills-runtime - Runtime monitoring
  5. sentryskills-output - Output validation & redaction

Each sub-skill has its own SKILL.md with specific requirements.

Execution Requirements

  1. Run guard checks before each external output
  2. Process sequence: preflight → runtime → output guard → final decision
  3. Block: Prohibit original response, must refuse or redact
  4. Downgrade: Must downgrade expression and declare uncertainty
  5. Explanatory responses must also go through output guard

Recommended Usage

Default (turn_dir layout)

python shared/scripts/self_guard_runtime_hook_template.py \
  shared/references/input_schema.json \
  --policy shared/references/runtime_policy.balanced.json \
  --policy-profile balanced

With summary output

python shared/scripts/self_guard_runtime_hook_template.py \
  shared/references/input_schema.json \
  --out ./sentry_skill_log/sentryskills_summary.json

Legacy event stream

python shared/scripts/self_guard_runtime_hook_template.py \
  shared/references/input_schema.json \
  --log-layout legacy \
  --events-log ./sentry_skill_log/sentryskills_events.jsonl

Mandatory Logging Protocol

  1. Text-only judgment is prohibited - Runtime hook must execute each round
  2. Input JSON must include project_path (absolute path to avoid drift)
  3. Final response must provide:

- self_guard_final_action - self_guard_trace_id - self_guard_events_log (path to index or legacy events)

  1. If script execution fails, declare "security self-check not completed" and adopt conservative output strategy

Default Log Layout

Log root: ./sentry_skill_log/

Per-turn directories:

  • ./sentry_skill_log/turns/YYYYMMDD_HHMMSS_<turn_id>/input.json
  • ./sentry_skill_log/turns/YYYYMMDD_HHMMSS_<turn_id>/result.json

Global index:

  • ./sentry_skill_log/index.jsonl

Session state:

  • ./sentry_skill_log/.self_guard_state/

Policy Profiles

  • balanced: Standard security (default)
  • strict: Maximum security
  • permissive: Minimal interference

Detection Coverage

Preflight Stage

  • Prompt injection patterns
  • Malicious intent detection
  • Sensitive topic inference
  • Action classification

Runtime Stage

  • Event monitoring
  • Source tracking
  • Anomaly detection
  • Behavioral analysis

Output Stage

  • Sensitive data redaction
  • Source disclosure handling
  • Confidence assessment
  • Safe response generation

Predictive Analysis

  • Resource exhaustion prediction
  • Scope creep detection
  • Privilege escalation warning
  • Data exfiltration path analysis
  • Multi-turn grooming detection

Integration

As Codex Skill

Copy to skills/sentryskills/ and reference in agent configuration.

Configuration Files

  • shared/references/runtime_policy.*.json - Security policy profiles
  • shared/references/detection_rules.json - Detection rule definitions
  • shared/references/input_schema.json - Input validation schema

Testing

# Test predictive analysis
python test_predictive_analysis.py

# Test integration
python test_integration.py

Event Types

The system emits structured events for:

  • preflight_result - Pre-execution check outcome
  • runtime_result - Runtime monitoring outcome
  • output_guard_result - Output validation outcome
  • predictive_analysis_result - Risk prediction (if enabled)
  • final_decision - Overall decision with rationale
  • hook_end - Completion with duration

Each event includes:

  • Trace ID for correlation
  • Decision (block/downgrade/allow/continue)
  • Reason codes
  • Matched rules
  • Metadata

Performance

  • Typical latency: 50-100ms per check
  • Memory: <50MB baseline
  • Zero external dependencies (Python stdlib only)

Security Properties

  • No data exfiltration: All processing is local
  • No LLM calls: Pure rule-based and heuristic
  • Audit trail: Complete event log for compliance
  • Transparent: All decisions include reason codes

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.93%
按下载量换算882

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills