fast-worktree-reuse-with-head-pointer-checks-6fd8c3 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited fast-worktree-reuse-with-head-pointer-checks-6fd8c3 (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 when the user asks to enter or resume a named worktree and you want to avoid redundant git fetch/git worktree add calls if the worktree already exists. Source Pattern: Distilled from reviewed permission, shell-safety, and worktree-management implementations.
Before reaching for git worktree add, compute the worktree path and read its git head pointer directly (no subprocess). If the file exists and contains a SHA, treat the worktree as already created: return the path/branch, skip fetch, and let the CLI proceed immediately. Only when the HEAD file is missing do you fetch and git worktree add, knowing the directory is missing or corrupted.
mkdir, fetch, and hook execution to minimize CLIs waiting on network calls.existed flag so calling code can log a clear message.For a “worktree resume” command, call this skill each time by deriving the slug, invoking the head-read fast-path, and only running git fetch when head data is missing, so most resumes finish in the same tick regardless of external network speed.
git worktree list parsing alone—direct HEAD reading is cheaper and doesn’t require running git.existed boolean; downstream message/choices should reflect whether the worktree was reused or freshly created.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.