跳到正文
Skillpedia
部署与云(DevOps)15k · #10934

fix-ci

它能做什么

让助手在拉取请求上找到失败的任务,并逐步修复它。适合持续集成检查不断失败的开发者。

适用场景

  • ✓当你的分支或拉取请求上的检查失败时。
  • ✓当你希望助手阅读日志并找到第一个真正的错误时。
  • ✓当你希望从检查失败到通过形成快速循环,并且每次只做小修复时。

技能链接

https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/fix-ci/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/fix-ci/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的拉取请求检查显示为红色。请找到第一个真正的错误并修复它,然后继续,直到全部通过。”

每周 5 个新技能,1 分钟读完。

工作原理

助手会读取每项检查的状态,查看日志或检查链接以找到第一个真正的错误,做出最小且安全的修复,推送代码,并再次检查,直到全部变为绿色。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Fix CI

Trigger

Branch or PR CI is failing and needs a fast, iterative path to green checks.

Workflow

  1. Resolve the active PR and inspect gh pr checks --json name,bucket,state,workflow,link.
  2. Inspect failed jobs and extract the first actionable error. Use GitHub Actions logs when available; otherwise use the check link to identify the failing command or service.
  3. Apply the smallest safe fix.
  4. Push, re-check the PR check set, and repeat until green.

Guardrails

  • Fix one actionable failure at a time.
  • Prefer minimal, low-risk changes before broader refactors.
  • Keep gh pr checks as the source of truth for overall PR CI state.

Output

  • Primary failing job and root error
  • Fixes applied in iteration order
  • Current CI status and next action
常见问题

如果无法获取日志怎么办?

它会使用检查链接来确定失败的命令或服务。

它会进行大规模重构吗?

不会。它在做更广泛的改动之前,更倾向于最小化、低风险的修改。

最后它会报告什么?

最主要的失败任务、按顺序应用的修复,以及当前状态和下一步。

详情

作者的原始描述

Find failing PR checks, inspect logs or external check links, and apply focused fixes

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10934
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能