Skip to content
mcp/skillhub

Agent Skill

Using Git Worktrees skill

using-git-worktreesjnMetaCode/superpowers-zhskills/using-git-worktrees/SKILL.md

当需要开始与当前工作区隔离的功能开发,或在执行实现计划之前使用——通过原生工具或 git worktree 回退机制确保隔离工作区存在

8.4kMIT

always on

44 tokname + description

once used

1,841 tokSKILL.md body

bundled files

0

repo stars

8.4kGitHub

Install the Using Git Worktrees skill

Skills CLI (Claude Code, Codex, Cursor and others)

npx skills add https://github.com/jnMetaCode/superpowers-zh --skill using-git-worktrees

Claude Code, by hand (all projects)

git clone --depth 1 https://github.com/jnMetaCode/superpowers-zh.git /tmp/superpowers-zh
mkdir -p ~/.claude/skills
cp -R /tmp/superpowers-zh/skills/using-git-worktrees ~/.claude/skills/using-git-worktrees

For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.

What it costs your context

Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.

WhenWhat loadsCost
Every sessionName and description44 tok
When the agent uses itThe SKILL.md instructions1,841 tok
Only if openedNo bundled files—

Until it is used, using-git-worktrees costs about 31× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 21 skills from jnMetaCode/superpowers-zh would load 955 tokens of descriptions. Skills vs MCP study

Checks

Our checks found nothing to flag: it follows the Agent Skills specification's naming and size guidelines and doesn't pipe downloads into a shell.

Checked 2026-10-22 · method

What's inside

The headings of its SKILL.md. Read the full file on GitHub.

  • 使用 Git 工作树
  • 概述
  • 步骤 0:检测现有隔离
  • 步骤 1:创建隔离工作区
  • 1a. 原生 Worktree 工具(首选)
  • 1b. Git Worktree 回退
  • 步骤 2:项目设置
  • 步骤 3:验证基线干净
  • 报告
  • 快速参考
  • 常见的合理化借口

More skills from jnMetaCode/superpowers-zh

All skills in this repo
  1. brainstormingjnMetaCode/superpowers-zh

    在任何创造性工作之前必须使用此技能——创建功能、构建组件、添加功能、修改行为,或筹划任何新东西,无论是软件还是软件之外(一场分享、一门生意、一次装修)。

    8.4k452 tok idle · 2,807 in use
  2. chinese-code-reviewjnMetaCode/superpowers-zh

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    8.4k62 tok idle · 2,496 in use
  3. chinese-commit-conventionsjnMetaCode/superpowers-zh

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    8.4k65 tok idle · 2,625 in use
  4. chinese-documentationjnMetaCode/superpowers-zh

    中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。

    8.4k62 tok idle · 3,080 in use
  5. chinese-git-workflowjnMetaCode/superpowers-zh

    国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。

    8.4k69 tok idle · 3,653 in use
  6. diagnosing-superpowersjnMetaCode/superpowers-zh

    当一次 superpowers 会话出了问题、你的人类伙伴想知道原因时使用——重复劳动、无视计划、磕磕绊绊、结果质量差、某个技能没触发、"太慢了"、"为什么这么贵"、"它到底在干什么"——或者想给 superpowers 维护者整理一份 bug 报告;适用于当前会话,或按 id / 路径指定的过往会话,任何工具均可

    8.4k111 tok idle · 1,862 in use
  7. executing-plansjnMetaCode/superpowers-zh

    当你要在当前会话里亲自担任实现者执行一份实现计划时使用——你的人类伙伴选择了内联执行,或者没有可用的子智能体工具

    8.4k46 tok idle · 5,583 in use
  8. mcp-builderjnMetaCode/superpowers-zh

    在构建 MCP 服务器或 MCP 工具时使用 —— 系统化的生产级 MCP 构建方法论,覆盖工具设计、错误处理、传输层选择与测试,让 AI 助手连接外部能力

    8.4k52 tok idle · 2,146 in use