/rsturla-skills:new-worktreefrom rsturla-skills
Create a git worktree with conventional-commit directory structure and standardized branch naming. Always creates relative to the repo root, not the current directory. Use when the user says "new worktree", "create worktree", "start working on", "new branch", or invokes /new-worktree — even if they just say "set up a branch for this work" or "I need to work on a fix."
Ships in rsturla-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create worktrees sorted by conventional commit type at the repo root, with branch naming
dev/robertsturla/<change>.
/new-worktree <type> <change>
type: conventional commit type — feat, fix, chore, docs, refactor, perf, test, build, ci,
style, revertchange: kebab-case name describing the workParse args — extract <type> and <change> from user input. If missing, ask.
Validate type — must be one of: feat, fix, chore, docs, refactor, perf, test, build, ci,
style, revert
Validate change — must be kebab-case ([a-z0-9]+(-[a-z0-9]+)*). If user provides spaces or other formats,
auto-convert to kebab-case and confirm.
Find repo root — works for both bare and normal repos:
REPO_ROOT=$(realpath "$(git rev-parse --git-common-dir)/..")
git-common-dir returns .bare (bare repo) or .git (normal repo). Parent of either is the repo root.
Detect default branch — find remote HEAD, don't hardcode main:
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's|refs/remotes/origin/||')
Fetch latest default branch — ensure worktree starts from up-to-date ref, not stale local:
git fetch origin "$DEFAULT_BRANCH"
Create worktree — always relative to repo root, based on origin/<default>:
git worktree-add "${REPO_ROOT}/<type>/<change>" -b dev/robertsturla/<change> "origin/${DEFAULT_BRANCH}"
Report — show created path and branch name.
User: /new-worktree feat create-monitoring-service
REPO_ROOT=$(realpath "$(git rev-parse --git-common-dir)/..")
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's|refs/remotes/origin/||')
git fetch origin "$DEFAULT_BRANCH"
git worktree-add "${REPO_ROOT}/feat/create-monitoring-service" -b dev/robertsturla/create-monitoring-service "origin/${DEFAULT_BRANCH}"
Result: worktree at <repo-root>/feat/create-monitoring-service, branch
dev/robertsturla/create-monitoring-service
User: /new-worktree fix resolve-auth-timeout
git fetch origin "$DEFAULT_BRANCH"
git worktree-add "${REPO_ROOT}/fix/resolve-auth-timeout" -b dev/robertsturla/resolve-auth-timeout "origin/${DEFAULT_BRANCH}"
User: /new-worktree chore update-dependencies
git fetch origin "$DEFAULT_BRANCH"
git worktree-add "${REPO_ROOT}/chore/update-dependencies" -b dev/robertsturla/update-dependencies "origin/${DEFAULT_BRANCH}"
git worktree-add (custom wrapper), NOT git worktree add. The wrapper writes relative .git paths for
portability.git rev-parse --show-toplevel returns wrong path in bare repos. Always use
realpath "$(git rev-parse --git-common-dir)/.." to find repo root.git symbolic-ref refs/remotes/origin/HEAD fails (no origin/HEAD set), run
git remote set-head origin --auto first, then retry.dev/robertsturla/. Change name used for both directory suffix and branch suffix — they
always match.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (rsturla/skills) — no native marketplace selected
npx claudepluginhub p/rsturla-rsturla-skills13 skills in this plugin
/build-agentBuild TypeScript AI agents with eval framework, provider abstraction, and production guardrails. Uses Vercel AI SDK for model-agnostic tool-use loops, Zod for structured outputs, Vitest for evals, and OpenTelemetry for observability. Covers prompt caching, extended thinking, RAG pipelines, structured output enforcement, tool annotations, seed tool calls, toolcall regression evals, and duplicate call detection. Use when the user wants to build an agent, create an AI assistant, implement tool-use, or scaffold an agentic system — even if they just say "build a bot", "add AI to this", or "make it agentic."
/code-reviewComprehensive code review using multiple specialized agents. Checks architecture, error handling, naming, testing, and style against project conventions. Use when the user asks for a code review, says "review this", "check my code", or wants feedback on changes — even if they just say "what do you think?" about a diff.
/commit-messageGenerate or improve git commit messages from staged changes using Claude on Vertex AI. Conventional Commits format, validates line lengths, retries on failure. Use when the user wants to write, generate, or improve a commit message, asks for help with git commits, or invokes /commit-message — even if they just say "commit this" or "what should the commit say."/dependency-auditAudit project dependencies for known vulnerabilities, license issues, and supply chain risks. Supports Go, Rust, and Python. Use when the user changes dependencies, asks about vulnerability scanning, mentions CVEs in deps, or wants a security check — even if they just say "are my deps safe?" or "check for vulnerabilities."
/investigate-cveInvestigate a CVE to find upstream fix commits, affected versions, severity, and backport status. Queries OSV.dev, NVD, and Red Hat Security APIs, then checks upstream git history. Use when the user mentions a CVE ID, asks about a vulnerability fix, or wants to know if a patch has been backported — even if they just say "is this CVE fixed?"
/openshift-troubleshootDiagnose and troubleshoot OpenShift cluster and workload issues. Pod failures, networking, storage, operators, SCCs, and node problems. Use when the user has an OpenShift issue, mentions oc commands, pod crashes, CrashLoopBackOff, ImagePullBackOff, routes not working, or cluster problems — even if they just say "my pod won't start" or "the app is broken."