Skip to content
Agent Orchestration
Command

/repo-clean-up

Remove failed/canceled GitHub Actions runs and stale remote branches

From plugin
vmark
9227 skills6 agents7 commands1 MCP
$ npx -y skills add xiaolai/vmark --agent claude-code

Command definition

repo-clean-up.md
description: 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.`

@xiaolai
Ships withvmark

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.

92210 skills6 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
922
Star history of xiaolai/vmark on GitHub, a chart by star-history.com

Other commands on vmark.

bump

bump

Command

Bump version across all 5 files, write the release notes, land it via PR, then tag and push

@xiaolai@xiaolaiInstall Command
fix-issue

fix-issue

Command

End-to-end GitHub issue resolver — fetch, classify, fix, audit, PR

@xiaolai@xiaolaiInstall Command
fix

fix

Command

Fix issues properly - no patches, no shortcuts, no regressions

@xiaolai@xiaolaiInstall Command
merge-prs

merge-prs

Command

Review and merge open PRs — sequential, safe, with rebase handling

@xiaolai@xiaolaiInstall Command
test-guide

test-guide

Command

Open the comprehensive testing guide and help the user test VMark features.

@xiaolai@xiaolaiInstall Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command