Agent skill

Done With

by goern in goern/forgejo-mcp

Close out a bead started with /work-on — verify it's safe, clean up the worktree, free the tab and the session name

GPL-3.0-or-laterAuto-check passedDevelopment

Install Done With

skills CLI
$ npx skills add goern/forgejo-mcp --skill done-with -a claude-code

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

GitHub CLI
$ gh skill install goern/forgejo-mcp done-with --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/goern/forgejo-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/done-with .claude/skills/done-with && 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
done-with
GitHub stars
141
Token cost
~1.1k tokens
SKILL.md length
585 words
Files
3 (incl. scripts)
Skills in repo
15
Repo updated
First seen
Licence
GPL-3.0-or-later

At a glance

Close out a bead started with /work-on — verify it's safe, clean up the worktree, free the tab and the session name

  • Works in 5 steps: resolve the branch/bead → check it's safe to remove: merged, or a… → remove the worktree (only after Step 1… → …
  • Tasks that involve Git worktrees
  • SKILL.md covers Model, Step 0 — resolve the branch/bead, Step 1 — check it's safe to… and Step 2 — remove the worktree…, plus 3 more sections
  • Runs Shell scripts from its folder; calls git and jq

What it does

Done With is an agent skill from goern/forgejo-mcp. Close out a bead started with /work-on — verify it's safe, clean up the worktree, free the tab and the session name

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/herdr-rename-tab.sh` and `scripts/session-title.sh`). Compatibility notes: Requires the wt, jq and herdr CLIs; the session rename additionally needs the UserPromptSubmit hook from the README

It sits in Development, covering Git worktrees. The repository describes itself as: MIRROR ONLY!! This Model Context Protocol (MCP) server provides tools and resources for interacting with the Forgejo (specifically Codeberg.org) REST API. The licence is GPL-3.0-or-later.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/done-with”

Requirements

  • A Bash shell
  • Compatibility (from SKILL.md): Requires the `wt`, `jq` and `herdr` CLIs; the session rename additionally needs the `UserPromptSubmit` hook from the README

Workflow steps

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

  1. resolve the branch/bead
  2. check it's safe to remove: merged, or a PR is open
  3. remove the worktree (only after Step 1 passed)
  4. rename the herdr tab to "free"
  5. report

What it can do on your machine

Read from SKILL.md and the folder at commit 1f51f83. 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 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • jq

    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.

  • Compatibility

    Requires the `wt`, `jq` and `herdr` CLIs; the session rename additionally needs the `UserPromptSubmit` hook from the README

    From compatibility in the SKILL.md frontmatter.

Context cost

Done With loads about 1.1k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 585 words of instructions outside code blocks.

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

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

The full file from goern/forgejo-mcp at commit 1f51f83, republished under its GPL-3.0-or-later licence (© goern). 585 words, ~1,090 tokens.

Download SKILL.mdSave it as .claude/skills/done-with/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
done-with
description
Close out a bead started with /work-on — verify it's safe, clean up the worktree, free the tab and the session name
compatibility
Requires the `wt`, `jq` and `herdr` CLIs; the session rename additionally needs the `UserPromptSubmit` hook from the README
argument-hint
[<bead-id>]
license
GPL-3.0-or-later

Counterpart to /work-on. Undoes every step it took: removes the worktree (when safe) and frees the herdr tab and the Claude session name.

Model

Run this skill's steps on Sonnet. Skills can't pin a model via frontmatter (that's a Command-only field) — this is a best-effort instruction to the invoking agent, not an enforced constraint.

Step 0 — resolve the branch/bead

$ARGUMENTS if given; otherwise the current branch:

bash
git rev-parse --abbrev-ref HEAD

If that resolves to the repo's default branch, there is nothing to clean up — stop and say so.

Step 1 — check it's safe to remove: merged, or a PR is open

bash
wt list --format=json --full | jq -e --arg b "$BRANCH" '.[] | select(.branch == $b)'

Read the matched entry:

  • Dirty working tree — any of working_tree.staged / .modified / .untracked / .renamed / .deleted is true → stop. Report the uncommitted changes and do not touch the worktree or the tab. The user commits or stashes first.
  • Merged — main_state is "integrated" or "empty" → safe, proceed.
  • PR/MR open — ci.number is present (any ci.status, draft included — "opened" is the bar here, not "approved") → safe, proceed.
  • Neither — not merged and no PR → stop. Report the branch's ahead/behind counts and that no PR was found; tell the user to push and open a PR, or merge, before cleaning up. Do not touch the worktree or the tab.

If the branch has no worktree entry at all in the JSON, say so and stop — nothing to clean up.

Step 2 — remove the worktree (only after Step 1 passed)

Try ExitWorktree({action: "remove"}) first — this is the common case: the session that's closing out the bead is the same one /work-on created the worktree in. It fires the WorktreeRemove hook wired into the agent's settings (.claude/settings.json in Claude Code), which runs wt remove --foreground <path> — that keeps the branch unless it's fully merged (main_state integrated/empty), so a branch backing a still-open PR survives even though its worktree is gone.

If ExitWorktree reports no active worktree session (this session didn't create it, or it's a fresh session resuming cleanup) — fall back to:

bash
wt remove "$BRANCH" --foreground
Show full SKILL.md (265 more words)Show less

Step 3 — rename the herdr tab to "free"

bash
scripts/herdr-rename-tab.sh free

(Run it from the skill's own directory, or by absolute path — it lives next to this file.)

Same script /work-on uses: it renames the tab hosting this session, resolved from the HERDR_PANE_ID herdr exports into every pane. Never resolve the tab from herdr api snapshot's focused_tab_id — that renames whichever tab is focused when the command lands, not the one running the session.

Best effort — every failure is non-fatal, report it and carry on:

exitmeaning
0renamed
3HERDR_PANE_ID unset — session is not inside a herdr pane, nothing to rename
4pane unknown to the server (herdr not running, or the pane is gone)
5herdr rejected the rename

Step 3b — free the Claude session name too

bash
scripts/session-title.sh queue free

Same label as the tab, for the same reason /work-on sets both: a session still called <bead-id> after cleanup is a lie. The rename is queued and applied by the UserPromptSubmit hook on the user's next message — a session cannot rename itself mid-turn. Exit 3 means CLAUDE_CODE_SESSION_ID is unset (not a Claude Code session); non-fatal, report and carry on.

Both renames only ever run after Step 1 passed. A refused cleanup leaves the tab and the session name on the bead id, which is exactly the truthful signal.

Step 4 — report

One line: branch, why it was safe to remove (merged / PR #N), worktree removed y/n, branch kept/deleted, tab renamed to "free" and the session rename queued (it lands on the next message). Mention bd close <bead-id> if the bead itself is still open — this command does not close beads.

© goern, GPL-3.0-or-later. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in .agents/skills/done-with of goern/forgejo-mcp.

  • SKILL.md
  • scripts/herdr-rename-tab.sh
  • scripts/session-title.sh

Open the folder on GitHubat commit 1f51f83

Compare with similar skills

Done With 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.

Done With compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Done With this skillgoern/forgejo-mcp141—~1.1kAutomated safety check: PassGPL-3.0-or-later
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated 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.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from goern/forgejo-mcp

All 15 skills in this repo
  • Release Openspec

    goern/forgejo-mcp

    A skill your agent uses when releasing OpenSpec: audit merged work and changeset coverage, decide whether a catch-up changeset PR is needed, prepare or resume the Changesets Version Packages PR, cut…

    141 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Unified Notifications

    goern/forgejo-mcp

    Fetch and display notifications from both GitHub and Codeberg in a unified markdown view with clickable links.

    141 GitHub stars~802 tokensUpdated today
    Auto-check passed
  • Caveman Compress

    goern/forgejo-mcp

    Compress a memory file such as CLAUDE.md or a todo list into caveman format to save input tokens, keeping a readable backup.

    141 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check: notes
  • Draft Openspec Docs

    goern/forgejo-mcp

    Collaborative page-drafting mode for the OpenSpec docs. An agent skill from goern/forgejo-mcp.

    141 GitHub starsUsed in 1 repo~815 tokens
    Auto-check passed
  • Verify Openspec Docs

    goern/forgejo-mcp

    Fact-checks OpenSpec user documentation with a fresh-context subagent that re-runs commands and checks claims against source.

    141 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Wt Switch Create

    goern/forgejo-mcp

    Create a new worktrunk worktree (optionally in another repo) and switch this session's working directory into it.

    141 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Categories

Questions about Done With

What does Done With do?

Close out a bead started with /work-on — verify it's safe, clean up the worktree, free the tab and the session name. Done With is an agent skill from goern/forgejo-mcp.

When should I use Done With?

Done With fits situations like: tasks that involve Git worktrees.

How do I install Done With in Claude Code?

Run `npx skills add goern/forgejo-mcp --skill done-with -a claude-code`. Or copy the skill folder (.agents/skills/done-with in goern/forgejo-mcp) into .claude/skills/done-with in your project. Claude Code loads it when a task matches its description.

How do I install Done With in Codex?

Run `npx skills add goern/forgejo-mcp --skill done-with -a codex`. Or copy the skill folder (.agents/skills/done-with in goern/forgejo-mcp) into .agents/skills/done-with in your project. Codex loads it when a task matches its description.

Can I use Done With 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 goern/forgejo-mcp --skill done-with -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/done-with, .gemini/skills/done-with, .github/skills/done-with and .opencode/skills/done-with in your project.

What does Done With need to run?

Going by SKILL.md and its folder, Done With needs a shell for the scripts in its folder and the command-line tools its instructions call (git and jq). Our summary lists: A Bash shell. Compatibility (from SKILL.md): Requires the `wt`, `jq` and `herdr` CLIs; the session rename additionally needs the `UserPromptSubmit` hook from the README.

Does Done With 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 Done With 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 Done With use?

Done With is published under the GPL-3.0-or-later licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Done With use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Done With?

Skills that share tags, products or a category with Done With: Finishing a Development Branch (obra/superpowers, 296k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Done With?

goern (a GitHub user) maintains it in goern/forgejo-mcp, which has 141 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 8, 2026.

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