phenobarbital/antigravity-config/worktree-pr-and-clean
Claude Code and agent skill by phenobarbital/antigravity-config
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use ONLY after the user explicitly approves and requests a PR (keywords: open PR, create pull request, ready for main, approved, ship it). Find the active worktree, verify it is clean, push the branch, create a PR to main, and remove the worktree.
Install
npx vskill@latest install phenobarbital/antigravity-config/worktree-pr-and-cleanSKILL.md
Goal
After user approval: push branch + open PR to main + clean up the worktree.
Safety rules
- Do not delete the worktree if there are uncommitted changes.
- Do not use
--forceunless the user explicitly requests it. - If
ghis not installed or not authenticated, guide the user to create the PR manually (or provide the exact commands needed).
Steps
1) Locate the active worktree
- Read
.worktrees/_active.json(if present) to getpath,branch,base. - If missing, run
git worktree listand pick the non-primary worktree (or ask the user which one).
2) Verify state
git -C <path> status --porcelainmust be empty.- Confirm the current branch is
<branch>. - (Optional) run tests one last time.
3) Push to origin
git -C <path> push -u origin <branch>
4) Create a PR to main
- If GitHub CLI is available and authenticated:
gh pr create --base <base> --head <branch> --title "<title>" --body "<summary>"
5) Clean up
- Remove the worktree:
git worktree remove <path> - Prune stale metadata:
git worktree prune - Delete
.worktrees/_active.jsonif there is no active worktree left.
6) Report
- PR link (if created).
- Commands executed.
- Any remaining manual steps (if auth or tooling was missing).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbackend/.agent/skills/worktree-pr-and-clean/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/phenobarbital/antigravity-config/worktree-pr-and-clean)