pr-merge-recompile

Checkout a PR, merge origin/main, and regenerate agentic workflows.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Mossaka/skills --skill pr-merge-recompile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-merge-recompile
Source: https://github.com/Mossaka/skills/tree/main/pr-merge-recompile
Command: npx skills add https://github.com/Mossaka/skills --skill pr-merge-recompile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Checks out a PR, merges origin/main, regenerates all agentic workflows, and pushes the changes, ensuring PRs stay up to date with main and workflows reflect latest changes.

Core Features & Use Cases

  • Automates PR synchronization: fetches, rebases, and updates PR branches to align with origin/main.
  • Workflow regeneration: triggers recompile of agentic workflows to reflect latest changes.
  • Push and report: commits updated workflows and pushes, then reports back the PR URL and changes summary.

Quick Start

Provide a PR URL to automatically rebase on origin/main, regenerate workflows, and push the updates.

Frequently Asked Questions about pr-merge-recompile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rebase a pull request and regenerate workflows against origin/main?

To rebase a pull request and regenerate workflows, provide a PR URL to checkout the branch, merge origin/main, trigger a recompile, and push the updated workflow files automatically.

What happens when rebasing a PR encounters merge conflicts?

When a PR rebase encounters merge conflicts, the workflow recompile process will abort immediately and report the PR link along with any detected changes, preventing a broken merge.

Do I need the gh CLI to automate pull request synchronization and workflow recompilation?

Yes, you need the gh CLI to be authenticated because the process uses it to fetch, checkout the pull request, and push the recompiled agentic workflows back to the repository.

Does my repository need a specific make target to recompile agentic workflows?

Yes, the repository must include a make recompile target because the automation relies on this command to regenerate agentic workflows after merging the pull request with origin/main.

How can I automatically update a stale PR branch with the latest main?

You can automatically update a stale PR branch by providing the PR URL to fetch the branch, merge origin/main into it, recompile workflows, and push the synchronized changes back.