Skip to content
Back to skills

Pr Merge Recompile

ASecurity

Checkout a PR, merge origin/main, regenerate agentic workflows, and push. Use when: (1) A PR needs to be rebased and workflows recompiled, (2) User provides a PR URL and wants to update it with latest main, (3) User says 'recompile PR' or 'update PR workflows'.

  • 57 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 31, 2026
ai-agentsbashgit

Works with

  • cli

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill pr-merge-recompile --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Merge Recompile?

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

Security grade badge for Pr Merge Recompile
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-pr-merge-recompile/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-pr-merge-recompile)

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: pr-merge-recompile
description: "Checkout a PR, merge origin/main, regenerate agentic workflows, and push. Use when: (1) A PR needs to be rebased and workflows recompiled, (2) User provides a PR URL and wants to update it with latest main, (3) User says 'recompile PR' or 'update PR workflows'."
---

# PR Merge and Recompile Workflows

Checks out a PR branch, merges origin/main, regenerates all agentic workflows, and pushes the changes.

## Instructions

When the user invokes this skill with a PR URL (e.g., `https://github.com/githubnext/gh-aw/pull/12062`), perform these steps:

### 1. Checkout the PR

```bash
gh pr checkout <PR_NUMBER> --repo <OWNER/REPO>
```

Extract the PR number and repo from the URL provided.

### 2. Fetch and merge origin/main

```bash
git fetch origin main
git merge origin/main
```

If there are merge conflicts, stop and inform the user to resolve them manually.

### 3. Regenerate agentic workflows

```bash
make recompile
```

This regenerates all `.lock.yml` files from the workflow markdown sources.

### 4. Commit and push

If there are changes after recompile:

```bash
git add -A
git commit -m "Merge main and regenerate agentic workflows

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
git push
```

### 5. Report completion

Provide the user with:
- Confirmation that the PR was updated
- Link to the PR
- Summary of any workflow changes

## Usage Examples

```
/pr-merge-recompile https://github.com/githubnext/gh-aw/pull/12062
```

## Notes

- Requires `gh` CLI to be authenticated
- Requires the repository to have `make recompile` target
- Will abort if merge conflicts occur

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.

Comments

Loading comments…

Newsletter

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