/vivreal-knowledge:vivreal-outreach-api-knowledgefrom vivreal-knowledge
Use when working in VR_Outreach_API, Vivreal's email-outreach backend (NEXT_PUBLIC_OUTREACH_URL → outreach.vivreal.io) for sequences, contacts/companies, enrollments, cold calls + social touches, public booking/scheduling, Gmail history, SES send + inbound replies, and the per-minute cron. Covers the 4-Lambda split, two-token auth (x-active-ctx + optional x-user-ctx for admin gates), sender-owned identity, the enrollment-snapshot variable freeze, the +outreach reply alias + threading-header attribution, bounce/opt-out routing, the daily per-sender send cap, the booking subsystem, web-push notifications, and the per-service <secret-prefix>/* secrets. Triggers on: VR_Outreach_API, email sequence, sequence didn't send, enrollment, cold call, social touch, booking page, Gmail history, x-user-ctx, ADMIN_EMAILS gate, cronTick, suppressions, outbound queue. Source of truth: `VR_Outreach_API` `README.md` (it has no `CLAUDE.md`) (and the docs it links) at `origin/main`.
Trending skills
7-day visitors to each skill page
Ships in vivreal-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cross-repo flows, decisions and maps: the vivreal-hq dev docs under ${VIVREAL_REPOS}/vivreal-hq/docs/dev-docs/, starting at 03-use-cases/U26-outreach-and-campaigns.md; npm run docs:route -- "outreach" from vivreal-hq names the rest. This skill and the repo's CLAUDE.md own the repo's internals.
Using this skill. It is loaded into the caller's own context; there is no expert agent to dispatch. Cite file:line at the deploy line's SHA for anything you act on, and re-derive any count or roster from source before you rely on it.
Source of truth: VR_Outreach_API README.md (it has no CLAUDE.md) (and the docs it links) at origin/main.
Last synced: 2026-10-28 against origin/main at 3878d27 (a merge here is the deploy; Node 22 since 2026-10-02; per-skill baseline in vivreal-skills scripts/skill-sources.json)
The Vivreal Outreach Sequencer backend: drip email sequences, reusable contacts + first-class companies, per-contact enrollments, cold-call + social-touch logging, public booking/scheduling, Gmail history (admin-only), SES send + inbound-reply routing with bounce/opt-out detection, suppressions, web-push notifications. Maps to NEXT_PUBLIC_OUTREACH_URL (custom domain outreach.vivreal.io, mapped out of band, NOT in template.yaml). Express + serverless-express on Lambda (Node 22, nodejs22.x in template.yaml; AWS SAM, webpack). Connects directly to tenant Mongo (does NOT proxy through VR_CMS_API). Its CRM client is vivreal-hq packages/admin-app since v7; the portal reaches only the public booking, demo-link and studio-demo routes through src/app/api/proxy/outreach/*.
Authoritative sources: ${VIVREAL_REPOS}/VR_Outreach_API/README.md (full route table) + docs/ + template.yaml, there is NO CLAUDE.md in this repo. For deeper read-only analysis with citations, dispatch the outreach-api expert agent. For driving outreach via MCP, see vivreal-outreach-mcp-knowledge.
apiHandler, Express via API Gateway v2 HttpApi, Cognito JWT default authorizer (audience list includes the outreach MCP client). Public (Auth: NONE) routes: /health, GET /book/{slug}, GET /book/{slug}/slots, POST /book/{slug}, GET /demo-link/{code}, GET /demo-link/review/{code} (v7), POST /studio-demo/visit.cronTick, EventBridge rate(1 minute), 300s timeout; sends due sequence steps. Overlapping ticks possible → send paths must be idempotent. Sender identity resolves LIVE from the sender doc at send time (senderIdentity.js); no resolvable fromAddress → step skipped 'no-sender'. Per-sender minutesBetweenSends overrides the global 5-min floor; send window default 9am, 6pm ET Mon, Fri (half-open) with per-sequence sendWindow overrides; delayHours/24 = business days (DST-safe math in cron/scheduling.js, but calendar/slots.js was NOT DST-safe until the 2026-07 fix, see the booking section). A daily per-sender send cap (cron/scheduling.js + tick.js) applies on top of the spacing, cap-skipped rows are rescheduled into the next send window. Call-due notifications batch into ONE daily per-sequence web-push digest (tick.js + sendStep.js; claimCallDueDigest in tenantClient.js claims against the call_due_digests unique index), the schedule stays rate(1 minute), the digest is batching inside the tick.processBounce, SES bounce/complaint via SNS → suppression list. Soft bounces auto-suppress after repeats (db/schemas/transientBounce.js + suppressionsClient.js); DSN/bounce detection (inbound/detectBounce.js → applyBounceOutcome.js, raw parsing via parseRawEmail.js) stops AND suppresses bounced enrollments.processInboundReply, SES receipt rule → S3 (vivreal-outreach-inbound-*, 90-day expiry) → SNS → parse + forward. The same bounce detection is wired here too (DSNs delivered as inbound mail), plus reply opt-out detection (inbound/detectOptOut.js). Attribution is by threading headers (In-Reply-To/References → findEnrollmentByMessageRefs) with a guarded sole-active-by-email fallback. Follow-up threading anchors on <sesId>@email.amazonses.com (the SES-delivered Message-ID format, empirically pinned). The old +r{code} / reply-{id}@replies.vivreal.io token is RETIRED (2026-06-18); still decoded only for in-flight pre-cutover sends.Deploys on push to main only → prod stack VR-Outreach-API (.github/workflows/lambda_api.yml; the dogfood trigger is gone). This is by design: Outreach has no release train.
x-active-ctx (required on all authenticated routes), the portal-signed active_ctx. Since 2026-09-27 (H6006, 56f31c0) it is signed with a key DERIVED for this service, HMAC(CTX_SECRET, 'vivreal/ctx/v2/outreach') (src/utils/ctxKeys.js), and must carry aud: 'outreach'; a token minted for VR_Secure_API, or in the old raw-secret format, is refused (direct cutover, no dual-accept window). The root CTX_SECRET still lives in <secret-prefix>/core. Every minter (the portal, the Outreach MCP server, the leadgen bridge in vivreal-hq/packages/leadgen/lib/outreachCtx.js) must use the derived key. Expiry → 419, and a token with no or a non-numeric exp is now refused rather than living forever (H6013). A ctx missing tenant fields → 401.x-user-ctx (OPTIONAL), operator identity, same derived key and audience.e89e91c): src/api/middleware/requireInternalCohort.js is mounted ONCE between authMiddleware and the first router, so every CRM route refuses a caller whose groupID is not the internal cohort's. Before it, 44 of 61 authenticated handlers answered any logged-in customer, and the lazily provisioned group-info endpoints could have pulled a customer's placement into the send cron's sweep. It gates on the GROUP, not the operator; requireGlobalAdmin still asks its own question. An empty allowlist refuses everything. active_ctx has NO email, so admin gates resolve the operator from req.userCtx only.requireGlobalAdmin) fails CLOSED on ADMIN_EMAILS (now an SSM-resolved env var, <ssm-prefix>/shared/admin-emails; empty list → 403). 13 admin-gated routes: contact/company gmail-history + gmail-message (companies ×2 + contacts ×2; moved to the ADMIN pool's authorizer on 2026-09-28 so vivreal-hq/packages/admin-app can reach them, bd99d3b), POST /sequences/enroll-by-filter (cap 500/call), GET /sequences/stats + /sequences/step-stats (sequences ×3), segments POST/PUT/DELETE (×3), GET /hot-leads, GET /studio-demo/visits, POST /test-thread-send.refID.:id get/update, company create; contacts also enrollments-summary. The email channel is reconciled onto GET /contacts/search, and both filter builders support hasLinkedin + socialTouches[]-aware statuses (buildCompanyFilter.js / buildContactFilter.js), cross-channel "replied-anywhere" is honored across call + email branches./prospects router + mount were deleted (route files 19 → 18; see the retirement section below).POST /cold-call/log, appends to calls[] on a Company OR Contact (kind-discriminated, channel-aware targets); DELETE /cold-call/note removes a logged note.POST /social-touch/log, logs LinkedIn/social touches into socialTouches[] on the target (the unified multi-channel queue's third channel).GET /queue/upcoming, 7-day projection with server-side filters (sequenceIds, senderUserId, kind=email|call, status=active|paused, paging); GET /queue/summary, per-sequence roll-up (scheduled count + soonest fire time) with the IDENTICAL scope/horizon as /upcoming so collapsed headers reconcile with expanded rows; backed by a queue index in migrations/ensureOutreachIndexes.js.GET /hot-leads, per-contact FACTS (booleans/counts/timestamps); the admin app's src/lib/outreach/hotScore.ts owns weights and policy.GET/POST /book/{slug} + /slots, see below.GET /demo-link/{code} (short studio-demo redirect), POST /studio-demo/visit, admin GET /studio-demo/visits + /visits/summary.POST /test-send (per-step, prod-safe), admin POST /test-thread-send (staggered thread), POST /_test/fire-step (non-prod only).GET /inbound: the admin Inbound read, three gatessrc/api/routes/inbound.js, mounted in src/index.js as app.use('/inbound', ...). The admin app calls it as GET /admin/inbound (stripAdminPrefix maps it). It lists contact messages and migration requests sent from Vivreal's own sites (src/db/websiteInboundClient.js), ?limit=1..100&cursor=, newest first, { items, nextCursor, hasMore }; a cursor it did not hand out is a 400. Three gates, in order: authMiddleware, then requireInternalCohort (a ctx from any group outside the internal cohort is refused), then requireGlobalAdmin (ADMIN_EMAILS plus x-user-ctx, else 403), because the cohort alone would admit every member, from the portal too, and these rows are real people's names and free text. Read only; nothing a visitor wrote is logged or sent to Sentry; every answer, refusals included, is Cache-Control: no-store, private.
packages/admin-app (src/app/outreach/{pipeline,sequences,import,review}, src/app/api/outreach/*, the hot-lead weights in src/lib/outreach/hotScore.ts). The portal keeps only the public booking, demo-link and studio-demo proxies. Fix outreach forward in the admin app, never by reviving the portal pages.POST /companies/:id/exclude (admin only, body { reason? }, reason manual or the review queue's rejected) records who, when and why on the company once; a repeat changes nothing. It also stamps every contact linked to the business with objectValue._system.excludedAt and excludedCompanyId (src/db/companyExclusion.js), so relinking a contact elsewhere cannot free it. There is NO un-exclude, by design. excluded cannot be set through the generic company update.company-excluded and answers 400 all-skipped when nobody is left; single /enroll also checks the suppression list and fails CLOSED with 502. src/cron/sendStep.js re-checks exclusion before every send through the contact's live companyId and stops the enrolment. Imports never relink a contact off an excluded business. A hand-written reply to an excluded business still sends (owner)._system is server-written. PUT /contacts/:id refuses _system (and the server-owned keys) by name, case-insensitively; imports drop a sent _system. VR_CMS_API's keepStoredSystemMeta keeps the stored one on update, so the exclude mark is durable.requireIdle: true and answers { deleted, stoppedEnrollments }; the admin app always sends it.POST /companies/:id/preview/review-code (admin) mints a short-lived HMAC code (src/email/reviewPreviewCode.js); public GET /demo-link/review/:code redeems it with no gate, no visit record and no write, and answers 404 on any failure.OWNER_OPT_OUT_LINE (src/email/optOutLine.js) survives only so a reply quoting old copy reads as ours, never as a decline (src/inbound/ownReplyText.js). A "not interested" reply is still honoured, and owner campaigns and subscriber email keep their unsubscribe.TOKEN_FAILURE_COOLDOWN_MS in src/email/gmailRead.js), so a Google outage degrades the history fan-out instead of retrying every mailbox four times./prospects router + mount, api/prospectStore.js, api/prospectSeedGate.js, db/schemas/prospect.js, utils/sanitizeText.js, and the golden fixture + gen script are all DELETED; the operator dropped Vivreal.prospects. Leads live in vivreal-hq/packages/leadgen/Data/prospects.jsonl (gitignored); vivreal-hq/packages/leadgen/lib/prospectToContact.js is now the SOLE seed-gate implementation, no twin to keep in lockstep.src/api/companyImportValidation.js (computeDedupKey, validateCompanyRow, synthesizeWebsite, directoryListingHost, FREE_MAIL_DOMAINS) stayed, it serves POST /companies, POST /companies/import, db/resolveCompanies.js, and scripts/audit-contact-integrity.js. The edan.io listing-only carve-out stayed (coverage relocated to tests/api/companyImportValidation.test.js), and the file is still a byte-identical mirror of vivreal-hq packages/leadgen/lib/verifyMapsSite.js.seed-outreach.js --emit → POST /companies/import + POST /contacts/import, and the admin app's Import leads page, which takes the same --emit file and refuses a file that is not a seed emit (vivreal-hq packages/admin-app/src/lib/outreach/seedEmit.ts). Hookless seeding survives on that boundary: name + website/domain is the seed bar; hooks are NOT required. Listing-only leads seed a company-only doc with a blank website. Caveat: {{personalizationHook}} renders as an empty string for hookless companies, pair hookless batches with hook-independent sequences.The sender doc (Outreach Senders) owns fromAddress/fromName/replyToAddress/role/signatureImageUrl + booking config; sequences store only senderUserId + ccAddress. Identity resolves live at send time, NEVER snapshotted. Signatures are structural (composed fields); the freeform signature blob is retired, legacy-fallback only. Booking link lives on the sender (rendered into the signature).
api/routes/book.js (public routes, rightmost-XFF IP) → calendar/slots.js (generateSlots = availability template - Google FreeBusy) → calendar/googleCalendar.js (domain-wide-delegated SA REST: freeBusy + insertEventWithMeet, @vivreal.io guard; inert without GMAIL_SA_KEY_JSON) → db/bookingClient.js (findSenderBySlug, the slug is a GLOBAL key, no groupID filter; lock helpers; persistBooking). Concurrency lock key = fromAddress:startMs (mailbox-keyed, NOT slug-keyed), unique index + 2h-after-start TTL. Rate limiting: DynamoDB fixed-window per-IP+per-slug (shared/rateLimit.js), read-only pre-check, recordBookingSuccess on commit. Booking web-push notifications use a scopeFor override + ownerEmails[] attribution (book.js, utils/pushNotification.js, db/schemas/pushPreference.js); push is fail-closed inert without the VAPID private key (OUTREACH_PUSH_ENABLED flag).
DST hang (fixed 2026-07): calendar/slots.js enumerated days with dateAtLocalHour(dayMs + 86400000, …), on a 25-hour fall-back day that re-pins to the same midnight and while (dayMs < hi) spins synchronously FOREVER (CPU-pinned to the Lambda timeout for any booking window spanning the transition; default maxDaysOut 21; also why npx jest appeared to hang). Now it steps by calendar date via nextLocalMidnight/localMidnightUtc/zoneOffsetMs, deliberately NOT reusing scheduling.dateAtLocalHour (it stalls on spring-forward), plus a non-advance guard.
provision/createSystemGroups.js): Outreach Sequences (audited+versioned), Outreach Enrollments (high-volume, audit+versioning skipped), Outreach Contacts, Outreach Senders, Outreach Companies (first-class entity, linked from contacts via companyId), Outreach Segments (saved named filters). provision() additively backfills missing schema keys on re-run and idempotently ensures the booking_locks, stale_call_digests, and call_due_digests index collections.website, domain, industry, techStack, personalizationHook, phone, dmTitle, …) plus tags, angle, angleStatus, quarantined. Companies carry the same enrichment set plus phone, dedupKey, company-scoped tags, and calls[].{ idx, delayHours (relative; /24 = business days), kind:'email'|'call', subject, body }. subject:null is NOT auto-"Re:" (and the initial send is never "Re:"-prefixed). Enrichment fields resolve as bare tokens ({{website}}) off the snapshot; {{customField.<key>}} for ad-hoc keys only.db/contactSnapshot.js, 25 PROMOTED_NATIVE_KEYS + 16 COMPANY_FIELD_KEYS overlay, must mirror the portal's contactFields.ts). The cron renders the snapshot, NOT live contact data (sender identity is the exception, live). kind:'call' steps auto-advance via cron or POST /enrollments/log-call.log-call used to set nextSendAt to NOW instead of now + the next step's delayHours, the following step fired on the next cron tick. Now it schedules via computeNextStepSendAt (relocated from cron/sendStep.js into cron/scheduling.js so the request route needn't import the send pipeline) against the sequence's resolved send window; isLast → null preserved. Optional disposition (no-answer | left-voicemail | reached): reached EXITS the enrollment as completed; anything else advances. Persisted additively on the enrollment CallLog (Mixed subdoc). The cron's deliberate call-step hold is unchanged.migrateStringNextSendAt.js).@vivreal.io (OUTREACH_FROM_DOMAIN; SESCrudPolicy is a HARD cutover on that domain).email/sendRaw.js applies ConfigurationSetName from SES_CONFIGURATION_SET (template.yaml SesConfigurationSet), now vivreal-outreach (us-east-1). Footgun: SES REJECTS any send naming a configuration set that does not exist. This is the attach point for SES email validation.+outreach alias (e.g. <sender>[email protected], email/outreachReplyAlias.js), registered as a Gmail "Send mail as" so Reply-All omits it. Cc is opt-in (sequence ccAddress); Workspace dual-delivery copies replies to SES.replies.vivreal.io domain is NOT in CloudFormation, it lives in the account's single active INBOUND_MAIL rule set (WorkMail-owned).email/gmailSentCopy.js (fire-and-forget, GMAIL_SENT_COPY_ENABLED kill switch). Gmail reads via email/gmailRead.js (fan-out across ADMIN_EMAILS mailboxes, dedupe by Message-ID). Both use the domain-wide-delegated SA in base64 GMAIL_SA_KEY_JSON (absent → feature inert).insertSentCopy wrote the Gmail Sent copy with the pre-SES id from generateMessageId() while a CC'd @vivreal.io mailbox received the SES-rewritten id, gmailRead.js's Message-ID dedupe never matched, so every outbound email appeared TWICE in history. Fixed by withMessageId(raw, id) in email/messageId.js (rewrites ONLY the top-level header, operates strictly before the first CRLFCRLF, fails open) at BOTH call sites, cron/sendStep.js and inbound/processInboundReply.js. gmailRead.js also gained a secondary dedupe key (outbound rows only, runs after messageId dedupe and never replaces it; collapses logged as gmailRead.secondaryDedupeCollapse; matched on byte-identical as-received From/To/Cc/Subject/Date); the internal _rawHeadersForDedupe is stripped before rows reach a caller.MONGO_OUTREACH_URI → dedicated outreach DB (suppressions, unique compound index (scope, email)); MONGO_TENANT_BASE_URI → per-dbKey tenant DBs (scripts/dynamicDb.js). Both resolved from the <secret-prefix>/outreach secret at cold start, not env. The control-plane mainDb connection (src/scripts/mainDb.js) still exists, but MODELS is now groups, usageTracking, pushSubscriptions only, do not re-add a model for a dropped collection (Vivreal.prospects is gone).groupID; the unique email index is tenant-keyed; duplicate-keyed companies sort specs were dropped (they failed every prod migration run). @hillbombcreations/schemas → ^1.26.0.bulkWrite upserts filtered on objectValue.* silently insert nothing unless { strict: false }, bit CSV import and company-create.vivreal-atlas-topology.)build:deploy runs npm ci --omit=dev before copying node_modules into dist/. A prior npm prune approach dropped transitive deps (bson), don't reintroduce.tests/ (jest + mongodb-memory-server). The deploy workflow does NOT run them, run npm test before pushing.utils/config.js) from per-service secrets (hb-api-secrets retired, fetched in parallel): <secret-prefix>/outreach (MONGO_OUTREACH_URI, MONGO_TENANT_BASE_URI, GMAIL_SA_KEY_JSON), <secret-prefix>/core (CTX_SECRET), <secret-prefix>/vapid (VAPID private key). Config-not-credential values resolve from SSM at deploy in template.yaml: WS_ENDPOINT/WS_TABLE, ADMIN_EMAILS, Cognito client ID, VAPID public key/subject under <ssm-prefix>/shared/*; Sentry DSN from <ssm-prefix>/outreach/sentry-dsn.@sentry/aws-serverless manual init; tenant tags per request. (See sentry-tracer / the sentry agent.){groupID}, not just dbKey.x-active-ctx/x-user-ctx before events leave the process.prepare script, it previously broke production deploys until fixed).Vivreal_Portal_Mobile/docs/projects/portal-frontend-testing-strategy/prod-bugs-found.md.vivreal-outreach-mcp-knowledge, the 50-tool MCP server fronting this API. vivreal-db, Mongo query rules. vivreal-atlas-topology, connection/ops. vivreal-iam-secrets, CTX_SECRET rotation. vivreal-admin-app-knowledge, the admin app that is this API's CRM client; vivreal-portal-knowledge, the public outreach proxies the portal keeps.outreach-api expert agent, 2026-10-20)The expert agents are retired (2026-10-28), so the review checklist they used to carry lives
here. Query rules (tenant scoping, the mainDb _id
lookup, the publishDate and archived filters) live in vivreal-knowledge:vivreal-db, and
packaging and limits in vivreal-infra:vivreal-lambda; they are not repeated here.
Lambda-Webhook managed policy + connections table as the other backends, socket sends must be non-blocking.src/cron/).@sentry/aws-serverless manual init (utils/sentry.js); tenant tags set per request in auth middleware.MONGO_OUTREACH_URI → dedicated outreach DB (suppressions only, db/suppressionsClient.js); MONGO_TENANT_BASE_URI → per-dbKey tenant DBs (db/tenantClient.js, scripts/dynamicDb.js), same routing convention as the other backends.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hillbombcreations/vivreal-skills --plugin vivreal-knowledge27 skills in this plugin
/sentry-tracerUse when investigating what happened during a Vivreal user action across the stack, tracing an error end-to-end, validating a deploy, or doing tenant-scoped triage with Sentry. Teaches WHEN to trace cross-stack (frontend spans ↔ backend logs ↔ WebSocket events) and HOW (trace-ID propagation, the standard tag set, request_id fallback, service.* breadcrumbs). Triggers on: "what happened when I did X", "why did this error", trace this request, Sentry issue, deploy validation, "everything's broken for this group", crash, error timeline. For the full investigation agent with Sentry MCP tools wired in, dispatch the `sentry` agent / `/sentry-trace` (both in the `vivreal-sentry` plugin); this skill is the passively-loaded knowledge layer. Also covers the step from a Sentry error to the AWS and Atlas metric that confirms an infrastructure cause (502 with no backend event, Lambda timeout, Mongo connect-hang, throttling, OOM, stalled deploy)./vivreal-accounts-and-writesUse before filming, walking or capturing anything in the Vivreal portal or on vivreal.io, and before any write a capture or walk makes. Carries which login to use for which business (the demo account, the QA scratch owner, the owner session), the eight-step owner-approved write protocol (named approval, snapshot, write through the UI, fresh-process read-back, restore, manifest entry), the never-list (Post, Publish, Schedule, Connect and the rest), and the rules for stills that fill vivreal.io marketing slots (pair by what the slot says, no demo site has its own web address, mask comped plan figures). Shared by footage-recorder, tutorial-maker, help-page-producer, qa-walker and marketing-auditor. Triggers on: which login, demo account, QA scratch-2, test account, switch business, owner-approved write, write protocol, snapshot and restore, mutations, marketing still, screenshot swap, vivreal.io slot, walk harness, write guard, POST allow list, PRO badge./vivreal-admin-app-knowledgeUse when working on, walking, deploying or reasoning about the internal admin app (vivreal-hq packages/admin-app), the invite-only, sign-in-only staff hub that holds every staff surface since v7 (outreach CRM, sign-ups, monitoring, errors, tickets, flags, audit, usage, economics, deployed sites, team, staff push), covering where it lives, its own identity pool and session, how it calls the fleet with no active_ctx, the deploy by fast-forwarding deploy/admin-app, its two ops Lambdas, what each page reads, including the dark navy restyle and the Releases, Database, Marketing and Inbound pages. Source of truth: `vivreal-hq` `packages/admin-app/CLAUDE.md` (and the docs it links) at `origin/deploy/admin-app`./vivreal-agent-knowledgeUse when working on, writing about, or debugging Vivreal AI. The AI offering is connecting an AI agent through the Vivreal MCP server (VR-MCP-Server, plan flag mcpAccess, metered in mcpToolCalls), and nothing else: the in-app assistant is RETIRED (owner 2026-10-07, agentActions 0 on every tier; the global FAB, drawer and /agent page were deleted 2026-09-24) and only dead code survives in the portal (Studio AiRail, EditPlan) and VR_Secure_API's agent Lambda. Covers the copy rule ("AI agent", never assistant or a model name), the real gates, and the retired surface's archaeology. Triggers on: AI agent, MCP, connect an AI agent, AI assistant, AI assistant not showing, agentActions, aiActionsEnabled, aiSiteEditing, aiComponentGen, mcpAccess, mcpToolCalls, AiRail, useAgentAccess, EditPlan, proposeSiteEdits, agent/execute, agentProgress. Sources: VR-MCP-Server, Vivreal-Tier-Quotas src/tierQuotas.ts./vivreal-analytics-knowledgeUse when working on Vivreal's first-party analytics, VR_Analytics_API (the collect→store→rollup pipeline), the Templates SiteBeacon, or the per-site traffic dashboard (VR_Secure_API read route + portal AnalyticsPanel). Covers the CloudFront+WAF → Lambda Function URL ingest chain (X-Origin-Verify, bot filter, Joi, per-IP rate limit, daily-salt visitor hash), the analytics_rollup DynamoDB design, the daily rollup cron into mainDb.site_traffic_daily, the LIVE auto-deploy status (GitHub Actions → CloudFormation) plus the W4 CDN egress meter (runs unconditionally), and where increment 2 lives. Triggers on: analytics, site traffic, beacon, SiteBeacon, visitor stats, page views, unique visitors, analytics_rollup, site_traffic_daily, first-party analytics, per-site dashboard, collect.vivreal.io, visitor hash, rollup cron, CDN egress meter, VR_Analytics_API. Source of truth: `VR_Analytics_API` `CLAUDE.md` (and the docs it links) at `origin/main`./vivreal-blender-knowledgeUse when scripting or rendering in Blender for Vivreal, above all the Vivreal duck mascot in vivreal-hq/brand/mascot/model. Covers headless renders (blender -b -P script.py -- args, --factory-startup, --python-exit-code), bpy data versus ops, bmesh, depsgraph evaluated_get and new_from_object, mathutils transform gotchas, flat toon and NPR rendering in EEVEE (Emission plus the Standard view transform, exact sRGB hex, dither, filter size, transparent film, orthographic framing), outline methods compared (Freestyle, Grease Pencil Line Art, inverted hull, ID-pass edge inking), and the 4.2 to 5.2 API changes that break scripts (EEVEE engine id, blend_method, use_nodes, Grease Pencil v3). Triggers on: Blender, bpy, bmesh, headless render, background render, EEVEE, Workbench, Cycles, toon, cel, NPR, outline, inverted hull, Freestyle, Line Art, Grease Pencil, view transform, AgX, Filmic, mascot, the duck, duck.py, render.py, mascot-artist.Other plugins' skills for the same job