Agent skill

Clean Complete Branches

by jtenniswood in jtenniswood/espcontrol

Clean up completed Git branches and worktrees for this repository both locally and on GitHub.

Custom licenceAuto-check passedDevelopment

Install Clean Complete Branches

skills CLI
$ npx skills add jtenniswood/espcontrol --skill clean-complete-branches -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jtenniswood/espcontrol clean-complete-branches --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jtenniswood/espcontrol.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/clean-complete-branches .claude/skills/clean-complete-branches && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clean-complete-branches
GitHub stars
1.1k
Token cost
~820 tokens
SKILL.md length
344 words
Files
3 (incl. scripts)
Skills in repo
14
Repo updated
First seen
Licence
Custom licence

At a glance

Clean up completed Git branches and worktrees for this repository both locally and on GitHub.

  • Works in 4 steps: Check the Repository → Preview Complete Branches → Apply Cleanup → …
  • The user asks to remove complete
  • SKILL.md covers Overview, Workflow and Safety Rules
  • Runs Python scripts from its folder; calls git and python3

What it does

Clean Complete Branches is an agent skill from jtenniswood/espcontrol. Clean up completed Git branches and worktrees for this repository both locally and on GitHub. Use when the user asks to remove complete, completed, merged, stale, finished, or done branches, delete merged GitHub branches, tidy local worktrees, prune completed PR branches, or clean up branches and worktrees after pull requests have merged.

Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `agents/openai.yaml` and `scripts/clean_complete_branches.py`).

It sits in Development, covering Git worktrees, Pull requests and Git workflow. It works with GitHub and Git. The repository describes itself as: Esphome based smart home control panel.

When your agent uses it

  • The user asks to remove complete
  • Delete merged GitHub branches
  • Tidy local worktrees
  • Prune completed PR branches

Example prompts

  • “/clean-complete-branches”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Check the Repository
  2. Preview Complete Branches
  3. Apply Cleanup
  4. Validate the Result

What it can do on your machine

Read from SKILL.md and the folder at commit 72cf82c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clean Complete Branches loads about 820 tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 344 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~820

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 344 words (~820 tokens).

“Clean up branch work safely after pull requests are complete. This skill covers:”

— opening of SKILL.md by jtenniswood, Custom licence
name
clean-complete-branches

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in .agents/skills/clean-complete-branches of jtenniswood/espcontrol.

  • SKILL.md
  • agents/openai.yaml
  • scripts/clean_complete_branches.py

Open the folder on GitHubat commit 72cf82c

Compare with similar skills

Clean Complete Branches next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clean Complete Branches compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clean Complete Branches this skilljtenniswood/espcontrol1.1k—~820Automated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Create Pull Request with Work Item IDmakeplane/plane61k—~824Automated safety check: PassAGPL-3.0
Creating Description For Gh PRredis/jedis12k—~838Automated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    61k GitHub stars~824 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Pascal Editor PR Opener

    pascalorg/editor

    Opens or refreshes a pull request on pascalorg/editor from the current branch, describing only what the branch's commits and diff actually contain.

    25k GitHub stars~619 tokensUpdated today
    DevelopmentAuto-check passed

More from jtenniswood/espcontrol

All 14 skills in this repo
  • Clean Merged Branch Folders

    jtenniswood/espcontrol

    Clean up local branch worktree folders for this repository after their branches or pull requests have merged to main.

    1.1k GitHub stars~813 tokensUpdated today
    Auto-check passed
  • Flash Displays

    jtenniswood/espcontrol

    Flash EspControl display firmware from this repository using ESPHome.

    1.1k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • PR

    jtenniswood/espcontrol

    Review a new or open pull request for this repository with an adversarial security and quality lens.

    1.1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Release

    jtenniswood/espcontrol

    Create and safely publish a new GitHub release for this repository through a verified draft build, then confirm the related GitHub Actions run.

    1.1k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Review All

    jtenniswood/espcontrol

    Review every open pull request authored by the user in this repository and address actionable unresolved review feedback.

    1.1k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Tech Debt Scan

    jtenniswood/espcontrol

    Research-only technical debt scan for this EspControl repository.

    1.1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Clean Complete Branches

What does Clean Complete Branches do?

Clean up completed Git branches and worktrees for this repository both locally and on GitHub. Clean Complete Branches is an agent skill from jtenniswood/espcontrol. Clean up completed Git branches and worktrees for this repository both locally and on GitHub.

When should I use Clean Complete Branches?

Clean Complete Branches fits situations like: the user asks to remove complete; delete merged GitHub branches; tidy local worktrees; prune completed PR branches.

How do I install Clean Complete Branches in Claude Code?

Run `npx skills add jtenniswood/espcontrol --skill clean-complete-branches -a claude-code`. Or copy the skill folder (.agents/skills/clean-complete-branches in jtenniswood/espcontrol) into .claude/skills/clean-complete-branches in your project. Claude Code loads it when a task matches its description.

How do I install Clean Complete Branches in Codex?

Run `npx skills add jtenniswood/espcontrol --skill clean-complete-branches -a codex`. Or copy the skill folder (.agents/skills/clean-complete-branches in jtenniswood/espcontrol) into .agents/skills/clean-complete-branches in your project. Codex loads it when a task matches its description.

Can I use Clean Complete Branches in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jtenniswood/espcontrol --skill clean-complete-branches -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clean-complete-branches, .gemini/skills/clean-complete-branches, .github/skills/clean-complete-branches and .opencode/skills/clean-complete-branches in your project.

What does Clean Complete Branches need to run?

Going by SKILL.md and its folder, Clean Complete Branches needs Python for the scripts in its folder and the command-line tools its instructions call (git and python3). Our summary lists: Python 3.

Does Clean Complete Branches access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Clean Complete Branches safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Clean Complete Branches use?

Clean Complete Branches has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Clean Complete Branches use?

About 820 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Clean Complete Branches?

Skills that share tags, products or a category with Clean Complete Branches: Finishing a Development Branch (obra/superpowers, 297k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars) and Create Pull Request with Work Item ID (makeplane/plane, 61k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clean Complete Branches?

jtenniswood (a GitHub user) maintains it in jtenniswood/espcontrol, which has 1,091 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 11, 2026.

Source: jtenniswood/espcontrol on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.