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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“営業チームが顧客ページからメールを読んだり送ったりできるよう、私のNocoBaseアプリにGmailアカウントを接続してください。”
毎週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
- Input Contract
- Mandatory Clarification Gate
- Workflow
- Reference Loading Map
- Safety Gate
- Rollback Guidance
- Verification Checklist
- References
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
- Inspect the installed package version, public exports and types, application
client/plugins.ts,server/plugins.ts, and relevant configuration before editing. - Select the smallest matching reference from the loading map. Read additional references only when the task crosses their boundary.
- 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.
- Implement through public components, service tokens, and HTTP APIs. Resolve
mailServiceTokenormailClientTokeninstead of constructing internal stores or runtimes. - 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.
- Validate the result with the checklist below and the relevant reference. Separate static checks, mocked provider checks, and live provider results.
- For every write, read the changed configuration, generated file, API response, or returned operation status immediately and compare it with the requested state.
- 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
コメント
- …
このリポジトリの他のスキル
nocobase-app-development
25kエージェントが、NocoBase 3の完全なビジネスアプリケーションのために、ページ、ルーティング、データ、権限、テストを作れるよう支援します。
shadcn
25kエージェントが、公式のドキュメントとレジストリを使い、Webプロジェクトの shadcn/uiコンポーネントを見つけ、追加し、修正し、スタイルを整えられるよう支援します。
nocobase-app-plugin-development
25kエージェントが、既存のNocoBase 3アプリの中で、サーバー、クライアント、データベース、登録の部分を含むプラグインを作成し、保守できるよう支援します。
nocobase-app-upgrade
25kエージェントが、NocoBaseのアプリを新しいテンプレートのリリースにアップグレードし、テンプレートの変更を取り込みつつ、あなた自身の作業を保てるよう支援します。
似ているスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
configure-channel
394kTelegramなどのチャットアプリをOpenClawに接続し、ボットトークンを安全に保存して、メッセージが流れることを確認するようエージェントに教えます。
discord
394kOpenClawを通じてDiscordのメッセージを読み、送信し、編集し、リアクションするようエージェントを支援します。変更の前に正確なメッセージを確認します。