/contribbot:fork-triagefrom contribbot
Evaluates upstream commits on a fork to determine cherry-pick strategy for secondary development branches. Assesses relevance, conflict risk, and value of each pending commit.
Ships in contribbot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
通过 MCP 工具评估 fork source 的 commits 对二开分支的影响,辅助 cherry-pick 决策。
适用场景:
{platform, instance, path},工具调用显式传完整对象;
已确认会话项目可以沿用,无法定位时再问用户。parent.status=confirmed,且有需要评估的二开分支。当前远端提交比较工具
只支持 GitHub.com,其他平台说明限制。contribbot:daily-sync 负责拉取和初步分流。contribbot:fork-triage 对非噪音的 pending commits 做深入的二开影响评估。
典型工作流:contribbot:daily-sync → contribbot:fork-triage。
调用 repo_config(repo)确认是 fork 模式。
如果不是 fork 模式,提示此 skill 仅适用于 fork 项目。
调用 upstream_list(repo)获取 fork source 的追踪状态。
从 upstream_list 结果中识别 pending commits。
如果没有 pending commits,提示"没有待处理的上游变更"并结束。
先获取证据:
commit_detail(repo={parent.repository 完整对象}、ref={sha}),读取 changed files 和 patch。compare_refs(repo={管理主体完整对象}、base={默认分支}、head={二开分支}),确认二开分支实际修改过哪些文件。如果 GitHub 没有返回 patch,或二开分支名称不明确,应将结论标为“观察/证据不足”,不能猜测无冲突。
对每条 pending commit,从三个维度评估:
| 维度 | 问题 | 判断依据 |
|---|---|---|
| 相关性 | 影响我们使用/修改的代码吗? | commit 涉及的文件路径、模块 |
| 冲突风险 | 和二开分支有潜在冲突吗? | 是否修改了我们也改过的文件/逻辑 |
| 价值 | 我们需要这个变更吗? | bug fix 通常需要,新 feature 看情况 |
| 分类 | 含义 | 建议动作 |
|---|---|---|
| 必须同步 | bug fix 或安全修复,影响我们的代码 | cherry-pick,优先处理 |
| 建议同步 | 有价值的改进,无冲突风险 | cherry-pick,正常排期 |
| 观察 | 可能相关但需要更多上下文 | 记为 todo,后续评估 |
| 跳过 | 不影响二开分支 | skip |
根据用户确认的分类,调用 upstream_daily_act:
issue_create(auto_todo=true)创建 tracking issue## Fork Triage Report — {repo}
**Fork Source**: {fork_source_repo}
**Pending Commits 评估**: {total} 条
### 评估结果
| Commit | 消息 | 分类 | 动作 | 理由 |
|--------|------|------|------|------|
| {sha7} | {message} | 必须同步 | issue #{n} | {理由} |
| {sha7} | {message} | 跳过 | skip | {理由} |
### 摘要
| 分类 | 数量 |
|------|------|
| 必须同步 | {n} |
| 建议同步 | {n} |
| 观察 | {n} |
| 跳过 | {n} |
### 下一步
- {列出需要优先处理的 cherry-pick 任务}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub darkingtail/contribbot --plugin contribbot12 skills in this plugin
/consultcontribbot:consult请 Claude 或 Codex 对设计、调查或代码提出只读第二意见,并记录主助手综合和用户决定。触发词:顾问、咨询、第二意见、让 Claude 讨论、consult。不是 Agent Team、独立验收或 GitHub Discussion。/daily-synccontribbot:daily-sync每日维护与追踪工作流。按 parent 和 tracking 分流:none 走维护日常,已确认来源才追踪变更。触发词:'daily sync'、'每日同步'、'日常巡检'。/dashboardcontribbot:dashboard项目仪表盘、项目归档与恢复:查看单项目或跨项目概况。触发词:'dashboard'、'项目概况'、'全局视图'、'归档项目'、'恢复项目'。/initcontribbot:init初始化当前 Git 仓库的 contribbot 上下文:核实完整仓库身份、读取项目配置并输出下一步。触发词:contribbot init、初始化 contribbot、进入项目上下文。/issuecontribbot:issueIssue 管理:浏览、查看详情、创建、关闭、评论。触发词:'issue'、'问题列表'、'创建 issue'、'关闭 issue'。/prcontribbot:prPR 管理:浏览、摘要、创建、更新、查看 review 评论、回复 review。触发词:'pr'、'pull request'、'创建 PR'、'回复 review'。Other plugins' skills for the same job