PR

pr-changeset-finalize

Automates the entire PR finalization process for pnpm monorepos including changesets and git cleanup.

Install

mkdir -p .claude/skills/pr-changeset-finalize && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14158" && unzip -o skill.zip -d .claude/skills/pr-changeset-finalize && rm skill.zip

Installs to .claude/skills/pr-changeset-finalize

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Automatiza o fluxo de finalizar uma PR em um monorepo pnpm + Changesets — gera o arquivo de changeset perguntando major/minor/patch, aplica o bump em todos os pacotes do workspace, escreve o Summary analisando o diff real da branch, roda build/lint/test localmente, confere checks de CI e mergeabilidade da PR no GitHub, faz rebase na main, força o push, dá squash-merge e limpa as branches local e remota. Use sempre que o usuário pedir para 'finalizar a PR', 'fechar essa branch', 'fazer o changeset', 'subir o changeset', 'mergear a PR', ou mencionar pnpm changeset, gh pr merge, force-with-lease ou 'feature branch' em um contexto de monorepo — mesmo que ele só peça uma parte do fluxo (ex: 'gera o changeset dessa branch pra mim') ou não use a palavra 'skill'.
765 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • →Generate changeset files for monorepos
  • →Apply version bumps to all workspace packages
  • →Analyze diffs to write changeset summaries
  • →Run local build, lint, and test checks
  • →Perform rebase on main and check PR mergeability

How it works

The skill automates the PR finalization workflow by generating a changeset, applying version bumps, running local checks, rebasing, and then merging the PR. It includes verification steps before irreversible actions.

Inputs & outputs

You give it
A feature branch in a pnpm monorepo with Changesets
You get back
A finalized PR with a generated changeset, version bumps, and merged into main

When to use pr-changeset-finalize

  • →Finalizing prs in monorepos
  • →Generating automated changesets
  • →Merging feature branches
  • →Syncing workspace versions

About pr-changeset-finalize

Streamlines PR closure in monorepos by automating changeset generation, package versioning, build/lint checks, CI verification, and safe merging/branch cleanup.

>-

When not to use it

  • →When the project is not a pnpm monorepo with Changesets configured
  • →When the `gh` CLI is not authenticated
  • →When there are uncommitted changes that the user has not explicitly instructed to handle

Limitations

  • →The workflow assumes pnpm as the package manager
  • →The workflow assumes 'main' as the base branch
  • →The workflow assumes `gh` CLI is authenticated with squash-merge permission

How it compares

This skill provides an automated, verified, and structured process for finalizing PRs in monorepos, reducing the risk of errors compared to a manual, multi-step process.

Compared to similar skills

pr-changeset-finalize side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pr-changeset-finalize (this skill)05moReviewIntermediate
fix-dependabot-prs110moReviewIntermediate
monorepo15moReviewIntermediate
sprint19moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry