dgriffin831

Guardrails

运维安全v1.0.1
作者:dgriffin831更新于 2026-05-17共 2 个版本 · 最新版本发布于 2026-02-02guardrails@clawhub_dgriffin831/guardrails
监控告警安全扫描故障排查

据 AlphaMoat 统计,截至 2026-09,Guardrails 累计下载 3,362 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,352 位,在「运维安全」分类(264 个)中排名第 216 位。

累计安装
104
累计下载
3,362
星标
-
全站排名
#3,352
全站前 67% · 「运维安全」前 82%
平台累计安装累计下载星标评论
ClawHub ↗1043,307-1
SkillHub ↗1023,362-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它通过环境发现、风险分类和用户访谈生成 GUARDRAILS.md 与配置文件;review 模式检查现有配置,monitor 模式读取监控报告。该指南要求在写入前展示生成内容并征求确认。发现过程可能接触工作区资料,生成文件也可能包含敏感策略信息,需先审阅并按适当权限保存。 选定的工作区内容和回答可能发送至 OpenAI 或 Anthropic,模型处理前应审查。

资料发布于 2026-10-29

可以用来做什么

  • 发现工作区中的技能与集成,并整理潜在风险。
  • 通过访谈生成或复核工作区防护规则。
  • 根据监控报告判断是否需要关注或重新审核。

什么时候用

  • 需要为 OpenClaw 工作区制定或更新防护策略时。
  • 需要在写入配置文件前由用户检查并确认时。
  • 需要定期检查工作区变化时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

为这个工作区列出运行 guardrails setup 前需要说明的数据访问范围和确认步骤。
根据监控报告整理需要人工复核的问题,不要直接修改配置。

月度数据趋势

累计下载3,362
1,9952,7293,4632026-03 · 累计下载 2,0962026-05 · 累计下载 2,6192026-06 · 累计下载 2,7322026-07 · 累计下载 3,0242026-08 · 累计下载 3,1722026-09 · 累计下载 3,36226-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,362—-
2026-083,172+4.9%-
2026-073,024+10.7%-
2026-062,732+4.3%-
2026-052,619—-
2026-032,096—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.0 KB · SkillHub v1.0.1
# guardrails - Interactive Security Guardrails Configuration

Helps users configure comprehensive security guardrails for their OpenClaw workspace through an interactive interview process.

## Commands

### `guardrails setup`
**Interactive setup mode** - Guides user through creating their GUARDRAILS.md file.

**Workflow:**
展开全部(共 70 行)
1. Run environment discovery: `bash scripts/discover.sh`
2. Classify risks: `bash scripts/discover.sh | python3 scripts/classify-risks.py`
3. Generate tailored questions: `bash scripts/discover.sh | python3 scripts/classify-risks.py | python3 scripts/generate_questions.py`
4. **Conduct interactive interview** with the user:
   - Ask questions from the generated question bank (tailored to discovered environment)
   - Present suggestions for each question
   - Allow custom answers
   - Follow up when appropriate
5. Generate GUARDRAILS.md: `echo '<json>' | python3 scripts/generate_guardrails_md.py /path/to/guardrails-config.json`
   - Stdin JSON format: `{"discovery": {...}, "classification": {...}, "answers": {...}}`
6. **Present the generated GUARDRAILS.md for review**
7. Ask for confirmation before writing to workspace
8. Write `GUARDRAILS.md` to workspace root
9. Save `guardrails-config.json` to workspace root

**Important:**
- Be conversational and friendly during the interview
- Explain why each question matters
- Provide context about discovered risks
- Highlight high-risk skills/integrations
- Allow users to skip or customize any answer
- Review the final output with the user before writing

### `guardrails review`
**Review mode** - Check existing configuration against current environment.

**Workflow:**
1. Run discovery and classification
2. Load existing `guardrails-config.json`
3. Compare discovered skills/integrations against config
4. Identify gaps (new skills not covered, removed skills still in config)
5. Ask user about gaps only - don't re-interview everything
6. Update config and GUARDRAILS.md if changes needed

### `guardrails monitor`
**Monitor mode** - Detect changes and potential violations.

**Workflow:**
1. Run: `bash scripts/monitor.sh`
2. Parse the JSON report
3. If status is "ok": silent or brief acknowledgment
4. If status is "needs-attention": notify user with details
5. If status is "review-recommended": suggest running `guardrails review`

Can be run manually or via cron/heartbeat.

## Files Generated

- **GUARDRAILS.md** - The main guardrails document (workspace root)
- **guardrails-config.json** - Machine-readable config for monitoring (workspace root)

## Notes

- This skill only helps *create* guardrails - enforcement is up to the agent
- Discovery (`discover.sh`) uses bash + jq; classification (`classify-risks.py`) uses Python standard library only
- Question generation and GUARDRAILS.md generation require an LLM — set `OPENAI_API_KEY` or `ANTHROPIC_API_KEY`
- Python scripts require the `requests` library (`pip install requests`)
- Discovery and classification are read-only operations
- Only `setup` and `review` modes write files, and only with user confirmation

「运维安全」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。