Skip to content
Back to skills

Pr To Main

ASecurity

Ship every pending change in the current repo as a PR to main, fully autonomously, in the background — without ever touching the current working folder or branch. Snapshots the current commits (and any uncommitted changes) into a separate worktree on its own branch, does all push/PR/merge-readiness/merge work there, and finally syncs the current folder's branch to the merged main (reset, or rebase past the shipped commits, never a merge) — so the user can keep committing on the same branch in...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add mgerdov-igt/ai-cookbook --skill pr-to-main --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr To Main?

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

Security grade badge for Pr To Main
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mgerdov-igt-pr-to-main/badge)](https://www.skillsdirectory.com/skills/mgerdov-igt-pr-to-main)

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-to-main
description: Ship every pending change in the current repo as a PR to main, fully autonomously, in the background — without ever touching the current working folder or branch. Snapshots the current commits (and any uncommitted changes) into a separate worktree on its own branch, does all push/PR/merge-readiness/merge work there, and finally syncs the current folder's branch to the merged main (reset, or rebase past the shipped commits, never a merge) — so the user can keep committing on the same branch in the same folder the whole time. Invoke on "PR to main", "ship this", "open a PR and merge it", "land pending changes".
disable-model-invocation: false
---

# PR to main

Global skill, works in any git repo. It lands everything pending (uncommitted, or committed-but-unpushed) on `main` through a real PR, **copying** the work into a separate worktree; the user's folder and branch are never reset, switched or stashed, and stay usable from the first second.

## What to do when invoked

Do not do the work inline. Spawn **one background general-purpose agent** and return immediately:

- Copilot CLI: `task` tool, `agent_type: general-purpose`, `mode: background`.
- Claude Code: `Agent` tool, `subagent_type: general-purpose`, run in background.

Use this prompt, with `<REPO_ROOT>` (the current repo root) and any scope hint from the user filled in. **Do not paste the procedure into the prompt**; the agent reads it itself:

```
Ship the pending changes of <REPO_ROOT> to its default branch as a reviewed, merged PR, autonomously.
Read and follow, in full, the procedure file `PROCEDURE.md` that sits next to this skill's SKILL.md
(give the agent its absolute path: the folder this SKILL.md was loaded from, plus `PROCEDURE.md`).
Scope: <everything pending | the user's scope hint>.
```

Then tell the user in one or two sentences: the run has started, the result arrives as a background-agent completion notification, and their current folder and branch are untouched and safe to use right now. Do not wait on it.

Files in this skill

  • PROCEDURE.md7.6 KB
  • SKILL.md2 KB

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.