Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

push-notifications推送通知

Agent Skill

push-notifications 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

466

周安装

20

GitHub Stars

19

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:push-notifications(推送通知)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/push-notifications
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill push-notifications
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill push-notifications

简介

push-notifications 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于推送通知相关的资料搜索与内容筛选,可结合来源仓库和原始 README 进一步核验具体用法。
  • 通过 npx skills add 命令从 GitHub 仓库安装,支持主流 AI 宿主环境集成调用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Push Notifications

Overview

Web push notifications deliver timely messages to subscribers even when they are not on your site — for back-in-stock alerts, price drops, and cart reminders. Push requires explicit browser permission, making the opt-in prompt timing critical. For Shopify, WooCommerce, and BigCommerce, dedicated push notification apps (PushOwl, OneSignal) handle all the subscriber management, triggering logic, and delivery without custom service worker code.

When to Use This Skill

  • When adding back-in-stock notifications to replace static "notify me" email forms
  • When recovering abandoned carts via a browser push channel alongside email
  • When building a price-watch feature for wishlisted items
  • When email deliverability is poor and a supplemental channel is needed
  • When targeting mobile-first markets where push opt-in rates exceed email opt-in

Core Instructions

Step 1: Choose the right push notification platform

PlatformBest ForShopifyWooCommerceBigCommercePrice
PushOwlShopify-native, back-in-stock + abandonmentApp StoreFree tier; $19+/mo
OneSignalAll platforms, free tier, highly configurableVia JS tagPluginVia JS tagFree tier; $9+/mo
Klaviyo Web PushAlready using Klaviyo for emailApp StorePluginApp MarketplaceIncluded in Klaviyo
PushEngageWooCommerce + segmented campaignsPluginVia JS tagFree tier; $9+/mo

Shopify recommendation: Use PushOwl — it's the most integrated Shopify push app with built-in back-in-stock, cart abandonment, and shipping alerts.

WooCommerce recommendation: Use PushEngage or OneSignal — both have WordPress plugins and handle subscriber management automatically.

Step 2: Set up push notifications


Shopify with PushOwl

  1. Install PushOwl from the Shopify App Store
  2. Go to PushOwl → Settings → Opt-in Prompt and configure:

- Delay the prompt: set it to trigger after a customer views 2+ pages or adds an item to cart - Opt-in message: "Get notified when items are back in stock and for price drops"

  1. Go to PushOwl → Automations → Back in Stock and enable it — PushOwl automatically adds a "Notify Me" button to out-of-stock products and fires the push when inventory is replenished
  2. Go to PushOwl → Automations → Cart Abandonment and enable it:

- Set timing: 1 hour after abandonment, then 24 hours - Customize the notification message and the cart recovery URL

  1. Go to PushOwl → Campaigns to send broadcast push notifications for sales, new arrivals, or flash discounts

WooCommerce with PushEngage

  1. Install PushEngage from the WordPress plugin directory (free tier available)
  2. Go to PushEngage → Settings → Subscription Prompt and configure the opt-in dialog
  3. Enable automated campaigns:

- Go to PushEngage → Automation → Cart Abandonment and set the timing and message - Go to PushEngage → Automation → Back in Stock and enable it (requires WooCommerce stock event integration)

  1. For price drop alerts: go to PushEngage → Automation → Price Drop Alert and enable subscriber opt-in per product
  2. Use PushEngage → Broadcast to send manual push campaigns to all subscribers

BigCommerce with OneSignal

  1. Sign up for OneSignal at onesignal.com and create a Web Push app
  2. Go to OneSignal → Settings → Web Push → Setup and follow the HTTPS domain verification
  3. Add the OneSignal JavaScript snippet to your BigCommerce store via Storefront → Script Manager: <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script> <script> window.OneSignalDeferred = window.OneSignalDeferred || []; OneSignalDeferred.push(async function(OneSignal) {await OneSignal.init({appId: "YOUR_APP_ID"});}); </script>
  4. For back-in-stock: use BigCommerce webhooks to trigger a OneSignal API call when product stock transitions from 0 to available
  5. For cart abandonment: use BigCommerce's Abandoned Cart webhook + OneSignal REST API to send cart recovery pushes

Custom / Headless

For headless stores, implement push using the Web Push API directly:

// Service worker — save as /sw.js in your public directory
self.addEventListener('push', (event) => {
  const data = event.data?.json() ?? {};
  event.waitUntil(
    self.registration.showNotification(data.title, {
      body: data.body,
      icon: data.icon ?? '/icons/icon-192.png',
      image: data.image,
      data: { url: data.url },
      actions: data.actions ?? [],
    })
  );
});

