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

1k-monitor-pr-ci1k 显示器 PR CI

Agent Skill

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

总安装

924

周安装

37

GitHub Stars

2,431

下载量

299
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-monitor-pr-ci

简介

适用于需要实时跟踪 PR 构建状态和协作反馈的开发场景。

  • 核心能力包括轮询 CI 检查、解析评审意见及自动处理常见问题。
  • 通过指定 PR 编号或 URL 启动监控,系统将循环检测并汇总最新进展。
  • 安装需使用 npx 从指定仓库添加技能,1k-monitor-pr-ci 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 建议确认网络访问与 GitHub API 权限是否满足运行需求。

SKILL.md

Monitor PR CI & Reviews

Monitor a pull request's CI checks and review comments. Auto-fix CI failures, prompt user for review feedback.

Input

$ARGUMENTS - PR number, PR URL, or omit to auto-detect from current branch.

Workflow

Step 1: Resolve PR number

Determine the PR to monitor:

  • If $ARGUMENTS is a number, use it directly
  • If $ARGUMENTS is a GitHub URL, extract the PR number
  • If $ARGUMENTS is empty, detect from current branch: gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number'
  • If no PR found, stop and inform the user

Step 2: Poll loop

Each iteration ([Check N/30]):

MUST run ALL three commands in parallel on every iteration (missing any one may cause review comments to be silently ignored):

# 1. CI check status
gh pr checks <PR_NUMBER>

# 2. PR-level reviews and general comments
gh pr view <PR_NUMBER> --json reviews,comments,reviewDecision

# 3. Inline review comments (e.g. from Devin, human reviewers)
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments \
  --jq '.[] | {user: .user.login, body: .body, path: .path, line: .original_line, created_at: .created_at}'
Why all three? gh pr checks only returns CI status. gh pr view --json reviews returns PR-level reviews but NOT inline file comments. gh api.../pulls/.../comments is the ONLY way to get inline code review comments (the kind that appear on specific lines in the diff). Skipping it means inline comments from bots like Devin or human reviewers will be completely invisible.
  1. Display status summary: [Check 3/30] CI Status: | Check | Status | Duration | |------------------|---------|----------| | lint (24.x) | pass | 5m34s | | unittest (24.x) | pending | - | Reviews: 1 new comment from @reviewer
  2. Decide next action based on priority: CI Status Reviews Action Any fail - Auto-fix CI failure (Step 3) Any pending New comments Show comments to user, keep waiting Any pending No new comments Wait 60s, re-check All pass New comments Show comments to user (Step 4) All pass No new comments Done (Step 5)

Step 3: Auto-fix CI failures

For each failed check:

  1. Get failure log: gh run view <RUN_ID> --log-failed 2>&1 | tail -100 Extract the run ID from the check URL.
  2. Analyze the failure and determine the cause.
  3. Fixable (lint error, type error, test failure from our changes):

- Fix the code - Commit: fix: resolve CI <check-name> failure - Push to PR branch - Wait 30s, return to Step 2

  1. Not fixable (infra issue, flaky test, unrelated failure):

- Report failure details to user - Suggest actions (re-run, skip, manual fix) - Ask user how to proceed

Step 4: Handle review comments

When new review comments are detected:

  1. Display each comment clearly: New review comment from @reviewer: File: src/views/Example.tsx:42 > Consider using useCallback here to prevent re-renders Review decision: CHANGES_REQUESTED
  2. Prompt the user:

- Show all unresolved comments - Ask: "Do you want me to address these review comments?" - If user says yes: fix the code, commit, push, return to Step 2 - If user says no/later: continue monitoring CI only

  1. Track comment state: Remember which comments have been shown to avoid repeating them in subsequent iterations.

Step 5: Final report

When all CI checks pass and no new unhandled comments:

All CI checks passed!

| Check            | Status | Duration |
|------------------|--------|----------|
| lint (24.x)      | pass   | 5m34s    |
| unittest (24.x)  | pass   | 4m42s    |
| CodeQL           | pass   | 2m7s     |

Review status: approved / no reviews / changes requested
PR: <URL>
  • All CI passed + approved → ready to merge
  • All CI passed + no review → waiting for review
  • All CI passed + changes requested → needs to address comments

Polling Rules

  • 60 seconds between checks when pending
  • 30 seconds after fix+push to allow CI restart
  • Maximum 30 iterations (~30 min), then ask user to continue or stop
  • Always show [Check N/30]

Important Notes

  • CI failures: auto-fix without asking
  • Review comments: always show to user, ask before fixing
  • Never force-push or amend commits
  • Each fix is a new commit
  • Fix multiple CI failures in one commit when possible
  • Do NOT re-run checks automatically (only if user requests gh run rerun)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.11%
按下载量换算108

Claude

29.89%
按下载量换算89

Cursor

19.71%
按下载量换算59

Gemini CLI

9.94%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills