Skip to content
Back to skills

Finalize

ASecurity

Finalize the current Poracode worktree with deep-review, manual QA, issue fixes, verification, commit, push, PR creation or update with screenshots where they help review, and merge after checks pass. Use when the user says Finalize or requests the complete workflow. Creating this skill does not invoke it.

  • 124 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentstestinggit

Works with

  • cli

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Porabuild/Poracode --skill finalize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Finalize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Finalize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/porabuild-finalize/badge)](https://www.skillsdirectory.com/skills/porabuild-finalize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: finalize
description: Finalize the current Poracode worktree with deep-review, manual QA, issue fixes, verification, commit, push, PR creation or update with screenshots where they help review, and merge after checks pass. Use when the user says Finalize or requests the complete workflow. Creating this skill does not invoke it.
---

# Finalize

The user's invocation authorizes this entire workflow, including readiness and merge. Honor narrower instructions.
Stay in the current worktree and keep its existing non-master branch. Preserve unrelated changes and staged work.
If the target or ownership is genuinely ambiguous, resolve it before publication.

1. Read repository instructions and inspect the full intended diff against `origin/master`, including committed,
   staged, unstaged, and untracked work. Record the starting branch, HEAD, and paths.
   Keep a compact record of completed checks, their commands/results, and the tree or affected files they covered.
   Reuse evidence from this session when its inputs are unchanged; committing alone does not invalidate it.
2. Run `deep-review` in fix mode. Validate findings and fix in-scope issues without unrelated cleanup.
3. Use `interactive-testing` for real manual QA of affected app behavior, with an isolated managed session. Add
   `provider-chat-smoke` or `mobile-apps` when applicable. Record real interactions and outcomes; tests do not replace
   manual QA. A diff that ships no runtime code or assets (docs, agent instructions, CI workflows, tests, or tooling
   that leaves the built app unchanged) has nothing to exercise: launch no app and record QA as not applicable, with
   the reason. Before launching, choose the screenshot level defined in `pull-request` and take its shots in this
   QA session once the UI is final. Only the before/after level needs a baseline worktree, install, and session;
   skip them otherwise. When that pass finishes, delete its smoke session directory, as interactive-testing requires.
   Finish heavy app builds before starting local tests; avoid overlapping baseline/branch builds and test runs.
   Reuse valid captures and managed builds while their relevant source, fixtures, and runtime inputs are unchanged.
4. Fix confirmed QA issues, then run the full `verify` gate and every applicable conditional gate on the final tree.
   Because step 7 waits for CI, run the focused tests instead of the local `bun run test`, as `verify` allows; run
   the full suite locally only when the user asks. Run the gate once, then rerun only failed checks or checks
   invalidated by subsequent changes. A docs-only edit requires its applicable format/skill validation, not another
   app build, UI capture, or product test suite. Diagnose failures before retrying. For test failures, rerun the
   complete failing files after resolving the cause; for host contention, stop owned competing work and use supported
   worker limits without changing test thresholds. Preserve and report the original failures and retry results.
   Unavailable required QA or an unresolved red gate blocks merge.
5. Use `commit`, push the intended branch, and use `pull-request` to create or update its PR against `master`.
   Finalize requests a ready PR. Include final verification/QA evidence and the screenshots the chosen level calls
   for. How verified lists the local checks and whether CI runs the full test suite for this diff
   (`scripts/ci-change-scope.mjs` decides).
6. Monitor checks for the latest pushed SHA. Read failure logs, fix in-scope failures, verify, create follow-up
   commits, push, and refresh the PR description as needed. For a failed test shard, run its failing files locally
   with `bun run vitest run <files>` before and after the fix instead of the full suite. Every push requires a fresh
   CI assessment. Confirm suspected unrelated failures on unchanged `origin/master`; do not change unrelated code or
   bypass checks. Use CI status/watch operations between meaningful state changes; do not rerun valid local gates
   while waiting.
7. Read fresh exact-number PR state. Verify the PR head equals the intended pushed commit, all applicable checks
   passed, required reviews are satisfied, and GitHub permits the merge. Empty/pending/cancelled checks are not green.
   Merge with the configured method, `expectedHeadSha` set to the verified SHA, and without admin override. If the
   internal tool lacks that field, use `gh pr merge <number> --<method> --match-head-commit <verifiedSha>`. Read back
   until GitHub confirms `merged`. Missing screenshots that the chosen level requires also block merge.
8. Refresh Poracode's state with `gh_get_pr` and `git_status` for the same project/worktree. Prefer its internal
   `git_*` and `gh_*` tools throughout. Use CLI only when tools lack an operation, including PR attachment upload
   or title/body edits; follow each with an internal read to synchronize the UI. On older hosts, inspect tool schemas
   and use exact-number CLI readback if the result omits core PR state.

Continue autonomously through ordinary failures. Stop for a concrete external blocker, ambiguous scope, required
human review, or a repair that fails twice without a new diagnosis. State the PR URL, SHA, failing requirement and
next step. Never force-push, weaken tests, skip hooks, or delete the current worktree. Report the confirmed merge
and concise verification/QA evidence; do not claim completion while GitHub only queued the merge.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.