Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

push-notifications

БесплатноБез исполняемых скриптовНе проверен

Send browser push notifications for price drops, back-in-stock alerts, and cart reminders to bring shoppers back without needing their email

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

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

Platform Best For Shopify WooCommerce BigCommerce Price
PushOwl Shopify-native, back-in-stock + abandonment App Store — — Free tier; $19+/mo
OneSignal All platforms, free tier, highly configurable Via JS tag Plugin Via JS tag Free tier; $9+/mo
Klaviyo Web Push Already using Klaviyo for email App Store Plugin App Marketplace Included in Klaviyo
PushEngage WooCommerce + segmented campaigns — Plugin Via JS tag Free 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"
  3. 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
  4. 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
  5. 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)
  4. For price drop alerts: go to PushEngage → Automation → Price Drop Alert and enable subscriber opt-in per product
  5. 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
impor
Полный SKILL.md на GitHub

Установить push-notifications в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/smart-opt-in-timing-and-flash-sale-broad/criteria.jsonevals/smart-opt-in-timing-and-flash-sale-broad/task.mdevals/subscription-storage-and-notification-se/criteria.jsonevals/subscription-storage-and-notification-se/task.mdevals/vapid-setup-and-service-worker-implement/criteria.jsonevals/vapid-setup-and-service-worker-implement/task.mdtile.json

FAQ

Что делает скилл push-notifications?

Send browser push notifications for price drops, back-in-stock alerts, and cart reminders to bring shoppers back without needing their email

Как установить скилл push-notifications?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл push-notifications запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить push-notifications с