nocobase-app-plugin-notification
できること
NocoBaseの通知プラグインを設定し、組み込みます。チャンネル経由でメッセージを送り、配信の記録を確認し、送信の失敗を調べることを扱います。業務アプリからアラートを送る開発者向けです。
使う場面
- ✓業務のコードが、設定済みのチャンネルを通じて通知を送る必要があるとき。
- ✓通知が届かず、原因を調べる必要があるとき。
- ✓通知を送るためのカスタムの送信方法を追加したいとき。
スキルのリンク
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification/skills/nocobase-app-plugin-notification/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“申請が提出されたとき、マネージャーにメールで通知を送るよう、私のNocoBaseアプリを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは名前付きのチャンネルを設定し、メッセージを組み立て、通知サービスを通じて送信します。通知と配信の履歴を残すので、失敗を追跡できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.
よくある質問
送信が受け付けられたことは、相手に届いたことを意味しますか?
必ずしもそうではありません。このスキルは、受け付けられた送信と最終的な配信を区別しています。
独自の送信方法を追加できますか?
はい。このスキルは、カスタムの送信方法のためのチャンネル種類の拡張を扱います。
送信の記録は残りますか?
はい。通知、配信、試行の履歴を保持するので、失敗を追跡できます。
詳細
作者による元の説明
Use when agents need to integrate, configure, send, inspect, or diagnose NocoBase notifications based on app-plugin-notification.
repo: nocobase/nocobase
人気
- GitHubのスター
- 25k
- ランキング
- #10103
- ライセンス
- —
- 更新日
- 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のアプリを新しいテンプレートのリリースにアップグレードし、テンプレートの変更を取り込みつつ、あなた自身の作業を保てるよう支援します。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。