whendone-plus
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "whendone-plus":https://skillpi.com/zh/skills/deepskill-8c4af2f76b845de5128f3375741e91876d5077916f795add162a5c9604bdf125。安装前核对上游来源和版本:https://github.com/EliasOulkadi/shokunin。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在长时间运行的终端命令(如 npm test、docker build、git push 等)完成时自动通知用户。代理在命令运行超过阈值(默认 10 秒)时发送桌面通知;不适用于交互式、通常较短或流式命令。
介绍来源: third_party · EliasOulkadi · 3.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: whendone-plus
description: Automatically notify the user when long-running terminal commands finish (npm test, docker build, git push, etc.). The agent monitors command execution and sends a desktop notification on completion if the command ran longer than threshold (default 10s). Use when user asks to "notify me when done", "desktop notification when command finishes", "alert when done", or "tell me when this completes". Do NOT use for interactive commands (vim, nano, less, htop), commands that always complete in <5s, or streaming commands (tail -f).
triggers:
- "notify me when done"
- "desktop notification"
- "alert when done"
- "tell me when this completes"
- "notify when finished"
- "ping me when"
- "remind me when"
- "notification on completion"
- "when done"
negatives:
- "interactive commands"
- "vim"
- "nano"
- "less"
- "htop"
- "streaming commands"
- "tail -f"
- "short commands"
license: MIT
compatibility: opencode
metadata:
workflow: automation
audience: developers
version: "3.0.0"WhenDone Plus
Automatically notify when long-running commands complete.
How It Works
- User runs a long command (e.g.
npm test,docker build,git push) - The agent monitors the command execution time
- If the command runs longer than the threshold (default 10s), the agent notifies the user on completion
- Exit code is passed through
Workflow
Step 1: Detect long-running command
Identify commands likely to exceed threshold:
npm test,npm run test,npx playwright testdocker build,docker compose up,docker compose downgit push,git pull,git clonepip install,npm install,pnpm install,yarn installcargo build,cargo test,go build,dotnet build- Custom scripts, database migrations, data processing pipelines
ffmpeg,rsync,scp, large file transfers
Step 2: Monitor execution
Start a background timer when the command begins. Track:
- Elapsed wall-clock time
- Peak memory usage (if available)
- Child process tree (for pipeline awareness)
Step 3: Notify on completion
Basic notification format:
✅ "Command finished: npm test completed in 142s (exit 0)"
❌ "Command finished: docker build failed in 89s (exit 1)"
Include:
- Command name (first word + key args)
- Execution time (rounded to seconds)
- Exit code (success/failure)
- Optional: memory peak, output file path if redirected
Step 4: Handle edge cases
- Commands completing under 10s: no notification (too fast to matter)
- Interactive/TUI commands (vim, nano, htop): skip (user is watching)
- Piped commands (e.g.
npm test | grep error): monitor the pipeline, not the first process - Backgrounded commands (
&): notify on background process completion - Chained commands (
;): notify per-segment or in aggregate - Commands killed by signal: notify with signal name (e.g. "killed by SIGTERM")
Notification Mechanisms
Windows Toast Notification (PowerShell)
Add-Type -AssemblyName System.Windows.Forms
$balloon = New-Object System.Windows.Forms.NotifyIcon
$balloon.Icon = [System.Drawing.SystemIcons]::Information
$balloon.BalloonTipTitle = "Command Complete"
$balloon.BalloonTipText = "npm test finished in 142s (exit 0)"
$balloon.Visible = $true
$balloon.ShowBalloonTip(5000)
Start-Sleep -Seconds 5
$balloon.Dispose()
Terminal Bell (cross-platform)
echo -e "\a" # ASCII bell character
printf '\a' # POSIX
BurntToast Module (Windows 10/11)
Import-Module BurntToast
New-BurntToastNotification -Text "Command Complete", "npm test finished in 142s (exit 0)"
macOS Notification
osascript -e 'display notification "npm test finished in 142s" with title "Command Complete"'
terminal-notifier -title "Command Complete" -message "npm test finished in 142s"
Linux Notification (notify-send)
notify-send "Command Complete" "npm test finished in 142s"
Error Handling
| Error | Cause | Fix |
|---|---|---|
| Notification never fires | Command completed under threshold | Expected. Threshold is 10s by default. |
| Wrong exit code reported | Shell pipeline masking failures | Use $PIPESTATUS in bash, $LASTEXITCODE in PowerShell |
| Notification module missing | BurntToast/notify-send not installed | Fallback to terminal bell or Write-Host |
| Silent failure on background job | Job detached from monitor process | Use Wait-Job in PowerShell, wait in bash |
| Double notification | Parent and child process both fire | Track PID tree, notify only on root process |
| Desktop notification blocked | System focus assist or DnD mode | Fallback to terminal output with colored exit code |
| Command output lost | Notification intercepts stdout/stderr | Always tee or capture output before monitoring |
Anti-Patterns
| Mistake | Fix |
|---|---|
| Notify for every command | Only if >10s threshold |
| Breaking pipes | Ensure stdout/stderr passthrough |
| Breaking exit codes | Pass through original exit code |
| Notifications for interactive commands | Skip if TUI detected |
| Notify and then continue working | Wait for notification confirmation or user acknowledgment |
| Assuming notification system is available | Always have a text-only fallback (Write-Host) |
| Monitoring subprocess instead of pipeline | Track the entire pipeline PID group |
Customization
| Setting | Default | Description |
|---|---|---|
| Threshold | 10s | Minimum command duration to trigger notification |
| Notification style | Toast | toast, bell, or both |
| Include exit code | Yes | Show pass/fail in notification |
| Show elapsed time | Yes | Include duration in notification text |
| Fallback on failure | Bell | What to do if toast notification fails |
Checklist
- [ ] Notification method matches platform (BurntToast on Windows, terminal-notifier on macOS, notify-send on Linux)
- [ ] Threshold duration set appropriately (default 10s — not too short, not too long)
- [ ] Not used for interactive commands (vim, nano, htop, less)
- [ ] Custom message includes the command name and result (success/fail)
- [ ] Fallback: terminal bell or Write-Host if notification fails
Sources
- Windows Toast API (docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications)
- BurntToast PowerShell module (github.com/Windos/BurntToast)
- notify-send (Linux Desktop Notifications Specification)
- terminal-notifier (github.com/julienXX/terminal-notifier)
- macOS osascript display notification (developer.apple.com)
- POSIX terminal bell (ASCII 0x07)
- Shell job control (bash manual, PowerShell about_Jobs)
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决开发者长时间运行命令后需手动等待的核心痛点,显著提升工作效率
- 适用于 npm test、docker build、git push 等高频开发场景,受众广泛
亮点
- 触发词覆盖多种自然语言变体(notify me when done, desktop notification, alert when done 等)
- 负例明确排除交互式命令和短命令,边界清晰,误触风险低
亮点
- Phase/步骤清晰(Detect → Monitor → Notify → Handle edge cases),逻辑完整
- 包含端到端示例、错误处理表格、反模式清单,frontmatter 完整规范
亮点
- 多平台通知机制明确(Windows Toast、macOS osascript、Linux notify-send)
- 覆盖主要异常场景并有回退机制(terminal bell),确保执行鲁棒性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 48, 51 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。