跳到正文
Skillpedia
邮件与消息25k · #10100

nocobase-app-plugin-mail

它能做什么

这项技能将 NocoBase Mail 插件集成到应用中。内容包括连接邮箱账户、添加邮件页面、从业务代码发送邮件,以及诊断同步问题。适合为业务应用添加邮件功能的开发者。

适用场景

  • ✓当你希望用户把 Gmail、Microsoft 365 或 IMAP 邮箱连接到 NocoBase 应用时。
  • ✓当业务代码需要从应用发送邮件时。
  • ✓当邮件无法同步或投递,需要诊断时。

技能链接

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-mail/skills/nocobase-app-plugin-mail/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-mail/skills/nocobase-app-plugin-mail/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把 Gmail 账户连接到 NocoBase 应用,让销售团队可以在客户页面上阅读和发送邮件。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会遵循一份检查清单:确认输入信息,设置邮件服务商,添加邮件页面,并检查发送路径。在授权任何外部邮箱之前,它会先征得你的同意。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Goal

Provide a safe, contract-first workflow for integrating the installed @nocobase/app-plugin-mail package into a NocoBase 3 application and validating the requested behavior.

Contents

Scope

This Skill covers application composition, provider configuration, account connection, production mail UI, business-code sending, drafts, attachments, synchronization, and delivery diagnostics. Use the installed package's public Client, Server, and HTTP contracts; versions may differ from the references.

Non-Goals

Do not change the Mail plugin implementation from an application integration task, access private stores or database tables directly, configure notification delivery, authorize an external mailbox without the user's approval, or claim that mocked checks prove live provider delivery.

Input Contract

Input Required Default Validation
action yes none One of inspect, configure, integrate, send, or diagnose. Stop and ask when absent or outside the enum.
target yes none Application path, installed package path, route, provider, account, or failure identifier relevant to action. Stop and ask when absent.
provider no auto One of gmail, microsoft, imap-smtp, or auto; auto means infer only when the target identifies one provider.
scope no local One of local, authorized-test, or production; live mailbox mutations require explicit authorized-test or production scope.
validation no static One of static, mocked, or live; never imply live when credentials or an authorized environment are unavailable.

Mandatory Clarification Gate

Before any mutation, confirm that action, target, and the intended scope are present and valid. If a required value is missing, stop and ask rather than guessing. Clarification is bounded to max clarification rounds=2 and max questions per round=3.

When the user says “you decide”, use provider=auto, scope=local, and validation=static; do not connect an account, send mail, mutate a mailbox, or change production configuration under those defaults. For an ambiguous provider, inspect the installed configuration first, then ask if more than one provider remains possible.

Workflow

  1. Inspect the installed package version, public exports and types, application client/plugins.ts, server/plugins.ts, and relevant configuration before editing.
  2. Select the smallest matching reference from the loading map. Read additional references only when the task crosses their boundary.
  3. Check ownership and permissions. The application owns registration, provider configuration, role grants, business associations, and page composition; Mail owns accounts, authorization, submissions, sync runs, cursors, and background job and outbox orchestration.
  4. Implement through public components, service tokens, and HTTP APIs. Resolve mailServiceToken or mailClientToken instead of constructing internal stores or runtimes.
  5. Before live account or mailbox operations, restate the target provider, account or mailbox, operation, and authorized scope. Proceed only when the input contract and gate are satisfied.
  6. Validate the result with the checklist below and the relevant reference. Separate static checks, mocked provider checks, and live provider results.
  7. For every write, read the changed configuration, generated file, API response, or returned operation status immediately and compare it with the requested state.
  8. Report unavailable external validation, uncertain provider acceptance, and any remaining follow-up instead of presenting them as successful delivery.

Reference Loading Map

| Task

常见问题

它会自动连接我的邮箱吗?

不会。技能要求你先同意,才会授权外部邮箱。

测试能证明邮件已送达吗?

不能。模拟检查无法证明服务商的实际投递,因此技能要求另行验证。

它会修改邮件插件的代码吗?

不会。它使用插件的公开接口。

详情

作者的原始描述

Use when integrating the NocoBase 3 Mail plugin into an application: configure Gmail, Microsoft 365, or IMAP/SMTP accounts, embed mail UI, send from business code, or diagnose synchronization and delivery.

repo: nocobase/nocobase

热度

GitHub 星标
25k
排名
#10100
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能