Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

super-worktree超级工作树

Agent Skill

super-worktree 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

225

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:super-worktree(超级工作树)
来源仓库:https://github.com/marioxe301/super-worktree
仓库路径:skills/super-worktree
安装命令:
npx skills add https://github.com/marioxe301/super-worktree --skill super-worktree
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/marioxe301/super-worktree --skill super-worktree

简介

super-worktree 处理 GitHub 仓库、Issue、Pull Request 等信息,辅助分支与协作管理。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中围绕代码仓库状态的场景。
  • 通过 npx skills add 从 GitHub 安装,建议结合 README 了解具体操作流程。
  • 使用前应核实其是否具备联网、命令执行或文件读写权限。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

super-worktree

A skill for managing isolated git worktrees for parallel feature development with monorepo-aware env file copying and node_modules symlinking.

Worktree Creation Overview

Git worktrees let you work on multiple branches simultaneously in a single repository. This skill enhances worktrees with:

  • Sensitive file copying: Automatically copies .env, credentials, and other sensitive files to new worktrees
  • node_modules symlinking: Saves disk space by symlinking node_modules directories
  • Configurable patterns: Define custom sync patterns per-project or globally
  • Dev tool trust: Automatically trusts Mise/direnv baseline when symlinking

Creating a worktree

bash scripts/worktree-manager.sh create <branch> [from-branch] [--config <file>]

Parameters:

  • <branch> - Name of the new branch/worktree (required)
  • [from-branch] - Base branch to create from (defaults to origin/HEAD or main)
  • --config <file> - Path to custom config file (optional)

Example:

# Create feature branch from main
bash scripts/worktree-manager.sh create feature/new-login

# Create from develop branch with custom config
bash scripts/worktree-manager.sh create feature/payments --config .super-worktree.json

# Create from a specific commit
bash scripts/worktree-manager.sh create hotfix/urgent fix/abc123

Deleting a worktree

bash scripts/worktree-manager.sh delete <branch>

Removes the worktree and optionally deletes the branch (use with caution).

Example:

bash scripts/worktree-manager.sh delete feature/new-login

Cleaning up (merge)

bash scripts/worktree-manager.sh merge <branch>

Merges the branch into its upstream and then deletes the worktree. Use when feature is complete.

Example:

bash scripts/worktree-manager.sh merge feature/new-login

Configuration

Create a super-worktree.json in your project root for custom patterns:

{
  "sync": {
    "copyFiles": [
      ".env",
      ".env.*",
      ".envrc",
      ".local.*",
      "*.secret",
      "*.key",
      ".secrets.*",
      "credentials.json",
      "credentials.yml",
      "credentials.env",
      "auth.json",
      "auth.yml",
      "auth.env",
      ".dev.vars",
      ".prod.vars",
      ".staging.vars"
    ],
    "symlinkDirs": [
      "node_modules"
    ],
    "exclude": [
      "node_modules",
      ".git",
      "dist",
      "build",
      ".next",
      "out",
      "coverage",
      ".turbo",
      ".vercel",
      ".worktrees"
    ]
  }
}

Config Priority

Configuration is loaded in this order (later overrides earlier):

  1. Built-in defaults - Always available
  2. Global config - ~/.config/super-worktree/config.json
  3. Project config - .super-worktree.json in repo root
  4. CLI flag - --config <file> argument (highest priority)

JSON Schema

A JSON Schema is provided for config validation:

{
  "$schema": "./schemas/super-worktree.schema.json",
  "sync": {
    "copyFiles": [".env", ".env.local"],
    "symlinkDirs": ["node_modules", ".pnpm-store"],
    "exclude": ["dist", "build"]
  }
}

Default Patterns

The skill includes sensible defaults that cover most projects:

copyFiles (copied to worktree)

  • .env, .env.* - Environment files
  • .envrc - direnv config
  • .local.* - Local overrides
  • *.secret, *.key, .secrets.* - Secret files
  • credentials.json, credentials.yml, credentials.env - Credentials
  • auth.json, auth.yml, auth.env - Auth config
  • .dev.vars, .prod.vars, .staging.vars - Environment-specific vars

symlinkDirs (symlinked to save space)

  • node_modules - Node dependencies

exclude (not copied or symlinked)

  • node_modules, .git, dist, build, .next, out, coverage, .turbo, .vercel, .worktrees

Troubleshooting

"worktree already exists"

The branch already has a worktree. Delete it first:

bash scripts/worktree-manager.sh delete <branch>

"jq not found"

The script uses jq for JSON parsing. Install with:

# macOS
brew install jq

# Ubuntu/Debian
sudo apt install jq

# CentOS/RHEL
sudo yum install jq

"python3 not found"

Fallback JSON parser requires Python 3. Ensure it's installed:

# Verify
python3 --version

# Install (macOS)
brew install python3

# Install (Ubuntu)
sudo apt install python3

"cannot stat: No such file or directory"

The base branch or reference doesn't exist. Verify:

git branch -a
git log --oneline -5

Permission denied

Make the script executable:

chmod +x scripts/worktree-manager.sh

symlink fails with "File exists"

Remove existing node_modules in worktree first:

rm -rf .worktrees/<branch>/node_modules
bash scripts/worktree-manager.sh create <branch>

Installation

OpenCode (recommended via OCX)

# Install via OCX registry (recommended)
ocx add marioxe301/super-worktree --from https://marioxe301.github.io/super-worktree

# Or manual copy
cp -r super-worktree ~/.config/opencode/skills/

Claude Code

# Claude marketplace
/plugin install marioxe301/super-worktree

# Or npx skills
npx skills add marioxe301/super-worktree -a claude-code

Other AI Agents

# npx skills works with Codex, Cursor, Windsurf, Cline, and 40+ agents
npx skills add marioxe301/super-worktree

# Install to specific agents
npx skills add marioxe301/super-worktree -a codex -a cursor

Manual

cp -r super-worktree ~/.config/opencode/skills/

Requirements

  • Git 2.5+ (worktree support)
  • Bash 4.0+
  • jq (optional, for JSON config; Python 3 fallback available)
  • python3 (optional, for JSON config fallback)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.7%
按下载量换算25

Claude

32.64%
按下载量换算24

Cursor

18.68%
按下载量换算14

Gemini CLI

8.87%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills