nocobase-app-plugin-notification
Skill này làm gì
Skill này tích hợp và cấu hình plugin thông báo của NocoBase. Skill bao gồm gửi tin qua các kênh, kiểm tra bản ghi giao nhận và chẩn đoán các lần gửi thất bại. Skill dành cho lập trình viên gửi cảnh báo từ ứng dụng nghiệp vụ.
Khi nào nên dùng
- ✓Khi mã nghiệp vụ cần gửi một thông báo qua kênh đã cấu hình.
- ✓Khi một thông báo không được giao và bạn cần tìm nguyên nhân.
- ✓Khi bạn muốn thêm một phương thức gửi tùy chỉnh cho thông báo.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification/skills/nocobase-app-plugin-notification/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ể làm cho ứng dụng NocoBase của tôi gửi email thông báo cho quản lý khi một yêu cầu được nộp không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI cấu hình một kênh có tên, tạo nội dung tin nhắn và gửi qua dịch vụ thông báo. Lịch sử thông báo và giao nhận được giữ lại để có thể truy vết các lỗi.
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.
Notification development
Inspect the application's registered plugins and effective notification configuration before changing integration code. Missing required input blocks an actual send; use the recipient and Channel scope already authorized in the conversation and ask only for missing information.
- Read Notification concepts for package ownership and delivery status semantics.
- For plugin registration, configuration, migrations, or log APIs, read Integration and configuration. Configure a Channel name mapped to one flat configuration with
type(providerremains a compatibility alias). - For sending or typed consumers, read Sending notifications. Resolve
notificationServiceToken; construct complete messages keyed by Channel name and use native recipient addresses. Validate the intended external effect before sending. - For failures and retries, read Delivery diagnostics. Preserve Notification, Delivery, Attempt, and retry-audit history; distinguish accepted submission from final delivery.
- For custom transports, read Channel type extensions. Register classes implementing
ChannelInstancewithregisterChannelTypethroughnotificationExtensionRegistryTokenand retain the queue/lease/retry lifecycle. Use deprecatedregisterChannel()/registerProvider()only when maintaining legacy compatibility code or its tests; official implementations and examples use the class API. - Verify changed packages and consumers with lint, typecheck, tests, and build. Cover atomic validation, independent delivery, recipient rules, and retries bound to original identities.
For delivery diagnostics, exercise the normal business notification flow or use a server-side script resolving notificationServiceToken with complete message input. Use an authorized recipient and inspect the returned notification ID in the logs. Credentials stay on the server.
High-impact actions and rollback
For bulk sends and live configuration changes, establish the intended recipients, Channels, and external effect from the user's authorization. An unknown result may already have reached its recipient; confirm the external effect before creating a new logical send.
Rollback source/configuration through the application's normal deployment process. A submitted notification cannot be recalled by this plugin. Preserve its history and report the observed status. Keep message bodies, recipient snapshots, credentials, and Webhook URLs out of logs and reports.
Sensitive messages
Use notificationService.sendTransient({ channel, message }) for a message containing a one-time credential. It validates and prepares the message with the configured channel and submits it once with the provider timeout, without creating notification rows, jobs, retry state, or status events. The result is one provider outcome per recipient; raw provider diagnostics are replaced with generic errors while retaining an allowlisted category and submission status for credential-free troubleshooting. There is no durable idempotency or automatic retry, and a timeout is submission_unknown. The caller owns safe recovery, rate limits, and any credential-free audit. The external mail provider and recipient still receive the message.
Câu hỏi thường gặp
Một lần gửi được chấp nhận có nghĩa là người nhận đã nhận được không?
Chưa chắc. Skill tách biệt việc yêu cầu gửi được chấp nhận với việc giao nhận cuối cùng.
Tôi có thể thêm phương thức gửi riêng không?
Có. Skill có đề cập đến việc mở rộng loại kênh cho các phương thức gửi tùy chỉnh.
Nó có lưu lại lịch sử gửi không?
Có. Nó lưu lịch sử thông báo, giao nhận và các lần thử gửi.
Chi tiết
Mô tả gốc của tác giả
Use when agents need to integrate, configure, send, inspect, or diagnose NocoBase notifications based on app-plugin-notification.
repo: nocobase/nocobase
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10103
- 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ự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.