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 $0.00030 $0.00333
Sonnet 5 $0.00012 $0.00133
Haiku 4.5 $0.00006 $0.00067

Measured 7d ago against content hash 7d7528aecb06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d 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/tasks/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. 7d 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 (16 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 666 once invoked, about $0.0003 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-09-04.

Related

Other skills, from other repositories

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

nvca-chart-release

Release NVCA Operator chart changes from the native monorepo source to the vendored Helm chart. Use when updating the vendored NVCA Operator chart, changing NVCA image refs, publishing helm-nvca-operator, or validating the chart against a self-managed control plane.

NVIDIA/nvcf · 61 tokens