SharpPad: Command for Claude Code

.claude/commands/create-worktree.md

create-worktree is a command for Claude Code from gaoconggit/SharpPad. It costs 0 tokens per session (252 once invoked), scanned A, original, MIT.

A command that creates a separate Git worktree and feature branch for a requested change. A worktree is another working folder connected to the same Git repository.

In plain words
What is it for?
It is for starting feature work from a request, generating a branch and folder name, and creating the corresponding Git worktree.
Why use it?
It lets you develop a feature in an isolated folder without changing the files in your current working folder.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is gaoconggit/SharpPad's own configuration. It tells Claude Code how to work on SharpPad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SharpPad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaoconggit/SharpPad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/commands/create-worktree.md
Clone the repo
git clone --depth 1 https://github.com/gaoconggit/SharpPad

Made for: Claude Code.

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 create-worktree

README.md
[![agentmods](https://agentmods.dev/badge/commands/gaoconggit/sharppad/create-worktree/github.svg)](https://agentmods.dev/commands/gaoconggit/sharppad/create-worktree)
Your own site
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/create-worktree"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/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 create-worktree

Your own site · 80×15
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/create-worktree"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/create-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 252 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.00000 $0.00252
Opus 5.5 $0.00000 $0.00101
Sonnet 5.5 $0.00000 $0.00050
Haiku 4.5 $0.00000 $0.00025

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

Security

Grade A, and why

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 13d 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.

.claude/commands/create-worktree.md · 38 lines

What it actually says

为指定功能需求创建新的 git worktree 开发分支

功能需求描述: $ARGUMENTS

我将为您创建一个新的 worktree 来开发这个功能:

  1. 检查当前 git 状态和确保 worktrees 目录存在
  2. 根据功能描述生成规范化的分支名和目录名
  3. 创建新的 worktree 分支
  4. 显示创建结果

让我开始执行:

首先检查 git 状态:

git status

确保 worktrees 目录存在:

mkdir -p worktrees

根据功能描述 "$ARGUMENTS" 生成分支名和目录名:

  • 将中文转换为英文关键词
  • 转换为小写并用连字符连接
  • 添加 feature/ 前缀

创建 worktree:

# 生成的分支名和目录名将基于功能描述
git worktree add worktrees/[normalized-name] -b feature/[normalized-name]

示例用法:

  • /create-worktree Roslyn 气泡提示 Provider
  • /create-worktree 添加用户权限管理
  • /create-worktree 优化代码编译性能
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. 13d ago First seen · 38 lines · 0 tokens per session scan A 3b5f1d009136

Subscribe to this mod's changes

create-worktree is a command published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 252 tokens. 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-10-02.