skills/site-update/SKILL.md
Update a website/webapp safely. Baseline → changes → verify → deploy. The guardrail command — ensures updates don't break what already works.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers site-updateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Update a website/webapp safely. Baseline → changes → verify → deploy. The guardrail command — ensures updates don't break what already works.
Sequential pipeline with pre-built skill agents. Do NOT skip phases.
| Phase | Skills to Load |
|-------|---------------|
| Phase 0 | website-guardian (Rule Zero, gate check) |
| Phase 1 | screenshot-dissector (baseline snapshot quality) |
| Phase 3 | frontend-design and/or senior-backend (based on change type) |
| Phase 4 | data-consistency-check, qa-gate (verification) |
| Phase 6 | error-memory (log any bugs found/fixed) |
$ARGUMENTS = specific update description (e.g., "add dark mode toggle", "update hero section copy")--phase N = skip to Phase N--no-deploy = skip deployment, just make and verify changesMANDATORY — prevents deploying from stale or wrong state.
PROJECT_NAME=$(basename "$(pwd)")
echo "=== GATE CHECK ==="
echo "Directory: $(pwd)"
echo "Branch: $(git branch --show-current 2>/dev/null)"
# Verify on main/master — never deploy from feature branches
BRANCH=$(git branch --show-current 2>/dev/null)
if [ "$BRANCH" != "main" ] && [ "$BRANCH" != "master" ]; then
echo "⚠️ NOT ON MAIN — you are on branch: $BRANCH"
echo "Switch to main before deploying, or use --no-deploy"
fi
# Check local matches remote (FAILSAFE 8)
git fetch origin --quiet 2>/dev/null
LOCAL_SHA=$(git rev-parse HEAD 2>/dev/null)
REMOTE_SHA=$(git rev-parse origin/main 2>/dev/null || git rev-parse origin/master 2>/dev/null)
if [ "$LOCAL_SHA" != "$REMOTE_SHA" ]; then
echo "⚠️ LOCAL IS STALE — pulling..."
git pull
fi
echo "Local SHA: $LOCAL_SHA"
echo "Remote SHA: $REMOTE_SHA"
# Check current version (FAILSAFE 3)
cat VERSION 2>/dev/null || node -e "console.log(require('./package.json').version)" 2>/dev/null || echo "No version file"
# Stack detection
[ -f package.json ] && node -e "const p=require('./package.json'); console.log('Stack:', Object.keys(p.dependencies||{}).filter(d=>/react|next|vue|svelte|express/.test(d)).join(', '))"
# Recent commits
git log --oneline -3 2>/dev/null
git status --short 2>/dev/null
If branch is not main/master: Ask user before proceeding. Deploying from a feature branch overwrites production. If local is behind remote: Pull first. Never build on stale code.
Read anti-patterns and project memory. If UFC project, read ~/.claude/memory/topics/ufc_website_maintenance_rules.md.
Do this yourself:
ps aux | grep -E "next|vite|express" first to avoid port conflicts)Write: _update/phase1_baseline.md — every working item with specific values. NOT "looks fine."
Assess complexity:
_update/phase2_plan.md listing files to change and order of operationsDo this yourself:
Apply the changes. Follow skill protocols based on what you're changing:
~/.claude/skills/frontend-design/SKILL.md patterns~/.claude/skills/senior-backend/SKILL.md patterns~/.claude/skills/site-update-protocol/SKILL.md rules + data sync stepCREDENTIAL PROTECTION (MANDATORY):
grep -c "FIREBASE\|SUPABASE\|STRIPE\|API_KEY" <file> before AND after — counts must matchIf UFC/MMALogic project — DATA SYNC (MANDATORY):
ufc-predict/webapp/frontend/public/data/ → webapp/frontend/public/data/diff -rq for source file divergenceDo this yourself:
npm run build or equivalent — must passIf the fix creates regressions, iterate until baseline is restored AND the update works.
Skip if --no-deploy was specified.
Version check (FAILSAFE 3): Compare current version to what was recorded in Phase 1 baseline. If the version is LOWER than what's in production, ABORT — you are deploying a regression.
Bump version number (MANDATORY):
Clean up temp files:
rm -rf _update/ 2>/dev/null
# Stage only the files you intentionally changed — never blind add
git add [specific files you changed]
git commit -m "v[X.Y.Z]: [description of what changed]"
git push origin main
Deploy using project-appropriate method (invoke /deploy or manual)
Post-deploy verification (MANDATORY): Open the live site and confirm:
If deploy fails or live site has regressions:
npx wrangler rollback or git revert HEADIf any bugs were found/fixed during verification:
~/.claude/anti-patterns.md with root cause and prevention ruleSITE UPDATE COMPLETE
====================
Update: [description]
Branch: [main/master] ✓
Version: [before] → [after] (bumped ✓)
Date tag: updated ✓
Changed: [list of specific files]
Baseline: [N] items verified — [all ✓ / N failed → fixed]
Build: passing ✓
Pushed: origin/main ✓
Deployed: [yes/no/rolled back]
Live verification: version + date + changes confirmed ✓
Bugs found: [N] | Fixed: [N]
Credentials: verified intact ✓
git add -A. Never accidentally commit temp files or credentials._update/ before committing.tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.