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(skills): add people, ledger, tonight skills + auth-stall-guard hook (#396)

Aurora Capitalfba6bc7384c9
diff --git a/claude-ops/hooks/auth-stall-guard.sh b/claude-ops/hooks/auth-stall-guard.sh
new file mode 100755
index 00000000..0d61444c
--- /dev/null
+++ b/claude-ops/hooks/auth-stall-guard.sh
@@ -0,0 +1,58 @@
+#!/bin/bash
+# PreToolUse advisory — fires when an agent is about to ASK THE USER for a
+# credential (auth stall). Injects the credential-source search order so the
+# agent exhausts local vaults BEFORE bothering the owner.
+#
+# Trigger: AskUserQuestion whose text mentions a credential keyword
+# (password, token, api key, secret, credential, ssh, login,
+# passphrase, 2fa/otp, key).
+#
+# Why: 2026-05-26 an agent burned ~1h "stuck" on UniFi gateway SSH before
+# checking dcli (Dashlane CLI), which had the creds all along. dcli holds
+# device/router/SSH passwords that are NOT in Doppler or keychain.
+#
+# Contract: advisory only — never blocks. Emits hookSpecificOutput.additionalContext
+# (the reminder) on stdout, exit 0. If keyword not matched, exit 0 silent.
+#
+# Source of truth: ~/Projects/claude-ops/claude-ops/hooks/auth-stall-guard.sh
+# Symlinked to ~/.claude/scripts/hooks/auth-stall-guard.sh.
+
+raw="${TOOL_INPUT:-}"
+[ -z "$raw" ] && raw=$(cat) || true
+
+TOOL=$(printf '%s' "$raw" | jq -r '(.tool_name // empty)' 2>/dev/null || true)
+[ "$TOOL" = "AskUserQuestion" ] || { exit 0; }
+
+# Flatten all question + option text to one lowercase blob.
+BLOB=$(printf '%s' "$raw" | jq -r '
+ [ (.tool_input.questions // [])[]
+ | (.question // ""), (.header // ""),
+ ((.options // [])[] | (.label // ""), (.description // "")) ]
+ | join(" ")' 2>/dev/null | tr '[:upper:]' '[:lower:]')
+[ -z "$BLOB" ] && exit 0
+
+# Credential keywords that signal an auth stall. Word-ish boundaries to cut
+# false positives (e.g. "tokenize", "keyboard" excluded by the patterns).
+if printf '%s' "$BLOB" | grep -qE '(password|passphrase|credential|api[ _-]?key|secret[ _-]?key|access[ _-]?key|\bsecret\b|\btoken\b|\bssh\b|\blogin\b|\bauth\b|\b2fa\b|\botp\b|\bapi key\b|client[ _-]?secret|private[ _-]?key|\bpat\b)'; then
+ python3 - <<'PY'
+import json
+msg = (
+ "AUTH-STALL CHECK — you are about to ask the owner for a credential. "
+ "Owner rule: exhaust local credential sources FIRST, in this order, before prompting:\n"
+ " 1. dcli (Dashlane — the master vault, has ALL accounts incl. device/SSH/router pw):\n"
+ " dcli password --output json <query> | dcli password --output json '' | dcli note --output json | dcli otp <query>\n"
+ " 2. Doppler: doppler secrets / doppler secrets get <NAME> --plain\n"
+ " 3. macOS keychain: security find-generic-password -s <svc> -w / security find-internet-password -s <host> -w\n"
+ " 4. Env vars: env | grep -i <name>\n"
+ " 5. Filesystem scan: ~/.secrets, ~/.config, repo .env*, ~/.aws, ~/.ssh\n"
+ "Only ask the owner if ALL of the above miss. (2026-05-26: ~1h lost on UniFi SSH before checking dcli.)"
+)
+print(json.dumps({
+ "hookSpecificOutput": {
+ "hookEventName": "PreToolUse",
+ "additionalContext": msg
+ }
+}))
+PY
+fi
+exit 0
diff --git a/claude-ops/skills/ledger/SKILL.md b/claude-ops/skills/ledger/SKILL.md
new file mode 100644
index 00000000..1fe8f757
--- /dev/null
+++ b/claude-ops/skills/ledger/SKILL.md
@@ -0,0 +1,52 @@
+---
+name: ledger
+description: Inspect the shared Ops Ledger — what's awaiting owner, what was handled autonomously, what claude-ops or Perplexity did in the last 24h. Always the single source of truth between the two systems.
+allowed-tools:
+ - Bash
+---
+
+# /ops:ledger
+
+Single source of truth shared between claude-ops (Mac) and Perplexity (off-Mac).
+Stored at `~/.claude-ops/ledger.jsonl` and mirrored to Notion DB "Ops Ledger".
+
+## Usage
+
+```bash
+# Default: human digest of last 24h
+/ops:ledger
+
+# What needs owner's attention right now?
+/ops:ledger awaiting
+
+# What did Perplexity do while I was at the gym?
+/ops:ledger query --source perplexity --since -PT4H
+
+# What's been touched on this Gmail thread?
+/ops:ledger query --claim-key gmail:thread:19e690a55d213f52
+```
+
+## Behavior
+
+Wraps `~/.claude-ops/bin/ledger` (the CLI from this skill). Always reports:
+1. Awaiting owner (top of digest, sorted newest first)
+2. Drafted by either system (needs send / merge / approve)
+3. Done autonomously in last 24h, grouped by source (claude-ops, Perplexity)
+4. Skipped or expired claims
+
+## Conventions every command in this plugin follows
+
+Before doing real work, run:
+```bash
+~/.claude-ops/bin/ledger query --claim-key "$CLAIM_KEY" --since -PT24H
+```
+If result has any entry with `status in (in_progress, done, drafted, awaiting_sam)`,
+SKIP — the other system already handled it. Don't duplicate.
+
+After doing work:
+```bash
+~/.claude-ops/bin/ledger claim --claim-key "$CLAIM_KEY" --kind <kind> --brand <brand> \
+ --title "<title>" --source claude-ops
+# ... do work ...
+~/.claude-ops/bin/ledger resolve <id> --status done|drafted|awaiting_sam
+```
diff --git a/claude-ops/skills/people/SKILL.md b/claude-ops/skills/people/SKILL.md
new file mode 100644
index 00000000..b7bbab29
--- /dev/null
+++ b/claude-ops/skills/people/SKILL.md
@@ -0,0 +1,68 @@
+---
+name: people
+description: Sync Apple Contacts to Notion 'People' database. Track last_contacted, relationship_strength, recent_topics, next_nudge_due. Foundation for relationship intelligence — birthdays, anniversaries, overdue-outreach, news-mention nudges.
+allowed-tools:
+ - Bash
+ - Read
+ - AskUserQuestion
+---
+
+# /ops:people
+
+Apple Contacts is source of truth. Notion "People" database is the working layer.
+
+## Subcommands
+
+| Subcommand | What it does |
+|---|---|
+| `sync` (default) | Pull Apple Contacts via `pc contacts fetch`, upsert to Notion People DB |
+| `birthdays [--window 7]` | Who has a birthday/anniversary in the next N days |
+| `overdue` | Who's past their relationship-strength cadence and needs reach-out |
+| `whois <name>` | Pull single person's full profile + last interaction across all channels |
+| `bump <name>` | Manually mark "I just talked to X" — resets last_contacted |
+
+## Notion People schema (auto-created on first run)
+
+| Property | Type | Source |
+|---|---|---|
+| name | title | Apple Contacts |
+| emails | multi-select | Apple Contacts |
+| phones | multi-select | Apple Contacts |
+| birthday | date | Apple Contacts (year may be missing) |
+| relationship_strength | select: close, active, dormant, professional, family | Heuristic + manual |
+| last_contacted | date | Computed from Gmail/Slack/iMessage/WhatsApp |
+| last_topic | rich_text | Last 1-line subject from any channel |
+| next_nudge_due | date | Computed: last_contacted + cadence_for(strength) |
+| brand_context | multi-select: your brand/project codes | Inferred from email domains/threads |
+| notes | rich_text | Manual |
+
+## Cadences (configurable)
+
+- `close` — 14 days (partner, parents, closest friends)
+- `active` — 30 days (team, frequent collaborators)
+- `professional` — 60 days (clients, partners)
+- `dormant` — 180 days (warm but distant)
+- `family` — birthday + anniversary + monthly check-in
+
+## Sync logic
+
+1. `pc contacts fetch --format json` — pull all Apple Contacts
+2. For each contact: upsert into Notion People DB matched by email (primary) or phone
+3. Walk last 30 days of Gmail/Slack/iMessage/WhatsApp threads to compute `last_contacted`
+4. Compute `next_nudge_due = last_contacted + cadence_for(relationship_strength)`
+5. Write a ledger entry: `kind=nudge`, `brand=OPS`, status=done
+
+## Behavior
+
+- First run will ask owner to confirm `relationship_strength` for top ~30 contacts
+- Subsequent runs are silent unless something new is inferred
+- Birthdays without years get treated as recurring annual; first detection asks owner to confirm before storing
+
+## Ledger writes
+
+```bash
+~/.claude-ops/bin/ledger claim --claim-key "people:sync:$(date +%F)" --kind nudge \
+ --brand OPS --title "Apple Contacts → Notion sync" --source claude-ops
+# ... sync ...
+~/.claude-ops/bin/ledger resolve <id> --status done
+```
diff --git a/claude-ops/skills/tonight/SKILL.md b/claude-ops/skills/tonight/SKILL.md
new file mode 100644
index 00000000..624c98db
--- /dev/null
+++ b/claude-ops/skills/tonight/SKILL.md
@@ -0,0 +1,41 @@
+---
+name: tonight
+description: Evening tomorrow-brief. Reads the Ops Ledger, calendar, and People DB. Surfaces tomorrow's meetings with prep status, birthdays hitting tomorrow, overdue outreach, top 3 priorities, and any unresolved decisions from today. Push notification if anything is genuinely time-sensitive.
+allowed-tools:
+ - Bash
+ - Read
+---
+
+# /ops:tonight
+
+The "before-bed brief." Counterpart to `/ops:go` (morning).
+
+## Output sections
+
+1. **Tomorrow's calendar** — every meeting >=15min with: attendees, prep status (brief
+ exists Y/N), and the suggested 1-line prep ask if no brief exists.
+2. **Birthdays / anniversaries tomorrow** — from Notion People DB. Pre-drafted
+ message ready to send.
+3. **Overdue outreach** — anyone whose `next_nudge_due <= tomorrow`. Top 3 only.
+4. **Top 3 priorities for tomorrow** — pulled from Linear (assignee=me, priority<=High,
+ updated last 7d, not Done).
+5. **Unresolved from today** — ledger entries with `status=awaiting_sam` still open.
+
+## Behavior
+
+- Runs in claude-ops when owner is at the Mac
+- Runs in Perplexity when owner isn't (Perplexity reads the same Notion ledger)
+- Both systems write a ledger entry `kind=nudge`, `brand=OPS`, `claim_key=tonight:YYYY-MM-DD`
+ so they don't both fire
+- Push notification only if section 5 has unresolved items OR section 3 has anyone
+ past cadence
+
+## Schedule
+
+Suggested cron: `30 21 * * 1-5` Europe/Amsterdam (9:30pm weekdays)
+Or run manually with `/ops:tonight`
+
+## Ledger writes
+
+Each section that surfaces an item writes a sub-entry so morning `/ops:go` can pick
+up where this left off without re-deriving.