Skip to content
Skillpedia
Email & messaging25k · #10100

nocobase-app-plugin-mail

What it does

This skill integrates the NocoBase Mail plugin into an app. It covers connecting mail accounts, adding mail screens, sending mail from business code, and diagnosing sync problems. It is for developers adding email to a business app.

When to use it

  • ✓When you want users to connect Gmail, Microsoft 365, or IMAP mail accounts to a NocoBase app.
  • ✓When business code needs to send an email from the app.
  • ✓When mail is not syncing or delivering, and you need a diagnosis.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-mail/skills/nocobase-app-plugin-mail/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you connect a Gmail account to my NocoBase app so the sales team can read and send mail from the customer page?”

5 new skills a week. 1 minute to read.

How it works

The AI follows a checklist. It confirms the inputs, sets up the mail provider, adds the mail screens, and checks the sending path. It asks for your approval before authorizing any external mailbox.

Technical content (original SKILL.md)

Original text by the author, straight from 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

FAQ

Does it connect my mailbox automatically?

No. The skill requires your approval before authorizing an external mailbox.

Can tests prove that mail is delivered?

No. Mocked checks do not prove live provider delivery, so the skill says to verify separately.

Does it change the mail plugin's code?

No. It uses the plugin's public interfaces.

Details

Original description by the author

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

Popularity

GitHub stars
25k
Ranking position
#10100
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills