Commit Graph

4 Commits

Author SHA1 Message Date
wbtiger b0e9fa99e3 fix: admin/owner 也默认走 Fork,除非用户明确要求 2026-04-18 17:07:48 +08:00
wbtiger abcab5a516 docs(skills): 添加 Fork-based PR 协作流程规范
- gitlink-shared: 新增 PR 协作流程章节(Fork 流程 + 错误做法 + 例外)
- gitlink-pr: 区分「向他人仓库提 PR」和「在自己仓库提 PR」两种场景

确保 AI Agent 遵循标准开源协作规范,不直接往他人主仓库推分支
2026-04-18 16:57:55 +08:00
wbtiger 90dee6eeb5 fix(skills): add tool boundary rules to prevent gh/hub misuse on GitLink
Problem:
AI agents (e.g., Claude Code) sometimes use `gh` (GitHub CLI) instead of
`gitlink-cli` when operating on GitLink repositories, causing 'command not
found' errors or targeting the wrong platform.

Solution:
- Add ' Tool Boundary' section to gitlink-shared/SKILL.md with platform-
  to-tool mapping table, judgment criteria, and dual-platform guidance
- Add CRITICAL one-liner to all 10 sub-skills ensuring agents see the
  constraint even without reading shared
- Does NOT block `gh` for GitHub operations — only prevents misuse on
  GitLink resources

Tested with 5 scenarios confirming:
1. GitLink operations correctly use gitlink-cli
2. GitHub operations still use gh when appropriate
3. Ambiguous cases default to gitlink-cli when skill is loaded
2026-04-18 16:14:20 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00