piper-plus: Skill for Claude Code

.claude/skills/watch-pr/SKILL.md

watch-pr is a skill for Claude Code from ayutaz/piper-plus. It costs 216 tokens per session (3,425 once invoked), scanned A, original, MIT.

A pull-request monitor for GitHub, where a pull request is a proposed code change awaiting review. It checks automated build and test results once and groups failures such as formatting changes, test failures, build errors, flaky failures, and contract drift.

In plain words
What is it for?
Use it after pushing a pull request or creating one to inspect its checks and review status. It can be repeated on a schedule for ongoing monitoring and can identify issues that need attention before merging.
Why use it?
It gives one summary of whether checks passed, failed, or are still running, instead of requiring each job to be inspected separately. Failed job logs and unresolved review threads are also considered.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

This is ayutaz/piper-plus's own configuration. It tells Claude Code how to work on piper-plus itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything piper-plus configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ayutaz/piper-plus. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ayutaz/piper-plus/dev/.claude/skills/watch-pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ayutaz/piper-plus

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for watch-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayutaz/piper-plus/watch-pr/github.svg)](https://agentmods.dev/skills/ayutaz/piper-plus/watch-pr)
Your own site
<a href="https://agentmods.dev/skills/ayutaz/piper-plus/watch-pr"><img src="https://agentmods.dev/badge/skills/ayutaz/piper-plus/watch-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for watch-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayutaz/piper-plus/watch-pr"><img src="https://agentmods.dev/badge/skills/ayutaz/piper-plus/watch-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00216 $0.03425
Opus 5.5 $0.00086 $0.01370
Sonnet 5.5 $0.00043 $0.00685
Haiku 4.5 $0.00022 $0.00343

Measured 3d ago against content hash 5d6d7e66b24f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

watch-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/watch-pr/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR CI Status Watcher

PR の CI checks を 1 回ポーリングして状態を集計する skill。継続監視は /loop と組み合わせる:

/loop /watch-pr 489       # 5 分間隔で polling、red/green/timeout で通知
/watch-pr                 # 引数省略時は現在ブランチに紐づく PR を自動検出

引数

  • $1 (任意): PR 番号 (例: 489)。省略時は gh pr view --json number で現在ブランチから自動取得

実行前の確認

  • ブランチ: !git rev-parse --abbrev-ref HEAD
  • 引数: $ARGUMENTS

手順

フェーズ 1: PR 番号の確定

引数 $1 がない場合、現在ブランチに紐づく PR を取得:

PR_NUM=$(gh pr view --json number --jq '.number' 2>/dev/null)

該当 PR がない場合 (= まだ push していない / PR 未作成) は、その旨をユーザーに報告して停止。

フェーズ 2: CI checks の一括取得

gh pr checks "$PR_NUM" --json name,state,bucket,link,workflow --jq '.[]'

gh pr checks --json に conclusion フィールドはない (指定すると Unknown JSON field エラー)。 使えるフィールドは bucket / completedAt / description / event / link / name / startedAt / state / workflow (gh pr checks --help の JSON FIELDS)。 集計は bucket で行う:

  • bucket: pass / fail / pending / skipping / cancel (state を gh が 5 分類したもの)
  • state (詳細表示用): SUCCESS / FAILURE / PENDING / SKIPPED / NEUTRAL / CANCELLED 等。 例: NEUTRAL と SKIPPED はどちらも bucket skipping

pending があると gh pr checks は exit code 8 で終わる (失敗ではない)。

フェーズ 3: 集計とサマリ

以下のテーブルでサマリを表示 (件数は実際の集計値):

## PR #<N> CI Status (<HH:MM:SS>)

| State        | Count |
|--------------|-------|
| ✅ Success   | <n>   |
| ❌ Failure   | <n>   |
| 🔁 Pending   | <n>   |
| ⏭️ Skipped   | <n>   |
| ⚠️ Cancelled | <n>   |

Total: <total> checks

判定ルール:

  • All green (failure=0, pending=0, cancelled=0): 「全 N checks green、merge 可能状態」
  • Red (failure ≥ 1): フェーズ 4 へ
  • Pending (bucket pending ≥ 1): 「N checks がまだ走行中、再度 polling を推奨」
  • Suspicious skip (cancelled+skipped が 3 件以上連続): silent skip の可能性を警告 (PR #419 事例)

フェーズ 4: 失敗 job の分析 (failure ≥ 1 時のみ)

各失敗 job について:

  1. job 名と link を表示
  2. gh run view <run-id> --log-failed で失敗 step のログを fetch (最大 100 行)
  3. ログを以下の pattern で分類:
    • Format drift: ruff cargo fmt gofmt dotnet format clippy 系のエラー → ローカル pre-commit run --all-files で修復可能
    • Test fail: FAILED assert panicked expected 系 → どのテストかを抽出
    • Build error: error[E0 cannot find undefined reference 系 → コンパイルエラー
    • Flake: timeout network connection reset rate limit 系 → 一過性、retry 推奨
    • Contract drift: MISMATCH OUT OF SYNC byte-for-byte 系 → 該当 check-* skill を案内
  4. 分類別に推奨アクションを提示

Read the full file on GitHub · 233 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +2 lines · +19 tokens per session 5d6d7e66b24f
  2. 2mo ago First seen · 231 lines · 197 tokens per session scan A 1dee68909231

Subscribe to this mod's changes

watch-pr is a skill published in the GitHub repository ayutaz/piper-plus (239 stars, last pushed today), licensed MIT. It adds 216 tokens to every session and 3,425 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

adversarial-reviewer

Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general…

emdash-cms/emdash · 72 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

plugin-review

Review plugin quality with tiered checks and dependency scoping. Use for PR and pre-release audits.

athola/claude-night-market · 23 tokens

audit-ci

Run and analyze Elements cold CI performance profiles and propose evidence-backed build, test, lint, and dependency-graph improvements. Use whenever asked to profile or benchmark pnpm run ci, rerun ci:profile, create a CI performance audit, compare CI timings, find bottlenecks or the completion path, investigate a CI…

NVIDIA/elements · 78 tokens