optimize-repo
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Context
Current branch and default base: !printf '%s (default base: %s)' "$(git branch --show-current 2>/dev/null || echo unknown)" "$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||' || echo main)"
Dirty status: !git status --short 2>/dev/null | head -10 || echo "(unable to read status)"
Release evidence: !git tag -l 2>/dev/null | head -3 || echo "(no tags)"
Root package.json private field: !test -f package.json && jq -r '.private // "unset"' package.json 2>/dev/null || echo "(no package.json)"
Instructions
Optimize the scope by deleting and simplifying first, reusing what the repository already has, conforming to its own paradigm, syncing docs, verifying with its own checks, and stopping at an uncommitted validated tree.