self.addEventListener('notificationclick', (event) => {
  event.notification.close();
  event.waitUntil(clients.openWindow(event.notification.data?.url ?? '/'));
});
// Server-side push sending using the web-push library
import webpush from 'web-push';

webpush.setVapidDetails(
  'mailto:admin@yourstore.com',
  process.env.VAPID_PUBLIC_KEY!,
  process.env.VAPID_PRIVATE_KEY!
);

// Generate VAPID keys once: npx web-push generate-vapid-keys

async function sendPushNotification(subscription: PushSubscription, payload: {
  title: string;
  body: string;
  url: string;
  icon?: string;
}) {
  try {
    await webpush.sendNotification(subscription, JSON.stringify(payload));
  } catch (err: any) {
    if (err.statusCode === 410) {
      // Subscription expired — remove from database
      await db.pushSubscriptions.deleteByEndpoint(subscription.endpoint);
    }
  }
}

// Triggered when inventory transitions from 0 to > 0
async function notifyBackInStock(productId: string) {
  const product = await db.products.findById(productId);
  const waitlist = await db.pushWaitlist.findByProduct(productId);

  for (const entry of waitlist) {
    const sub = await db.pushSubscriptions.findByUserId(entry.userId);
    if (!sub) continue;
    await sendPushNotification(sub, {
      title: 'Back in stock!',
      body: `${product.name} is available again`,
      url: `${process.env.STORE_URL}/products/${product.slug}`,
      icon: product.images[0]?.url,
    });
  }
}

Step 3: Optimize opt-in timing

The most critical factor for push notification effectiveness is when you show the permission prompt. Never ask on the first page load.

Best triggers for the opt-in prompt:

  • After the visitor has viewed 3+ products
  • Immediately after a customer adds an item to cart
  • When a customer views an out-of-stock product (context: "Get notified when it's back")
  • On the order confirmation page ("Get shipping updates and deals via browser push")

In PushOwl: go to Settings → Opt-in Prompt → Advanced and set the trigger condition. In PushEngage: go to Subscription Prompt → Display Rules and set page view count or cart event triggers.

Step 4: Set up the highest-converting push campaigns

Priority order by conversion rate:

  1. Back-in-stock alerts — highest CTR (15–25%); customers opted in specifically for this product
  2. Cart abandonment — set for 1 hour and 24 hours after abandonment; use urgency in the second push ("Your cart expires soon")
  3. Price drop alerts — customers watching a specific product convert at 10–20% when notified of their target price
  4. Shipping updates — low-friction way to grow push subscribers (capture at order confirmation); keeps brand top-of-mind

In PushOwl: all four are available as pre-built automations under Automations — enable them and customize the message.

Step 5: Measure push performance

MetricHealthy TargetWhere to Find
Opt-in rate5–15% of new visitorsApp dashboard
Back-in-stock click rate15–25%PushOwl/PushEngage analytics
Cart abandonment recovery rate2–5%App analytics
Unsubscribe rate per campaign< 2%App analytics

If unsubscribe rate is above 2%, reduce push frequency or improve message relevance.

Best Practices

  • Never request permission on first page load — acceptance rates jump from ~5% to ~25% when shown after a user action like adding to cart
  • Limit to 2 push notifications per day per user maximum — excessive frequency is the top driver of opt-out
  • Set a TTL on time-sensitive notifications — flash sale pushes should expire when the sale ends; PushOwl and PushEngage both support notification expiry
  • Keep notification body under 100 characters — longer bodies are truncated on Android; test on mobile before deploying
  • Use "Notify me" at the product level for out-of-stock — this captures high-intent subscribers with context; generic sitewide opt-ins perform worse

Common Pitfalls

ProblemSolution
Low opt-in rateMove the permission prompt to after add-to-cart or product view #3; never show on first load
iOS users not receiving pushWeb push on iOS requires iOS 16.4+ and the user must install the site as a PWA (Add to Home Screen); this is a browser limitation
Push notifications not firing for back-in-stockVerify the inventory webhook is connected in PushOwl/PushEngage settings; check the app's automation logs
High unsubscribe rateReduce push frequency; add preference management so subscribers can choose which notification types they receive
Duplicate subscriptions in the databaseFor custom implementations, use upsert keyed on (userId, endpoint)

Related Skills

  • @email-marketing-automation
  • @cart-abandonment-recovery
  • @sms-marketing
  • @exit-intent-popups
  • @customer-retention-engine

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.12%
按下载量换算59

Claude

28.83%
按下载量换算47

Cursor

20.66%
按下载量换算34

Gemini CLI

9.66%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills