SuperAPI AI 工具集

resolve-issues

编程与开发

查看项目

更新于 10-15 21:46

技能介绍

用途:按结构化流程解决 GitHub issue,避免干扰主开发分支,并统一 PR 创建入口。

主要能力:读取当前 git 状态、分支、已有 worktree、开放 issue 与 gh 认证状态;选定 issue 后用 EnterWorktree 建立隔离会话,并用 git branch -m <type>/<issue>-<description> 重命名分支;按 TDD 红→绿→重构实现修复;提交中使用自动关闭关键词关联 issue;推送分支后把 PR 创建交给 github:create-pr 处理(含质量与安全检查、关键字关联、非默认分支告警及 /github:review-pr 交接)。

使用方式:选择 issue 时结合 $ARGUMENTS 与优先级;可用参数包括 --draft(需先收集反馈再评审)和 --no-monitor(用户明确退出评审循环时)。推送命令示例:git push -u origin <branch-name>;随后调用 Skill("github:create-pr", "Closes #456")。技能不直接调用 gh pr create。

合并后清理:正常情况下由 /github:review-pr 收尾完成(移除 worktree、切回 main、同步 origin);本技能的第四阶段仅作为兜底,需先用 gh pr view <PR#> --json state -q .state 确认 MERGED,检查 git worktree list 是否仍存在,确认当前仍在 issue 分支后再用 ExitWorktree action:"remove" 清理,随后 git fetch --prune。若存在未提交更改,ExitWorktree 会拒绝,需用户确认后才可 discard_changes: true。

限制:具体项目检查命令、提交规范与其余细节在 references/requirements.md、references/pr-creation-handoff.md、references/workflow-details.md、references/quality-validation.md、references/examples.md 中,资料未展开;支持平台与依赖版本暂未提供。