Logo Gen Notifier

Gen Notifier

Cộng đồng
kevinslin
gen-notifier

Root tasks only: send exactly one final-state desktop notification before the final report; never notify from subtasks.

Tổng quan

Nhà phát hànhkevinslin
Kho mãagstack
Tên kỹ nănggen-notifier
Sao
26
Bản fork
1
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được kevinslin công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Gen Notifier trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kevinslin/agstack/tree/main/active/gen-notifier
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/gen-notifier .claude/skills/gen-notifier
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Gen Notifier trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Gen Notifier ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Gen Notifier với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Task Completion Notifier

This skill sends desktop notifications using terminal-notifier to alert the user when a job has reached its final terminal state.

When to Use This Skill

Use this skill in the following scenarios:

  1. User explicitly requests notification - When the user says "notify me when done", "let me know when this finishes", etc.
  2. Long-running tasks - Jobs that take significant time (builds, deployments, large refactors, test suites)
  3. Background tasks - When the user might context-switch while waiting
  4. Default behavior - By default, assume jobs assigned directly to the root task will require one notification unless the user specifies otherwise

Core Rule

Use this skill only once per job, at the very end, after the work is finalized and immediately before you generate the final user-facing report.

  • Use this skill only from the root task that owns the overall job
  • Do not use this skill from subtasks, subagents, delegated workers, review workers, or background worker agents
  • If you are working in a subtask or worker, report your terminal state to the root task instead; the root task owns the single final notification for the overall job
  • Do not notify during intermediate steps
  • Do not notify when you are still investigating or iterating
  • Do not notify before verification, cleanup, or finalization is complete
  • If the user explicitly asks for different timing, follow the user's instruction instead

Subtask Suppression

Do not send a desktop notification from any subtask. A separate Codex task created as an agtask child remains a subtask for notification purposes even when it is user-owned, performs substantive work, or otherwise considers itself a top-level task.

Treat the current task as a subtask when any available context identifies it as a subagent or delegated worker, its creation prompt contains an <agtask-start version="1"> marker or a legacy <agtask-bootstrap version="2"> envelope, or verified legacy agtask ledger metadata records kind: child or a non-null parent_session_id.

This suppression overrides the default, background-task, and long-running-task notification behavior. An instruction to use this skill still requires this check and does not by itself authorize a subtask notification. Only an explicit user request to notify for this specific subtask overrides the suppression.

Memory Summary Suppression

Do not send a desktop notification for chronicle-related threads unless the user explicitly asks to override this suppression for that thread.

Treat a thread as chronicle-related when the primary work is about chronicle memory/resources, chronicle rollout summaries, or communication-triage workflows sourced from chronicle data.

Also suppress notifications when the primary work is a Skysight memory summary, including summaries synthesized from Skysight observations or injected Skysight memory context.

This suppression overrides the default "notify for all jobs" behavior, including long-running tasks.

How to Notify

When a job reaches a finalized terminal state (completed, needs_input, or errors), send a notification using:

bash
terminal-notifier -title "{DESCRIPTION OF JOB}" -message "{STATUS_OF_JOB} — click to open task" -sound default -open "codex://threads/{THREAD_ID}"

The -sound default parameter makes a beeping sound to alert the user audibly.

Click-to-open task

When the thread ID for the Codex task receiving the final report is available, make the entire notification clickable with -open "codex://threads/{THREAD_ID}".

  • Use the top-level recipient task's thread ID, never a delegated worker's thread ID
  • Accept only a canonical UUID matching ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$
  • If the thread ID is unavailable or invalid, omit -open and keep the original status-only message
  • Do not use -execute; it invokes a shell when clicked and creates avoidable injection risk
  • Do not add -sender or -activate; they change app identity or only bring an app forward instead of opening the task
  • Treat the whole notification as the click target; terminal-notifier cannot render an inline hyperlink

Status Values

Use one of these status values in the message:

  • completed - Task finished successfully
  • needs_input - Task requires user input to proceed
  • errors - Task encountered errors and cannot proceed

Title Format

The title should be a concise description of the job (3-8 words):

Good examples:

  • "Build and Test Suite"
  • "API Integration Implementation"
  • "Database Migration"
  • "Code Refactoring Complete"

Bad examples:

  • "Task" (too vague)
  • "The implementation of the new authentication system with JWT tokens and refresh token rotation" (too long)

Notification Examples

Successful Completion

