fix(skills): 添加工具使用边界规则,防止 Agent 误用 gh 操作 GitLink #5

Merged
wbtiger merged 1 commits from fix/skill-tool-boundary-gitlink into master 2026-04-18 16:38:10 +08:00
Member

问题

AI Agent(如 Claude Code)在操作 GitLink 仓库时,误用 gh(GitHub CLI)代替 gitlink-cli,导致 command not found 错误。

来源:用户反馈 Bug #12

解决方案

  • 新增「 工具使用边界」章节
  • 平台→工具映射表:GitLink → gitlink-cli,GitHub → gh
  • 判断标准:remote URL 或用户指定平台

2. 其余 10 个子 skill 各加一行本地禁令

  • CRITICAL:GitLink 操作只能用 gitlink-cli,禁止用 gh

改动:11 个文件,+46 行

不影响 GitHub 操作——只防止在 GitLink 场景下误用 gh。

## 问题 AI Agent(如 Claude Code)在操作 GitLink 仓库时,误用 gh(GitHub CLI)代替 gitlink-cli,导致 command not found 错误。 来源:用户反馈 Bug #12 ## 解决方案 ### 1. gitlink-shared/SKILL.md 新增全局策略(+34 行) - 新增「⛔ 工具使用边界」章节 - 平台→工具映射表:GitLink → gitlink-cli,GitHub → gh - 判断标准:remote URL 或用户指定平台 ### 2. 其余 10 个子 skill 各加一行本地禁令 - CRITICAL:GitLink 操作只能用 gitlink-cli,禁止用 gh ## 改动:11 个文件,+46 行 不影响 GitHub 操作——只防止在 GitLink 场景下误用 gh。
wbtiger added 1 commit 2026-04-18 16:30:02 +08:00
42f05bd326 fix(skills): 添加工具使用边界规则,防止 Agent 误用 gh 操作 GitLink
Problem: AI Agent 在操作 GitLink 仓库时误用 gh(GitHub CLI),导致 command not found。

Solution:
- gitlink-shared/SKILL.md 新增「 工具使用边界」章节(+34行)
- 其余 10 个子 skill 各加一行 CRITICAL 禁令
- 不影响 GitHub 操作(按平台区分工具)

Closes Bug #12
wbtiger merged commit eecfb2a453 into master 2026-04-18 16:38:10 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#5
No description provided.