---
name: bigstack-upgrade
version: 0.1.0
description: |
  Self-updater for bigstack. Pulls the latest changes, regenerates
  skill docs, and re-installs to ~/.claude/skills/.
allowed-tools:
  - Bash
  - Read
  - AskUserQuestion
---
<!-- Auto-generated from SKILL.md.tmpl by bigstack. DO NOT EDIT. -->
<!-- Regenerate: npm run gen:skill-docs -->

<!-- bigstack v0.1.0 | skill: bigstack-upgrade -->

> **bigstack v0.1.0** — skills for Bigscreen development.

Before starting, run this setup block silently:

```bash
# Session context
BIGSTACK_VERSION="0.1.0"
BIGSTACK_DIR="C:/Users/GGPC/Documents/Github/bigstack"
REPO_NAME=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")
BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
echo "bigstack v$BIGSTACK_VERSION | repo: $REPO_NAME | branch: $BRANCH"
```

**Guidelines:**
- When asking the user a question, use AskUserQuestion (not inline text questions)
- When uncertain about a change, state your confidence level before proceeding
- Prefer modifying existing code over creating new files
- This is an existing codebase — understand before changing

# /bigstack-upgrade — Self-Updater

Upgrade the bigstack skill suite to the latest version.

## Workflow

### Step 1: Check Current Version

```bash
BIGSTACK_DIR="${BIGSTACK_DIR:-$HOME/bigstack}"
CURRENT=$(cat "$BIGSTACK_DIR/VERSION" 2>/dev/null || echo "unknown")
echo "Current version: $CURRENT"
```

### Step 2: Pull Latest

```bash
cd "$BIGSTACK_DIR"
git fetch origin main
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" = "$REMOTE" ]; then
  echo "Already up to date (v$CURRENT)"
  exit 0
fi
echo "Updates available. Pulling..."
git pull origin main
```

### Step 3: Rebuild and Reinstall

```bash
cd "$BIGSTACK_DIR"
npm install
npm run gen:skill-docs
bash setup.sh
```

### Step 4: Report

```bash
NEW=$(cat "$BIGSTACK_DIR/VERSION")
echo "Upgraded: v$CURRENT -> v$NEW"
git log --oneline "$LOCAL".."$REMOTE"
```

Tell the user what changed and whether they need to restart their Claude Code session for hook changes to take effect.
