safe-worktree-slug-validation-8eb3cd — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited safe-worktree-slug-validation-8eb3cd (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Domain: git-worktree Trigger: Apply this when accepting user-provided prefixes for enter worktree and you need to guarantee no path traversal or invalid chars slip into the worktree directory. Source Pattern: Distilled from reviewed permission, shell-safety, and worktree-management implementations.
Split a slug on /, reject segments that are empty, . or .., or contain characters outside a za z0 9, and enforce a maximum combined length before joining the cleaned segments into a deterministic branch name and path. Perform this validation synchronously before invoking any git commands so the CLI never creates directories outside claude worktrees.
/-separated segment independently so user evil and similar mashups fail early.git worktree add to prevent excessively long refs or paths... segments even when a normalization would neutralize them.Any agent producing a worktree name for a release hotfix can reuse this skill: call the validator on the proposed slug, surface a concise error message if it fails, and refuse to call git worktree add until the slug is safe.
git worktree add to detect traversal; it may silently create directories in unexpected locations.mkdir or config changes—the validation must run before any side effects.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.