Automated summary
Produces a report of open ClickHouse/ClickHouse pull requests that are effectively merge-ready, meaning every CI check is green except possibly the "CH Inc sync" job.
Strengths
- Classifies each PR by its CH Inc sync state (GREEN, FAILED, INPROG, NOSYNC) and flags whether it was ever approved
- Groups results into your own PRs, PRs assigned to you, and PRs by tracked authors (groeneai by default)
- Ships with an offline test suite that runs against a stubbed gh binary
- Pins every gh call to --repo ClickHouse/ClickHouse, so the report is correct regardless of the working directory
Limitations
- Hardcoded to the ClickHouse/ClickHouse repo and its private "CH Inc sync" job, so it is not reusable elsewhere as-is
- Requires an authenticated gh with repo access and takes roughly a minute for large author sets
- It is a point-in-time snapshot: statuses drift as CI runs, and GitHub's search index can occasionally omit a PR
Use it when you need a quick view of which ClickHouse PRs are blocked only by the sync job and are therefore ready to merge.
Don't use it for repositories other than ClickHouse/ClickHouse, or when you need a stable historical view rather than a snapshot of current CI state.
Security analysis
CautionThe skill is intended for read-only reporting on ClickHouse PRs and shows no destructive, exfiltration, obfuscation, or safety-disabling instructions. However, it relies on running a bundled bash script with broad Bash permissions and authenticated GitHub access, so the risk is low but not zero; a cautious listing is appropriate until the script itself is reviewed.
- •Executes a bundled shell script (`report.sh`) whose contents are not included in SKILL.md, so the actual behavior cannot be fully verified from the listing alone.
- •Declares broad `Bash(bash:*)` permission and uses authenticated `gh`/network access, though the described operations are read-only PR/check/review queries.
Examples
Show me the good PRs that are ready to merge right now.Run good-prs with tracked authors groeneai and azat and show me the report.List the good PRs but only the ones where CH Inc sync is FAILED or still running.name: good-prs description: Show a report of open ClickHouse PRs whose only non-green CI check is "CH Inc sync" (or that are fully green) — i.e. effectively ready to merge. Groups by your authored PRs, PRs assigned to you (authored by others), and PRs by tracked authors (default groeneai). Shows the CH Inc sync state and whether each PR was ever approved; excludes already-merged PRs. Use when asked for "good PRs", merge-ready PRs, or PRs blocked only on the sync job. argument-hint: "[tracked-author ...] # default: groeneai" disable-model-invocation: false allowed-tools: Bash(bash:), Bash(gh:), Bash(jq:), Bash(xargs:), Bash(awk:), Bash(grep:), Bash(cut:), Bash(sed:), Read
Good PRs Skill
Produce a report of open pull requests in ClickHouse/ClickHouse that are effectively
ready to merge: every CI check is green/skipped except possibly CH Inc sync, which
is the private-repo sync job and is frequently the last thing standing between a PR and
merge. Fully-green PRs are included too.
What counts as a "good PR"
For each PR, look at all checks and ignore the aggregate gates (PR, Mergeable Check,
A Sync (only for tests)). A PR qualifies when every remaining check other than
CH Inc sync is SUCCESS, SKIPPED, or NEUTRAL (nothing else is failing or still
running). The CH Inc sync state is then reported as one of:
- GREEN —
CH Inc syncalso passed → fully green / merge-ready. - FAILED — only
CH Inc syncfailed. - INPROG — only
CH Inc syncis still running (PENDING/IN_PROGRESS). - NOSYNC — there is no
CH Inc synccheck at all and everything else is green (typically release-branch backports).
Already-merged or closed PRs are excluded. Each row also shows whether the PR was
approved by anyone at least once (any historical APPROVED review event; it does
not require the approval to still be current after later pushes).
Sections
- Your own PRs — authored by the authenticated
ghuser. - Assigned to you, authored by others — assigned to you, excluding your own PRs and the tracked authors (those get their own section).
- PRs by each tracked author — every qualifying PR by the author, regardless of
assignee. Default tracked author:
groeneai. Pass author logins as arguments to change this (e.g.good-prs groeneai azat).
How to run
Run the bundled script and present its Markdown output directly to the user (it already emits finished tables):
bash .claude/skills/good-prs/report.sh $ARGUMENTS
The script fetches PR lists with gh pr list, classifies each PR's checks with
gh pr checks, and looks up state + approvals with gh pr view, all parallelized with
xargs -P 12. For groeneai-sized author sets (~200 open PRs) it takes roughly a minute.
Every gh call is pinned to --repo ClickHouse/ClickHouse, so the report is correct
regardless of the directory the skill is run from.
Testing
test.sh runs report.sh against a stubbed gh (no network) and checks the
bucket→label classification, the "only CH Inc sync is non-green" criterion, empty
input, --repo pinning, the fail-loud-on-real-error behaviour, and the retry policy
(a transient failure is retried until it succeeds, a permanent one is not retried):
bash .claude/skills/good-prs/test.sh
Presentation
- The script's stdout is a complete report — show it as-is.
- Statuses drift constantly as CI runs; if the user asks to "check again", just re-run the script. Mention it is a point-in-time snapshot.
- If the user wants only the failed/in-progress subset (not the fully-green ones), filter
the rows to
FAILED/INPROGafter running, or note which rows areGREEN.
Notes and caveats
gh pr list --author <login>is backed by GitHub's search index, which can occasionally omit an individual PR (a stale-index gap). If a specific PR is known to be missing, fetch it explicitly withgh pr view <n>and add it.- The aggregate gates excluded from the "everything else is green" test are
PR,Mergeable Check, andA Sync (only for tests). If ClickHouse CI renames or adds an aggregate gate, update theselect(...)filter inreport.sh. - Checks are classified by
gh pr checks' ownbucketfield (pass/fail/pending/skipping/cancel), not by raw state strings, so unusual states such asQUEUED,TIMED_OUT,CANCELLED, orSTARTUP_FAILUREare handled without a PR being silently dropped. - A full report makes roughly two GraphQL calls per PR — several hundred per run — so
hitting at least one transient GitHub failure is close to certain. Those (
HTTP 408,429, any5xx, gateway timeouts, connection resets, secondary rate limits) are retried with exponential backoff, and a primary rate-limit rejection waits for the hourly window to reset.GH_RETRIES(default 5) andGH_RETRY_DELAY(default 2 seconds) tune this. - The script still fails loudly: an error that will never fix itself (auth, unknown PR,
bad flag) aborts on the first attempt, and a transient error that outlives every retry
aborts too — in both cases with the original
ghdiagnostic, rather than silently omitting that PR from the report. - A run costs a large share of the hourly GraphQL quota (5000 points), so a few
back-to-back runs can exhaust it. Check with
gh api rate_limit --jq .resources.graphql. - The script needs
ghauthenticated andjqavailable.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/good-prs-report-mte1lfu9/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/good-prs-report-mte1lfu9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/good-prs-report-mte1lfu9/download' --output '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md.part' && mv '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md.part' '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash(bash:*), Bash(gh:*), Bash(jq:*), Bash(xargs:*), Bash(awk:*), Bash(grep:*), Bash(cut:*), Bash(sed:*), Read
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && test -s '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/good-prs' && cp -R '.skill-downloads/good-prs-report-mte1lfu9' '.claude/skills/good-prs'Codex
test -f '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && test -s '.skill-downloads/good-prs-report-mte1lfu9/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/good-prs' && cp -R '.skill-downloads/good-prs-report-mte1lfu9' '.agents/skills/good-prs'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/good-prs-report-mte1lfu9'openskills read 'good-prs-report-mte1lfu9'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/good-prs-report-mte1lfu9/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.