Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

check-ci检查 CI

Agent Skill

check-ci 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

665

周安装

28

GitHub Stars

4

下载量

233
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:check-ci(检查 CI)
来源仓库:https://github.com/s-hiraoku/synapse-a2a
仓库路径:skills/check-ci
安装命令:
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill check-ci
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill check-ci

简介

check-ci 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态和变更事项进行整理。

  • 适用于开发协作场景,可协助分析 CI 状态、代码变更和影响范围。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法需参考原始 README 和项目文档。
  • 安装前建议确认权限范围和维护状态,注意是否涉及联网、命令执行或文件读写操作。
  • check-ci 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Check CI Status

This skill checks the current CI status for the active branch or PR, reports GitHub Actions workflow results, merge conflict state, CodeRabbit review status, and optionally suggests automatic repair via /fix-ci, /fix-conflict, or /fix-review.

Usage

/check-ci          # Show current CI status + conflict + review state
/check-ci --fix    # Show status and suggest fix commands for any issues found
/check-ci --wait   # Report if CI is still running

Workflow

Step 1: Determine Context

Get the current branch:

git rev-parse --abbrev-ref HEAD

Check if a PR exists for the current branch:

gh pr view --json number,url,statusCheckRollup 2>/dev/null

If the command succeeds, a PR exists. Record the PR number and URL for use in subsequent steps.

Step 2: Fetch CI Status

If a PR exists:

gh pr checks

This returns all checks associated with the PR along with their statuses.

If no PR exists:

gh run list --branch <branch> --limit 3 --json databaseId,status,conclusion,name,updatedAt

This returns the most recent workflow runs for the branch.

Step 2b: Check Merge Conflict State

If a PR exists, check the mergeable status:

gh pr view --json mergeable,mergeStateStatus

Report the merge state:

  • MERGEABLE: No conflicts
  • CONFLICTING or mergeStateStatus=DIRTY: Merge conflicts exist
  • UNKNOWN: GitHub is still computing (note this in the report)

Step 2c: Check CodeRabbit Review Status

If a PR exists, check for CodeRabbit reviews:

gh api "repos/$(gh repo view --json nameWithOwner -q '.nameWithOwner')/pulls/$(gh pr view --json number -q '.number')/reviews" \
  --jq '[.[] | select(.user.login == "coderabbitai[bot]")] | length'

If CodeRabbit reviews exist, fetch inline comment count:

gh api "repos/$(gh repo view --json nameWithOwner -q '.nameWithOwner')/pulls/$(gh pr view --json number -q '.number')/comments" \
  --jq '[.[] | select(.user.login == "coderabbitai[bot]")] | length'

Step 3: Report Status

List each check or workflow with its status:

  • pass: The check completed successfully
  • fail: The check failed
  • pending: The check has not started yet
  • running: The check is currently in progress

For failed checks: show the failure summary. Fetch details if needed:

gh run view <run_id> --log-failed

For running checks: show the elapsed time since the run started.

Merge conflict state (from Step 2b):

  • If CONFLICTING/DIRTY: show "Merge Conflicts: YES — conflicts with base branch"
  • If MERGEABLE: show "Merge Conflicts: None"
  • If UNKNOWN: show "Merge Conflicts: Computing..."

CodeRabbit review (from Step 2c):

  • If reviews exist: show "CodeRabbit Review: inline comments"
  • If no reviews: show "CodeRabbit Review: No review yet"

Step 4: Handle --fix Flag

If the --fix flag is provided, check for issues in this priority order:

  1. Merge conflicts (highest priority): If conflicts exist, inform: "Merge conflicts detected. Run /fix-conflict to attempt automatic resolution. Resolve conflicts before addressing other issues."
  2. CI failures: If failures exist, inform: "CI failures detected. Run /fix-ci to attempt automatic repair."
  3. CodeRabbit comments: If actionable review comments exist, inform: "CodeRabbit review has actionable comments. Run /fix-review to address them."

If multiple issues exist, list all of them with their suggested fix commands.

If the --fix flag is provided but no issues exist:

  • Report that all checks are passing, no conflicts, and no review issues

Step 5: Handle --wait Flag

If the --wait flag is provided and checks are still running:

  1. Report that CI is still in progress
  2. List which checks are running and their elapsed time
  3. Suggest: "Run /check-ci again later to see final results, or wait for the PostToolUse hook to notify on completion."

If the --wait flag is provided and all checks have completed:

  • Report the final status of all checks

Error Handling

  1. gh CLI not found: Report "The gh CLI is not installed. Install it from https://cli.github.com/ to use this skill."
  2. gh CLI not authenticated: Report "The gh CLI is not authenticated. Run gh auth login to authenticate."
  3. No CI runs found: Report "No CI runs found for branch <branch>. This may mean no workflows are configured, or no commits have been pushed to this branch yet."
  4. Network errors: Report the error message from gh and suggest retrying.

Examples

Basic CI status check

/check-ci

Example output:

CI Status for branch: feature/my-feature
PR: #42 (https://github.com/owner/repo/pull/42)

  CI Checks:
    tests       pass     2m 30s
    lint        pass     45s
    typecheck   fail     1m 12s
    build       running  3m 10s (in progress)

  1 failed, 1 running, 2 passed out of 4 checks.

  Failed: typecheck
    error: synapse/server.py:42 - Argument of type "str" is not assignable to parameter "port" of type "int"

  Merge Conflicts: None
  CodeRabbit Review: 3 inline comments (1 bug, 2 suggestions)

Check and suggest fix

/check-ci --fix

Check if CI is still running

/check-ci --wait

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.09%
按下载量换算77

Claude

30.28%
按下载量换算71

Cursor

20.26%
按下载量换算47

Gemini CLI

8.6%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills