/repo-clean-up
Remove failed/canceled GitHub Actions runs and stale remote branches
$ npx -y skills add xiaolai/vmark --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/repo-clean-up
Context preview
What this command does when you run it.
Remove failed/canceled GitHub Actions runs and stale remote branches
Command definition
repo-clean-up.mddescription: Remove failed/canceled GitHub Actions runs and stale remote branches
Repository Cleanup
Clean up the remote repository by removing failed CI artifacts and stale branches.
Step 1: Delete Failed GitHub Actions Runs
gh run list --status failure --limit 100 --json databaseId --jq '.[].databaseId'
Delete each run with `gh run delete <id>`.
Report: `Deleted N failed runs.`
Step 2: Delete Canceled GitHub Actions Runs
gh run list --status cancelled --limit 100 --json databaseId --jq '.[].databaseId'
Delete each run with `gh run delete <id>`.
Report: `Deleted N canceled runs.`
Step 3: Delete Stale Remote Branches
List all remote branches except `main`:
git fetch --prune
gh api repos/{owner}/{repo}/branches --paginate --jq '.[].name' | grep -v '^main$'Delete each branch with `gh api -X DELETE repos/{owner}/{repo}/git/refs/heads/{branch}`.
Report: `Deleted N remote branches.`
Step 4: Prune Local Tracking References
git fetch --prune
Summary
Report total cleanup: `Cleanup complete: N failed runs, N canceled runs, N branches removed.`
The Plain-Text Workspace Where Humans and AI Collaborate Free. Local-first. Format-aware. VMark is the plain-text workspace where humans and AI collaborate.
Repo: xiaolai/vmark
Other commands on vmark.
- /bump
Bump version across all 5 files, land it via PR, then tag and push
Open command - /feature-workflow
Run the gated, agent-driven workflow end-to-end.
Open command - /fix-issue
End-to-end GitHub issue resolver โ fetch, classify, fix, audit, PR
Open command - /fix
Fix issues properly - no patches, no shortcuts, no regressions
Open command - /merge-prs
Review and merge open PRs โ sequential, safe, with rebase handling
Open command - /test-guide
Open the comprehensive testing guide and help the user test VMark features.
Open command

