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.

fix(recap): address review feedback — status diagnostics, exit 0, semicolon guard, dynamic prefs

auroracapitalb0f86b8e2fb0
diff --git a/claude-ops/skills/ops-recap/SKILL.md b/claude-ops/skills/ops-recap/SKILL.md
index 41987b78..650653ea 100644
--- a/claude-ops/skills/ops-recap/SKILL.md
+++ b/claude-ops/skills/ops-recap/SKILL.md
@@ -88,7 +88,11 @@ else
fi
SETTINGS="$HOME/.claude/settings.json"
-if [ -f "$SETTINGS" ] && command -v jq >/dev/null 2>&1; then
+if ! command -v jq >/dev/null 2>&1; then
+ echo "○ Claude Code statusLine — cannot check (jq not installed)"
+elif [ ! -f "$SETTINGS" ]; then
+ echo "○ Claude Code statusLine — no ~/.claude/settings.json found"
+else
sl_cmd=$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null)
if echo "$sl_cmd" | grep -q claude-recap-digest; then
echo "✓ Claude Code statusLine wired"
@@ -132,13 +136,16 @@ Walk the user through display-surface integration. Two surfaces are supported an
```bash
TMUX_CONF="$HOME/.tmux.conf"
+ tmux_already_wired=0
if grep -q claude-recap "$TMUX_CONF" 2>/dev/null; then
- echo "✓ already configured."
- exit 0
+ echo "✓ tmux status-right already configured."
+ tmux_already_wired=1
fi
existing=$(grep -E '^\s*set\s+-g\s+status-right' "$TMUX_CONF" 2>/dev/null | head -1)
```
+ **Steps 3–5 only apply when tmux is not already wired (`tmux_already_wired=0`):**
+
3. If `existing` is non-empty, `AskUserQuestion`:
- Question: "Existing tmux status-right detected: `$existing`. Append recap marquee?"
@@ -206,7 +213,11 @@ When tmux is missing — or the user wants a second surface — wire the recap i
```bash
prev_cmd=$(jq -r '.statusLine.command // ""' "$SETTINGS")
- new_cmd="${prev_cmd}; cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ if [ -n "$prev_cmd" ]; then
+ new_cmd="${prev_cmd}; cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ else
+ new_cmd="cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ fi
TMP=$(mktemp)
jq --arg cmd "$new_cmd" '.statusLine.command = $cmd' "$SETTINGS" > "$TMP" && mv "$TMP" "$SETTINGS"
```
diff --git a/claude-ops/skills/setup/SKILL.md b/claude-ops/skills/setup/SKILL.md
index 8a19db6b..3e87607d 100644
--- a/claude-ops/skills/setup/SKILL.md
+++ b/claude-ops/skills/setup/SKILL.md
@@ -686,7 +686,11 @@ On `Add to Claude Code statusLine`:
```bash
prev_cmd=$(jq -r '.statusLine.command // ""' "$SETTINGS")
- new_cmd="${prev_cmd}; cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ if [ -n "$prev_cmd" ]; then
+ new_cmd="${prev_cmd}; cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ else
+ new_cmd="cat /tmp/claude-recap-digest 2>/dev/null | head -c 80"
+ fi
TMP=$(mktemp)
jq --arg cmd "$new_cmd" '.statusLine.command = $cmd' "$SETTINGS" > "$TMP" && mv "$TMP" "$SETTINGS"
```
@@ -727,21 +731,23 @@ Wait up to 60s for the daemon to write its first digest. Run in background; do N
### Step 2d.5 — Persist preferences
-Write to `$PREFS_PATH`. Set `"statusline_wired"` to the boolean you recorded in Step 2d.3b: `true` only after **Add to Claude Code statusLine** successfully merged recap into `~/.claude/settings.json`; `false` after **Skip** or **Show me the JSON** there, after the nested **Skip** when an existing statusLine was detected, or if Step 2d.3b did not run (e.g. tmux path only).
+Write to `$PREFS_PATH`. Set both `"tmux_wired"` and `"statusline_wired"` dynamically based on the user’s actual choices:
+- `"tmux_wired"`: `true` when tmux was installed and the user chose to wire `status-right` in Step 2d.3; `false` when tmux was missing, the user chose **Skip**, or **Show me the line**.
+- `"statusline_wired"`: `true` only after **Add to Claude Code statusLine** successfully merged recap into `~/.claude/settings.json` in Step 2d.3b; `false` after **Skip**, **Show me the JSON**, the nested **Skip** when an existing statusLine was detected, or if Step 2d.3b did not run (e.g. tmux-only path).
```json
{
"recap": {
"enabled": true,
- "tmux_wired": true,
- "statusline_wired": false,
+ "tmux_wired": "<true|false — based on Step 2d.3 outcome>",
+ "statusline_wired": "<true|false — based on Step 2d.3b outcome>",
"installed_at_step": "2d",
"platform": "macos"
}
}
```
-Use `"statusline_wired": true` when you recorded `recap.statusline_wired = true` after **Add to Claude Code statusLine** successfully merged into `~/.claude/settings.json` in Step 2d.3b.
+Example: tmux wired + statusLine skipped → `"tmux_wired": true, "statusline_wired": false`. No tmux + statusLine wired → `"tmux_wired": false, "statusline_wired": true`.
Print: