شعار Lessie Email

Lessie Email

المجتمع
LessieAI
lessie-email

Send, manage, and automate emails across multiple providers (Gmail, Outlook, Official Email) via MCP. Use this skill whenever the user wants to send emails, check inbox, manage email threads, create bulk email campaigns, manage drafts, or check email accounts and quotas. Trigger this skill when the user mentions sending mail, checking inbox, email campaigns, drafts, follow-ups, read/unread status, or email automation. Requires MCP server configuration.

نظرة عامة

الناشرLessieAI
المستودعlessie-skill
اسم المهارةlessie-email
النجوم
34
التفريعات
4
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها LessieAI على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Lessie Email في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/LessieAI/lessie-skill/tree/main/lessie-email
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LessieAI/lessie-skill.git /tmp/lessie-skill
mkdir -p .claude/skills
cp -r /tmp/lessie-skill/lessie-email .claude/skills/lessie-email
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Lessie Email في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Lessie Email تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Lessie Email بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Lessie Email — Multi-Provider Email Management

Setup

Add the Lessie Email MCP server to your MCP config (Claude Code ~/.claude.json, Cursor ~/.cursor/mcp.json, Codex ~/.codex/config.toml, etc.):

json
{
  "mcpServers": {
    "lessie-email-mcp": {
      "command": "npx",
      "args": ["-y", "@lessie/mcp-server"],
      "env": {
        "LESSIE_REMOTE_MCP_URL": "https://app.lessie.ai/email-api/mcp-public/mcp"
      }
    }
  }
}

Uninstall

Remove the "lessie-email" entry from your MCP config and run rm -rf ~/.lessie/.

Version check

Run this check once at the start of each session. Non-blocking — if any command fails, skip silently.

  1. Read current local version from this file's metadata version field above.
  2. Fetch remote version:
    bash
    curl -sf --max-time 5 https://raw.githubusercontent.com/LessieAI/lessie-skill/main/lessie-email/SKILL.md | head -5 | grep 'version:' | head -1 | awk '{print $2}'
  3. If the remote version is newer → tell the user:

    ⬆️ A newer version of lessie-email skill is available ({current} → {remote}). Run this command to update:

    npx skills add LessieAI/lessie-skill -y -g
  4. If versions match or check fails → skip, say nothing.

Authorization

  1. Directly call use_lessie to perform the desired action — skip authorization if already connected.
  2. If use_lessie fails (e.g., returns "not authorized" or "remote MCP server not connected") → call authorize to start the OAuth flow:
    • authorize returns an authorization URL. Tell the user you need to open a browser for Lessie login/registration, and open it using the appropriate system command:
      • macOS: open "<url>"
      • Linux: xdg-open "<url>"
      • Windows: start "<url>"
    • Tell the user the browser has been opened and they need to complete login/registration.
    • After the user confirms, call authorize again to verify the connection.
    • If authorization fails (timeout, denied, port conflict), follow the diagnostic hints returned by authorize and retry.
  3. After authorization succeeds → retry the original use_lessie call.

Troubleshooting: Authorization repeatedly fails

Root cause: stale lessie-mcp-server processes from old sessions occupy the callback port (19836), forcing port fallback and corrupting OAuth client state.

Fix — kill stale processes and clear storage, then re-authorize:

bash
ps aux | grep 'lessie-mcp-server' | grep -v grep | awk '{print $2}' | xargs kill 2>/dev/null
rm -rf ~/.lessie/
lsof -i :19836 | grep LISTEN  # should return nothing

Always inform the user before opening the browser — never silently redirect.

Quick start

After setup, try:

  • "Show me my email accounts and unread counts"
  • "Send an email from alice@company.com to bob@example.com about the Q2 report"
  • "List my recent email threads"
  • "Create a bulk email campaign to these 50 contacts"
  • "Draft an email to the engineering team about the sprint review"
  • "Mark all emails in this thread as read"

Tools overview

Email Accounts

ToolWhen to use
list_email_accounts_with_unreadView all linked email accounts with unread counts

