← ClaudeAtlas

office-hours-track-awarelisted

Track-aware wrapper around gstack's /office-hours skill. Runs the upstream office-hours session (six forcing questions / builder mode), detects native vs web intent from the resulting design doc, asks the platform question (iOS / macOS / both) if native, writes .gstack/track, renders DESIGN.html via htmlify and OPENS it in Safari BEFORE the approval gate, then asks "Approve / Revise / Restart" — fixing the upstream "approve-then-read" UX bug. On approval for native projects, suggests /superpowers-gstack:swiftui-design-consultation as next step. Replaces standalone swiftui-track skill (removed in v2.3.0). Use when starting a new product idea, brainstorming, or whenever upstream /office-hours would have fired. Set up via CLAUDE.md routing to intercept bare /office-hours invocations.
Paretofilm/superpowers-gstack · ★ 2 · Web & Frontend · score 64
Install: claude install-skill Paretofilm/superpowers-gstack
# /superpowers-gstack:office-hours-track-aware Track-aware wrapper around gstack's /office-hours. The "right" flow: 1. Run upstream office-hours to completion (it writes design.md) 2. Read design.md, infer track from content 3. Ask platform question if native (one-time per project) 4. Write `.gstack/track` 5. Render + auto-open DESIGN.html in Safari **before approval** 6. Ask approval question (Approve / Revise / Restart) **after** user has read 7. On approval + native: suggest swiftui-design-consultation ## Phase 0 — Setup ### Step 0.0: Initialize $SLUG via gstack-slug Same pattern as swiftui-design-consultation (defensive fallback): ```bash SLUG_OUTPUT=$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null) if [ -n "$SLUG_OUTPUT" ]; then eval "$SLUG_OUTPUT" fi if [ -z "${SLUG:-}" ]; then SLUG="$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")" export SLUG fi if [ -z "$SLUG" ] || [ "$SLUG" = "/" ]; then echo "FATAL: could not derive SLUG. Aborting." >&2 exit 1 fi mkdir -p ~/.gstack/projects/"$SLUG" echo "SLUG: $SLUG" ``` ### Step 0.1: Read existing track marker if present ```bash mkdir -p .gstack EXISTING_TRACK="" if [ -f .gstack/track ]; then EXISTING_TRACK=$(cat .gstack/track | tr -d '[:space:]') fi echo "EXISTING_TRACK: ${EXISTING_TRACK:-none}" ``` If `EXISTING_TRACK` is already set, skip the platform-question in Phase 3. ## Phase 1 — Run upstream office-hours Invoke gstack's office-hours via the Skill tool, letting it complete its no