360 Secure SkillHub
360 安全技能中心

fix-ci

读取目标 checkout 的 PR 头信息与失败检查,展开失败作业的编号日志,定位根因后复现、做最小修复、运行失败命令并推送,随后刷新读数直到 CI 变绿;无法获取的检查证据会如实报告缺口。

分类:开发
michael-denyer
热度 0.00
最近更新 2026-12-05 11:40:29

安装

发给 Agent
帮我安装这个技能: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.
  • When gh pr checks fails with a GraphQL refusal, as in a Claude Code cloud session, read the check runs and commit statuses on the PR's head with the REST commands in Reading a PR from a Claude Code cloud session, and treat the two together as the source of truth there.

Output

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