deno-discord-notify

Sends Discord webhook notifications via Deno script with agent-based sender selection.

64|2|Updated Feb 8, 2018
One-click install
npx skills add https://github.com/yuki-yano/dotfiles --skill deno-discord-notify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deno-discord-notify
Source: https://github.com/yuki-yano/dotfiles/tree/main/.agents/skills/discord-notify
Command: npx skills add https://github.com/yuki-yano/dotfiles --skill deno-discord-notify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Discord notification management and sending is centralized, ensuring notifications only go out on explicit user request and via a Deno script that respects a consistent webhook format. This skill enforces a policy-driven approach, auto-switching the sender identity based on the detected agent and keeping communications compliant with configurable rules.

Core Features & Use Cases

  • Explicit-notice based notifications that trigger only on user demand
  • Auto-detection of the executing agent (Codex or Claude) and corresponding username
  • Robust Discord webhook delivery with environment-variable support and error handling for failed requests

Quick Start

Run the deno script with your webhook URL and a test title/body to send a sample notification.

Frequently Asked Questions about deno-discord-notify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send Discord notifications through a Deno script?

To restrict Discord webhook notifications so they trigger only on user demand, you implement a policy-driven Deno script that enforces explicit user requests. This approach centralizes alert management and prevents unauthorized automated messages.

Can I auto-switch the Discord webhook sender username based on the agent?

Yes, you can auto-switch the Discord webhook sender username by detecting the executing agent, either Codex or Claude. The script identifies the active agent and automatically applies the corresponding username to the webhook delivery.

What environment variables are required for Discord webhook delivery via Deno?

Discord webhook delivery via Deno requires specific environment variables to be set, including the webhook URL. The script enforces these variables and handles errors robustly if any required configuration is missing or invalid.

How does a Deno script handle webhook errors when sending Discord alerts?

A Deno script handles webhook errors by validating the Discord webhook URL before sending and enforcing required environment variables. It robustly manages failed requests to ensure reliable alert delivery within defined policies.

Does this Discord notification script work with both Codex and Claude agents?

Yes, this Discord notification script works with both Codex and Claude agents. It detects the executing agent at runtime and switches the sender identity accordingly, ensuring compliant webhook communications for either environment.