notification-activation
GitHub指导Agent处理网站浏览器通知启用及监控设置。包括解析目标站点、检查权限状态、引导用户完成系统或应用级授权,并验证订阅生效。针对监控需求,利用watch工具建立定期检测机制,确保仅报告相关事件变更。
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


