pr-merge-recompile
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'.
Best use case
pr-merge-recompile is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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'.
Teams using pr-merge-recompile should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/pr-merge-recompile/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How pr-merge-recompile Compares
| Feature / Agent | pr-merge-recompile | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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'.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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
Related Skills
requirements-merge
Combines multiple requirement sources into a single coherent specification, handling conflicts and redundancies while maintaining source traceability and supporting stakeholder review workflows.
sos-emergency
Ship Operating System: Emergency Kubernetes cluster recovery, Talos reset procedures, Synology Container Manager recovery, and graceful shutdown protocols. Trigger with /sos
emergency-distress-signal
紧急求救 - 飞船坠毁后与Stella的首次联系,帮助她评估损伤并制定初步生存计划
merge
Commit, rebase, and merge the current branch into its base branch (never main).
git-pr-merge
Conducts an audit of a Pull Request, merges it into main, and synchronizes the local environment. Use this skill when a PR is ready for final review and integration.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
AI Safety Auditor
Audit AI systems for safety, bias, and responsible deployment
AI Risk Assessment
Identifying, assessing, and mitigating risks in AI systems including bias, safety, privacy, security, and ethical concerns.
ai-governance
AI governance and compliance guidance covering EU AI Act risk classification, NIST AI RMF, responsible AI principles, AI ethics review, and regulatory compliance for AI systems.
ai-doc-system-auditor
No description provided.
agent-test-automator
Expert test automation engineer specializing in building robust test frameworks, CI/CD integration, and comprehensive test coverage. Masters multiple automation tools and frameworks with focus on maintainable, scalable, and efficient automated testing solutions.
agent-security-manager
Agent skill for security-manager - invoke with $agent-security-manager