muutot/clipboard/delete-remote-release
Claude Code and agent skill by muutot/clipboard
- community
Checking that the SKILL.md file is still in the repository.
Delete a remote git tag and/or its GitHub release draft — for example cleaning up a failed CI draft release left behind after re-tagging a version, or removing an orphaned/duplicate release tag. This skill should be used when the user asks to remove a remote (published) git tag, delete a GitHub release draft, or undo a botched release tag — e.g. "delete the remote v1.4.0 tag and its draft release", "remove the orphaned release draft", "clean up the tag after re-tagging". GitHub only.
Install
npx vskill@latest install muutot/clipboard/delete-remote-releaseSKILL.md
delete-remote-release
Purpose
Remove a remote git tag and/or its GitHub draft release for a given version. A botched or re-tagged release often leaves a stale vX.Y.Z draft Release on GitHub that blocks the next tauri-action run ("release already exists"). This skill deletes both the tag and the draft cleanly so the release workflow can be re-triggered.
Key fact: deleting a git tag does NOT delete the GitHub Release object. Both must be removed, which is exactly what this skill does.
When to use
- The user asks to delete a remote/remote git tag (e.g.
v1.4.0). - The user mentions a "draft release", "orphaned release", or a failed CI run that left a
draft behind.
- After re-tagging a release (version-release
--regenerate), to clear the old remote tag
and draft before re-pushing.
Prerequisites
- git push access to the target remote (for tag deletion). Uses the user's normal git
credentials — no extra setup.
- A GitHub token for the release-draft API delete. The script resolves it in this
order: $GITHUB_TOKEN env → gh auth token → git credential fill (github.com) → ~/.workbuddy/secrets/github_token. If none is found, tag deletion still runs; the draft delete is skipped with instructions. A fine-grained or classic PAT with repo (or public_repo) scope is sufficient.
How to use
Run the bundled script from the repository root. By default it is dry-run — it shows what would be deleted and changes nothing.
Parameters:
--tag <tag>(required): the tag to clean up, e.g.v1.4.0. Never guessed.--remote <name>: git remote to delete the tag from. Default:githubif present,
else origin.
--repo <owner/repo>: GitHub repo for the API call. Default: derived from the remote URL.--tag-only: delete only the remote tag, skip the draft release.--draft-only: delete only the GitHub draft release, skip the tag.--dry-run: force dry-run (no changes) even if--yesis given.--yes: perform the actual deletions. Required for any change.
Safety rules (enforce these)
- Always run dry-run first and show the user exactly what will be deleted before
passing --yes.
- Require an explicit `--tag` — never infer or default a tag name.
- Deleting a remote tag and a draft release is not reversible remotely. Confirm with
the user before --yes.
- Only draft releases matching the tag are auto-deleted. If a published (non-draft)
release shares the tag, the script warns and leaves it alone — deleting a published release is a bigger deal and must be a conscious, separate decision.
- Published releases are never auto-deleted. If the user wants a published release removed,
confirm explicitly and act deliberately.
Companion workflow (re-tagging a release)
When used right after version-release --regenerate (which re-creates the local tag on the fixed commit), the typical sequence is:
delete-remote-release --tag v1.4.0 --yes— remove the old remote tag + draft.git push origin <branch> --force-with-lease— push the new release commit.git push origin v1.4.0 --force— push the re-created tag, re-triggering CI on the
fixed workflow.
(Per project convention, the remote push is performed by the user, not the agent.)
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 repositoryCheckingskills/delete-remote-release/SKILL.md
Popularity
- 7-day trend score
- 0
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/muutot/clipboard/delete-remote-release)