wt-init

wt-init is a skill for Claude Code, Codex from bahayonghang/my-ai-cli-toolkit. It costs 61 tokens per session (666 once invoked), scanned A, original, MIT.

A Git branch-naming workflow that renames the current branch using a type and short description, such as `feat/login-page` or `fix/login-error`. It can infer the type from the task description and checks for uncommitted changes first.

In plain words
What is it for?
It helps initialize a task branch for features, fixes, refactors, documentation, styling, tests, performance work, or maintenance.
Why use it?
It gives branches a consistent naming pattern, making their purpose easier to recognize. It also helps avoid renaming a branch while local changes are still unsaved.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps initialize a task branch for features, fixes, refactors, documentation, styling, tests, performance work, or maintenance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init
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 bahayonghang/my-ai-cli-toolkit --skill lxxyx-wt-init
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

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 wt-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init/github.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init/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 wt-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/lxxyx-wt-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 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.00061 $0.00666
Opus 5.5 $0.00024 $0.00266
Sonnet 5.5 $0.00012 $0.00133
Haiku 4.5 $0.00006 $0.00067

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

Security

Grade A, and why

wt-init 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 2mo ago.

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.

.trellis/research/archive/2026-08/08-17-git-worktree-skill/research/lxxyx-wt-init-SKILL.md · 70 lines

What it actually says

wt-init

根据任务描述自动重命名当前 Git 分支,使用 type/description 命名规范。

工作流程

  1. 获取任务描述:询问用户当前要进行的任务(如果用户未提供)
  2. 解析分支类型:从任务描述中推断分支类型
  3. 生成分支名:转换为 type/description 格式
  4. 检查分支状态:确认是否有未提交的更改
  5. 重命名分支:使用 git branch -m 重命名当前分支

分支类型映射

关键词 分支类型 示例
修复、fix、bug、解决 fix fix/login-error
功能、feat、新增、添加 feat feat/user-auth
重构、refactor、重构 refactor refactor/api-client
文档、docs、文档 docs docs/readme-update
样式、style、UI、样式 style style/button-color
测试、test、测试 test test/login-flow
性能、perf、优化 perf perf/query-cache
其他 chore chore/dependency-update

分支名生成规则

  1. 提取中文/英文关键词,转换为小写
  2. 将空格、下划线替换为短横线
  3. 移除多余短横线和特殊字符
  4. 格式:{type}/{description}

示例

用户输入 生成分支名
修复登录页面bug fix/login-page-bug
添加用户认证功能 feat/user-auth
更新 README 文档 docs/readme-update
重构 API 客户端 refactor/api-client

执行步骤

# 1. 获取当前分支名
git branch --show-current

# 2. 检查是否有未提交的更改
git status --porcelain

# 3. 如有未提交更改,先询问用户是否提交
# 用户确认后:git add -A && git commit -m "chore: save work before branch rename"

# 4. 重命名分支
git branch -m <new-branch-name>

# 5. 输出确认信息

注意事项

  • 如果当前在 main/master 分支,会提示用户确认
  • 如果分支已推送到远程,会提示需要手动更新远程分支
  • 如果分支名已存在,会自动添加数字后缀(如 feat/login-2)
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. 2mo ago First seen · 70 lines · 61 tokens per session scan A 7d7528aecb06

Subscribe to this mod's changes

wt-init is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (17 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 666 once invoked, about $0.0002 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-09-04.

Related

wt-init compared with skills from other repositories

wt-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wt-initbahayonghang/my-ai-cli-toolkitSkill17todayMITA61Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k3d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k12d agoMITA39Codex