[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74BCXDC2B6J33BV9FF3N6H4":3,"skill-same:01M74BCXDC2B6J33BV9FF3N6H4":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M74BCXDC2B6J33BV9FF3N6H4","user-notifications",null,"Notify your app's users from your canister, on their devices and even while the app is closed. Internet Identity delivers each notification (as web push), so there is no push service, no VAPID keys and no device tokens in the app: the canister addresses a user and II reaches their browsers. Covers asking the user's consent in the frontend (requestNotificationConsent, getNotificationConsentStatus, revokeNotificationConsent, needing @icp-sdk\u002Fauth 11.1.0), the \u002F.well-known\u002Fii-notification-senders document, and sending with the identity-notifications library from Motoko or Rust. Use when an app must tell a user something while they are not looking at it, when adding notifications, web push or a notifications toggle, or when the user consented and nothing arrives. Assumes sign-in already works and the app's primary origin is settled: load user-sign-in first. Do NOT use for in-app notification UI or email, or for reaching anyone who is not a signed-in user of this app.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-user-notifications\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-user-notifications\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: user-notifications\ndescription: \"Notify your app's users from your canister, on their devices and even while the app is closed. Internet Identity delivers each notification (as web push), so there is no push service, no VAPID keys and no device tokens in the app: the canister addresses a user and II reaches their browsers. Covers asking the user's consent in the frontend (requestNotificationConsent, getNotificationConsentStatus, revokeNotificationConsent, needing @icp-sdk\u002Fauth 11.1.0), the \u002F.well-known\u002Fii-notification-senders document, and sending with the identity-notifications library from Motoko or Rust. Use when an app must tell a user something while they are not looking at it, when adding notifications, web push or a notifications toggle, or when the user consented and nothing arrives. Assumes sign-in already works and the app's primary origin is settled: load user-sign-in first. Do NOT use for in-app notification UI or email, or for reaching anyone who is not a signed-in user of this app.\"\nlicense: Apache-2.0\ncompatibility: \"@icp-sdk\u002Fauth >= 11.1.0, moc >= 2.0.0\"\nmetadata:\n  title: User Notifications\n  category: Integration\n---\n\n# User Notifications\n\n## Prerequisite\n\nLoad the `user-sign-in` skill first. The sender list below is served from the app's **primary origin**, which that skill elects.\n\n## How it works\n\nYour canister can notify your app's users, on their devices and while the app is closed. The canister addresses a user; Internet Identity holds that user's devices and delivers to them, so there is no push service, no VAPID keys, and no device tokens in the app.\n\nThree pieces, all required. Missing any one of them produces silence rather than an error at the point you left out.\n\n1. The frontend asks the user's consent, through II.\n2. The origin names the sending canister at `\u002F.well-known\u002Fii-notification-senders`.\n3. The canister sends, through the `identity-notifications` library.\n\n## 1. Consent, in the frontend\n\nNeeds `@icp-sdk\u002Fauth` 11.1.0 or later. Earlier 11.x has none of these methods.\n\n```javascript\nconst { granted } = await authClient.requestNotificationConsent();\nconst { granted } = await authClient.getNotificationConsentStatus();\nawait authClient.revokeNotificationConsent();\n```\n\n| Call | Opens II | Needs a session | Answers |\n|---|---|---|---|\n| `requestNotificationConsent()` | Yes | No; signs the user in if needed | `{ granted }`, what II recorded |\n| `getNotificationConsentStatus()` | No | Yes | `{ granted }`, uncertified query |\n| `revokeNotificationConsent()` | No | Yes | nothing; idempotent |\n\n- All three answer a **record**, not a bare boolean. `const granted = await ...requestNotificationConsent()` type-checks and is always truthy.\n- `granted: false` is the user's refusal, not a failure. Render it; do not throw.\n- Asking a second time when consent is already held returns `{ granted: true }` without showing a screen, because the answer is read back from the canister rather than reported from the ceremony.\n- `getNotificationConsentStatus` is a query, so the answer is uncertified. Paint a toggle from it; do not gate anything on it.\n- Ask from a click. The ceremony renders, so it cannot run under `prompt: 'none'`.\n- Consent is recorded against the identity, and the browser the user answered on is the one registered for delivery. Someone who wants your notifications on a second machine answers again there. The status call reports the consent alone and does not speak for the device in the user's hand.\n\n### Asking with the sign-in\n\nThe sign-in button is already a click, so that is the cheapest place to ask. Run both from it and the user signs in and answers in one visit to II rather than two:\n\n```javascript\nconst [identity, { granted }] = await Promise.all([\n  authClient.signIn(),\n  authClient.requestNotificationConsent(),\n]);\n```\n\nAsking at any later moment needs a control of its own.\n\n### A toggle, later\n\nTo show the user whether your app may notify them, and let them turn it off:\n\n```javascript\nconst { granted } = await authClient.getNotificationConsentStatus();\nawait authClient.revokeNotificationConsent();\n```\n\nRevoking is scoped to your app. It drops your origin's consent and whatever you still had queued for that user, and leaves their device subscriptions and every other app's consent alone. So dropping someone from your own recipient table revokes nothing, and revoking is not an unsubscribe.\n\nErrors worth branching on:\n\n| Error | Means | Remedy |\n|---|---|---|\n| `InteractionRequiredError` | Client built with `prompt: 'none'` | Ask again from a click |\n| `NotificationsUnsupportedError` | That II deployment does not notify at all | Hide the control; nothing to retry |\n| `SessionGoneError` | No live session (status and revoke only) | Sign in again |\n\n## 2. The senders document\n\nServe from the **primary origin**, the same origin as `\u002F.well-known\u002Fii-app-metadata`:\n\n```json\n{ \"senders\": [\"ryjl3-tyaaa-aaaaa-aaaba-cai\"] }\n```\n\n- At most **10** canisters, shared by every app derived from that origin. A longer list is rejected whole, never truncated.\n- II caches what it reads, so a canister added is not accepted instantly and one removed keeps working for a while afterwards.\n- Without this document naming the sending canister, every send is refused. This is the most common cause of \"nothing arrives and nothing errors\".\n\n## 3. Sending\n\nLibrary: `identity-notifications`, same `send` in both languages, different wiring. Rust is on crates.io, Motoko on Mops (requires moc 2.0.0 or later).\n\n**Rust** needs `endpoints!()` plus three stable `MemoryId`s handed to `init` (see \"Upgrades\"). **Motoko** needs neither: the mixin brings the endpoints and keeps its own state. Do not tell a Motoko user to pass memory ids; there are none.\n\n```toml\nidentity-notifications = \"0.1\"\n```\n\n```rust\nuse identity_notifications as notifications;\nuse identity_notifications::{Memories, Notification};\n\nnotifications::endpoints!();          \u002F\u002F the endpoints II calls back on\n\n#[init]      fn init()         { init_notifications(); }\n#[post_upgrade] fn post_upgrade() { init_notifications(); }\n\nfn init_notifications() {\n    MEMORIES.with_borrow(|manager| {\n        notifications::init(manager, Memories {\n            entries: MemoryId::new(10),\n            content: MemoryId::new(11),\n            metrics: MemoryId::new(12),\n        })\n    });\n}\n\nnotifications::send(to, Notification {\n    title: \"New message\".into(),\n    body: text,\n    url: Some(format!(\"https:\u002F\u002Fchat.example.com\u002Fchats\u002F{from}\")),\n    key: Some(format!(\"chat-{from}\")),\n    ..Default::default()\n});\n```\n\n```motoko\nimport Notifications \"mo:identity-notifications\";\n\nactor {\n  include Notifications\u003Csystem>();\n\n  notifications.send\u003Csystem>(to, {\n    title = \"New message\";\n    body = text;\n    url = ?(\"https:\u002F\u002Fchat.example.com\u002Fchats\u002F\" # caller.toText());\n    key = ?(\"chat-\" # caller.toText());\n    urgency = null;\n    expiresAt = null;\n    funnel = null;\n  })\n}\n```\n\nConfiguration is environment variables, not init arguments:\n\n```yaml\ncanisters:\n  - name: backend\n    settings:\n      environment_variables:\n        notification_sender:      \"rdmx6-jaaaa-aaaaa-aaadq-cai\"   # the II canister\n        notification_origin:      \"https:\u002F\u002Fyour-app.icp0.io\"\n        notification_capacity_mb: \"1024\"   # optional\n```\n\n## The optional fields\n\n| Field | Default | What it is for |\n|---|---|---|\n| `url` | none | Where acting on it takes the user. Must be the sending origin or one of its alternative origins; II refuses anything else. |\n| `key` | none | What the notification is *about*. A second send under the same key **updates** that notification instead of adding another, and it is what `dismiss(recipient, key)` names. |\n| `urgency` | `Normal` | `VeryLow`, `Low`, `Normal`, `High`. Schedules this notification against the origin's other traffic. **Not a rendering hint**, and honoured on channels with no tray. |\n| `expiresAt` \u002F `expires_at` | a short window | How long this is still worth sending. Set past the default for anything that matters later; short for anything worthless once the moment passes. |\n| `funnel` | none | Which funnel to count it in. A label per notification is an unbounded set of rows: use one per campaign or kind, not per send. |\n\n## Choosing `urgency` and `expiresAt`\n\nDifferent questions: `urgency` is where this sits against the origin's **other traffic**, `expiresAt` is whether it is still worth showing when it could be. Pick both together.\n\n**Unset is a short default**, so anything still worth delivering later needs an explicit value. It is not a tray lifetime: a delivered notification stays until the user clears it. `expiresAt` bounds how long the notification is still worth sending at all, and the library does not cap a longer value.\n\n| Sending | `urgency` | `expiresAt` | Why |\n|---|---|---|---|\n| Security alert, new sign-in | `High` | days | Ahead of other traffic, and worth seeing late, so set well past the short default. |\n| Direct message | `Normal` | unset | Worth sending now, noise much later. |\n| \"Your driver is outside\" | `High` | minutes | Ahead of everything, worthless once passed. |\n| Campaign to the whole user base | `VeryLow` | days | None is urgent and a large send must not push real notifications behind it, but each should still land. Give the campaign a `funnel` and its conversion rate is readable on its own. |\n| Digest, nudge, streak reminder | `Low` | hours | Yields to anything else, and yesterday's is pointless. |\n\nA short expiry does not make something urgent, and `High` does not make it last longer. `High` on everything removes the ordering it was reached for.\n\n## `key`\n\nThe id is `hash(recipient, key)`, so a key reaches only that recipient's own entry: it cannot touch another user's notification or another app's. What it can do is collide with this app's other pending notification to the same recipient, and the later send wins. Derive `key` from the thing the notification is about, such as the conversation, rather than from whatever a caller passed in.\n\n`metrics()` reports the pipeline hour by hour, and is the only place a notification's fate shows up, since `send` returns nothing.\n\n## What the app does and does not own\n\n- **The app addresses a user, nothing finer.** II holds a queue per browser that identity has registered, so one `send` can surface on a laptop and a phone at once. Where and how a notification reaches them is II's and the user's to manage, and an app that reasons about it is coupling itself to something it cannot see.\n- **II composes what is shown.** The user reads your app's name, then the title your canister sent. The name comes from `\u002F.well-known\u002Fii-app-metadata`, and falls back to your origin's hostname where you publish none, so do not put your app's name in `title` yourself: it arrives twice. Publishing that document is what brands the notifications as well as the sign-in screen: see \"App metadata on the sign-in screen\" in the `user-sign-in` skill.\n- **Sending cannot fail the call it is made from.** `send` neither traps nor awaits, so a recipient who cannot be notified costs the endpoint nothing and returns nothing to branch on. What became of a notification is in `metrics()`.\n- **iOS needs II added to the Home Screen** for web push. The consent ceremony walks the user through it; the app does nothing.\n\n## Upgrades\n\n**Motoko: nothing to do.** There is no post-upgrade call to make and no ids to pass back in.\n\n**Rust: call `init` again from `post_upgrade`.** No timer survives a canister upgrade, so without that second call anything already queued stays queued and is never sent. It is not optional and it is not a no-op on a canister that was running a moment ago.\n\nPass the same `MemoryId`s every time. Renumbering them on a running canister points the library at empty memories instead of the ones holding the queue, and whatever was waiting is gone.\n\n## Mistakes That Break Your Build\n\n1. **Leaving the senders document out.** Without `\u002F.well-known\u002Fii-notification-senders` naming the sending canister, every send is refused and nothing anywhere reports it. See \"2. The senders document\".\n2. **Putting your app's name in `title`.** II puts it in front of the title you sent, so the user reads it twice. See \"What the app does and does not own\".\n3. **Deriving `key` from whatever a caller passed in.** Two of your own sends under one key collide in that recipient's tray and the later one wins. See \"`key`\".\n4. **Skipping `init` in `post_upgrade`, in Rust.** Anything queued stays queued and is never sent. See \"Upgrades\".\n","# User Notifications\n\n## Prerequisite\n\nLoad the `user-sign-in` skill first. The sender list below is served from the app's **primary origin**, which that skill elects.\n\n## How it works\n\nYour canister can notify your app's users, on their devices and while the app is closed. The canister addresses a user; Internet Identity holds that user's devices and delivers to them, so there is no push service, no VAPID keys, and no device tokens in the app.\n\nThree pieces, all required. Missing any one of them produces silence rather than an error at the point you left out.\n\n1. The frontend asks the user's consent, through II.\n2. The origin names the sending canister at `\u002F.well-known\u002Fii-notification-senders`.\n3. The canister sends, through the `identity-notifications` library.\n\n## 1. Consent, in the frontend\n\nNeeds `@icp-sdk\u002Fauth` 11.1.0 or later. Earlier 11.x has none of these methods.\n\n```javascript\nconst { granted } = await authClient.requestNotificationConsent();\nconst { granted } = await authClient.getNotificationConsentStatus();\nawait authClient.revokeNotificationConsent();\n```\n\n| Call | Opens II | Needs a session | Answers |\n|---|---|---|---|\n| `requestNotificationConsent()` | Yes | No; signs the user in if needed | `{ granted }`, what II recorded |\n| `getNotificationConsentStatus()` | No | Yes | `{ granted }`, uncertified query |\n| `revokeNotificationConsent()` | No | Yes | nothing; idempotent |\n\n- All three answer a **record**, not a bare boolean. `const granted = await ...requestNotificationConsent()` type-checks and is always truthy.\n- `granted: false` is the user's refusal, not a failure. Render it; do not throw.\n- Asking a second time when consent is already held returns `{ granted: true }` without showing a screen, because the answer is read back from the canister rather than reported from the ceremony.\n- `getNotificationConsentStatus` is a query, so the answer is uncertified. Paint a toggle from it; do not gate anything on it.\n- Ask from a click. The ceremony renders, so it cannot run under `prompt: 'none'`.\n- Consent is recorded against the identity, and the browser the user answered on is the one registered for delivery. Someone who wants your notifications on a second machine answers again there. The status call reports the consent alone and does not speak for the device in the user's hand.\n\n### Asking with the sign-in\n\nThe sign-in button is already a click, so that is the cheapest place to ask. Run both from it and the user signs in and answers in one visit to II rather than two:\n\n```javascript\nconst [identity, { granted }] = await Promise.all([\n  authClient.signIn(),\n  authClient.requestNotificationConsent(),\n]);\n```\n\nAsking at any later moment needs a control of its own.\n\n### A toggle, later\n\nTo show the user whether your app may notify them, and let them turn it off:\n\n```javascript\nconst { granted } = await authClient.getNotificationConsentStatus();\nawait authClient.revokeNotificationConsent();\n```\n\nRevoking is scoped to your app. It drops your origin's consent and whatever you still had queued for that user, and leaves their device subscriptions and every other app's consent alone. So dropping someone from your own recipient table revokes nothing, and revoking is not an unsubscribe.\n\nErrors worth branching on:\n\n| Error | Means | Remedy |\n|---|---|---|\n| `InteractionRequiredError` | Client built with `prompt: 'none'` | Ask again from a click |\n| `NotificationsUnsupportedError` | That II deployment does not notify at all | Hide the control; nothing to retry |\n| `SessionGoneError` | No live session (status and revoke only) | Sign in again |\n\n## 2. The senders document\n\nServe from the **primary origin**, the same origin as `\u002F.well-known\u002Fii-app-metadata`:\n\n```json\n{ \"senders\": [\"ryjl3-tyaaa-aaaaa-aaaba-cai\"] }\n```\n\n- At most **10** canisters, shared by every app derived from that origin. A longer list is rejected whole, never truncated.\n- II caches what it reads, so a canister added is not accepted instantly and one removed keeps working for a while afterwards.\n- Without this document naming the sending canister, every send is refused. This is the most common cause of \"nothing arrives and nothing errors\".\n\n## 3. Sending\n\nLibrary: `identity-notifications`, same `send` in both languages, different wiring. Rust is on crates.io, Motoko on Mops (requires moc 2.0.0 or later).\n\n**Rust** needs `endpoints!()` plus three stable `MemoryId`s handed to `init` (see \"Upgrades\"). **Motoko** needs neither: the mixin brings the endpoints and keeps its own state. Do not tell a Motoko user to pass memory ids; there are none.\n\n```toml\nidentity-notifications = \"0.1\"\n```\n\n```rust\nuse identity_notifications as notifications;\nuse identity_notifications::{Memories, Notification};\n\nnotifications::endpoints!();          \u002F\u002F the endpoints II calls back on\n\n#[init]      fn init()         { init_notifications(); }\n#[post_upgrade] fn post_upgrade() { init_notifications(); }\n\nfn init_notifications() {\n    MEMORIES.with_borrow(|manager| {\n        notifications::init(manager, Memories {\n            entries: MemoryId::new(10),\n            content: MemoryId::new(11),\n            metrics: MemoryId::new(12),\n        })\n    });\n}\n\nnotifications::send(to, Notification {\n    title: \"New message\".into(),\n    body: text,\n    url: Some(format!(\"https:\u002F\u002Fchat.example.com\u002Fchats\u002F{from}\")),\n    key: Some(format!(\"chat-{from}\")),\n    ..Default::default()\n});\n```\n\n```motoko\nimport Notifications \"mo:identity-notifications\";\n\nactor {\n  include Notifications\u003Csystem>();\n\n  notifications.send\u003Csystem>(to, {\n    title = \"New message\";\n    body = text;\n    url = ?(\"https:\u002F\u002Fchat.example.com\u002Fchats\u002F\" # caller.toText());\n    key = ?(\"chat-\" # caller.toText());\n    urgency = null;\n    expiresAt = null;\n    funnel = null;\n  })\n}\n```\n\nConfiguration is environment variables, not init arguments:\n\n```yaml\ncanisters:\n  - name: backend\n    settings:\n      environment_variables:\n        notification_sender:      \"rdmx6-jaaaa-aaaaa-aaadq-cai\"   # the II canister\n        notification_origin:      \"https:\u002F\u002Fyour-app.icp0.io\"\n        notification_capacity_mb: \"1024\"   # optional\n```\n\n## The optional fields\n\n| Field | Default | What it is for |\n|---|---|---|\n| `url` | none | Where acting on it takes the user. Must be the sending origin or one of its alternative origins; II refuses anything else. |\n| `key` | none | What the notification is *about*. A second send under the same key **updates** that notification instead of adding another, and it is what `dismiss(recipient, key)` names. |\n| `urgency` | `Normal` | `VeryLow`, `Low`, `Normal`, `High`. Schedules this notification against the origin's other traffic. **Not a rendering hint**, and honoured on channels with no tray. |\n| `expiresAt` \u002F `expires_at` | a short window | How long this is still worth sending. Set past the default for anything that matters later; short for anything worthless once the moment passes. |\n| `funnel` | none | Which funnel to count it in. A label per notification is an unbounded set of rows: use one per campaign or kind, not per send. |\n\n## Choosing `urgency` and `expiresAt`\n\nDifferent questions: `urgency` is where this sits against the origin's **other traffic**, `expiresAt` is whether it is still worth showing when it could be. Pick both together.\n\n**Unset is a short default**, so anything still worth delivering later needs an explicit value. It is not a tray lifetime: a delivered notification stays until the user clears it. `expiresAt` bounds how long the notification is still worth sending at all, and the library does not cap a longer value.\n\n| Sending | `urgency` | `expiresAt` | Why |\n|---|---|---|---|\n| Security alert, new sign-in | `High` | days | Ahead of other traffic, and worth seeing late, so set well past the short default. |\n| Direct message | `Normal` | unset | Worth sending now, noise much later. |\n| \"Your driver is outside\" | `High` | minutes | Ahead of everything, worthless once passed. |\n| Campaign to the whole user base | `VeryLow` | days | None is urgent and a large send must not push real notifications behind it, but each should still land. Give the campaign a `funnel` and its conversion rate is readable on its own. |\n| Digest, nudge, streak reminder | `Low` | hours | Yields to anything else, and yesterday's is pointless. |\n\nA short expiry does not make something urgent, and `High` does not make it last longer. `High` on everything removes the ordering it was reached for.\n\n## `key`\n\nThe id is `hash(recipient, key)`, so a key reaches only that recipient's own entry: it cannot touch another user's notification or another app's. What it can do is collide with this app's other pending notification to the same recipient, and the later send wins. Derive `key` from the thing the notification is about, such as the conversation, rather than from whatever a caller passed in.\n\n`metrics()` reports the pipeline hour by hour, and is the only place a notification's fate shows up, since `send` returns nothing.\n\n## What the app does and does not own\n\n- **The app addresses a user, nothing finer.** II holds a queue per browser that identity has registered, so one `send` can surface on a laptop and a phone at once. Where and how a notification reaches them is II's and the user's to manage, and an app that reasons about it is coupling itself to something it cannot see.\n- **II composes what is shown.** The user reads your app's name, then the title your canister sent. The name comes from `\u002F.well-known\u002Fii-app-metadata`, and falls back to your origin's hostname where you publish none, so do not put your app's name in `title` yourself: it arrives twice. Publishing that document is what brands the notifications as well as the sign-in screen: see \"App metadata on the sign-in screen\" in the `user-sign-in` skill.\n- **Sending cannot fail the call it is made from.** `send` neither traps nor awaits, so a recipient who cannot be notified costs the endpoint nothing and returns nothing to branch on. What became of a notification is in `metrics()`.\n- **iOS needs II added to the Home Screen** for web push. The consent ceremony walks the user through it; the app does nothing.\n\n## Upgrades\n\n**Motoko: nothing to do.** There is no post-upgrade call to make and no ids to pass back in.\n\n**Rust: call `init` again from `post_upgrade`.** No timer survives a canister upgrade, so without that second call anything already queued stays queued and is never sent. It is not optional and it is not a no-op on a canister that was running a moment ago.\n\nPass the same `MemoryId`s every time. Renumbering them on a running canister points the library at empty memories instead of the ones holding the queue, and whatever was waiting is gone.\n\n## Mistakes That Break Your Build\n\n1. **Leaving the senders document out.** Without `\u002F.well-known\u002Fii-notification-senders` naming the sending canister, every send is refused and nothing anywhere reports it. See \"2. The senders document\".\n2. **Putting your app's name in `title`.** II puts it in front of the title you sent, so the user reads it twice. See \"What the app does and does not own\".\n3. **Deriving `key` from whatever a caller passed in.** Two of your own sends under one key collide in that recipient's tray and the later one wins. See \"`key`\".\n4. **Skipping `init` in `post_upgrade`, in Rust.** Anything queued stays queued and is never sent. See \"Upgrades\".\n",{"name":5,"license":15,"metadata":25,"description":7,"compatibility":28},{"title":26,"category":27},"User Notifications","Integration","@icp-sdk\u002Fauth >= 11.1.0, moc >= 2.0.0","main","e981a10d43164675beb283a1ad10bc49ade686f1","skills\u002Fchains\u002Fdfinity-official-user-notifications",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill user-notifications",{"tool":44,"command":45},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill user-notifications",{"tool":47,"command":48},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill user-notifications","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-user-notifications\u002FSKILL.md",true,[52,56,62],{"path":53,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":16},"LICENSE","许可证",10770,{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"SOURCE.md","REFERENCE","参考文档",336,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-user-notifications\u002FSOURCE.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-user-notifications\u002FTRUST.auto.yaml",[67,77,85,93,101,109],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":76},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":76},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":76},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":76},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":76},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]