klimkit-create-worktree

klimkit-create-worktree is a skill for Claude Code, 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 Claude CodeCodex

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.

agentmods
npx agentmods add skills/klimentij/klimkit/klimkit-create-worktree
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: Claude Code, 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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00071 $0.00756
Opus 5 $0.00036 $0.00378
Sonnet 5 $0.00014 $0.00151
Haiku 4.5 $0.00007 $0.00076

Measured 3d ago against content hash 71deaac708ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 24d ago), licensed MIT. It adds 71 tokens to every session and 756 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

weather-fetcher

Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API.

shanraisshan/claude-code-best-practice · 21 tokens

happiness-skill

当用户问「怎么才能更幸福/为什么得到了还不满足/怎么减少焦虑」时调用。 核心理念: 幸福是缺憾感清空的默认状态, 是可训练的技能; 欲望是与自己的契约(得到前不快乐), 同时只留一个重大欲望; 活在当下。 不适用于: 临床抑郁等需要专业治疗的场景(本书方法不能替代医疗)。 Triggers: 幸福/不快乐/欲望/焦虑/知足/活在当下/happiness/desire/anxiety.

kangarooking/cangjie-skill · 136 tokens

agr-cli

Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI. Use whenever the user mentions agr, agr.toml, agr.lock, agrx, or asks to: add a skill ("install the pdf skill", "agr add ..."), sync agent resources across tools, share skills…

computerlovetech/agr · 147 tokens

agr-release

Release process for the agr package. Handles version bumping (major/minor/patch/beta), changelog updates, pre-release quality checks, git tagging, and monitoring the GitHub Actions publish pipeline. Use this skill whenever the user wants to cut a release, bump the version, publish to PyPI, or asks about the release…

computerlovetech/agr · 91 tokens

linkedin-post

You take a YouTube video transcript and produce a single LinkedIn post draft.

owainlewis/youtube-tutorials · 0 tokens

kafka-consumer-lag

Analyse Kafka consumer group lag using the Lenses MCP server. Diagnoses lag causes (throughput bottlenecks, rebalancing, partition skew, stalled consumers) and suggests remediation. Use when user says "check consumer lag", "why are consumers slow", "lag report" or asks about consumer group health or offset progress.…

lensesio/agentic-engineering-for-apache-kafka · 84 tokens