bash
terminal-notifier -title "API Integration Implementation" -message "completed — click to open task" -sound default -open "codex://threads/{THREAD_ID}"

Needs User Input

bash
terminal-notifier -title "Database Migration Setup" -message "needs_input — click to open task" -sound default -open "codex://threads/{THREAD_ID}"

Encountered Errors

bash
terminal-notifier -title "Build and Test Suite" -message "errors — click to open task" -sound default -open "codex://threads/{THREAD_ID}"

Notification Timing

Send the notification only when both conditions are true:

  1. The job is finalized - Implementation, verification, cleanup, and any final checks are done, or you have reached a definitive blocked/error state
  2. You are about to report out - The next step is the final user-facing response

Order of operations:

  1. Finish the work
  2. Verify and finalize the outcome
  3. Send exactly one notification
  4. Generate the final report to the user

When NOT to Send Notifications

Don't send notifications for:

  • Quick tasks (< 30 seconds)
  • Intermediate steps of a larger task
  • Minor clarifying questions
  • Every tool execution
  • Tasks where user is actively watching
  • Cases where the job is not yet finalized
  • Subtask, subagent, delegated-worker, review-worker, or background-worker completion
  • Chronicle-related threads or Skysight memory-summary work, unless the user explicitly requests an override

Best Practices

  1. One notification per task - Don't spam multiple notifications
  2. Wait until final handoff - Only notify when the job is fully finalized and you are about to produce the final report
  3. Be specific in title - User should understand what completed
  4. Use appropriate status - Accurately reflect the outcome
  5. Default timing can be overridden - If the user explicitly asks for a different moment, follow that instead

Example Workflows

Successful Completion

User: "Implement the new authentication feature and notify me when done"

Assistant steps:

  1. Implements authentication feature
  2. Adds tests
  3. Runs tests (all pass)
  4. Finalizes the result and prepares the handoff
  5. Sends notification with a verified thread ID: terminal-notifier -title "Authentication Feature" -message "completed — click to open task" -sound default -open "codex://threads/{THREAD_ID}"
  6. Generates the final user-facing report

Needs User Input

User: "Set up the database migration"

Assistant steps:

  1. Creates migration files
  2. Discovers multiple valid approaches for schema design
  3. Determines it cannot proceed without a user decision
  4. Finalizes the blocked state and prepares the handoff
  5. Sends notification with a verified thread ID: terminal-notifier -title "Database Migration Setup" -message "needs_input — click to open task" -sound default -open "codex://threads/{THREAD_ID}"
  6. Generates the final user-facing report

Encountered Errors

User: "Run the full test suite and notify me"

Assistant steps:

  1. Runs test suite
  2. Encounters 5 failing tests
  3. Attempts to fix but determines the task cannot be completed within scope
  4. Finalizes the error state and prepares the handoff
  5. Sends notification with a verified thread ID: terminal-notifier -title "Test Suite Execution" -message "errors — click to open task" -sound default -open "codex://threads/{THREAD_ID}"
  6. Generates the final user-facing report

Implementation Notes

Timing

Always send the notification after the job is finalized and immediately before the final user-facing report:

Assistant: I've completed implementing the authentication feature...

[Details of what was done]

[Runs terminal-notifier command]

[Final report to the user]

Error Handling

If terminal-notifier is not installed, gracefully inform the user:

I attempted to send a notification but terminal-notifier is not installed. 
You can install it with: brew install terminal-notifier

Multiple Tasks

For multiple work items within one root job, send only ONE notification for the entire job. Separate subtasks do not notify themselves:

❌ Bad - multiple notifications:

- Notification: "User model created"
- Notification: "API endpoint created"  
- Notification: "Tests written"
- Notification: "Authentication complete"

✅ Good - single notification:

- Notification: "Authentication Feature" -message "completed — click to open task" -sound default -open "codex://threads/{THREAD_ID}"

Requirements

This skill requires terminal-notifier to be installed:

bash
brew install terminal-notifier

Check if installed:

bash
which terminal-notifier

Câu hỏi thường gặp

Kỹ năng AI Gen Notifier làm được gì?

Root tasks only: send exactly one final-state desktop notification before the final report; never notify from subtasks.

Vì sao nên dùng Gen Notifier trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Gen Notifier là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Gen Notifier trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kevinslin/agstack/tree/main/active/gen-notifier. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Gen Notifier?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Gen Notifier với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Gen Notifier với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Gen Notifier có miễn phí không?

Kỹ năng này được kevinslin phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