scope-guard
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "scope-guard" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0e97fde0bb9206682e2e34fa9676d3efeebfb7dc580585c8cdc5e6fe31bada6f. Verify the upstream source and version against https://skillhub.cn/skills/user_f21d3e36/scope-guard before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Make AI do only what you tell it: restrict AI to the specified scope, auto-report when finished, and stop itself when encountering destructive operations.
Introduction source: third_party · user_f21d3e36 · 1.1.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: scope-guard
slug: scope-guard
displayName: 綁架AI思維 - 智能範圍守衛
description: 讓 AI 只做你說的事,做完自動匯報,破壞性操作自己喊停
version: 1.1.0SCOPE-GUARD — 智能範圍守衛
一句話簡介
讓 AI 只做你說的事,做完自動匯報,破壞性操作自己喊停。
遇到了嗎?
- 讓 AI 修一個小 Bug,它順手把整個專案重構了
- 改完代碼才發現想要的版本已經被覆蓋了
- AI 在迭代中悄悄偏離了主題,你說「停」的時候已經改了一大堆不相干的東西
- 測試失敗了,AI 自作主張回滾了不該動的檔案
這些不是 AI 的錯——是協作缺乏邊界。
Scope-Guard 就是這層邊界。
它能做什么
🛡️ 任務邊界智能識別
開工前自動推斷「這次要動什麼、不動什麼」,你有問題直接說,我立即修正。不會偷偷擴展。
🛡️ 自己知道什麼時候該停下來
準備刪除檔案?準備覆蓋未備份的原始文件?準備「順手」重構不相干的模組?我會自己停下來,不等到你喊停。
🛡️ 智能備份,只備必要的
覆蓋前自動快照,只備份跟任務相關的檔案,不備份不需要的。大文件只存變更差異,不佔空間。
🛡️ 一鍵回滾,相關檔案一起提醒
回滾時自動告知「這個任務還改了 B 和 C,要不要一起回滾?」,避免部分回滾造成不一致。
🛡️ 緊急修復模式
生產環境出事了?說「緊急」,我立刻繞過確認流程全力修補,事後自動補報告。
🛡️ 側向發現自動標記,不打斷主線
發現新問題?只標記、不處理,繼續當前任務。對話結束後一次性導出清單給你。
🎭 模擬數據自動生成
測試、展示需要的數據,我自動生成,不問你,直接告知覆蓋了哪些場景。
🧪 測試自動觸發,失敗了自己停下來
代碼完成後自動跑測試,失敗時停在失敗狀態,不自動回滾、不自動修復,等你的指令。
快速開始
在任意對話開頭說:
「🔒 範圍守衛 on」
立即啟動。
快捷指令一覽
| 你說 | 我做 |
|---|---|
🔒 緊急 |
緊急修復模式,全力修補不打擾 |
🔓 守衛 off |
關閉守衛,頭腦風暴隨意發散 |
只修這個 |
範圍鎖死,禁止任何擴展 |
回滾 |
回滾到上一個安全版本 |
看側向清單 |
查看這次發現的所有側向問題 |
看備份 |
查看所有備份版本 |
停 |
立即停止,導出當前狀態 |
版本保留策略
預設保留 3 版,智能分層:
- PRE × 1:任務開始前的原版快照,永久保留
- BAK × 2:覆蓋前的安全版本,隨時可回滾
- MID × N:迭代中途檢查點,完成後自動收斂
複雜任務說「多留幾版」,最多擴至 5 版。
適用場景
| 場景 | 建議模式 |
|---|---|
| 修 Bug / 代碼修改 | 🔒 範圍守衛 on |
| 生產環境緊急修復 | 🔒 緊急 |
| 頭腦風暴 / 創意探索 | 🔓 守衛 off |
| 重構 / 大範圍調整 | 🔒 範圍守衛 on + 多留幾版 |
設計理念
AI 應該是你的幫手,不是你的驚喜製造機。 Scope-Guard 把「靠譜」變成可配置的預設行為。
作者備註
本技能由 OpenClaw 用戶社群共創,持續迭代中。 有問題或建議?歡迎反饋。
📊 使用統計
本技能會自動記錄使用情況到本地文件 ~/.qclaw/skills/scope-guard/usage.json。
記錄內容
{
"totalSessions": 0,
"totalTasks": 0,
"rollbacks": 0,
"emergencyMode": 0,
"lastUsed": null,
"sessions": []
}
安全聲明
- ✅ 只記錄維度(啟動次數、任務次數、回滾次數等)
- ❌ 不記錄任務名稱、檔案路徑、客戶信息等敏感內容
- ✅ 數據完全本地存儲,不上傳、不外傳
- ✅ 說「清理統計」可一鍵清空記錄
📋 更新日誌
v1.1.0(2026-07-20)
新增功能:
- ✅ 使用統計模塊(自動記錄啟動次數、任務次數、回滾次數)
- ✅ 統計數據本地存儲,不上傳,不記錄敏感信息
- ✅ 支持「清理統計」一鍵清空
安全性:
- 只記維度(次數、日期),不記錄任務內容
- 數據完全本地化,符合隱私保護原則
v1.0.0(初始版本)
- 初始功能發布
- 任務邊界智能識別
- 智能備份與回滾
- 緊急修復模式
- 側向發現標記
Current listing version
1.1.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决AI越界修改、缺乏边界控制的核心痛点
- 提供完整闭环体验:边界识别、自动备份、回滚、紧急模式
- 适用于代码修复、生产环境应急等高频刚需场景
Highlights
- 触发词精准完整:「🔒 范围守卫 on」、「🔒 紧急」等
- 快捷指令覆盖全面:「只修这个」、「回滚」、「看侧向清单」
- 边界清晰,不易误触或漏触
Areas to improve
-
description写错位置 Reported severity: Minor
顶层frontmatter中description为空,实际描述内容在skill_body内部
Recommendation: 将description内容移至顶层frontmatter中
Highlights
- 结构清晰:快速开始、快捷指令、版本策略分层明确
- 含端到端示例和适用场景表格
- frontmatter完整,单文件长度合规
Highlights
- 覆盖主要异常:紧急模式、测试失败自动停止、侧向问题不处理
- 不可逆操作有确认机制:删除/覆盖前自动备份
- 统计模块安全声明完整:本地存储、不上传、不记敏感信息
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.