Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

feat: add GSD registry sync + portfolio dashboard

auroracapital321bfe704985
diff --git a/claude-ops/bin/ops-projects b/claude-ops/bin/ops-projects
new file mode 100755
index 00000000..b956d304
--- /dev/null
+++ b/claude-ops/bin/ops-projects
@@ -0,0 +1,158 @@
+#!/usr/bin/env bash
+# ops-projects — GSD Portfolio Dashboard
+# Reads from: ${OPS_DATA_DIR:-~/.claude/plugins/data/ops-ops-marketplace}/registry.json
+# Supports --sync and --json flags
+
+set -euo pipefail
+
+OPS_DATA_DIR="${OPS_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}"
+REGISTRY="$OPS_DATA_DIR/registry.json"
+HEALTH="$OPS_DATA_DIR/cache/projects_health.json"
+PLUGIN_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
+
+usage() {
+ cat <<EOF
+Usage: ops-projects [OPTIONS]
+
+Options:
+ --sync Run GSD registry sync before displaying
+ --json Output raw registry JSON instead of dashboard
+ --health Output projects_health.json instead of dashboard
+ --help Show this help
+
+Reads from: $REGISTRY
+EOF
+}
+
+# Parse args
+MODE="dashboard"
+for arg in "$@"; do
+ case "$arg" in
+ --sync) MODE="sync-dashboard" ;;
+ --json) MODE="json" ;;
+ --health) MODE="health" ;;
+ --help) usage; exit 0 ;;
+ esac
+done
+
+# Sync if requested
+sync_and_show() {
+ bash "$PLUGIN_ROOT/scripts/ops-gsd-registry-sync.sh" 2>&1 || true
+ show_dashboard
+}
+
+# Render the dashboard
+show_dashboard() {
+ if [[ ! -f "$REGISTRY" ]]; then
+ echo "No registry found. Run: bash $PLUGIN_ROOT/scripts/ops-gsd-registry-sync.sh"
+ exit 1
+ fi
+
+ # Load registry
+ TOTAL=$(python3 -c "import json; print(json.load(open('$REGISTRY'))['total'])" 2>/dev/null || echo "?")
+ OWNER=$(python3 -c "import json; print(json.load(open('$OPS_DATA_DIR/preferences.json')).get('owner','owner'))" 2>/dev/null || echo "owner")
+ NOW=$(date +"%a %Y-%m-%d %H:%M")
+
+ # Daemon health snippet
+ DAEMON_STATUS="●"
+ if [[ -f "$OPS_DATA_DIR/daemon-health.json" ]]; then
+ SERVICES=$(python3 -c "import json; d=json.load(open('$OPS_DATA_DIR/daemon-health.json')); print(sum(1 for v in d.get('services',{}).values() if v.get('status') in ['polling','scheduled']))" 2>/dev/null || echo "?")
+ DAEMON_STATUS="● $SERVICES services"
+ fi
+
+ echo ""
+ echo "╔══════════════════════════════════════════════════════════════╗"
+ echo "║ OPS ► PROJECTS $OWNER $NOW $DAEMON_STATUS ║"
+ echo "╠══════════════════════════════════════════════════════════════╣"
+
+ # Get health summary if available
+ if [[ -f "$HEALTH" ]]; then
+ SUMMARY=$(python3 -c "
+import json
+d=json.load(open('$HEALTH'))
+s=d.get('summary',{})
+print(f\" GSD Portfolio — {s.get('total',0)} projects\")
+print(f\" 🟢 {s.get('executing',0)} executing 🟡 {s.get('paused',0)} paused 🔴 {s.get('blocked',0)} blocked ⚪ {s.get('idle',0)} idle\")
+" 2>/dev/null)
+ else
+ SUMMARY=" GSD Portfolio — $TOTAL projects"
+ fi
+ echo "$SUMMARY"
+ echo "╚══════════════════════════════════════════════════════════════╝"
+
+ # List all projects from registry
+ python3 - << 'PYEOF'
+import json, sys
+from pathlib import Path
+
+registry = Path("REGISTRY" if False else "$HOME/.claude/plugins/data/ops-ops-marketplace/registry.json")
+if not registry.exists():
+ print(" (no registry — run with --sync to build)")
+ sys.exit(0)
+
+data = json.load(registry.open())
+projects = data.get("projects", [])
+
+# Group by status category
+executing = []
+paused = []
+blocked = []
+idle = []
+
+for p in projects:
+ status = p.get("status","").lower()
+ phase = p.get("phase","")
+ if "executing" in status:
+ executing.append(p)
+ elif any(x in status for x in ["paused","verifying","phase_complete"]):
+ paused.append(p)
+ elif any(x in status for x in ["human","uat","blocked","pending"]):
+ blocked.append(p)
+ elif phase:
+ idle.append(p)
+ else:
+ idle.append(p)
+
+def fmt_proj(p, indent=" "):
+ name = p.get("name","?")
+ phase = p.get("phase","—")
+ status = p.get("status","—")
+ branch = p.get("branch","—")
+ dirty = p.get("uncommitted",0)
+ source = p.get("source","")
+ blockers = p.get("blockers","0")
+ next_action = p.get("next_action","")[:40] or "—"
+ short_status = status[:30] if status else "—"
+ return f"{indent}{name:<22} {phase:<8} {short_status:<32} {branch:<12} {dirty} dirty {next_action}"
+
+if executing:
+ print("\n 🟢 EXECUTING")
+ for p in executing: print(fmt_proj(p))
+if paused:
+ print("\n 🟡 PAUSED / VERIFYING")
+ for p in paused: print(fmt_proj(p))
+if blocked:
+ print("\n 🔴 BLOCKED / HUMAN")
+ for p in blocked: print(fmt_proj(p))
+if idle:
+ idle_projects = idle[:10]
+ print(f"\n ⚪ IDLE / UNTRACKED ({len(idle)} total — first 10)")
+ for p in idle_projects: print(fmt_proj(p))
+ if len(idle) > 10:
+ print(f" ... and {len(idle)-10} more (run /ops projects [alias] to inspect)")
+PYEOF
+
+ echo ""
+}
+
+# Main dispatch
+case "$MODE" in
+ sync-dashboard)
+ sync_and_show ;;
+ json)
+ cat "$REGISTRY" ;;
+ health)
+ cat "${HEALTH}" ;;
+ *)
+ show_dashboard ;;
+esac
\ No newline at end of file
diff --git a/claude-ops/scripts/daemon-services.default.json b/claude-ops/scripts/daemon-services.default.json
index e60d85ce..0f84f79c 100644
--- a/claude-ops/scripts/daemon-services.default.json
+++ b/claude-ops/scripts/daemon-services.default.json
@@ -27,6 +27,33 @@
"restart_delay": 60,
"max_restarts": 20,
"_note": "Polls ops-infra + Sentry every 60s; pushes notifications on new CRITICAL/HIGH incidents. Requires at least one notify sink (Telegram bot, Discord webhook, ntfy, Pushover, or macOS). Run /ops:setup notifications to enable."
+ },
+ "gsd-registry-sync": {
+ "enabled": true,
+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-gsd-registry-sync.sh",
+ "cron": "0 6,18 * * *",
+ "_note": "Scans ~/Projects and ~/gsd-workspaces for GSD .planning/ dirs, updates central registry and projects_health cache. Runs at 6am and 6pm daily."
+ },
+ "inbox-digest": {
+ "enabled": true,
+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-cron-inbox-digest.sh",
+ "cron": "0 */4 * * *",
+ "_note": "Aggregates all configured channels (WhatsApp, Email, Telegram, Slack) every 4 hours."
+ },
+ "message-listener": {
+ "enabled": true,
+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-message-listener.sh",
+ "interval": "continuous",
+ "health_file": "~/.claude/plugins/data/ops-ops-marketplace/listener-health.txt",
+ "restart_delay": 30,
+ "max_restarts": 20,
+ "_note": "Persistent poller for WhatsApp and Telegram."
+ },
+ "competitor-intel": {
+ "enabled": true,
+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-cron-competitor-intel.sh",
+ "cron": "0 10 * * 1",
+ "_note": "Weekly competitor intelligence report every Monday at 10am."
}
}
}
diff --git a/claude-ops/scripts/ops-gsd-registry-sync.sh b/claude-ops/scripts/ops-gsd-registry-sync.sh
new file mode 100755
index 00000000..e3c90e34
--- /dev/null
+++ b/claude-ops/scripts/ops-gsd-registry-sync.sh
@@ -0,0 +1,158 @@
+#!/usr/bin/env bash
+# ops-gsd-registry-sync — Scan all GSD projects, update central registry
+# Writes: {OPS_DATA_DIR}/registry.json + cache/projects_health.json
+# Called by: daemon cron (twice daily) or /ops:setup install
+set -euo pipefail
+
+DATA_DIR="${OPS_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}"
+CACHE_DIR="$DATA_DIR/cache"
+REGISTRY="$DATA_DIR/registry.json"
+PROJECTS_HEALTH="$CACHE_DIR/projects_health.json"
+LOG_DIR="$DATA_DIR/logs"
+
+mkdir -p "$CACHE_DIR" "$LOG_DIR"
+
+NOW=$(date -u +%Y-%m-%dT%H:%M:%SZ)
+LOG="$LOG_DIR/gsd-registry-sync.log"
+
+log() { printf '%s [gsd-registry] %s\n' "$NOW" "$1" | tee -a "$LOG"; }
+log "Starting GSD registry sync..."
+
+# Collect project data using Python inline (avoids complex interpreter preflight)
+python3 - << 'PYEOF'
+import json, os, subprocess
+from pathlib import Path
+
+HOME = os.path.expanduser("~")
+DATA_DIR = os.environ.get("OPS_DATA_DIR", os.path.join(HOME, ".claude/plugins/data/ops-ops-marketplace"))
+CACHE_DIR = Path(DATA_DIR) / "cache"
+REGISTRY = Path(DATA_DIR) / "registry.json"
+PROJECTS_HEALTH = CACHE_DIR / "projects_health.json"
+CACHE_DIR.mkdir(parents=True, exist_ok=True)
+
+NOW = subprocess.check_output(["date", "-u", "+%Y-%m-%dT%H:%M:%SZ"], text=True).strip()
+
+projects = []
+for base in [Path(HOME) / "Projects", Path(HOME) / "gsd-workspaces"]:
+ if not base.exists(): continue
+ source = base.name
+ for d in base.iterdir():
+ if not d.is_dir(): continue
+ planning = d / ".planning"
+ if not planning.is_dir(): continue
+ proj = d.name
+ handoff = planning / "HANDOFF.json"
+ state = planning / "STATE.md"
+ roadmap = planning / "ROADMAP.md"
+ milestones = planning / "MILESTONES.md"
+
+ phase = status = milestone = next_action = plan_ref = ""
+ remaining = blockers = "0"
+ has_git = d.joinpath(".git").is_dir()
+ branch = ""
+
+ if handoff.exists():
+ try:
+ h = json.loads(handoff.read_text())
+ phase = h.get("phase","")
+ status = h.get("status","")[:60]
+ next_action = h.get("next_action","")[:100]
+ plan_ref = h.get("plan_ref","")[:60]
+ remaining = str(len(h.get("remaining_tasks",[])))
+ blockers = str(len(h.get("blockers",[])))
+ except: pass
+
+ elif state.exists():
+ for line in state.read_text().splitlines():
+ if line.startswith("Current Phase"):
+ phase = line.split(":",1)[1].strip()[:20]
+ elif line.startswith("Status:"):
+ status = line.split(":",1)[1].strip()[:60]
+ elif line.startswith("Current Milestone"):
+ milestone = line.split(":",1)[1].strip()[:60]
+
+ # Git info (fast, no network)
+ if has_git:
+ try:
+ branch = subprocess.check_output(
+ ["git", "-C", str(d), "branch", "--show-current"],
+ timeout=2, stderr=subprocess.DEVNULL
+ ).strip().decode() or ""
+ except: pass
+
+ total_phases = ""
+ if roadmap.exists():
+ total_phases = str(len([l for l in roadmap.read_text().splitlines() if l.startswith("## Phase ")]))
+
+ if not milestone and milestones.exists():
+ for line in milestones.read_text().splitlines():
+ if line.startswith("## v"):
+ milestone = line.lstrip("#").strip()[:60]
+ break
+
+ projects.append({
+ "name": proj,
+ "path": str(d) + "/",
+ "source": source,
+ "phase": phase,
+ "status": status,
+ "milestone": milestone,
+ "next_action": next_action,
+ "plan_ref": plan_ref,
+ "remaining_tasks": remaining,
+ "blockers": blockers,
+ "has_git": has_git,
+ "branch": branch,
+ "has_roadmap": roadmap.exists(),
+ "has_milestones": milestones.exists(),
+ "has_handoff": handoff.exists(),
+ "total_phases": total_phases
+ })
+
+# Sort by status priority: executing > paused > blocked > idle
+def sort_key(p):
+ s = p.get("status","").lower()
+ if "executing" in s: return 0
+ if any(x in s for x in ["paused","verifying","phase_complete"]): return 1
+ if any(x in s for x in ["human","uat","blocked","pending"]): return 2
+ if p.get("phase"): return 3
+ return 4
+
+projects.sort(key=sort_key)
+
+# Write registry.json
+REGISTRY.write_text(json.dumps({"updated": NOW, "projects": projects, "total": len(projects)}, indent=2))
+
+# Categorize for health summary
+executing = [p for p in projects if "executing" in p.get("status","").lower()]
+paused = [p for p in projects if any(x in p.get("status","").lower() for x in ["paused","verifying","phase_complete"])]
+blocked = [p for p in projects if any(x in p.get("status","").lower() for x in ["human","uat","blocked","pending"])]
+idle = [p for p in projects if p.get("phase") and not p.get("status")]
+attention = [p for p in projects if int(p.get("blockers","0")) > 0]
+
+health = {
+ "updated": NOW,
+ "summary": {
+ "total": len(projects),
+ "executing": len(executing),
+ "paused": len(paused),
+ "blocked": len(blocked),
+ "idle": len(idle),
+ "needs_attention": len(attention)
+ },
+ "projects": [{
+ "name": p["name"],
+ "phase": p.get("phase",""),
+ "status": p.get("status",""),
+ "blockers": p.get("blockers","0"),
+ "next_action": p.get("next_action","")[:100],
+ "milestone": p.get("milestone",""),
+ "source": p.get("source","")
+ } for p in projects]
+}
+PROJECTS_HEALTH.write_text(json.dumps(health, indent=2))
+
+print(f"Registry: {len(projects)} projects | exec={len(executing)} paused={len(paused)} blocked={len(blocked)} idle={len(idle)}")
+PYEOF
+
+log "GSD registry sync complete"
\ No newline at end of file
diff --git a/claude-ops/skills/ops-projects/SKILL.md b/claude-ops/skills/ops-projects/SKILL.md
index 09ca77d0..e750421d 100644
--- a/claude-ops/skills/ops-projects/SKILL.md
+++ b/claude-ops/skills/ops-projects/SKILL.md
@@ -1,19 +1,12 @@
---
name: ops-projects
-description: Portfolio dashboard — shows all projects with GSD phase, branch, uncommitted changes, CI status, and next action. Jump to any project by alias.
-argument-hint: "[project-alias]"
+description: "Portfolio dashboard for all GSD-tracked projects. Scans ~/Projects and ~/gsd-workspaces for .planning/ directories, shows phase status, git state, blockers, and next actions for every project. Run /ops projects to see the full portfolio."
+argument-hint: "[project-alias|--sync|--refresh]"
allowed-tools:
- Bash
- Read
- Grep
- Glob
- - Skill
- - Agent
- - TeamCreate
- - SendMessage
- - AskUserQuestion
- - TaskCreate
- - TaskUpdate
- WebFetch
effort: low
maxTurns: 20
@@ -26,203 +19,151 @@ disallowedTools:
## Runtime Context
Before rendering, load:
-1. **Preferences**: `cat ${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json` — read `owner`, `timezone` for display
-2. **Daemon health**: `cat ${CLAUDE_PLUGIN_DATA_DIR}/daemon-health.json` — show service status in dashboard
+1. **Preferences**: `cat ${OPS_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json` — read `owner`, `timezone`
+2. **Daemon health**: `cat ${OPS_DATA_DIR}/daemon-health.json` — show service status in dashboard footer
+3. **GSD registry**: `cat ${OPS_DATA_DIR}/registry.json` — primary project index (updated by daemon twice daily + on-demand with --sync)
-# OPS ► PROJECTS DASHBOARD
+# OPS ► PROJECTS — GSD Portfolio Dashboard
-## CLI/API Reference
+## Quick commands
-### gh CLI (GitHub)
+```bash
+# Refresh registry data on demand
+bash ${CLAUDE_PLUGIN_ROOT}/scripts/ops-gsd-registry-sync.sh
-| Command | Usage | Output |
-|---------|-------|--------|
-| `gh pr list --repo <owner/repo> --json number,title,statusCheckRollup,reviewDecision,mergeable` | Open PRs with CI | JSON array |
-| `gh run list --repo <repo> --limit 5 --json status,conclusion,name,headBranch` | CI runs | JSON array |
-| `gh issue list --repo <repo> --json number,title,labels,state` | Issues | JSON array |
+# Show registry contents
+cat ${OPS_DATA_DIR}/registry.json
----
-
-## Agent Teams support
-
-If `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is set, use **Agent Teams** when scanning projects in parallel. This enables:
-- Agents share context and can coordinate mid-flight
-- You can steer priorities in real-time
-- Agents report progress as they complete
-
-**Team setup** (only when flag is enabled):
-```
-TeamCreate("projects-team")
-# Spawn one agent per registered project for parallel scanning
-Agent(team_name="projects-team", name="project-<alias>", prompt="Scan <path> for git status, GSD phase, CI, and open PRs")
+# Show health summary
+cat ${OPS_DATA_DIR}/cache/projects_health.json
```
-If the flag is NOT set, use standard fire-and-forget subagents.
+## Data flow
-## Pre-gathered git status
-
-```!
-${CLAUDE_PLUGIN_ROOT}/bin/ops-git 2>/dev/null || echo '[]'
```
-
-## Open PRs
-
-```!
-${CLAUDE_PLUGIN_ROOT}/bin/ops-prs 2>/dev/null || echo '[]'
+~/Projects/ ~/gsd-workspaces/
+ │ │
+ ▼ ▼
+ [project]/.planning/ [project]/.planning/
+ │ │
+ ├── HANDOFF.json ├── HANDOFF.json ← active-phase projects
+ ├── STATE.md ├── MILESTONES.md
+ ├── ROADMAP.md └── STATE.md
+ └── MILESTONES.md
+ │
+ ▼ ops-gsd-registry-sync.sh (daemon: 6am + 6pm)
+ │
+ ▼
+ ${OPS_DATA_DIR}/
+ ├── registry.json ← all projects, sorted by priority
+ └── cache/
+ └── projects_health.json ← health summary
+ │
+ ▼ ops-projects skill reads this
```
-## CI status
-
-```!
-${CLAUDE_PLUGIN_ROOT}/bin/ops-ci 2>/dev/null || echo '[]'
-```
+---
-## Project registry
+## Dashboard output
+
+Build the dashboard from `${OPS_DATA_DIR}/cache/projects_health.json` (fall back to `${OPS_DATA_DIR}/registry.json` if missing). Show:
+
+```
+╔══════════════════════════════════════════════════════════════╗
+║ OPS ► PROJECTS [owner] [date] [daemon status] ║
+╠══════════════════════════════════════════════════════════════╣
+║ GSD Portfolio — 23 projects ║
+║ ║
+║ 🟢 EXECUTING (3) ║
+║ my-project-workspace Phase 12 [executing] branch: main 0 dirty ║
+║ claude-ops Phase 16 [executing] branch: main 2 dirty ║
+║ agentcore Phase 39 [paused] branch: dev 0 dirty ║
+║ ║
+║ 🟡 PAUSED (4) ║
+║ inboxassist.ai Phase 08 [paused] branch: feat 1 dirty ║
+║ xpod.run Phase 3 [verifying] branch: main 0 dirty ║
+║ ... ║
+║ ║
+║ 🔴 BLOCKED (1) ║
+║ estaterestyle Phase 7 [await-UAT] branch: prod 0 dirty ║
+║ ║
+║ ⚪ IDLE / UNTRACKED (15) ║
+║ makeit8k.ai Phase 1 [complete] branch: main 0 dirty ║
+║ defimagic.app — — branch: dev 3 dirty ║
+║ ... ║
+╠══════════════════════════════════════════════════════════════╣
+║ ⚡ Services: message-listener ● | inbox-digest ⏱ 2h | gsd-registry ⏱ 12h ║
+╚══════════════════════════════════════════════════════════════╝
+```
+
+### Status indicators (from `status` field, case-insensitive)
+- **executing** → 🟢
+- **paused / verifying / phase_complete** → 🟡
+- **human / uat / blocked / pending** → 🔴
+- **empty status + has phase** → ⚪ (idle)
+- **no phase, no status** → ⚪ (untracked/no GSD)
+
+### Columns per project: ALIAS | PHASE | STATUS | BRANCH | DIRTY | NEXT ACTION
-```!
-cat "${CLAUDE_PLUGIN_ROOT}/scripts/registry.json" 2>/dev/null || echo '{}'
-```
+---
-## GSD state (all active roadmaps)
-
-```!
-for d in $(jq -r '.projects[] | select(.gsd == true) | .paths[]' "${CLAUDE_PLUGIN_ROOT}/scripts/registry.json" 2>/dev/null); do
- expanded="${d/#\~/$HOME}"
- if [ -f "$expanded/.planning/STATE.md" ]; then
- alias=$(jq -r --arg p "$d" '.projects[] | select(.paths[] == $p) | .alias' "${CLAUDE_PLUGIN_ROOT}/scripts/registry.json" 2>/dev/null | head -1)
- phase=$(grep -m1 'current_phase' "$expanded/.planning/STATE.md" 2>/dev/null | sed 's/.*: //' || echo "?")
- branch=$(git -C "$expanded" branch --show-current 2>/dev/null || echo "?")
- dirty=$(git -C "$expanded" status --porcelain 2>/dev/null | wc -l | tr -d ' ')
- echo "{\"alias\":\"$alias\",\"path\":\"$d\",\"phase\":\"$phase\",\"branch\":\"$branch\",\"dirty\":$dirty}"
- fi
-done | jq -s '.'
-```
+## Project deep-dive
-## External projects (non-repo)
+If `$ARGUMENTS` contains a project alias, find it in the registry and show:
-```!
-${CLAUDE_PLUGIN_ROOT}/bin/ops-external 2>/dev/null || echo '[]'
```
+╔══════════════════════════════════════════════════════════════╗
+║ PROJECT — [alias] ║
+╠══════════════════════════════════════════════════════════════╣
+║ Path: ~/Projects/[alias]/ ║
+║ Phase: [phase] Status: [status] ║
+║ Milestone: [milestone name] ║
+║ Branch: [branch] Dirty: [N] Unpushed: [N] ║
+║ Blockers: [N] ║
+║ Next: [next_action text] ║
+║ ║
+║ GSD files: ✓ ROADMAP ✓ MILESTONES [HAS_HANDOFF] STATE ║
+╚══════════════════════════════════════════════════════════════╝
-## External-project auto-discovery (candidates not yet registered)
-
-```!
-${CLAUDE_PLUGIN_ROOT}/bin/ops-discover-external 2>/dev/null || echo '[]'
+Actions:
+ [1] Open project directory
+ [2] Continue GSD (/gsd-next [alias])
+ [3] Git: branch / status / log
+ [4] Run /ops projects (back to portfolio)
```
-Cross-reference the candidates against the registry loaded above. If a candidate's `config.alias` is NOT already registered, surface it in a footer section of the dashboard so the user can register it via `/ops:setup registry`:
-
-```
-UNREGISTERED CANDIDATES (found via configured integrations)
- SOURCE DETAILS ACTION
- ──────────────────────────────────────────────────────
- shopify mystore (basic plan) /ops:setup registry
- linear Engineering (42 issues) /ops:setup registry
-```
-
-Suppress this section if all candidates are already registered or the script returns `[]`.
+Use `AskUserQuestion` with up to 4 options.
---
-## Your task
+## --sync flag
-Parse all pre-gathered data — including external projects — and render the portfolio dashboard.
+If `--sync` or `--refresh` is passed, run the registry sync script first, then display the updated dashboard:
+```bash
+bash ${CLAUDE_PLUGIN_ROOT}/scripts/ops-gsd-registry-sync.sh 2>&1
```
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- OPS ► PROJECTS — [date]
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
- ALIAS PHASE BRANCH DIRTY CI NEXT ACTION
- ────────────────────────────────────────────────────────────────
- example-app 7.2 feature/auth 3 ✓ finish auth tests
- example-api 5.0 dev 0 ✗ fix CI (unit tests)
- ...
-
-EXTERNAL PROJECTS
- ALIAS SOURCE STATUS DETAILS
- ────────────────────────────────────────────────────────────────
- my-store shopify ✓ healthy My Store (basic plan)
- eng-team linear ✓ healthy Engineering (42 issues)
- company-slack slack ● discovered your-workspace
- ...
-
-OPEN PRs
- #123 example-api fix: auth middleware ✓ CI ready to merge
- #456 example-app feat: onboarding ✗ CI needs fix
-
-──────────────────────────────────────────────────────
-```
-
-Use **batched AskUserQuestion calls** (max 4 options each) for the project selector. Paginate at 3 projects + `[More projects...]` per page. On the final page, replace "More projects..." with the remaining projects. The user can also type a project alias directly as free text.
-**CI column**: green ✓ if last run passed, red ✗ if failing, — if no CI.
-**DIRTY**: number of uncommitted files.
-**NEXT ACTION**: inferred from GSD phase state and open issues.
+Show "Refreshing..." while running, then present the full updated dashboard.
---
-## Jump to project
-
-If `$ARGUMENTS` contains a project alias, look up the project in the registry and branch on `type`:
-
-### Git-backed project (default)
-
-```
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- [PROJECT] — DEEP DIVE
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Path: [path]
- Branch: [branch] Dirty: [N files]
- GSD: Phase [N] — [phase name]
- CI: [last 5 runs with status]
- PRs: [open PRs]
- Sentry: [recent errors for this project]
-
- Actions:
- a) Continue GSD work (/gsd-next)
- b) Fix CI failure
- c) Review open PRs
- d) Check fires (/ops-fires [alias])
-```
-
-### External project (type: external, no git repo)
+## Error states
-For `source: shopify|linear|slack|notion|custom`, render a source-specific deep-dive pulled from `ops-external` + live MCP/API data — no git/CI/PR rows:
-
-```
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- [PROJECT] — EXTERNAL (shopify)
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Source: shopify — mystore.myshopify.com (basic plan)
- Status: ✓ healthy Revenue: ecommerce / growth
- Recent: [last 5 orders / Linear issues / Slack threads / Notion page edits]
-
- Actions:
- a) Jump to relevant tool (/ops:ecom, /ops:linear, /ops:inbox --slack, etc.)
- b) Check fires (/ops-fires [alias])
- c) View revenue (/ops:revenue [alias])
- d) Back to portfolio
-```
-
-Source → action-skill map:
-- `shopify` → `/ops:ecom [alias]`
-- `linear` → `/ops:linear [alias]`
-- `slack` → `/ops:inbox --slack` (filter to that workspace)
-- `notion` → `mcp__claude_ai_Notion__notion-search` or `/ops:inbox --notion`
-- `custom` → show the `custom.url` and offer to open it via `WebFetch`
-
-Use AskUserQuestion (≤ 4 options) after displaying either view.
+- If `registry.json` is missing/empty: show a one-shot sync prompt
+ ```
+ No project registry found. Run /ops projects --sync to build it.
+ ```
+- If daemon health shows `action_needed`: surface that in a warning banner
---
-## Native tool usage
-
-### Tasks — project action tracking
-
-When the user jumps to a project, use `TaskCreate` to track the action they take. This carries context forward if they switch between projects.
-
-### WebFetch — CI enrichment
+## CLI reference (for manual use)
-When `gh` is slow or rate-limited, use `WebFetch` to query GitHub Actions API directly for run status.
+| Command | What it does |
+|---------|-------------|
+| `/ops projects` | Show full portfolio |
+| `/ops projects [alias]` | Deep-dive on one project |
+| `/ops projects --sync` | Force-refresh registry + show dashboard |
+| `/ops:setup registry` | Open registry setup (future) |
\ No newline at end of file