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-clean

SKILL.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 --force unless the user explicitly requests it.
  • If gh is 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 get path, branch, base.
  • If missing, run git worktree list and pick the non-primary worktree (or ask the user which one).

2) Verify state

  • git -C <path> status --porcelain must 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.json if 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/phenobarbital/antigravity-config/worktree-pr-and-clean/badge)](https://verified-skill.com/skills/phenobarbital/antigravity-config/worktree-pr-and-clean)

Something wrong with this skill or its page? Tell us.