360 Secure SkillHub
360 安全技能中心

Ravi contacts

ravi-contacts用于管理个人联系人,核心功能包括通过CLI命令实现联系人的增删改查、模糊搜索,支持自动从邮件/SMS交互生成或更新联系人,可标记可信联系人区分消息渠道。典型场景为发送邮件/短信前按姓名搜索解析收件人,或手动维护联系人信息。输入为带参数的CLI命令,输出为JSON格式的联系人数据。

raunaksingwi
raunaksingwi
热度 59.44
最近更新 2026-05-11 17:28:46
分类:协作依赖:MCP 服务应用场景:邮件起草 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ravi-contacts
Metadata
name
ravi-contacts
description
Manage contacts associated with your identity — list, search, create, update, and delete. Use ravi-contacts to resolve a person's name to their email or phone before sending (e.g. "email Alice" or "text Bob" → search contacts first). Do NOT use for website credentials (use ravi-passwords) or API keys (use ravi-secrets).

Ravi Contacts

Manage contacts associated with your identity. Contacts store people you interact with — their email, phone, display name, and nickname.

Commands

# List all contacts
ravi contacts list

# Fuzzy search contacts by name or email (phone is not fuzzy-searched)
ravi contacts search "alice"

# Get a single contact
ravi contacts get <uuid>

# Create a contact
ravi contacts create --email "alice@example.com" --display-name "Alice Smith"

# Create with phone and nickname
ravi contacts create --phone "+15551234567" --nickname "alice"

# Create a full contact
ravi contacts create --email "bob@corp.com" --phone "+15559876543" --display-name "Bob Jones" --nickname "bob"

# Update a contact
ravi contacts update <uuid> --nickname "ally"

# Delete a contact
ravi contacts delete <uuid>

Create/update fields: --email, --phone, --display-name, --nickname, --is-trusted

JSON Shapes

ravi contacts list:

[
  {
    "uuid": "...",
    "identity": 1,
    "email": "alice@example.com",
    "phone_number": "+15551234567",
    "display_name": "Alice Smith",
    "nickname": "alice",
    "is_trusted": false,
    "source": "auto",
    "interaction_count": 5,
    "last_interaction_dt": "2026-03-01T14:00:00Z",
    "created_dt": "2026-02-20T10:30:00Z",
    "updated_dt": "2026-02-28T09:15:00Z"
  }
]

ravi contacts get <uuid>:

{
  "uuid": "...",
  "email": "alice@example.com",
  "phone_number": "+15551234567",
  "display_name": "Alice Smith",
  "nickname": "alice",
  "is_trusted": false,
  "source": "auto",
  "interaction_count": 5,
  "last_interaction_dt": "2026-03-01T14:00:00Z",
  "created_dt": "2026-02-20T10:30:00Z",
  "updated_dt": "2026-02-28T09:15:00Z"
}

Resolving Recipients

When the user asks to email or text someone by name (e.g. "email Alice" or "text Bob"), always search contacts first to resolve their name to an email address or phone number:

# Step 1: Search by name
ravi contacts search "Alice"

# Step 2: If one match → use the email/phone from the result
# Step 3: If multiple matches → confirm with the user which one they mean
# Step 4: If no matches → ask the user for the email/phone directly

This is the primary integration point with ravi-email-send and SMS workflows.

Key Concepts

  • Auto-contacts — Ravi automatically creates contacts from email and SMS interactions. When you send or receive a message, a contact is created or updated for the other party.
  • Manual contacts — You can also create contacts manually via the CLI.
  • Trusted contacts — Contacts marked with --is-trusted are classified as trusted senders. Emails from trusted contacts are routed to the email_trusted SSE channel, distinct from email_owner (your own emails) and email_untrusted (unknown senders). By default, contacts are not trusted.
  • interaction_count — Tracks how many email/SMS interactions you have had with this contact. Auto-incremented by the system.
  • last_interaction_dt — Timestamp of the most recent email or SMS interaction with this contact. Updated automatically.

Important Notes

  • Contacts are stored in plaintext — do not store sensitive information in contact fields. Use ravi-passwords for credentials and ravi-secrets for API keys.
  • Auto-contacts from interactions — sending or receiving email/SMS automatically creates or updates contacts. You do not need to manually create contacts for people you interact with.
  • Phone numbers in E.164 format — always include the country code (e.g., +15551234567).

Full API Reference

For complete endpoint details, request/response schemas, and parameters: Contacts

Related Skills

  • ravi-identity — Get your own email address and phone number
  • ravi-passwords — Store website credentials (not contact info)
  • ravi-secrets — Store API keys and env vars (not contact info)
  • ravi-inbox — Read incoming email and SMS messages
  • ravi-email-send — Send emails to your contacts