22set -uo pipefail
33
44# =============================================================================
5- # Step 9 — Safety Check — Security Auditing
5+ # Step 8 — Safety Check — Security Auditing
66# Installs the /safetycheck Claude Code skill for running security audits
77# Run after Step 1 — requires Claude Code installed
88# =============================================================================
@@ -100,7 +100,7 @@ verify_prerequisites() {
100100 if command -v claude & > /dev/null; then
101101 success " Claude Code is installed"
102102 else
103- NVM_CLAUDE=$( ls -1 " $HOME " /.nvm/versions/node/ * /bin/claude 2> /dev/null | head -n1)
103+ NVM_CLAUDE=$( find " $HOME /.nvm/versions/node" -name " claude " -path " */bin/claude" 2> /dev/null | head -n1)
104104 if [ -n " ${NVM_CLAUDE:- } " ] && [ -x " $NVM_CLAUDE " ]; then
105105 info " Claude Code found at $NVM_CLAUDE (not on PATH — source ~/.zshrc or open a new shell to use it)"
106106 else
@@ -134,7 +134,7 @@ install_skill() {
134134 # Pinned to a specific commit SHA — prevents rug-pull via mutable branch ref
135135 # To update: change the SHA to the new commit and update SKILL_SHA256 to match
136136 SKILL_COMMIT=" 7b449b652d946a8eef9aca65f0c8e182b4fb80f7"
137- SKILL_URL=" https://raw.githubusercontent.com/lorecraft-io/cli-maxxing/${SKILL_COMMIT} /step-9 /safetycheck-skill/SKILL.md"
137+ SKILL_URL=" https://raw.githubusercontent.com/lorecraft-io/cli-maxxing/${SKILL_COMMIT} /step-8 /safetycheck-skill/SKILL.md"
138138 SKILL_SHA256=" 77e1ef1127fa35cd860925a652b96dd062ab080d438787b3bde348176597ab12"
139139
140140 info " Creating skill directory..."
@@ -149,7 +149,7 @@ install_skill() {
149149 else
150150 echo " "
151151 echo -e " ${YELLOW} Existing /safetycheck skill found at $SKILL_FILE ${NC} "
152- read -p " Overwrite with latest version? (Y/n): " OVERWRITE
152+ read -rp " Overwrite with latest version? (Y/n): " OVERWRITE
153153 if [[ " $OVERWRITE " =~ ^[Nn]$ ]]; then
154154 info " Keeping existing skill file."
155155 return
@@ -276,7 +276,7 @@ run_self_test() {
276276 success " TEST: Claude Code is available"
277277 TEST_PASS=$(( TEST_PASS + 1 ))
278278 else
279- NVM_CLAUDE=$( ls -1 " $HOME " /.nvm/versions/node/ * /bin/claude 2> /dev/null | head -n1)
279+ NVM_CLAUDE=$( find " $HOME /.nvm/versions/node" -name " claude " -path " */bin/claude" 2> /dev/null | head -n1)
280280 if [ -n " ${NVM_CLAUDE:- } " ] && [ -x " $NVM_CLAUDE " ]; then
281281 info " TEST: Claude Code found at $NVM_CLAUDE (not on PATH — open a new shell to pick it up)"
282282 TEST_PASS=$(( TEST_PASS + 1 ))
@@ -303,7 +303,7 @@ run_self_test() {
303303print_summary () {
304304 echo " "
305305 echo -e " ${GREEN} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC} "
306- echo -e " ${GREEN} Step 9 Complete — /safetycheck Installed (20 checks)${NC} "
306+ echo -e " ${GREEN} Step 8 Complete — /safetycheck Installed (20 checks)${NC} "
307307 echo -e " ${GREEN} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC} "
308308 echo " "
309309 echo " Installed:"
@@ -360,7 +360,7 @@ main() {
360360
361361 echo " "
362362 echo -e " ${BLUE} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC} "
363- echo -e " ${BLUE} Step 9 — Safety Check${NC} "
363+ echo -e " ${BLUE} Step 8 — Safety Check${NC} "
364364 echo -e " ${BLUE} Install the /safetycheck security audit skill${NC} "
365365 echo -e " ${BLUE} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC} "
366366 echo " "
@@ -373,7 +373,7 @@ main() {
373373
374374 # Mark step complete (best-effort — don't fail the run if mkdir/touch can't write)
375375 mkdir -p " $HOME /.cli-maxxing" 2> /dev/null || true
376- touch " $HOME /.cli-maxxing/step-9 .done" 2> /dev/null || true
376+ touch " $HOME /.cli-maxxing/step-8 .done" 2> /dev/null || true
377377}
378378
379379main " $@ "
0 commit comments