valorvie/ai-dev-skills

custom-skills-notify

發送通知到 Telegram 或 Discord。支援手動發送、初始化設定、測試連線。長時間任務時搭配 plugin hooks 自動通知。

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/valorvie/ai-dev-skills --skill custom-skills-notify

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

custom-notify — Claude Code 通知系統

透過 Telegram 或 Discord 接收 Claude Code 的重要事件通知。

指令

/notify init — 初始化設定

引導使用者建立通知設定檔。詢問使用者要啟用哪些頻道(可多選)。

Telegram 設定步驟:

  1. 請使用者提供 Telegram Bot Token(從 @BotFather 取得)
  2. 請使用者提供 Chat ID(可用 @userinfobot 取得)

Discord 設定步驟:

  1. 請使用者提供 Discord Webhook URL(從 Discord 頻道設定 → 整合 → Webhook 取得)

設定檔範例 ~/.config/claude-notify/config.json:

json
{
  "channels": {
    "telegram": {
      "enabled": true,
      "bot_token": "<使用者提供的 token>",
      "chat_id": "<使用者提供的 chat_id>"
    },
    "discord": {
      "enabled": true,
      "webhook_url": "<使用者提供的 webhook URL>"
    }
  },
  "events": {
    "task_complete": true,
    "task_failed": true,
    "needs_input": true,
    "tool_rejected": true
  }
}

建立完成後,自動執行 /notify test 驗證連線。

注意:

  • 確保目錄存在:mkdir -p ~/.config/claude-notify
  • 如果使用者只要其中一個頻道,另一個設 "enabled": false 或不寫即可
  • 如果已有設定檔,詢問是否要新增頻道或覆蓋

/notify test — 測試連線

執行以下命令發送測試訊息:

bash
node "<skill_path>/scripts/notify.js" --test
  • 成功:告知使用者「測試訊息已發送,請檢查通知頻道」
  • 失敗:顯示錯誤訊息並協助排查

/notify <訊息> — 手動發送通知

當使用者輸入 /notify 後面接任何文字時,發送該文字作為通知:

bash
node "<skill_path>/scripts/notify.js" --manual --message "<使用者的訊息>"

範例:

  • /notify 部署完成,請來檢查
  • /notify 測試全部通過

/notify config — 查看目前設定

讀取並顯示 ~/.config/claude-notify/config.json 的內容(隱藏 bottoken 和 webhookurl 的中間部分)。

/notify toggle <event> — 開關事件通知

修改 ~/.config/claude-notify/config.json 中的 events 設定。

可用的 event 名稱:

  • task_complete — 任務完成通知
  • task_failed — 工具執行失敗通知
  • needs_input — 需要使用者決策通知
  • tool_rejected — 工具被拒絕通知

範例: /notify toggle task_complete — 切換任務完成通知的開關狀態

自動通知

npx skills 只安裝本 skill,不會安裝 Claude Code plugin。自動通知由 `custom-skills-notify` plugin 處理,監聽以下 Claude Code hook 事件:

事件觸發時機
Notification需要權限、閒置提示、需要回答問題
StopClaude 完成回應
PostToolUseFailure工具執行失敗

需要自動通知時,另外執行:

bash
claude plugin marketplace add https://github.com/ValorVie/custom-skills.git
claude plugin install custom-skills-notify@custom-skills

這個 plugin 安裝是獨立操作,不屬於 npx skills add 的結果。

腳本路徑

通知腳本位於:<skill_path>/scripts/notify.js

使用 <skill_path> 代表此 skill 的根目錄路徑。在執行命令時,用實際的絕對路徑替換。

from this repository

More skills

All skills
valorvie
Community

custom-agent-router

為目標、範圍與授權已明確的非簡單 Agent 工作選擇互動模式、能力層級、風險、派工形狀、審查與有限備援。適用於需要在主 Agent 直接處理、單一工作代理與有限平行之間選擇,或需要依複雜度與風險決定能力層級及審查強度的工作;Codex 專案缺少已驗證的 Agent 設定時,也用本 Skill 引導使用者選擇建立、預覽或略過。簡單問答、唯讀確認與可直接驗證的小修改不要使用。

installs
1
GitHub stars
0
Updated
Sep 17
valorvie
Community

custom-skills-dev

Guide development of the ai-dev framework and its first-party skill collection. Use when modifying ai-dev CLI code, npx skill integration, copy/distribution logic, commands, agents, plugins, first-party skills, tests, or release documentation. Triggers: "develop custom-skills", "modify ai-dev", "add skill", "update distribution", "release version", "開發 custom-skills", "修改 ai-dev", "新增 skill", "發布版本".

installs
1
GitHub stars
0
Updated
Sep 17
valorvie
Community

custom-skills-doc-updater

Maintain documentation for the ai-dev framework and ai-dev-skills collection. Use when code or skill changes affect documented behavior, commands, agents, plugins, version releases, repository structure, README content, or changelogs. Triggers: "update docs", "sync documentation", "update README", "update changelog", "documentation audit", "doc sync", "更新文檔", "同步文件", "文檔檢查", "/doc-updater".

installs
1
GitHub stars
0
Updated
Sep 17
valorvie
Community

custom-skills-doc-writer

依讀者任務與可驗證主線撰寫、重構及整理技術文件,並依專案慣例處理文件類型、路徑、檔名、frontmatter、索引與生命週期。技術文件另保護中英混合內容中的事實、命令、路徑與識別字,英文說明文字採 ASD-STE100 大原則;使用者同時提供合法標準 PDF 與本機檢查器時可自動輔助檢查。只要使用者要新增或實質改寫計畫、調查、分析、研究、進度、指南、維運手冊、教學、參考資料、原理解釋、決策、事件、會議、變更日誌或規範,就應使用本技能;整理 docs 目錄與主題索引時也適用。單純翻譯、一小段文字潤飾、只改程式碼或只查一個事實時不要使用。

installs
1
GitHub stars
0
Updated
Sep 17