Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计异常

ci-monitorCI 监控器

Agent Skill

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

总安装

210

周安装

9

GitHub Stars

1

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dhughes/claude-marketplace --skill ci-monitor

简介

ci-monitor 持续轮询 GitHub PR 的 CI/CD 检查结果直至全部完成并发出通知。

  • 绝不中途放弃监控,无论 pipeline 耗时几分钟还是超过一小时都会坚持等待结果。
  • 依赖 GitHub CLI 获取实时状态更新,自动识别成功或失败两种终态情形。
  • 通过视觉与音频双重提醒机制告知最终结论,便于用户及时采取后续行动。
  • ci-monitor 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

GitHub CI Monitor

Monitor GitHub Pull Request CI/CD checks continuously until all checks complete, then provide visual and audio notification of the result.

Core Behavior

CRITICAL: Be tenacious. CI pipelines vary wildly in duration—some complete in 2 minutes, others take over an hour. Never give up monitoring. Continue polling until receiving a definitive pass or fail result, or until explicitly stopped by the user.

Prerequisites

Ensure the GitHub CLI (gh) is installed and authenticated. Verify with:

gh auth status

Monitoring Workflow

Step 1: Identify the PR

Determine the PR to monitor. If user specifies a PR number, use that. Otherwise, detect from current branch:

gh pr view --json number,title,url,headRepository

If no PR exists for the current branch, inform the user and offer to help create one.

Step 2: Start Monitoring Loop

Begin the polling loop with clear user feedback:

  1. Print initial status message: "Monitoring PR #X: [title]"
  2. Print the PR URL for reference
  3. Begin polling every 60 seconds

Step 3: Poll for Check Status

Use gh pr checks to get current status:

gh pr checks <PR_NUMBER> --json name,state,conclusion

Check states:

  • PENDING or QUEUED - Still running, continue polling
  • IN_PROGRESS - Still running, continue polling
  • COMPLETED - Check finished, examine conclusion

Check conclusions (when completed):

  • SUCCESS - Check passed
  • FAILURE - Check failed
  • CANCELLED - Check was cancelled (treat as failure)
  • SKIPPED - Check was skipped (treat as success)
  • NEUTRAL - Neutral result (treat as success)

Step 4: Determine Overall Status

All checks must complete before announcing results:

  • All checks completed with SUCCESS/SKIPPED/NEUTRAL: CI passed
  • Any check with FAILURE/CANCELLED: CI failed
  • Any check still PENDING/QUEUED/IN_PROGRESS: Continue polling

Step 5: Handle Completion

When all checks complete:

On Success

  1. Print success summary: ✅ CI PASSED - PR #X: [title] All checks completed successfully. URL: [pr_url]
  2. Play audio announcement: say "GitHub [repo-name] PR [pr-number] completed CI successfully" 2>/dev/null

On Failure

  1. Print failure summary with details: ❌ CI FAILED - PR #X: [title] Failed checks: - [check_name]: [conclusion] - [check_name]: [conclusion] URL: [pr_url]
  2. Get detailed failure information if available: gh pr checks <PR_NUMBER> --json name,state,conclusion,detailsUrl
  3. Print links to failed check details
  4. Play audio announcement: say "GitHub [repo-name] PR [pr-number] completed CI unsuccessfully" 2>/dev/null

Audio Notification

Use macOS say command directly with stderr suppressed:

say "GitHub [repo-name] PR [pr-number] completed CI successfully" 2>/dev/null
say "GitHub [repo-name] PR [pr-number] completed CI unsuccessfully" 2>/dev/null

The 2>/dev/null silently ignores errors on systems without say.

Use the repository name from gh pr view --json headRepository, extracting just the repo name (not owner/repo).

Polling Behavior

Interval

Poll every 60 seconds. Between polls, simply wait—do not output status unless there are changes.

Progress Updates

Provide periodic updates to show monitoring is active:

  • Every 5 minutes: Print brief status "Still monitoring... X checks pending"
  • On state changes: Print when individual checks complete

Error Handling

Network or API errors should not terminate monitoring:

  • On transient error: Wait 60 seconds and retry
  • After 3 consecutive errors: Inform user but continue trying
  • Never give up unless user explicitly stops

User Interruption

The user can stop monitoring at any time by:

  • Saying "stop monitoring" or similar
  • Starting a new task
  • Pressing Ctrl+C

Example Session

User: monitor the PR

Claude: Monitoring PR #42: Add user authentication feature
URL: https://github.com/acme/webapp/pull/42

Checking CI status...
- build: ⏳ in progress
- test: ⏳ pending
- lint: ✅ success

[60 seconds later]

- build: ✅ success
- test: ⏳ in progress
- lint: ✅ success

[60 seconds later]

- build: ✅ success
- test: ✅ success
- lint: ✅ success

✅ CI PASSED - PR #42: Add user authentication feature
All checks completed successfully.
URL: https://github.com/acme/webapp/pull/42

[Audio: "GitHub webapp PR 42 completed CI successfully"]

Proactive Monitoring

When working on a PR (creating it, pushing updates, or responding to review), proactively offer to monitor CI if the user would benefit. For example, after running gh pr create, offer: "Would you like me to monitor the CI checks for this PR?"

When Claude has been doing automated work and creates or updates a PR, automatically start monitoring unless the user has indicated they don't want notifications.

Key Points

  1. Never give up: Some CI pipelines take an hour or more. Keep polling.
  2. Clear output: Show what's being monitored and current status
  3. Audio alert: Use say on macOS, skip gracefully elsewhere
  4. Failure details: On failure, provide actionable information
  5. 60-second interval: Balance responsiveness with API rate limits
  6. Graceful errors: Network issues don't stop monitoring

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.77%
按下载量换算25

Claude

32.98%
按下载量换算24

Cursor

18.12%
按下载量换算13

Gemini CLI

10.18%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills