<< All versions
Skill v1.0.0
currentAutomated scan100/100trinhhaox/ag-kit/scope-lock
──Details
PublishedNovember 3, 2026 at 01:47 PM
Content Hashsha256:ecdb82f2354c59dd...
Git SHAdc88b54ce4e6
──Files
Files (1 file, 1.2 KB)
SKILL.md1.2 KBactive
SKILL.md · 35 lines · 1.2 KB
name: scope-lock description: Scope restriction for agent edits. Limits Write/Edit to specified paths only. version: 1.0
Scope Lock
Restricts file editing to a defined set of paths. When a freeze scope is active, all Write/Edit operations outside the allowed paths are blocked by the privacy-guard hook.
How It Works
- User runs
/freeze src/components/ src/lib/api.ts - Allowed paths are written to
.agent/.freeze-scope(one path per line) privacy-guard.shreads this file before every Edit/Write- If target file is outside all allowed paths → BLOCKED
- User runs
/unfreeze→ scope file deleted, all edits allowed again
Rules for Agents
- ALWAYS check if
.agent/.freeze-scopeexists before suggesting edits - If scope is active, ONLY propose changes to files within the allowed paths
- If a necessary change is outside scope, inform the user and suggest
/unfreezefirst - Never modify or delete
.agent/.freeze-scopedirectly — use/unfreeze
State File Format
.agent/.freeze-scope:
src/components/src/lib/api.ts
Each line is either a directory (trailing /) or exact file path. A file matches if its path starts with any listed entry.