Handles GitCode issues: triage, first response, operator assignment, follow-up, environment verification, reproduction, fix, PR delivery, and reporting. Supports reply-only mode and auto-closing answered inquiries.
Ships in infra-skills. 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.
Read when SKILL.md points to them.
只执行当前请求和当前阶段明确要求的动作;按脚本返回的下一步推进。
| 请求 | 入口 |
|---|---|
| 只询问规则(policy_query) | 读取相关规则回答;不建运行树、不检查 Token/Git/CANN、不访问 API |
| 初始化、调整配置 | configuration-setup.md;复用已明确的选择,只做配置 |
| 仓库批量处理、续跑 | pipeline.md,新一轮执行 resume --new-run,续跑执行 resume |
| 显式单个 Issue URL、特殊时间或编号子集 | issue-intake.md;初始化见 runtime-setup.md |
| 明确要求咨询自动闭环 | maintenance-stale-close.md,默认 dry-run |
ISSUE_HANDLER_SKILL_ROOT 是当前安装的本 Skill 目录(链接安装使用实际目标),从本入口路径确定。已配置 batch 启动命令:
export ISSUE_HANDLER_SKILL_ROOT="<本 SKILL.md 所在目录的绝对路径>"
python3 "$ISSUE_HANDLER_SKILL_ROOT/scripts/issue_pipeline.py" resume --new-run --repository-root .
每次用户新发起的批量处理加 --new-run;继续已有轮次(包括新会话恢复)用普通 resume。脚本校验配置、恢复队列、选择扫描范围和分类,无需手动重建状态。返回 fix_configuration 时按字段错误修复或等待用户补值,再重跑原命令。
batch 以命令的 required_references 为当前阶段清单;同会话已读且内容未变化可复用,新会话重新读取。任务文件提供结果契约。普通执行调用脚本,参数查 --help;源码、测试、安装文档仅在开发或排错时加载。
| 条件 | 参考 |
|---|---|
| 复杂且独立的调查需要委派 | batch-analysis.md;简单范围任务由主会话处理 |
| 文字诊断、选择处理路径 | issue-routing.md |
| 草拟或审核回复 | response-writing.md |
| 已确认算子维护动作、需要责任人 | operator-handoff.md、operator-owner-candidates.md |
| 发送、跟进回复 | issue-comment-workflow.md、issue-followup.md |
| 复现根因、实施验证 | code-root-cause.md、code-validation.md |
| 交付确认、提交/PR/CI | delivery-confirmation.md、delivery-publish.md;pre-commit 钩子失败按 gitcode-toolkit/references/pre-commit.md 处置 |
| 发布或代码交付后补报告 | delivery-reporting.md |
| 恢复异常、能力或阶段故障 | runtime-state.md、runtime-capability-checks.md、policy-error-handling.md 对应条目 |
| 知识检索;显式知识维护 | runtime-knowledge.md;knowledge-maintenance.md |
GitCode API/Token/通用接口复用同级 gitcode-toolkit。首次安装或依赖异常见 安装指南。状态字段仅在手动维护对应状态时查 runtime-state-schema.md。
逐项有真实结果或明确等待对象、下一步及适用草稿;分析和报告有已核实代码链接,未定位或缺稿说明原因。batch 回读返回的 delivery_report,报告失败用 report 恢复;无需重复手写状态或生成同一报告。最终提供可点击报告链接,区分处理、列举与观察。
在 Skill 源仓运行 python3 -m pytest -q infra/gitcode-issue-handler/tests infra/gitcode-toolkit/tests 和 python3 tests/lib/skill_validator.py validate-skill infra/gitcode-issue-handler/SKILL.md。环境门禁变更额外覆盖延迟预检、缺 Token 恢复及 toolkit 兼容;无 NPU 不声称上板通过。
README.md (opens in a new tab)assets/classify_config.yaml.template (opens in a new tab)assets/operator_owners.yaml.template (opens in a new tab)docs/installation-guide.md (opens in a new tab)evals/evals.json (opens in a new tab)knowledge/SPEC-Issue.md (opens in a new tab)knowledge/index.md (opens in a new tab)knowledge/reference/index.md (opens in a new tab)knowledge/reference/issue_handling/comment_evidence.md (opens in a new tab)knowledge/reference/issue_handling/conversation_followup.md (opens in a new tab)knowledge/reference/issue_handling/index.md (opens in a new tab)knowledge/reference/issue_handling/mode_routing.md (opens in a new tab)knowledge/runbooks/curation/historical_issue_ingestion.md (opens in a new tab)knowledge/runbooks/curation/index.md (opens in a new tab)knowledge/runbooks/diagnosis/index.md (opens in a new tab)knowledge/runbooks/diagnosis/reproduce_before_change.md (opens in a new tab)knowledge/runbooks/field_notes/index.md (opens in a new tab)knowledge/runbooks/field_notes/ops_math/index.md (opens in a new tab)knowledge/runbooks/field_notes/ops_math/non_self_issue_patterns_2026_08_03.md (opens in a new tab)knowledge/runbooks/index.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
issue-triage, issue-automation, gitcode, pr-creation, issue-reply
/infra-skills:gitcode-issue-handlerfrom infra-skills
npx claudepluginhub catman626/cannbot-skills --plugin infra-skills4 skills in this plugin
/gitcode-issue-gen根据用户输入自动判断走两条路径之一:(PR路径) 用户提供 GitCode PR 链接时,按变更类型自动选用 Issue 模板,通过 GitCode API 创建 Issue 并完成 PR ↔ Issue 双向关联;(手动路径) 用户直接描述问题或要求"提 Issue / 生成草稿"时,交互式收集信息、生成草稿、查重,经确认后提交。当用户提供 PR 链接、要求"创建 Issue / 关联 Issue / 给 PR 建 Issue",或用户直接描述问题、要求"提单 / 生成草稿"时触发此 skill。/gitcode-pr-handler根据 GitCode PR 的代码变更,重新生成符合约定式提交规范的 PR 标题与符合仓库 PR 模板的 PR 描述(body),然后通过 GitCode API 写回 PR。当用户提供 PR 链接、要求"更新 PR / 生成标题 / 生成描述 / 改 PR 文案 / 重写 PR 标题描述"时触发此 skill。/gitcode-toolkitGitCode 协作通用基础参考(内部参考,不直接触发)。提供 GitCode API、Token 配置、URL 解析、日志规范、变更展示,Git 克隆/分支/diff/log/remote 通用操作,以及 PR 创建、Issue 创建和 Issue 评论工作流等共享文档与确定性脚本。供 gitcode-pr-handler、gitcode-issue-gen、gitcode-issue-handler 等 GitCode 协作类 skill 引用使用,本 skill 自身不响应用户触发。Other plugins' skills for the same job