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
累計下載
3362
星標
-
全站排名
#3,352
全站前 67% · 「運維安全」前 82%
平台累計安裝累計下載星標評論
ClawHub ↗1043307-1
SkillHub ↗1023362-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它透過環境發現、風險分類和使用者訪談生成 GUARDRAILS.md 與配置檔案;review 模式檢查現有配置,monitor 模式讀取監控報告。該指南要求在寫入前展示生成內容並徵求確認。發現過程可能接觸工作區資料,生成檔案也可能包含敏感策略資訊,需先審閱並按適當許可權儲存。 選定的工作區內容和回答可能傳送至 OpenAI 或 Anthropic,模型處理前應審查。

資料釋出於 2026-10-29

可以用來做什麼

  • 發現工作區中的技能與整合,並整理潛在風險。
  • 透過訪談生成或複核工作區防護規則。
  • 根據監控報告判斷是否需要關注或重新稽核。

什麼時候用

  • 需要為 OpenClaw 工作區制定或更新防護策略時。
  • 需要在寫入配置檔案前由使用者檢查並確認時。
  • 需要定期檢查工作區變化時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

為這個工作區列出執行 guardrails setup 前需要說明的資料訪問範圍和確認步驟。
根據監控報告整理需要人工複核的問題,不要直接修改配置。

月度資料趨勢

累計下載3362
1995272934632026-03 · 累計下載 20962026-05 · 累計下載 26192026-06 · 累計下載 27322026-07 · 累計下載 30242026-08 · 累計下載 31722026-09 · 累計下載 336226-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093362—-
2026-083172+4.9%-
2026-073024+10.7%-
2026-062732+4.3%-
2026-052619—-
2026-032096—-

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),按月更新。口徑說明見資料方法。