← ClaudeAtlas

prototype-auditlisted

Pre-flight safety check for prototype repos against the design-team prototype playbook. Use when the user invokes "/prototype-audit", asks "is this safe to push/PR", "am I ready to share my work", "what state is my branch in", or before suggesting any risky git operation (push, merge, force-push) in a prototype repo. Audience is often non-technical product designers, so explain findings plainly.
alirortb/claude-uxr-skills · ★ 0 · Code & Development · score 70
Install: claude install-skill alirortb/claude-uxr-skills
# Prototype Audit Run a read-only safety check on the current git repo against the design-team prototype playbook. Designed for product designers and other non-technical users — surface state plainly, never auto-fix. ## When to use - Explicit invocation: `/prototype-audit` - User asks "is this branch ready to push", "am I safe to PR", "what state is my work in" - Before suggesting any risky git operation in a prototype repo (push, merge, force-push) — run this first ## What to check Run these checks via Bash from the current working directory. Where independent, run in parallel. ### 1. Is this a git repo? ``` git rev-parse --is-inside-work-tree ``` If not "true", abort: "Not a git repo — the prototype playbook applies only to GitHub-backed work." ### 2. Detect default branch ``` git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null | sed 's|^origin/||' ``` Fall back to `main` if the symbolic-ref isn't set. ### 3. Current branch First check for detached HEAD: ``` git symbolic-ref -q HEAD ``` If exit code is non-zero, HEAD is detached (mid-rebase, mid-bisect, or a commit checked out directly). Flag **[WARN]**: "Detached HEAD — you're not on a branch. This usually means a rebase, bisect, or checkout of a specific commit is in progress. Resolve before pushing." Skip the default-branch comparison below. Otherwise: ``` git rev-parse --abbrev-ref HEAD ``` If current branch == default branch, flag **[FAIL]**: "You're on the default branch. Per the playbook: never wor