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.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
feat(ops-ar): taste-profile injection and imprint gate; ops-inbox step 0 (#872)
Aurora Capitalc3a2360ab80e
diff --git a/claude-ops/skills/ops-ar/SKILL.md b/claude-ops/skills/ops-ar/SKILL.mdindex 3c49641e..b688b2c1 100644--- a/claude-ops/skills/ops-ar/SKILL.md+++ b/claude-ops/skills/ops-ar/SKILL.md@@ -36,6 +36,23 @@ A&R the given record(s) like a pop/dance-hit label owner + master producer. TheThe skill must read these at runtime — never hardcode user names, mailboxes, label names, or absolute `/Users/...` paths.+### Taste profile injection (mandatory when `ar.profile` exists)++Before spawning any ar-producer agent, read the profile once:++```bash+PREFS="${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json"+jq '.ar.profile // empty' "$PREFS"+```++If non-empty, inject the **whole JSON object verbatim** into every ar-producer spawn prompt, with the instruction: *"Judge as the A&R for THIS owner/label. Calibrate the verdict per `verdict_calibration`. Weigh hooks and toplines against `songwriting_taste`. REFERENCE & POSITIONING must position against `catalog_recent`, `signature_classics`, and `label_roster_third_party` — name the closest catalog comparison, not generic genre acts. Check tempo against `tempo_sweet_spot` and brand fit against `lane`. If `signing_structure` is present, the NEXT section of a sign/develop verdict must state which entity signs the master."*++Fields the profile may carry (all optional): `owner`, `label`, `lane`, `tempo_sweet_spot`, `ar_team`, `signing_structure`, `reference_acts`, `catalog_recent`, `signature_classics`, `label_roster_third_party`, `songwriting_taste`, `verdict_calibration`. If the profile is absent, fall back to the generic dance-pop / feel-good house default and say so in the card header.++### Imprint gate (mandatory when `ar.future_tropical` exists)++Read `jq '.ar.future_tropical // empty' "$PREFS"`. If non-empty, inject it verbatim into every ar-producer spawn prompt **except `brand_book_corpus`** (the full scraped brand-book text — too large for a spawn prompt; consult it only when a card needs exact brand-book language, via `jq '.ar.future_tropical.brand_book_corpus.pages | keys'` then the specific page). Always inject `sound_description` — it is the imprint's sonic north star and the tiebreaker on points 2, 4 and 5. Add an **IMPRINT** section to the A&R card between VERDICT and WHAT'S WORKING: score the track against `ten_point_test` per `scoring_rule` (one line per point, pass/fail/N-A, with the failing evidence named), then one routing line — `FT-eligible` or `route to parent label`. The imprint is a strict subset of the label: a failed gate never downgrades the main verdict, it only routes the release. Owner's own tracks always get the scorecard; third-party demos get it only when they are in the imprint's lane.+## Modes### 1. Single track — `/ops:ops-ar <file|url|latest>`diff --git a/claude-ops/skills/ops-inbox/references/details.md b/claude-ops/skills/ops-inbox/references/details.mdindex a7edc8cc..d77ed414 100644--- a/claude-ops/skills/ops-inbox/references/details.md+++ b/claude-ops/skills/ops-inbox/references/details.md@@ -262,10 +262,15 @@ A reply that is correct but in the wrong voice is a defect. Before drafting on a## Core principle: FULL-CONTEXT RECALL + CROSS-CHANNEL / ALREADY-SENT DEDUP-The single most damaging error is replying to something the user already handled — in this thread, in another thread, in a group, on another channel, or by phone/voice that never landed in the store. **This dedup gate is MANDATORY and BLOCKING: no thread may be classified NEEDS_REPLY or drafted against until ALL dedup checks (steps 1–7 below) have run and come up empty.** A thread is NOT NEEDS_REPLY just because its own last message is inbound — the same request may already be answered somewhere else, and re-surfacing an already-handled item is treated as a scan bug, not a near-miss. The check is on the underlying REQUEST/TOPIC, not just the literal thread: if the same ask was satisfied anywhere — another thread, another channel, a group, or a sent email — it is HANDLED.+The single most damaging error is replying to something the user already handled — in this thread, in another thread, in a group, on another channel, or by phone/voice that never landed in the store. **This dedup gate is MANDATORY and BLOCKING: no thread may be classified NEEDS_REPLY or drafted against until ALL dedup checks (steps 0–7 below) have run and come up empty.** A thread is NOT NEEDS_REPLY just because its own last message is inbound — the same request may already be answered somewhere else, and re-surfacing an already-handled item is treated as a scan bug, not a near-miss. The check is on the underlying REQUEST/TOPIC, not just the literal thread: if the same ask was satisfied anywhere — another thread, another channel, a group, or a sent email — it is HANDLED.-Before confirming ANY NEEDS_REPLY or drafting, run steps 1–7:+Before confirming ANY NEEDS_REPLY or drafting, run steps 0–7:+0. **READ THE THREAD'S OWN SENT MESSAGES FIRST, ON EVERY ACCOUNT (MANDATORY, BLOCKING).** Before any search, and before any subagent report is trusted, open the actual thread and enumerate every message in it, checking each one's own direction marker (`labelIds` containing `SENT`, `is_from_me: true`, `Me:`). The user's reply is very often already sitting in the thread as the last message, and an envelope-level or scan-level view will not show it.+ - **A scan result is a snapshot, not current state.** Minutes pass between a scan and a draft, and the user replies from their phone during that window. Re-read the live thread immediately before drafting, not just before sending.+ - **Sweep EVERY connected account and channel, not the default one.** `gog auth list` enumerates the mailboxes; the user's reply may have gone out from an alias while the scan ran on the personal address. The same applies across channels: the email may have been answered on WhatsApp, and the WhatsApp on email. An unswept account is not evidence of absence.+ - **A subagent's "NEEDS_REPLY" is a claim about the moment it looked.** Re-verify the thread yourself before staging its draft. A drafter that read the thread ten minutes ago has not read it.+ - Skipping step 0 is the single most common cause of drafting a reply to something the user already answered. It is a scan bug, not a near-miss.1. **Same-thread recheck** — scan the full thread both directions (incl. `[voice]`/`[image]`/`[document]` enrichments). If the user replied after the last inbound, it is WAITING/HANDLED.2. **Cross-thread, same person (MANDATORY)** — the user may have answered the same person on their other JID (lid↔phone), in a group both are in, or a secondary number. Search the contact across threads (`mcp__whatsapp__list_messages {query, limit:25}`, `is_from_me:true` after the inbound timestamp). A satisfying reply in ANY of the person's threads → HANDLED.3. **Cross-channel (MANDATORY)** — the user may have answered the email by WhatsApp, or the WhatsApp by email/iMessage/Slack/Telegram. For EVERY NEEDS_REPLY candidate, you MUST search the OTHER channels for a recent outbound to the same person OR about the same topic before confirming: `gog gmail search "in:sent newer_than:21d (to:<addr1> OR to:<addr2>)"` (then **verify each hit's `labelIds` contains `SENT` via `gog gmail raw` — search alone is polluted), `mcp__whatsapp__list_messages {query:"<name|topic>"}` / phone+`@lid` deep-read, iMessage `chat_messages`, Slack/Telegram/Productlane history. A verified hit on the **same request** → reclassify HANDLED. Skipping this search is not permitted — an unsearched candidate is not yet a confirmed NEEDS_REPLY.