add-team-source
Sync interval in hours. Default 24.
Branch to use as the merge target. Defaults to the profile's primary base branch (auto-resolved through `origin/HEAD`, `main`, or `master`).
> /plugin marketplace add thettwe/nyann > /plugin install nyann@nyann-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
/cleanup-branchesContext preview
What this command does when you run it.
Branch to use as the merge target. Defaults to the profile's primary base branch (auto-resolved through `origin/HEAD`, `main`, or `master`).
name: nyann:cleanup-branches
description: >
Prune local branches whose work is already merged into the base. Lists
candidates first, then applies on `--yes`. Mirrors the safe-delete
semantics of `git branch -d` (lowercase d): nothing unmerged is touched.
arguments:
- name: yes
description: If passed, executes the deletions. Without `--yes`, the command emits the candidate list as a preview and exits 0.
optional: true
- name: dry-run
description: Same JSON shape as preview, but mode reads `dry-run` instead — useful in scripts that want to confirm "I would delete X" without running.
optional: true
- name: base
description: Branch to use as the merge target. Defaults to the profile's primary base branch (auto-resolved through `origin/HEAD`, `main`, or `master`).
optional: true**Plugin root:** This is a Claude Code plugin, NOT a CLI tool. Do NOT search via `which`, `npm list`, `pip list`, or `brew list`. This file is at `<plugin_root>/commands/`. All scripts: `<plugin_root>/bin/`. Read the matching `skills/*/SKILL.md` for the full flow.
Wraps `bin/cleanup-branches.sh`. Same `--yes`-required-to-mutate contract as `/nyann:undo` and `/nyann:migrate-profile`.
A CleanupBranchesResult JSON:
| Mode | Triggered by | What happens | |---|---|---| | `preview` | (default) | List candidates + warn "re-run with --yes". Nothing deleted. | | `dry-run` | `--dry-run` | Same shape, no warn. Nothing deleted. | | `applied` | `--yes` | `git branch -d` per candidate. Failures land in `errors[]`. |
branch even if the candidate list says it should be safe — race conditions between preview and apply can't drop unmerged work.
<branch>` separately if you want to mirror to the remote.
See also:
hygiene signals.
preview-mutate contract).
ငြမ်း is Burmese for scaffolding. Nyann is the Claude Code plugin that picks expert git defaults for your stack — branching, working hooks (Husky / pre-commit.com / lefthook), commits, releases, CI, docs — then keeps the repo on those rails through every PR
Repo: thettwe/nyann
Sync interval in hours. Default 24.
Path to an IacPlan JSON from a prior /nyann:plan run, to apply the exact previewed plan.
Optional profile name to apply. If provided, skip stack detection's recommendation step and load this profile via bin/load-profile.sh. Fall back to the skill's…
The branch slug (feature/bugfix/hotfix) or version string (release).
If passed, emit the probe results as JSON instead of the human table.
Generate a Conventional Commits message from the staged diff and commit after confirmation. Same flow as the natural-language `commit` skill — dispatches here…