Email Operations

ToolWhen to use
send_emailSend an email (supports HTML, CC/BCC, attachments, replies)
get_email_detailView full email details (content, delivery status, read status)
list_sent_emailsBrowse sent emails with cursor pagination
get_email_quotaCheck daily sending quota for a specific email address
delete_emailSoft-delete an email
set_email_read_statusMark an email as read or unread

Thread Management

ToolWhen to use
list_threadsBrowse email conversations (all/read/unread filtering)
get_thread_messagesView all messages in a conversation thread
delete_threadSoft-delete an entire conversation thread
set_thread_read_statusMark all emails in a thread as read or unread

Drafts

ToolWhen to use
create_draftCreate a new email draft
update_draftUpdate an existing draft (subject, content, recipients, etc.)
delete_draftDelete a draft
list_draftsBrowse drafts with cursor pagination

Bulk Email Tasks

ToolWhen to use
create_taskCreate a bulk email send task (auto-schedules per recipient)
list_tasksBrowse bulk tasks with progress info
get_task_detailView task details with delivery/open/fail stats per recipient
delete_taskDelete a bulk email task
pause_taskPause a running bulk email task
resume_taskResume a paused bulk email task

Agent behavior rules

Before sending emails

  1. Always check accounts first: Call list_email_accounts_with_unread to get available sender addresses.
  2. No email accounts bound: If the account list is empty, tell the user they have no email accounts linked yet and guide them to visit https://app.lessie.ai/ to bind an email account. Open the URL using the appropriate system command:
    • macOS: open "https://app.lessie.ai/"
    • Linux: xdg-open "https://app.lessie.ai/"
    • Windows: start "https://app.lessie.ai/" Then ask the user to return after binding and retry.
  3. Always check quota: Call get_email_quota for the chosen sender to confirm quota is sufficient.
  4. Never guess email addresses: Only use addresses returned by the account list.

Replying to emails

  1. Get the thread context: call get_thread_messages to see the conversation.
  2. Use the thread_id and reply_to_message_id from the last message.
  3. Pass both when calling send_email for a proper threaded reply.

Draft workflow

  1. Create a draft with create_draft — specify sender, recipients, subject, and content.
  2. Update the draft with update_draft if changes are needed.
  3. When ready, use send_email with the finalized content (drafts are not sent directly).
  4. Delete the draft with delete_draft after sending or if no longer needed.

Bulk task management

  • After creating a task with create_task, monitor progress with get_task_detail.
  • Use pause_task to temporarily halt a running campaign (e.g., if issues are found).
  • Use resume_task to continue a paused campaign.
  • Use delete_task to permanently remove a task.

Gmail/Outlook specific

  • When calling get_email_detail, delete_email, get_thread_messages for Gmail/Outlook accounts, always pass the email parameter.
  • The system auto-routes to the correct provider API based on the email address.

Key constraints

  • Cursor pagination: all list endpoints use cursor + size — pass next_cursor from previous response.
  • Default page size: 20 (max 100).
  • Email content: provide at least text_content or html_content — if only text is provided, HTML is auto-generated.
  • Attachments require pre-uploaded S3 keys with s3key, filename, mime_type, size.
  • Bulk tasks auto-schedule sends across time to respect quotas and avoid spam.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Lessie Email؟

Send, manage, and automate emails across multiple providers (Gmail, Outlook, Official Email) via MCP. Use this skill whenever the user wants to send emails, check inbox, manage email threads, create bulk email campaigns, manage drafts, or check email accounts and quotas. Trigger this skill when the user mentions sending mail, checking inbox, email campaigns, drafts, follow-ups, read/unread status, or email automation. Requires MCP server configuration.

لماذا تستخدم Lessie Email على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Lessie Email عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Lessie Email في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/LessieAI/lessie-skill/tree/main/lessie-email. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Lessie Email؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Lessie Email؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Lessie Email معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Lessie Email مجانية؟

نشرها LessieAI على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