Skip to content
cccskills
FreePublished on GitHub

approve-pr

Posts the latest review report as an approval on the pull request for the checked-out branch, then adds the “QUEUED FOR MERGE” label. It first checks that the review meets the stated approval criteria.

OriginalShow the original description

Approve the pull request for the currently checked-out branch. Posts the review from this conversation as an approving review and adds the "QUEUED FOR MERGE" label. Use after review-pr when you decide to approve.

questdb/questdb17,474 stars(GitHub 17,474 + cccskills 0)
Works withGitHub

Run score Not tested

See how to install

Good for

  • Approving a reviewed pull request
  • Adding the merge queue label after approval
  • Posting a review report to its pull request

Files included (1)

  • SKILL.md2.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Approve a QuestDB pull request

Approve the pull request for the branch that is currently checked out. This skill is meant to be run right after review-pr in the same conversation: it takes the review you just produced and posts it as an approving review. Do not re-review here — post the existing review.

Actions performed, in order:

  1. Post the review as the PR's review body (this is the "PR comment").
  2. Approve the PR.
  3. Add the QUEUED FOR MERGE label.

Step 0: Confirm the review actually clears the bar

Only approve if the most recent review-pr report in this conversation has a verdict of approve with ZERO open Critical findings and ZERO open correctness / performance / IO / resource findings (per the review-pr correctness & performance gate). If any such finding is still open, do NOT approve — tell the user the PR does not meet the bar and suggest reject-pr.

  • If no review report exists in this conversation, STOP and tell the user to run /skill:review-pr first — do not approve unreviewed code.
  • Post the review verbatim; do not shorten or rewrite it.

Step 1: Detect the PR

Auto-detect the PR from the checked-out branch. An explicit PR number/URL in the arguments overrides detection.

PR='<explicit PR number/URL from arguments, else empty>'
[ -z "$PR" ] && PR=$(gh pr view --json number -q .number 2>/dev/null)
if [ -z "$PR" ]; then
  echo "No PR found for the current branch. Run 'gh pr checkout <n>' or pass a PR number."; exit 1
fi
gh pr view "$PR" --json number,title,author,headRefName,url,state,labels
echo "Approving PR #$PR"

State one line to the user: which PR (#number — title) you are about to approve, then proceed.

Step 2: Write the review body to a file

Write the review body to /tmp/approve-pr-$PR.md using the write tool (never inline it into a shell command — reviews contain backticks, quotes, and $ that break shell quoting). The body is the full verbatim review-pr report.

Step 3: Post the approval

gh pr review "$PR" --approve --body-file /tmp/approve-pr-$PR.md
gh pr edit "$PR" --add-label "QUEUED FOR MERGE"

Notes:

  • GitHub does not allow approving your own PR. If gh pr review --approve fails for that reason, fall back to gh pr comment "$PR" --body-file /tmp/approve-pr-$PR.md, tell the user the PR could not be formally approved because it is self-authored, and still add the QUEUED FOR MERGE label.

Step 4: Confirm

Report back in one or two lines:

  • PR number + title, "approved" posted (or the fallback used).
  • Whether the QUEUED FOR MERGE label was added.
  • The PR URL.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

debug-fuzz

FreeSummary

Debug failing QuestDB WAL fuzz tests involving column conversions and Parquet partitions. Use seeds and failure logs to trace column and partition history, compare WAL results with a non-WAL baseline, and add temporary state logging without changing the fuzz sequence.

  • Reproducing a WAL fuzz failure from its seeds
  • Tracing a column conversion mismatch
  • Investigating Parquet and native partition differences
questdb/questdb17.5KUpdated Oct 26, 2026

debug-fuzz-top

FreeSummary

Investigate failing QuestDB WAL/O3 tests on the lazy geometry branch, focusing on composite partitions made of multiple pieces. Use seeds, logs, and partition invariants to trace the failure and build a deterministic reproducer when possible.

  • Tracing a failing WAL/O3 test
  • Replaying a failure with fixed random seeds
  • Building a deterministic partition reproducer
questdb/questdb17.5KUpdated Oct 26, 2026

fix-ci

FreeSummary

Check a pull request’s CI status, summarize failed tests and build checks, and trace failures to the proposed changes. The skill can update test expectations when the cause and intended behavior are clear, and presents uncertain failures for discussion.

  • Summarizing failed checks on a pull request
  • Finding test names and failure messages
  • Updating an assertion after an intentional output change
questdb/questdb17.5KUpdated Oct 26, 2026

fix-pr

FreeSummary

Investigate actionable QuestDB pull request findings, trace root causes and affected callers, and test a proposed fix against existing contracts. An independent reviewer checks the design before production edits and reviews the combined result before completion.

  • Investigating the cause behind a PR finding
  • Checking how a proposed fix affects callers and contracts
  • Planning and validating a regression-tested change
questdb/questdb17.5KUpdated Oct 26, 2026

fix-pr

FreeSummary

Validate actionable findings from a QuestDB pull request review one at a time. Reproduce user-visible problems with regression tests where practical, make a focused and performant fix, run tests, and require an independent review before proceeding to the next finding.

  • Verify a pasted QuestDB review finding against the current code
  • Reproduce a reported bug with a regression test
  • Apply a focused fix and run relevant tests
questdb/questdb17.5KUpdated Oct 26, 2026

fix-pr

FreeSummary

Validate actionable QuestDB pull request findings against the code, trace their causes, and fix confirmed issues with regression tests and independent review. It helps preserve legitimate behavior while checking the combined changes before completion.

  • Checking whether a pasted PR review finding is real
  • Reproducing a reported bug with a regression test
  • Applying a focused fix and reviewing its impact
questdb/questdb17.5KUpdated Oct 26, 2026

See all skills by questdb

Report a problem with this skill