Build Px4 macOS
PX4/PX4-Autopilot
Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.
Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost.
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-prune --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/git-worktree-prune .claude/skills/git-worktree-prune && rm -rf skills-srcUse ~/.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/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .claude/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-pruneType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-prune --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/git-worktree-prune .agents/skills/git-worktree-prune && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .agents/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-prune --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/git-worktree-prune .cursor/skills/git-worktree-prune && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .cursor/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/michaleiatrak-star/Lex-Machina.git --path .claude/skills/git-worktree-prune--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-prune --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/git-worktree-prune .gemini/skills/git-worktree-prune && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .gemini/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-pruneInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/git-worktree-prune .github/skills/git-worktree-prune && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .github/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install michaleiatrak-star/Lex-Machina git-worktree-prune --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/git-worktree-prune .opencode/skills/git-worktree-prune && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "git-worktree-prune" agent skill from https://github.com/michaleiatrak-star/Lex-Machina/tree/main/.claude/skills/git-worktree-prune into .opencode/skills/git-worktree-prune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-worktree-prune", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
git-worktree-pruneSafely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost.
Git Worktree Prune is an agent skill from michaleiatrak-star/Lex-Machina. Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost. Use when a repo has accumulated worktrees and branches over many sessions and needs cleanup. Triggers include "prune worktrees", "delete stale branches", "clean up git worktrees/branches", "remove old worktrees", "which branches are safe to delete".
Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/prune_git.py`).
It sits in Development, covering Git worktrees. It works with Git. The repository describes itself as: Analityka polskiego prawa, przygotowanie pism procesowych, weryfikacja przepisów prawa polskiego i orzecznictwa z oficjalnych źródeł z zakazem cytowania z pamięci, przygotowanie… The licence is GPL-3.0.
Read from SKILL.md and the folder at commit bccda93. It shows what the files ask for, not the result of running them.
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.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythongitFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Git Worktree Prune loads about 712 tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 336 words of instructions outside code blocks.
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.
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.
The full file from michaleiatrak-star/Lex-Machina at commit bccda93, republished under its GPL-3.0 licence (© michaleiatrak-star). 336 words, ~712 tokens.
.claude/skills/git-worktree-prune/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Remove stale worktrees and local branches from old sessions without ever losing a commit.
origin/*, or a tag). Branches with unique commits are kept.main/master are always kept.Always dry-run first (the default — it changes nothing), review the plan, then apply:
python scripts/prune_git.py --repo <path> # dry-run: prints KEEP/REMOVE/DELETE plan
python scripts/prune_git.py --repo <path> --apply # execute after reviewing the dry-runFlags:
--fetch — run git fetch --all --prune first so branches already merged/pushed to a remote are recognized as deletable. Without it the tool is more conservative (stale remotes only ever cause it to keep more, never lose work).--protect BRANCH — always keep this branch (repeatable). Use for branches with no unique commits that you still want to keep (see below).--repo PATH — a path inside the target repo (default: cwd).--applyThe "no unique commits" rule is about commits, not intent. A branch can be flagged DELETE while still being meaningful — most commonly a feature branch that a descendant now subsumes (e.g., you branched research/x off feat/y, so feat/y's commits now also live on research/x). No commit is lost if it's deleted, but the branch name and its PR track are. Keep such a branch with --protect <name>.
Every removal is printed with its reason; a branch shown as KEEP -- N unique commit(s) holds work found nowhere else and is never touched.
main) frees the branch without deleting it; you can then check it out in the primary worktree.git worktree prune.PYTHONIOENCODING=utf-8) if paths contain non-ASCII characters.© michaleiatrak-star, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in .claude/skills/git-worktree-prune of michaleiatrak-star/Lex-Machina.
Open the folder on GitHubat commit bccda93
Git Worktree Prune 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Git Worktree Prune this skillmichaleiatrak-star/Lex-Machina | 262 | — | ~712 | Automated safety check: Pass | GPL-3.0 | |
| Build Px4 macOSPX4/PX4-Autopilot | 13k | — | ~1.1k | Automated safety check: Pass | BSD-3-Clause | |
| Git Worktree IsolationjnMetaCode/superpowers-zh | 8.3k | 1 repos | ~982 | Automated safety check: Pass | MIT | |
| WorktreeAgentsMesh/AgentsMesh | 2.4k | — | ~553 | Automated safety check: Notes | Custom licence | |
| Cursor Composer Task DelegateChachamaru127/claude-code-harness | 3.2k | — | ~4.4k | Automated safety check: Notes | MIT | |
| Git Worktree Setupk8zdev/k8z | 155 | — | ~930 | Automated safety check: Pass | None |
PX4/PX4-Autopilot
Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.
jnMetaCode/superpowers-zh
Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.
AgentsMesh/AgentsMesh
Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.
Chachamaru127/claude-code-harness
Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.
k8zdev/k8z
Automate git worktree creation and copy private files (not tracked in git) to new workdirs.
michaelshimeles/skills
Start a new task in an isolated Git worktree branched from origin/main so multiple agents can work on the same repo in parallel without conflicts.
michaleiatrak-star/Lex-Machina
Delegate tasks to Gemini CLI as an agent. An agent skill from michaleiatrak-star/Lex-Machina.
michaleiatrak-star/Lex-Machina
Audyt jakości, spójności i bezpieczeństwa systemu prawnych skilli: zależności, wersje, mapy Dz.U., treść merytoryczna, propagacja zmian, deduplikacja i bramki jakości.
michaleiatrak-star/Lex-Machina
Prawo cywilne, rodzinne i gospodarcze: KC, KPC, spadki, rodzina, spółki, upadłość, restrukturyzacja, windykacja i odpowiedzialność kontraktowa/deliktowa.
michaleiatrak-star/Lex-Machina
Prawo konstytucyjne i ustrojowe: Konstytucja, organy państwa, TK, źródła prawa, legislacja i skarga konstytucyjna; analiza z aktualną weryfikacją źródeł.
michaleiatrak-star/Lex-Machina
Prawo administracyjne i sądowoadministracyjne: KPA, PPSA, decyzje, bezczynność, WSA/NSA, egzekucja administracyjna, cudzoziemcy i postępowania urzędowe.
michaleiatrak-star/Lex-Machina
Zamówienia publiczne i fundusze UE: PZP, postępowania zakupowe, KIO, środki ochrony prawnej, finansowanie UE i powiązane zagadnienia realizacyjne.
Works with
Categories
Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost. Git Worktree Prune is an agent skill from michaleiatrak-star/Lex-Machina. Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost.
Git Worktree Prune fits situations like: A repo has accumulated worktrees and branches over many sessions and needs cleanup; include prune worktrees; delete stale branches; clean up git worktrees/branches.
Run `npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a claude-code`. Or copy the skill folder (.claude/skills/git-worktree-prune in michaleiatrak-star/Lex-Machina) into .claude/skills/git-worktree-prune in your project. Claude Code loads it when a task matches its description.
Run `npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a codex`. Or copy the skill folder (.claude/skills/git-worktree-prune in michaleiatrak-star/Lex-Machina) into .agents/skills/git-worktree-prune in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add michaleiatrak-star/Lex-Machina --skill git-worktree-prune -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-worktree-prune, .gemini/skills/git-worktree-prune, .github/skills/git-worktree-prune and .opencode/skills/git-worktree-prune in your project.
Going by SKILL.md and its folder, Git Worktree Prune needs Python for the scripts in its folder and the command-line tools its instructions call (python and git). Our summary lists: Python 3.
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.
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.
Git Worktree Prune is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 712 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Git Worktree Prune: Build Px4 macOS (PX4/PX4-Autopilot, 13k stars), Git Worktree Isolation (jnMetaCode/superpowers-zh, 8.3k stars), Worktree (AgentsMesh/AgentsMesh, 2.4k stars) and Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
michaleiatrak-star (a GitHub user) maintains it in michaleiatrak-star/Lex-Machina, which has 262 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 9, 2026.
Source: michaleiatrak-star/Lex-Machina on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.