zcf-add-sponsor
Quickly add a new corporate sponsor to ZCF — sponsor list by default, with optional API preset and documentation ad placements
Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support
$ npx -y skills add UfoMiao/zcf --skill git-clean-branches --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/git-clean-branchesContext preview
The summary Claude sees to decide when to auto-load this skill.
Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support
name: git-clean-branches description: Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support disable-model-invocation: true allowed-tools: Read(**), Exec(git fetch, git config, git branch, git remote, git push, git for-each-ref, git log), Write()
This command **safely** identifies and cleans up **merged** or **stale** Git branches. Runs in **read-only preview (`--dry-run`)** mode by default, requiring explicit instructions to perform deletions.
---
# [Safest] Preview branches to be cleaned without executing any deletions /git-cleanBranches --dry-run # Clean local branches merged to main and inactive for over 90 days (requires individual confirmation) /git-cleanBranches --stale 90 # Clean local and remote branches merged to release/v2.1 (auto-confirm) /git-cleanBranches --base release/v2.1 --remote --yes # [Dangerous] Force delete an unmerged local branch /git-cleanBranches --force outdated-feature
---
1. **Configuration and Safety Checks**
2. **Analysis and Identification (Find)**
3. **Report and Preview (Report)**
4. **Execute Cleanup (Execute)**
---
To prevent accidental deletion of important branches (e.g., `develop`, `release/*`), add protection rules to the repository's Git config. The command reads them automatically.
# Protect develop branch git config --add branch.cleanup.protected develop # Protect all branches starting with release/ (wildcard) git config --add branch.cleanup.protected 'release/*' # View all configured protected branches git config --get-all branch.cleanup.protected
---
---
Repo: UfoMiao/zcf
Quickly add a new corporate sponsor to ZCF — sponsor list by default, with optional API preset and documentation ad placements
Create pull request based on current branch changes
Automate version release and code commit using changeset
Automatically check code changes since last tag and update documentation in docs/ directory (en, zh-CN, ja-JP) and CLAUDE.md to ensure consistency with actual…
Initialize or update BMad-Method (V6) in your project