nocobase-app-plugin-mail
Skill này làm gì
Skill này tích hợp plugin Mail của NocoBase vào ứng dụng. Skill bao gồm kết nối tài khoản thư, thêm màn hình thư, gửi thư từ mã nghiệp vụ và chẩn đoán lỗi đồng bộ. Skill dành cho lập trình viên thêm email vào ứng dụng nghiệp vụ.
Khi nào nên dùng
- ✓Khi bạn muốn người dùng kết nối tài khoản Gmail, Microsoft 365 hoặc IMAP vào ứng dụng NocoBase.
- ✓Khi mã nghiệp vụ cần gửi một email từ ứng dụng.
- ✓Khi thư không đồng bộ hoặc không gửi được, và bạn cần chẩn đoán.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-mail/skills/nocobase-app-plugin-mail/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kết nối tài khoản Gmail vào ứng dụng NocoBase của tôi để đội bán hàng đọc và gửi thư từ trang khách hàng không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI làm theo một danh sách kiểm tra. Nó xác nhận đầu vào, thiết lập nhà cung cấp thư, thêm màn hình thư và kiểm tra luồng gửi. Nó hỏi ý kiến bạn trước khi cấp quyền cho bất kỳ hộp thư bên ngoài nào.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có tự kết nối hộp thư của tôi không?
Không. Skill yêu cầu bạn đồng ý trước khi cấp quyền cho hộp thư bên ngoài.
Các bài kiểm tra có chứng minh thư đã được gửi đi không?
Không. Kiểm tra mô phỏng không chứng minh nhà cung cấp đã gửi thật, nên skill yêu cầu xác minh riêng.
Nó có thay đổi mã của plugin thư không?
Không. Nó dùng các giao diện công khai của plugin.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10100
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
nocobase-app-development
25kGiúp agent của bạn xây dựng trang, tuyến, dữ liệu, quyền và kiểm thử cho một ứng dụng kinh doanh NocoBase 3 hoàn chỉnh.
shadcn
25kGiúp agent của bạn tìm, thêm, sửa và tạo kiểu cho các thành phần shadcn/ui trong dự án web, dùng tài liệu chính thức và registry của chúng.
nocobase-app-plugin-development
25kGiúp agent của bạn tạo và duy trì plugin NocoBase 3 trong một ứng dụng có sẵn, gồm phần server, client, cơ sở dữ liệu và đăng ký.
nocobase-app-upgrade
25kGiúp agent của bạn nâng cấp ứng dụng NocoBase lên bản mẫu mới hơn, mang các thay đổi của mẫu vào mà vẫn giữ công việc riêng của bạn.
Skill tương tự
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
configure-channel
394kHướng dẫn agent của bạn kết nối một ứng dụng chat như Telegram với OpenClaw, lưu token bot an toàn và kiểm tra tin nhắn có đi qua được không.
discord
394kGiúp agent của bạn đọc, gửi, sửa và thả biểu cảm cho tin nhắn Discord qua OpenClaw, và kiểm tra đúng tin nhắn trước khi thay đổi.