create-worktree-and-test
CommunityCreate a test worktree and run tests.
Authorsirius-cc-wu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation of a git worktree from the current HEAD and runs project tests in isolation, enabling safe testing of changes without affecting the main checkout.
Core Features & Use Cases
- Create a new worktree at a specified path or default sibling directory.
- Reuse an existing worktree if present.
- Auto-detect project type to run appropriate test commands (e.g., npm, pytest, go test, cargo test) or use a provided command.
- Switch into the new worktree and execute tests, returning results.
Quick Start
Run the script at <path-to-skill>/scripts/run.sh using optional worktree-path, branch-name, and test-command to create a worktree and run tests.
Dependency Matrix
Required Modules
gitpnpmyarnnpmpytestgocargo
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: create-worktree-and-test Download link: https://github.com/sirius-cc-wu/sirius-skills/archive/main.zip#create-worktree-and-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.