Token导航 LogoToken导航TokenDH.com
AI 工具只读github未标认证来源可访问clear审计通过

auto-claude-workspaceauto Claude workspace 命令行

Agent Skill

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

总安装

399

周安装

16

GitHub Stars

9

下载量

129
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adaptationio/skrillz --skill auto-claude-workspace

简介

auto-claude-workspace 利用 git worktree 实现工作区隔离,支持并行开发与分支精细管理。

  • 适合多任务并发场景下防止代码污染,确保每个 spec 在独立环境中安全演进。
  • 自动创建 .worktrees/auto-claude/{spec-name} 目录,复制项目副本并应用针对性变更。
  • 使用前需确认 Git 版本支持 worktree 特性,并避免在非空目录直接初始化。
  • 建议结合分支策略规范命名规则,防止误合并或丢失未提交内容。

SKILL.md

Auto-Claude Workspace Management

Git worktree isolation, branch management, and merge operations.

Workspace Architecture

Git Worktree Strategy

Auto-Claude uses git worktrees for complete isolation:

project-root/
├── .git/                      # Main git directory
├── src/                       # Your project files
├── .auto-claude/              # Auto-Claude data
│   └── specs/                 # Spec definitions
└── .worktrees/                # Isolated workspaces
    └── auto-claude/
        └── 001-feature/       # Feature worktree
            ├── src/           # Copy of project
            └── ...            # Changes made here

Branch Strategy

main (or your current branch)
└── auto-claude/{spec-name}    # Isolated branch per spec

Key Principles:

  • ONE branch per spec
  • All changes in isolated worktree
  • NO automatic pushes to remote
  • User controls when to merge/push

Workspace Operations

Review Changes

cd apps/backend

# Review what was built
python run.py --spec 001 --review

Output shows:

  • Files changed
  • Additions/deletions
  • Commit history

Test in Worktree

# Navigate to worktree
cd .worktrees/auto-claude/001-feature/

# Run your project
npm run dev
# or
python manage.py runserver
# or your project's run command

# Test the feature
# ...

# Return to backend
cd ../../apps/backend

Merge Changes

# Merge completed build into your project
python run.py --spec 001 --merge

This:

  1. Checks for conflicts
  2. Merges auto-claude/001-feature into current branch
  3. Uses AI resolver for conflicts (if any)
  4. Cleans up worktree

Discard Build

# Discard if you don't want the changes
python run.py --spec 001 --discard

This:

  1. Asks for confirmation
  2. Deletes worktree
  3. Deletes branch
  4. Keeps spec for reference (optional)

Manual Worktree Operations

Create Worktree Manually

# Create new worktree
git worktree add .worktrees/experiment -b experiment-branch

# Work in it
cd .worktrees/experiment
# make changes...

# Return and cleanup
cd ../..
git worktree remove .worktrees/experiment

List Worktrees

git worktree list

Prune Stale Worktrees

# Remove worktrees for deleted directories
git worktree prune

Conflict Resolution

AI-Powered Merge

Auto-Claude uses AI to resolve merge conflicts:

  1. Detection: Identifies conflicting files
  2. Analysis: Understands both versions
  3. Resolution: Merges intelligently
  4. Verification: Validates result

Manual Resolution

If AI merge fails:

# Navigate to worktree
cd .worktrees/auto-claude/001-feature/

# Attempt manual merge
git merge main

# Resolve conflicts in your editor
code .

# Complete merge
git add .
git commit -m "Resolved merge conflicts"

# Return and complete
cd ../../apps/backend
python run.py --spec 001 --merge

Branch Management

View Branches

# List all branches
git branch -a

# See auto-claude branches
git branch | grep auto-claude

Delete Old Branches

# Delete local branch
git branch -d auto-claude/old-feature

# Delete remote branch (if pushed)
git push origin --delete auto-claude/old-feature

Switch Base Branch

# Set default base branch in .env
echo "DEFAULT_BRANCH=develop" >> apps/backend/.env

Workspace Data

Worktree Metadata

# View worktree info
cat .auto-claude/specs/001-feature/worktree.json
{
  "worktree_path": ".worktrees/auto-claude/001-feature",
  "branch_name": "auto-claude/001-feature",
  "base_branch": "main",
  "created_at": "2024-01-01T10:00:00Z",
  "status": "active"
}

Build Isolation

Each worktree is completely isolated:

  • Separate working directory
  • Own git index
  • Independent node_modules (if needed)
  • No interference with main branch

Best Practices

Before Merging

  1. Review changes thoroughly python run.py --spec 001 --review
  2. Test in worktree cd.worktrees/auto-claude/001-feature/ npm test npm run build
  3. Check for conflicts git diff main...auto-claude/001-feature

After Merging

  1. Run full test suite npm test
  2. Verify functionality npm run dev # Test manually
  3. Commit and push when ready git push origin main

Cleanup Old Worktrees

# List and remove old worktrees
git worktree list
git worktree remove .worktrees/auto-claude/old-feature

# Or use discard command
python run.py --spec old --discard

Troubleshooting

Worktree Already Exists

# Remove existing worktree
git worktree remove .worktrees/auto-claude/001-feature

# Retry build
python run.py --spec 001

Branch Already Exists

# Delete existing branch
git branch -D auto-claude/001-feature

# Retry build
python run.py --spec 001

Merge Conflicts

# Manual resolution
cd .worktrees/auto-claude/001-feature/
git merge main --no-commit

# Resolve each file
git status
code path/to/conflicted/file

# Complete
git add .
git commit
cd ../../apps/backend

Corrupted Worktree

# Remove and recreate
git worktree remove --force .worktrees/auto-claude/001-feature
git worktree prune

# Delete spec and restart
rm -rf .auto-claude/specs/001-feature
python spec_runner.py --task "Your task"

Related Skills

  • auto-claude-cli: CLI commands
  • auto-claude-build: Build process
  • auto-claude-troubleshooting: Debugging

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

github-copilot

27.23%
按下载量换算35

Claude Code

24.28%
按下载量换算31

mcpjam

17.81%
按下载量换算23

moltbot

13.38%
按下载量换算17

windsurf

7.65%
按下载量换算10

zencoder

3.22%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills