trinhhaox/ag-kit/scope-lock
Claude Code and agent skill by trinhhaox/ag-kit
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Scope restriction for agent edits. Limits Write/Edit to specified paths only.
Install
npx vskill@latest install trinhhaox/ag-kit/scope-lockSKILL.md
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:
Each line is either a directory (trailing /) or exact file path. A file matches if its path starts with any listed entry.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/scope-lock/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/trinhhaox/ag-kit/scope-lock)