360 Secure SkillHub
360 安全技能中心

fix-ci

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

michael-denyer
热度 29.75
最近更新 2026-10-19 04:13:10
分类:开发依赖:代码执行 / 第三方 API应用场景:调试排错 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add michael-denyer/pstack-claude/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