memorb-domain-querylisted
Install: claude install-skill iamjosuho/memOrb
# 🌐 Memory Domain Query & Email Integration
## Overview
Bi-directional query workflow connecting **Email Addresses**, **Domains**, and **Company Wikis** in Second Brain, integrated with Outlook/M365 email operations.
Core Principle: **Domain is the primary digital identifier linking company wikis (`memorbs/Long-Term/Orgs/`), employee profile notes (`memorbs/Long-Term/People/`), and external email systems (M365/Outlook).**
---
## When to Use
Trigger this skill when:
- User provides an email address (e.g., `user@example.com`) to identify the owner or company.
- User provides a domain (e.g., `acme.com`), asking for associated company records and contacts.
- User asks for a company's domains and employee contact list.
- **Outlook/M365 Email Ingestion**: Categorizing incoming emails based on sender domain.
- **Company Email Status Checks**: User asks "Are there any new emails from [Company Name]?"
---
## 🔍 Workflows
```mermaid
flowchart TD
StartInput[Trigger / Event] --> CheckType{Trigger Type?}
CheckType -- Email / Domain --> ModeA[Mode A: Query Company & People by Domain/Email]
CheckType -- Company Name --> ModeB[Mode B: Query Domain & Emails by Company Name]
CheckType -- Email Ingestion --> ModeC[Mode C: Auto-attribute Sender Domain]
CheckType -- Company Email Check --> ModeD[Mode D: Domain List → Outlook Query]
ModeA --> QueryOrgByDomain[1. Grep memorbs/Long-Term/Orgs/ for domain]
QueryOrgByDomain --> QueryPeopleByEmail[2. Grep memor