yfxb2026986

Plays a light alert sound in the browser at configured daily times and optionally shows desktop notifications, for work or follow-up wake reminders.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "yfxb2026986" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-95013591955988103bfdd8d9bfc62b6a95b5ee0b493a2dde42bf826a0d561382. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/yfxb2026986 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Plays a light alert sound in the browser at configured daily times and optionally shows desktop notifications, for work or follow-up wake reminders.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: yfxb2026986
slug: yfxb2026986
displayName: 每天定时唤醒
version: 1.0.0
summary: 按设定的每日时刻在浏览器内响起轻提示并可选桌面通知,用于上班/跟进唤醒提醒。
license: MIT
description: 按设定的每日时刻在浏览器内响起轻提示并可选桌面通知,用于上班/跟进唤醒提醒。

每天定时唤醒

在页面存活期间,按用户设定的「每天 HH:mm」触发一次轻量唤醒:短提示音 + 可选 Notification。标签页关闭则停止(需向用户说明限制)。

何时使用

  • 用户要「每天定点提醒」「浏览器闹钟」「上班唤醒」「跟进打卡提醒」
  • 不要求原生系统级闹钟权限时的轻量方案

硬约束

  1. 时间格式 HH:mm(24 小时);非法则拒绝。
  2. 同一自然日同一时刻只响一次(用本地日期键去重)。
  3. 提示须可见或可闻至少一种;提供停止/取消定时。
  4. 申请通知权限失败时降级为页面内提示,不得静默失败。
  5. 明确告知:依赖页面/标签保持打开(或未来扩展 Service Worker 时另开 Skill)。

核心实现

export function parseHm(hm: string): { h: number; m: number } | null {
  const m = /^([01]?\d|2[0-3]):([0-5]\d)$/.exec(String(hm || '').trim());
  if (!m) return null;
  return { h: +m[1], m: +m[2] };
}

export function msUntilNext(hm: string, now = new Date()): number | null {
  const t = parseHm(hm);
  if (!t) return null;
  const next = new Date(now);
  next.setHours(t.h, t.m, 0, 0);
  if (next.getTime() <= now.getTime()) next.setDate(next.getDate() + 1);
  return next.getTime() - now.getTime();
}

export function startDailyWake(opts: {
  hm: string;
  onWake: () => void;
  storageKey?: string;
}): { ok: boolean; message: string; stop?: () => void } {
  const wait = msUntilNext(opts.hm);
  if (wait == null) return { ok: false, message: '时间格式应为 HH:mm' };
  const key = opts.storageKey || `daily-wake:${opts.hm}`;
  let timer = window.setTimeout(function tick() {
    const day = new Date().toISOString().slice(0, 10);
    const firedKey = `${key}:${day}`;
    if (localStorage.getItem(firedKey) !== '1') {
      localStorage.setItem(firedKey, '1');
      opts.onWake();
    }
    const again = msUntilNext(opts.hm);
    if (again != null) timer = window.setTimeout(tick, again);
  }, wait);
  return {
    ok: true,
    message: `已设置每天 ${opts.hm} 唤醒(请保持页面打开)`,
    stop: () => clearTimeout(timer),
  };
}

onWake 内可:new Audio(url).play() 或 Notification(先 Notification.requestPermission())。

验收

  • 09:30 合法;25:00 拒绝。
  • 触发后同一天不重复;跨天可再响。
  • stop() 后不再触发。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供每日定时唤醒功能,适用于上班提醒、跟进打卡等明确场景
  • 轻量级实用工具,满足用户在浏览器内实现闹钟提醒的需求
Trigger Precision85/100

Highlights

  • 触发词清晰明确,覆盖多种使用场景变体
  • description 和 summary 准确描述核心功能
Structure and Standards90/100

Highlights

  • 文档结构完整,包含使用场景、约束、实现和验收标准
  • 代码示例清晰,逻辑严谨,frontmatter 完整
Execution Reliability88/100

Highlights

  • 核心逻辑完整,包含时间解析、去重、错误处理和权限降级
  • stop 机制明确,避免资源泄漏
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.