360 Secure SkillHub
360 安全技能中心

fix-ci

该 Skill 用于处理失败的 PR CI:查询检查状态、查看日志或检查链接、定位首个可操作错误,逐项应用最小修复并推送,重复检查直至通过,最后汇报失败作业、修复顺序和当前状态。

分类:开发
cursor
热度 27.68
最近更新 2026-10-19 06:48:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cursor/plugins/fix-ci
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
fix-ci
description
Find failing PR checks, inspect logs or external check links, and apply focused fixes

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