home / skills / dtinth / agent-skills / discord
This skill sends a message to a Discord user via a webhook using a simple curl wrapper, enabling automated alerts and updates.
npx playbooks add skill dtinth/agent-skills --skill discordReview the files below or copy the command above to add this skill to your agents.
---
name: discord
description: Use this skill to send a message over Discord to the operator
---
To send a message over Discord to the user, there is a script at `~/.local/bin/discord-curl` that can be invoked to send a Discord message via a webhook.
The script is essentially implemented this way:
```sh
#!/bin/bash -e
curl -X POST "$@" <webhook_url>
```
Here are some examples:
```sh
# Send a message
~/.local/bin/discord-curl -F 'content=hello'
# Send a message with file
~/.local/bin/discord-curl -F 'content=hello' -F 'files[0]=@/etc/os-release'
```
This skill sends messages to the operator over Discord using a local helper script that posts to a configured webhook. It wraps a simple curl-based command so agents can deliver text and file attachments to a Discord channel. The skill is lightweight and designed for quick notifications and file delivery.
The skill invokes a local script (~/.local/bin/discord-curl) which forwards provided curl arguments to a preset Discord webhook URL. You pass form fields such as content for message text and files[...] for attachments; the script executes curl -X POST with the given arguments and the webhook URL. No Discord OAuth or bot setup is required beyond the webhook already configured in the environment.
Do I need to supply the webhook URL each time?
No. The helper script embeds the webhook URL; you only pass curl-style arguments like -F 'content=...'.
How do I attach multiple files?
Use multiple files[...] form fields, e.g. -F 'files[0]=@/path/one' -F 'files[1]=@/path/two'.