verify-reminders
БесплатноБез исполняемых скриптовНе проверенModel-checks, with TLA+ and TLC, how the web app reminds you about one open task with a due date, so a change can't lose, repeat, or rush a reminder. Use when…
от vscarpenter★ 41 звезда на GitHubОб этом скилле
Verify reminders
A TLA+ model of one open task's reminder on the web app lives in docs/diagrams/reminder-model/. TLC checks every order of the steps in the model: the checker running, the reminder time and its hour passing, a snooze starting and ending, your edits, a sync push, and pulls from another device. A pass covers the model, not the whole app, so read "Bounds and what's left out" before you trust one.
The model found two lost reminders on 2026-11-03, and PR #669 fixed both. Reminders.tla is the code before that fix. RemindersFixed.tla is the code now. Change only RemindersFixed.tla when the code changes. Reminders.tla is a record of the old code.
The rules
Each rule is an INVARIANT in RemindersFixed.tla.
| Rule | What the app promises | The harm when it breaks |
|---|---|---|
DueReminderStillOwed |
Once a reminder's time comes and no snooze holds it, the app shows it unless you've already seen it. | A task comes due and you never hear about it. |
SnoozeBringsItBack |
When a snooze ends, the app shows the reminder again unless you've seen it since. | A task you snoozed stays silent, and you forget it. |
EachReminderOnce |
You get one reminder per reminder time and one per snooze. | The same reminder shows twice for one due time. |
NoEarlyReminder |
A reminder never shows before its reminder time (owner decision, 2026-11-03). | You get a reminder before the time you asked for. |
TypeOK keeps each variable in its range. It guards the model, not the app.
Run the check
bash docs/diagrams/reminder-model/check.sh
It runs six configs through scripts/tlc.sh, which pins TLC 1.7.4 by hash and finds Java 21. The first run downloads the jar. A run takes about five seconds and prints one line per config. It exits 0 only when every line says ok:
ok Reminders.cfg breaks DueReminderStillOwed (18 states)
ok RemindersOneDevice.cfg breaks DueReminderStillOwed (20 states)
ok RemindersFixed.cfg holds (76 states)
ok BreakSnoozeKeepsSent.cfg breaks SnoozeBringsItBack (26 states)
ok BreakSnoozeFiresEarly.cfg breaks NoEarlyReminder (19 states)
ok BreakRawOffsetCompare.cfg breaks EachReminderOnce (38 states)
All 6 configs match.
RemindersFixed.cfg is the code as it is, and it must hold. Every other config must break the rule its line names. The two Reminders* configs are the code before #669. Each Break* config sets the Break constant in RemindersFixed.tla, which undoes one guard in the code, so each rule has been seen to fail. A FAIL line prints the scripts/tlc.sh command that reproduces it.
Read every result, pass or fail, with the pstack /statechart skill. On a break, it tells TLC's shortest path as steps in plain words. On a pass, it draws how the task moves between states. Give it view-fixed.mjs as the view for RemindersFixed.tla, and send its output to a scratch folder outside the repo. The view hides steps to keep the passing chart readable, so on a break /statechart can refuse because a hidden step is on the bug path. Rerun it without the view to read the paths, then label that step in view-fixed.mjs if the chart should keep it.
When a change touches this code
- See what changed. Diff the covered files from the sync commit (below) to your working tree:
git diff dd32e08c -- lib/notification-checker.ts lib/notifications lib/due-time.ts lib/snooze-presets.ts lib/tasks/crud/snooze.ts lib/tasks/crud/update.ts lib/sync/task-mapper.ts lib/sync/pb-push.ts. Then look for new writers:rg -n "notificationSent|lastNotificationAt|snoozedUntil|notifyBefore" lib components app, and compare the hits with the coverage record. - Run the check before you touch the model. A pass here only says the old description still holds.
- Map each change to a model action through the coverage record. A change has no effect, or the model no longer describes the code, or the promise changed on purpose, or the promise may be broken. Decide from the model, not from the commit message.
- Update
RemindersFixed.tlafrom the code, as "Update the model for an intended change" says. Write the update before you rerun, and don't shape it by what passes. - Rerun the check and read the result with
/statechart. IfRemindersFixed.cfgbreaks a rule, replay the path (next section). If it holds, break the new code's guard once, the way theBreakconstant does, and confirm a rule fails. A model that can't fail proves nothing. - Move the sync commit only when every change is accounted for and the check matches.
Real bug or modeling error
Replay the path against the real code before you call it either. Write a Vitest file under tests/data/ with one step per model action, on a fixed clock. Copy the shape of the "reminders that must not go missing" block in tests/data/notification-checker-indexeddb.test.ts: it mocks @/lib/notifications, fakes Date, and counts `showTaskNoti
Установить verify-reminders в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл verify-reminders?
Model-checks, with TLA+ and TLC, how the web app reminds you about one open task with a due date, so a change can't lose, repeat, or rush a reminder. Use when a change touches lib/notification-checker.ts, lib/notifications/reminder-window.ts, display.ts, or default-reminder.ts, lib/due-time.ts, lib/snooze-presets.ts, lib/tasks/crud/snooze.ts, lib/tasks/crud/update.ts (mergeTaskUpdates, buildUpdatedRecord), lib/sync/task-mapper.ts (pocketBaseToTaskRecord, localReminderState), lib/sync/pb-push.ts (resolveNotifyBefore, settleRowOffset), or any code that writes notificationSent, lastNotificationAt, snoozedUntil, or notifyBefore on a task.
Как установить скилл verify-reminders?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-reminders запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic