Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add sirius-cc-wu/sirius-skills --skill "create-worktree-and-test"
Install specific skill from multi-skill repository
# Description
Create a new git worktree from current branch and run tests.
# SKILL.md
name: create-worktree-and-test
description: Create a new git worktree from current branch and run tests.
Create Worktree & Run Tests
Provides a script that creates a new git worktree from the
current branch (HEAD) and runs tests inside the new worktree.
Usage
Run: <path-to-skill>/scripts/run.sh [worktree-path] [branch-name] [test-command]
- If
worktree-pathis omitted the script creates a sibling directory named<repo-root>-test. - If
branch-nameis omitted the script uses<current-branch>-test. - If
test-commandis omitted, the script attempts to detect the project type and run a default test command (e.g.,npm test,pytest).
Requirements
gitavailable in PATH
Behavior
- If the target worktree directory already exists, the script will use it.
- Otherwise, the script creates a new branch from
HEADand adds a worktree at the requested path. - The script will then change into the worktree directory and execute the test command.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.