Sends Telegram notifications for long-running task results (success, failure, or action-required) only when explicitly requested by the user. Uses local config for bot token and chat ID.
Ships in dcjanus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
把 Telegram 通知视为用户对当前长任务的“结果订阅”,不是一般通知渠道。Bot Token 和目标 Chat ID 保存在用户本地配置文件中,不写入提示词、命令参数或仓库。
$dcjanus:notify-via-telegram 并要求通过 Telegram 通知,才允许发送。Agent 调用时使用 --json,并把全局参数放在子命令前。
./scripts/notify.py --help 和 preview --help 查看参数及长度限制,拟好纯文本通知。首尾空白会被移除;必填字段和提供的可选字段都不能是空白。context 使用简短仓库或任务标签,不拼接长 URL;不要放入凭据、完整日志或冗长本地路径。./scripts/notify.py --json preview ... 检查同一组参数。它不读取配置、不访问 Telegram;成功返回 ok: true 和 rich_message,检查内容是否准确表达任务结果。error: invalid_notification、delivery: not_attempted 和 issues。根据字段、原因及限制自行修正文案,再预览;保留关键事实,不静默截断或改变任务结果。--json send 一次。发送前再改文案需要重新预览,并计入同一修正上限。send 也执行相同校验;若明确返回 invalid_notification 和 not_attempted,可在剩余额度内返回修正流程。30 次上限只用于文案修正,不用于重复网络发送。配置缺失或无效时按配置指引处理;超时、异常响应、API 拒绝或其它发送失败均停止,不自动重发。脚本只负责校验和一次请求,修正文案与累计计数由 Agent 执行。
只使用以下状态:
success:整个任务最终完成。failed:整个任务确定无法完成,而不是某个中间步骤失败。action-required:任务暂停,必须等待用户输入或授权。title 和 summary 必填;verification、action、context 可选。保持内容简洁,不发送完整日志、堆栈、凭据或冗长本地路径。
发送成功结果:
./scripts/notify.py --json send \
--status success \
--title "任务标题" \
--summary "最终结果的一句话摘要" \
--verification "关键验证结果" \
--context "仓库或任务上下文"
发送失败结果:
./scripts/notify.py --json send \
--status failed \
--title "任务标题" \
--summary "无法完成的直接原因" \
--action "建议的下一步"
等待用户处理:
./scripts/notify.py --json send \
--status action-required \
--title "任务标题" \
--summary "当前状态" \
--action "需要用户决定或提供的内容"
在不读取配置、不访问 Telegram 的情况下预览同样的结构化参数:
./scripts/notify.py --json preview \
--status success \
--title "任务标题" \
--summary "最终结果的一句话摘要"
所有输入字段按纯文本传入,不添加 HTML、Markdown 或 RichText 结构。脚本负责排版,将有效的 Codex 根 session ID 显示为可复制的行内代码,不生成会话 URL;--json preview 返回与发送一致的 rich_message,不读取配置、不联网。
默认配置文件为 ${XDG_CONFIG_HOME:-~/.config}/notify-via-telegram/config.toml;可用 NOTIFY_VIA_TELEGRAM_CONFIG 或全局 --config 指定其它文件。
./scripts/notify.py config path
./scripts/notify.py config show
./scripts/notify.py config get chat-id
./scripts/notify.py config set chat-id <chat-id>
./scripts/notify.py config set bot-token
./scripts/notify.py config unset chat-id
./scripts/notify.py config check
config set bot-token 需要用户在交互式终端中隐藏输入;不要索取 Token,也不要尝试通过命令行参数传入。config show、config get bot-token 与所有 JSON 输出都不会回显 Token。config check 会访问 Telegram 验证 Bot 与目标 Chat,但不会发送消息。发送成功后读取 JSON 中的 message_id。发送失败时,把通知失败与原任务结果分开报告,不要因此改变原任务的最终状态。
仅在修改消息排版或会话标识时阅读 implementation.md。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
27 skills in this plugin
/codex-thread-close-check检查当前 Codex thread(会话)是否还有遗留事项,适用于用户准备关闭、归档当前对话,或询问当前 thread 是否可以收尾时。/codex-thread-namer为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。/confluence-cli查询、检索与阅读 Confluence 文档/页面。/dcjanus-merge-policy将 GitHub 或 GitLab 仓库配置为 DCjanus 偏好的合并策略,包括 squash、组织仓库的 merge queue、提交消息模板和源分支删除设置。适用于明确要求采用 DCjanus 个人合并策略的场景,不用于一般 PR/MR 合并操作。/dcjanus-preferences适用于创建、修改或评审 Skill,配置或复刻 GitHub 个人仓库与长期自用 fork 的维护、CI、发布、合并策略和 Dependabot 更新,设计或评审 CLI 的命名、输入手感、输出与补全,设计或评审前端界面的布局、信息层级和文案,或在前端技术栈与无障碍组件、Connect/Protobuf API、well-known types、FieldMask/PATCH、AIP-127 HTTP 映射与 Protovalidate 校验、项目开发工具(含 mbx/Cargo)及版本管理、用户级程序的 XDG 数据目录、跨语言的数据存储、分析、压缩、归档、哈希、Telegram Bot 消息呈现及 Python/Rust/Go 第三方库之间做技术选择的场景。/dcjanus-tasklog查询或管理 DCjanus 的 Linear 事项、提醒、长期文档、模板(含周期事项)、视图或团队配置,以及按个人任务模型整理目标、进展和关联时使用。/dcjanus-dcjanus-plugins-dcjanus:notify-via-telegramfrom dcjanus
Generated from the plugin's indexed repository (dcjanus/prompts) — no native marketplace selected
npx claudepluginhub p/dcjanus-dcjanus-plugins-dcjanusOther plugins' skills for the same job