Co-Pilot / 辅助式
更新于 a month ago
gh-issue-fix-flow
DDimillian
1.5k
Dimillian/Skills/gh-issue-fix-flow
💡 摘要
该技能自动化了从问题收集到推送的GitHub问题解决工作流程。
🎯 适合人群
软件开发人员DevOps工程师项目经理开源贡献者质量保证测试人员
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
安全分析中风险
该工作流程涉及执行shell命令和访问GitHub,如果配置不当可能会暴露敏感数据。确保适当的访问控制并验证输入以降低风险。
name: gh-issue-fix-flow description: End-to-end GitHub issue fix workflow using gh, local code changes, builds/tests, and git push. Use when asked to take an issue number, inspect the issue via gh, implement a fix, run XcodeBuildMCP builds/tests, commit with a closing message, and push.
Gh Issue Fix Flow
Overview
Resolve a GitHub issue from intake through fix, validation, and push using gh, local edits, XcodeBuildMCP, and git.
Workflow
1) Intake and issue context
- Use
gh issue view <id> --repo <owner/repo> --commentsto get the full issue context. - If the repo is unclear, run
gh repo view --json nameWithOwnerto confirm. - Capture reproduction steps, expected behavior, and any maintainer notes.
2) Locate the code path
- Use
rg -nto locate likely files and entry points. - Read the relevant code paths with
sed -norrg -ncontext. - Follow repo-specific conventions (AGENTS/CLAUDE instructions).
3) Implement the fix
- Edit the minimal set of files.
- Keep changes aligned with existing architecture and style.
- Add tests when behavior changes and test coverage is practical.
4) Build and test
- Use XcodeBuildMCP for required builds/tests:
- Set defaults once:
mcp__XcodeBuildMCP__session-set-defaults. - Build:
mcp__XcodeBuildMCP__build_macosormcp__XcodeBuildMCP__build_sim. - Tests: prefer targeted schemes (e.g.,
mcp__XcodeBuildMCP__test_sim).
- Set defaults once:
- If macOS tests fail due to deployment target mismatches, run the equivalent iOS simulator tests.
- Report warnings or failures; do not hide them.
5) Commit and push
- Check for unrelated changes with
git status --short. - Stage only the fix (exclude unrelated files).
- Commit with a closing message:
Fix … (closes #<issue>). - Push with
git push.
6) Report back
- Summarize what changed and where.
- Provide test results (including failures).
- Note any follow-ups or blocked items.
五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析
优点
- 简化问题解决过程
- 与GitHub CLI良好集成
- 鼓励编码最佳实践
- 促进协作
缺点
- 需要熟悉GitHub CLI
- 可能无法覆盖所有边缘情况
- 依赖于XcodeBuildMCP
- 新用户的学习曲线
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 Dimillian.
