AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Git Finalize Pr

skill-ainova-systems-intelligence-dev-packs-git-finalize-pr · by ainova-systems

Drive the current branch's PR to merge-ready: CI green and every review comment handled, ending with an outcome label

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-ainova-systems-intelligence-dev-packs-git-finalize-pr

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ainova-systems-intelligence-dev-packs-git-finalize-pr)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Git Finalize Pr? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Finalize the PR

Take a freshly pushed PR through fix/push iterations until CI is green AND every review comment is answered - merge-ready for the owner's accept. Runs autonomously across CI rounds (typically 15-30 min each); wait reactively, never busy-poll.

Pre-flight

  1. git branch --show-current - abort on the default/integration/protected branch.
  2. Resolve the PR: gh pr list --head --state open --json number --jq '.[0].number'. An explicit argument must match this branch's PR. None - open it with git-open-pr first, then retry.
  3. Latest commit: git rev-parse HEAD. Every check below filters runs by headSha == HEAD; stale runs for older commits are ignored.

Loop 1 - CI to green

  1. Probe: gh pr checks plus gh run list --branch --limit 8 --json databaseId,headSha,name,status,conclusion.
  2. Decide:
  • all latest-SHA workflows success - proceed to Loop 2;
  • any in_progress / queued - wait, sized to the longest job's typical duration;
  • any latest-SHA failure - drill in.
  1. Drill in: failed step via gh run view --json jobs --jq '.jobs[] | select(.conclusion == "failure")'; log via gh run view --job --log (fallback gh api repos/{owner}/{repo}/actions/jobs//logs while sibling jobs still run). Find the root-cause file:line; read it and the surrounding code.
  2. Fix smallest-correct, top-down (what happened - what changed since last green - fix or delete per the feature doc - existing primitive?). Run the relevant local gates (dev-run-tests) before pushing. Batch multi-file fixes into one commit so concurrency cancels prior runs cleanly.
  3. Push, repeat from 1.

Loop 2 - comments drained

  1. Fetch unresolved threads: GraphQL reviewThreads(first: 100) { nodes { id isResolved comments(first: 1) { nodes { path line body author { login } } } } }; plus gh pr view --json reviews,comments.
  2. Process via git-review-pr-comments: fix / discuss / decline-with-reason; reply to every thread.
  3. New pushes restart Loop 1; repeat until green AND drained.

Outcome

Exactly one label, then report (PR URL, label, what needs the owner):

  • ai:ready-to-merge - green, comments drained, mergeable: MERGEABLE;
  • ai:manual - needs an owner decision (state precisely which);
  • ai:failed - cannot reach green (state the blocking failure and what was tried).

Verify

  • gh pr checks all green on HEAD; zero unresolved threads; exactly one ai:* label on the PR.

Scope / hand-off

  • Merging - git-merge-pr after the owner accepts.
  • mergeable: CONFLICTING - git-resolve-conflicts, then back into Loop 1.

CRITICAL

  • Fix the cause, never the gate: no skipped tests, no loosened checks, no retry-until-green on flaky failures - flag flakes explicitly.
  • A failure that already exists on the target branch is reported as pre-existing, never "fixed" on this PR.
  • Never merge from this skill, even when everything is green.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.