/repo-clean-up
Remove failed/canceled GitHub Actions runs and stale remote branches
$ npx -y skills add xiaolai/vmark --agent claude-code
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.
Other commands on vmark.
More commands from other plugins.
COMMAND_COMPLIANCE_REP…
CommandReviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…
ask
CommandThis compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

