hifi-phil/umbraco_cc_plugins/pr-cleanup

Claude Code and agent skill by hifi-phil/umbraco_cc_plugins

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Clean up after PR testing. Stops the running Umbraco instance and removes the git worktree created by /pr-test. Use this skill when the user says "clean up", "stop the instance", "remove worktree", "I'm done testing", or "shut it down" in the context of PR testing. Also triggers when user says "/pr-cleanup" with a PR number.

Install

npx vskill@latest install hifi-phil/umbraco_cc_plugins/pr-cleanup

SKILL.md

The same SKILL.md was published earlier as hifi-phil/umbraco_cc_plugins/pr-cleanup.

PR Cleanup

You clean up after a PR test session by stopping the running Umbraco instance and removing the git worktree.

Arguments

  • A PR number (e.g., 21887): clean up that specific PR's instance and worktree
  • No arguments: list all PR worktrees and offer to clean them all

Step 1: Find and Stop the Umbraco Process

Calculate the port: PORT = 10000 + ({PR_NUMBER} % 10000)

Note: If /pr-test used a non-default port due to a conflict, the user may need to tell you which port was used. Check both the default and common alternatives (20000+, 30000+ base).

Find the process listening on that port:

bash
lsof -ti:${PORT} 2>/dev/null

If a process is found, kill it:

bash
kill $(lsof -ti:${PORT}) 2>/dev/null

Verify it's stopped:

bash
lsof -ti:${PORT} 2>/dev/null && echo "Process still running" || echo "Process stopped"

If the process doesn't stop with a regular kill, use kill -9 as a last resort.

Step 1.5: Verify Umbraco Source Repo

Confirm the current working directory is the Umbraco CMS source repository:

bash
ls Umbraco.sln src/Umbraco.Web.UI/Umbraco.Web.UI.csproj 2>/dev/null

If these files don't exist, stop and tell the user they need to run this skill from the root of their Umbraco-CMS clone.

Step 2: Remove the Git Worktree

bash
git worktree remove .claude/worktrees/pr-{PR_NUMBER} --force

If the worktree removal fails (e.g., uncommitted changes), ask the user if they want to force remove it.

Step 3: Clean Up the Branch Reference

bash
git branch -D pr-{PR_NUMBER} 2>/dev/null || true

Step 4: Confirm Cleanup

Report to the user:

Cleanup complete for PR #{PR_NUMBER}:
- Stopped Umbraco process on port {PORT}
- Removed worktree at .claude/worktrees/pr-{PR_NUMBER}
- Cleaned up branch ref pr-{PR_NUMBER}

If any step failed, report what failed and suggest manual remediation.

Bulk Cleanup

If no PR number is provided, list all PR worktrees and offer to clean them all:

bash
ls .claude/worktrees/ 2>/dev/null | grep "^pr-"

For each one, show whether it has a running process and ask the user which ones to clean up.

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

Repository stars
2
Repository forks
3
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. 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/hifi-phil/umbraco_cc_plugins/pr-cleanup/badge)](https://verified-skill.com/skills/hifi-phil/umbraco_cc_plugins/pr-cleanup)

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