setuplisted
Install: claude install-skill dancolta/reddit-engage
# /subscope:setup
Conversational setup wizard. Resumable — each step checks current state and skips if already configured.
## Goal
Get a new user from `/plugin install` → first working `/subscope:run` in under 10 minutes, with green checks at every step.
## Procedure
Greet the user briefly:
> Setting up subscope. I'll walk you through the OAuth, preset, and optional integrations. Each step is skippable if you don't need it — say "skip" anytime.
Then run the steps in order. Pause for input at each.
### Step 1 — Reddit OAuth (optional but recommended)
```bash
[ -f ~/.config/subscope/oauth.json ] && echo "EXISTS" || echo "MISSING"
```
If `EXISTS`: tell the user "Reddit OAuth already configured — moving on." Continue to Step 2.
If `MISSING`: ask:
> Reddit OAuth gives you 10x more API rate budget + enables postmortem reply tracking. Want to set it up now? (yes / skip)
If yes:
1. Tell them to open https://www.reddit.com/prefs/apps and click "create another app..." at the bottom.
2. Settings: name = `subscope`, type = **script** (critical), redirect URI = `http://localhost`.
3. Once they click "create app", ask for the **14-character string** under the app name (that's `client_id`).
4. Ask for the **secret** field.
5. Ask for their Reddit username.
Then write the credentials via the atomic-perms helper (creates the file with 0o600 from the moment it appears on disk — no umask race):
```bash
cd "$CLAUDE_PLUGIN_ROOT" && cat <<EOF | PYTHONPATH=engine python3 -m scripts.w