notification-activation
GitHub启用网站浏览器通知并验证用户订阅状态。包括解析目标站点、检查权限设置、引导用户完成系统授权、开启特定推送通道及验证状态,支持监控场景下的周期性检查。
Trigger Scenarios
Install
npx skills add yetanotherbrowser/yab --skill notification-activation -g -y
SKILL.md
Frontmatter
{
"name": "notification-activation",
"sites": [],
"keywords": [
"enable notifications",
"browser notifications",
"push notifications",
"notify me",
"включи уведомления",
"уведомляй",
"следи за"
],
"description": "Enable a site's browser notifications and verify its own opt-in when the user asks for notifications or monitoring."
}
Site notifications
A working subscription needs both permission in Yab/macOS and the site's own notification opt-in. Yab supports site notifications and Web Push while it is running, including with the tab closed.
- Resolve the requested site from the current tab or task context. For monitoring, identify the exact event the user cares about, not every notification from every site.
- Inspect the site's settings or Enable notifications control.
evalmay readNotification.permissionin a task tab; do not invoke requestPermission through eval. - Click the site's own notification control. A browser permission prompt belongs to the user: hand over when it requires their action. If macOS blocks Yab, explain the permission shown by Yab and let the user complete that system setting. Do not silently change a denied permission.
- Enable only the relevant Desktop/Browser/Push setting within the site, then re-read its state. Do not enable email or SMS notifications unless requested. Report any unresolved step.
- Verify the opt-in state, or a test notification if the site offers one. Do not claim delivery was tested just because permission reads granted.
When the user requested monitoring, use watch for a reply thread or the available routine tools
for a self-contained periodic check. Read their schemas for supported schedules and lifecycle.
Keep a record of checked items, stay quiet while nothing relevant changes, and report only new
matching events or a failure requiring the user. Enabling push does not itself start an agent
routine, and Yab does not expose inbox/eventFilter/grantNotificationPermission APIs.
Version History
- a4661df Current 2026-11-16 19:55


