← 返回
开发者工具 Key 中文

Mediator

Intercept and filter communications from difficult contacts. Strips emotion, extracts facts, drafts neutral responses. Use when setting up communication filtering for specific contacts, configuring the mediator, or processing intercepted messages. Triggers on "mediator", "intercept messages", "filter communications", "difficult contact", or requests to handle messages from someone the user doesn't want to deal with directly.
拦截并过滤来自难缠联系人的通讯。剥离情绪,提取事实,起草中性回复。适用于为特定联系人设置通讯过滤、配置调解器或处理拦截消息。触发词包括“mediator”、“intercept messages”、“filter communications”、“difficult contact”,或处理用户不想直接应对之人的消息请求。
dylntrnr
开发者工具 clawhub v1.0.0 1 版本 99862.2 Key: 需要
★ 0
Stars
📥 1,449
下载
💾 16
安装
1
版本
#latest

概述

Mediator Skill

Emotional firewall for difficult relationships. Intercepts messages from configured contacts, strips out emotional content, presents just the facts, and helps draft measured responses.

Quick Start

# Initialize config (creates mediator.yaml if missing)
~/clawd/skills/mediator/scripts/mediator.sh init

# Add a contact to mediate
~/clawd/skills/mediator/scripts/mediator.sh add "Ex Partner" \
  --email "ex@email.com" \
  --phone "+15551234567" \
  --channels email,imessage

# Process incoming (usually called by cron/heartbeat)
~/clawd/skills/mediator/scripts/mediator.sh check

# List configured contacts
~/clawd/skills/mediator/scripts/mediator.sh list

# Remove a contact
~/clawd/skills/mediator/scripts/mediator.sh remove "Ex Partner"

Configuration

Config lives at ~/.clawdbot/mediator.yaml:

mediator:
  # Global settings
  archive_originals: true      # Archive raw messages after processing
  notify_channel: telegram     # Where to send summaries (telegram|slack|imessage)
  
  contacts:
    - name: "Ex Partner"
      email: "ex@email.com"
      phone: "+15551234567"
      channels: [email, imessage]
      mode: intercept          # intercept | assist
      summarize: facts-only    # facts-only | neutral | full
      respond: draft           # draft | auto (dangerous)
      
    - name: "Difficult Client"  
      email: "client@company.com"
      channels: [email]
      mode: assist             # Don't hide originals, just help respond
      summarize: neutral
      respond: draft

Modes

  • intercept: Archive/hide original, only show summary. User never sees raw emotional content.
  • assist: Show original but also provide summary and response suggestions.

Summarize Options

  • facts-only: Extract only actionable items, requests, deadlines. No emotion.
  • neutral: Rewrite the message in neutral tone, preserving all content.
  • full: Show everything but flag emotional/manipulative language.

Respond Options

  • draft: Generate suggested response, wait for approval before sending.
  • auto: Automatically respond (use with extreme caution).

How It Works

Email Flow

  1. Gmail Pub/Sub notification arrives (real-time)
  2. Check if sender matches any configured contact
  3. If match:
    • Fetch full email content
    • Process through LLM to extract facts/strip emotion
    • Archive original (apply "Mediator/Raw" label, mark read)
    • Send summary to configured notify channel
    • If response needed, draft one

iMessage Flow

  1. imsg watch monitors for new messages
  2. Check if sender matches configured contact
  3. If match:
    • Process message content
    • Send summary to notify channel
    • Draft response if requested

Scripts

  • mediator.sh - Main CLI wrapper
  • process-email.py - Email processing logic
  • process-imessage.py - iMessage processing logic
  • summarize.py - LLM-based content analysis and summarization

Integration

Heartbeat Check

Add to HEARTBEAT.md:

## Mediator Check
~/clawd/skills/mediator/scripts/mediator.sh check

Cron (for more frequent checking)

# Check every 5 minutes during business hours
*/5 9-18 * * 1-5 ~/clawd/skills/mediator/scripts/mediator.sh check

Safety Notes

  • Never auto-respond to legal, financial, or child-related messages
  • Original messages are archived, not deleted (recoverable)
  • All actions logged to ~/.clawdbot/logs/mediator.log
  • Review and adjust prompts if summaries miss important context

Example Output

Original email:

> I can't BELIEVE you would do this to me AGAIN. After everything I've done for you!!! You NEVER think about anyone but yourself. I need you to pick up the kids at 3pm on Saturday and if you can't even do THAT then I don't know what to say anymore.

Mediator summary:

> From: Ex Partner

> Channel: Email

> Action Required: Yes

>

> Request: Pick up kids at 3pm Saturday

>

> Suggested response:

> "Confirmed. I'll pick up the kids at 3pm on Saturday."


See references/prompts.md for the LLM prompts used in processing.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 01:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,548
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,627

Git Guardian

dylntrnr
在 Git 中跟踪所有代理工作,并在应用更改前显示差异。使用时机:(1) 创建或修改脚本、配置、技能或任何工作区文件时,(2) ...
★ 0 📥 163