empty-repo-bundle-preflight-434608 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited empty-repo-bundle-preflight-434608 (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: safety-worktrees Trigger: Apply before running git bundle create to ensure the repository actually has refs, avoiding the 128 exit code and providing a clearer error path. Source Pattern: Distilled from reviewed repo-safety, packaging, and worktree-management patterns.
Run git for-each-ref --count=1 refs/ from the repository root; if the output is empty, report that the repo has no commits, record an analytics metric with the empty_repo outcome, and abort with a helpful message instead of invoking git bundle create, which would exit 128 on an empty repo. Sweep stale temporary refs first so the check reflects the true repo state, and treat the empty case as a known failure reason with a dedicated fail reason identifier that consumers can react to.
refs/seed/stash and refs/seed/root before testing for refs so old placeholders cannot make an empty repo appear populated.empty_repo outcome via analytics or logs so you can audit why bundling never ran.empty_repo) so callers can distinguish it from git failures or oversized bundles.When building a git bundle upload helper, call this skill before _bundleWithFallback; if it signals an empty repo, stop and surface “Repository has no commits yet” to the UI and telemetry instead of letting git bundle create crash.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.