klimkit-create-worktree

klimkit-create-worktree is a skill for Codex from klimentij/klimkit. It costs 71 tokens per session (756 once invoked), scanned A, original, MIT.

A Git worktree setup guide for creating separate working folders and branches from chosen starting branches. A worktree lets you work on another branch without changing your current checkout.

In plain words
What is it for?
It is for starting isolated feature or bug-fix work, creating branch checkouts, and preparing work from a development branch updated with another branch.
Why use it?
It prevents unfinished changes in one task from getting mixed with another and can prepare a branch from an updated base.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It is for starting isolated feature or bug-fix work, creating branch checkouts, and preparing work from a development branch updated with another branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/klimentij/klimkit/klimkit-create-worktree
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add klimentij/klimkit --skill klimkit-create-worktree
Clone the repo
git clone --depth 1 https://github.com/klimentij/klimkit

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for klimkit-create-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-create-worktree/github.svg)](https://agentmods.dev/skills/klimentij/klimkit/klimkit-create-worktree)
Your own site
<a href="https://agentmods.dev/skills/klimentij/klimkit/klimkit-create-worktree"><img src="https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-create-worktree/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for klimkit-create-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/klimentij/klimkit/klimkit-create-worktree"><img src="https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-create-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00756
Opus 5.5 $0.00028 $0.00302
Sonnet 5.5 $0.00014 $0.00151
Haiku 4.5 $0.00007 $0.00076

Measured 3mo ago against content hash 71deaac708ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

klimkit-create-worktree scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/create_worktree.sh, scripts/worktree_lib.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/klimkit-create-worktree/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Klimkit Create Worktree

Use this skill to create deterministic, isolated worktrees. The default worktree root is ${KLIMKIT_WORKTREE_ROOT:-$HOME/wt}, so new checkouts normally land under ~/wt/<branch-name>.

If The Request Is Ambiguous

If the user invokes this skill without saying the branch or base, inspect branches and suggest two or three concrete options, then ask for clarification. Prefer options like:

  • Klimkit create worktree feature checkout from main
  • Klimkit create worktree feature sync from dev updated with main
  • Klimkit create worktree bugfix login from origin/main without syncing another branch

Ask which base branch to use and whether the base should first be updated from another branch. When a repo has main and dev, suggest dev updated with main for feature branches that should target dev.

Workflow

  1. Inspect repo root, current branch, remotes, existing local/remote branches, and git worktree list.

  2. Convert the requested branch name into a safe branch slug.

  3. Choose the creation mode:

    • Simple: create <branch> from <base>.
    • Synced base: merge <sync-from> into <base> in a temporary worktree, optionally push the synced base, then create <branch> from that merge commit.
  4. Prefer the bundled script for deterministic behavior:

    skills/klimkit-create-worktree/scripts/create_worktree.sh \
      --branch "<branch name>" \
      --base dev \
      --sync-from main \
      --push-base
    
  5. Record the printed path=..., branch=..., base=..., start_commit=..., and url=... in the task note or final handoff.

  6. Verify the new worktree exists and run git -C <path> status --short.

Examples

Create from main:

skills/klimkit-create-worktree/scripts/create_worktree.sh --branch "checkout polish" --base main

Create from dev after merging main into dev, then push updated dev:

skills/klimkit-create-worktree/scripts/create_worktree.sh --branch "feature sync" --base dev --sync-from main --push-base

Read the full file on GitHub · 74 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 74 lines · 71 tokens per session scan A 71deaac708ab

Subscribe to this mod's changes

klimkit-create-worktree is a skill published in the GitHub repository klimentij/klimkit (7 stars, last pushed 21d ago), licensed MIT. It adds 71 tokens to every session and 756 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

klimkit-create-worktree compared with skills from other repositories

klimkit-create-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
klimkit-create-worktreeklimentij/klimkitSkill721d agoMITA71Codex
rea-changelog-updatemorluto/reaSkill485ktodayMITA33Claude Code
repo-hygieneQwenLM/qwen-codeSkill31ktodayApache-2.0A48Claude Code, Codex
gh-skillcli/cliSkill47ktodayMITA41Claude Code, Codex
cw-gatesHmbown/CodewhaleSkill41k1mo agoMITA48Claude Code, Codex
pr-autofixAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA45Claude Code, Codex
atmos-hookscloudposse/atmosSkill1.4ktodayApache-2.0A50Claude Code