fix(skills): 添加工具使用边界规则,防止 Agent 误用 gh 操作 GitLink #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/skill-tool-boundary-gitlink"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
AI Agent(如 Claude Code)在操作 GitLink 仓库时,误用 gh(GitHub CLI)代替 gitlink-cli,导致 command not found 错误。
来源:用户反馈 Bug #12
解决方案
1. gitlink-shared/SKILL.md 新增全局策略(+34 行)
2. 其余 10 个子 skill 各加一行本地禁令
改动:11 个文件,+46 行
不影响 GitHub 操作——只防止在 GitLink 场景下误用 gh。