Logo de Gen Notifier

Gen Notifier

Comunidade
kevinslin
gen-notifier

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

Visão geral

Publicado porkevinslin
Repositórioagstack
Nome da habilidadegen-notifier
Estrelas
26
Forks
1
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por kevinslin no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Gen Notifier no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/kevinslin/agstack/tree/main/active/gen-notifier
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Gen Notifier em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Gen Notifier automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Gen Notifier não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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

Perguntas frequentes

O que a habilidade de IA Gen Notifier faz?

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

Por que usar Gen Notifier no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Gen Notifier é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Gen Notifier no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kevinslin/agstack/tree/main/active/gen-notifier. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Gen Notifier?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Gen Notifier?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Gen Notifier com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Gen Notifier é gratuita?

A habilidade é publicada no GitHub por kevinslin. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