Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
clean-branches - Skill - OpenSmartRoute
Skillv1.0.0
clean-branches
Use when cleaning up local branches, deleting merged branches, pruning stale or gone branches, or tidying git branch output.
Imported from tartinerlabs/skills (plugins/workflow/skills/clean-branches/SKILL.md). Install upstream with npx skills add tartinerlabs/skills --skill clean-branches. Copyright stays with the author (MIT).
You delete local branches whose work has already landed, and leave everything else alone.
Sync remote state and note the branches that must never be deleted: the current one, and any checked out in a worktree
Native pass: let git delete the branches it can prove merged into their upstream, previewing first. Skip on git older than the version rules/merged-detection.md names
Gap pass: collect the branches the native pass skips (gone or missing upstream), and keep a candidate only when git or the forge confirms it landed. For the forge check, load only the matching guide: references/github.md for a github.com remote (the default), references/gitlab.md for GitLab
Show the combined list with the evidence per branch (e.g. #93 merged, merged into main) and confirm before deleting
Report what was deleted and what was kept, with the reason for each kept branch — closed-unmerged PR, no PR, upstream ahead, checked out
Keep, don't guess
A branch with a closed-but-unmerged PR or no PR at all may hold unfinished work. List it as kept and let the user decide; never delete it on age or name alone. Remote branches are out of scope — this skill only touches local refs.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Installed into a catalogue, chosen by a router
Install clean-branches and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
tartinerlabs-skills-clean-branches.ocm.jsonjson
{
"ocm": "1",
"id": "tartinerlabs-skills-clean-branches",
"kind": "skill",
"name": "clean-branches",
"description": "Use when cleaning up local branches, deleting merged branches, pruning stale or gone branches, or tidying `git branch` output. Removes branches whose work has already landed, including squash-merged PRs.",
"publisher": "tartinerlabs",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"math"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Use when cleaning up local branches, deleting merged branches, pruning stale or gone branches, or tidying `git branch` output. Removes branches whose work has already landed, including squash-merged PRs."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/tartinerlabs/skills",
"path": "plugins/workflow/skills/clean-branches/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/tartinerlabs/skills/blob/HEAD/plugins/workflow/skills/clean-branches/SKILL.md",
"key": "tartinerlabs/skills/plugins/workflow/skills/clean-branches/SKILL.md"
},
"compatibility": "Requires git; `--delete-merged` needs git 2.56+. Squash-merge detection uses a GitHub (gh) or GitLab (glab) remote",
"allowed_tools": [
"Read",
"Bash(git",
"fetch",
"--prune",
"*)",
"Bash(git",
"branch",
"-vv",
"*)",
"Bash(git",
"branch",
"--merged",
"*)",
"Bash(git",
"branch",
"-d",
"*)",
"Bash(git",
"branch",
"--dry-run",
"--delete-merged",
"*)",
"Bash(git",
"branch",
"--delete-merged",
"*)",
"Bash(git",
"--version)",
"Bash(git",
"worktree",
"list",
"*)",
"Bash(git",
"symbolic-ref",
"*)",
"Bash(git",
"rev-parse",
"*)",
"Bash(git",
"remote",
"get-url",
"*)",
"Bash(gh",
"pr",
"list",
"*)",
"Bash(glab",
"mr",
"list",
"*)"
],
"model": "haiku",
"license": "MIT"
},
"instructions": "You delete local branches whose work has already landed, and leave everything else alone.\n\n## Rules Overview\n\n| Rule | Impact | File |\n|------|--------|------|\n| Merged detection | HIGH | [rules/merged-detection.md](rules/merged-detection.md) |\n\n## Workflow\n\n1. Sync remote state and note the branches that must never be deleted: the current one, and any checked out in a worktree\n2. **Native pass**: let git delete the branches it can prove merged into their upstream, previewing first. Skip on git older than the version [rules/merged-detection.md](rules/merged-detection.md) names\n3. **Gap pass**: collect the branches the native pass skips (gone or missing upstream), and keep a candidate only when git or the forge confirms it landed. For the forge check, load **only** the matching guide: [references/github.md](references/github.md) for a `github.com` remote (the default), [references/gitlab.md](references/gitlab.md) for GitLab\n4. Show the combined list with the evidence per branch (e.g. `#93 merged`, `merged into main`) and confirm before deleting\n5. Report what was deleted and what was kept, with the reason for each kept branch — closed-unmerged PR, no PR, upstream ahead, checked out\n\n## Keep, don't guess\n\nA branch with a closed-but-unmerged PR or no PR at all may hold unfinished work. List it as kept and let the user decide; never delete it on age or name alone. Remote branches are out of scope — this skill only touches local refs.",
"cost": {
"context_tokens": 363
}
}
Fetch it by URL: GET /api/v1/registry/tartinerlabs-skills-clean-branches/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.