agentleFS
wmy2981wmy2981/skills/gotify/SKILL.md

gotify

Skill1 starsChanged 4 months agoMITView on GitHub

Send and manage Gotify push notifications, applications, clients, and messages via the Gotify REST API. Use this skill whenever the user mentions "gotify", "push notification", "自托管通知", "消息推送", sending alerts, managing Gotify apps/clients, checking message history, toggling Gotify plugins, or verifying Gotify server health. Also trigger for "发通知到gotify", "gotify推送", "gotify消息", "通知服务", or any command mentioning a Gotify server instance.

  • Reads credentials
  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration.

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gotify CLI Client

Send and manage push notifications on a self-hosted Gotify server via its REST API v2.0.2.

Execution Rule

Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.

Environment Variables

VariableRequiredPurpose
GOTIFY_URL✅Server base URL, e.g. https://gotify.example.com
GOTIFY_CLIENT_TOKEN✅Client token — manage apps, clients, read messages
GOTIFY_APP_TOKEN✅Application token — send messages

The script loads these from ~/.wmyskills/.env (shared across skills) automatically; a scripts/.env in the script directory takes priority if present. Use scripts/.env.example as the template — add the variables to ~/.wmyskills/.env, never overwriting an existing file. Missing tokens produce a clear error; tokens can also be passed per-call via --token.

Requirements

# Core — stdlib only (no install needed)
# WebSocket (optional, for ws-subscribe only):
pip install websocket-client

Usage

Script: scripts/gotify_client.py

python scripts/gotify_client.py <command> [options]

🔔 Send a Notification

python scripts/gotify_client.py send \
  --message "Deployment succeeded" \
  --title "CI/CD Alert" \
  --priority 5
FlagRequiredDescription
--message / -m✅Message body (markdown supported)
--title / -tNotification title
--priority / -p0–10 (0=silent, 10=urgent; omitted → not sent, API uses 0)
--extrasJSON string for plugin-specific data
--tokenOverride app token

Extras example (Firebase push config):

python scripts/gotify_client.py send -m "Hello" --extras '{"firebase":{"priority":"high"}}'

📱 Applications (Message Sources)

# List all applications
python scripts/gotify_client.py list-apps

# Create a new application
python scripts/gotify_client.py create-app \
  --name "Backup Bot" \
  --description "Backup notifications" \
  --default-priority 3

# Delete an application
python scripts/gotify_client.py delete-app --id 5
create-app FlagRequiredDescription
--name✅Application name
--description / -dDescription
--default-priorityDefault message priority (0–10)
--imageApplication image URL
--internalMark as internal (flag, no value needed)

The returned token from create-app is the app token for sending messages. Store it securely.

📲 Clients (Receiving Devices)

# List all clients
python scripts/gotify_client.py list-clients

# Create a new client
python scripts/gotify_client.py create-client --name "iPhone"

# Delete a client
python scripts/gotify_client.py delete-client --id 3

📬 Messages

# List recent messages (default: 30)
python scripts/gotify_client.py list-messages --limit 50

# Pagination — get messages after ID 100
python scripts/gotify_client.py list-messages --since 100

# Use a specific token to list messages (app or client token)
python scripts/gotify_client.py list-messages --token <token>

# Delete a single message
python scripts/gotify_client.py delete-message --id 42

# Bulk delete: all messages with ID < 500
python scripts/gotify_client.py delete-messages --before 500

# Bulk delete from a specific app
python scripts/gotify_client.py delete-messages --app-id 3 --before 500
list-messages FlagDescription
--limitMax messages to return (1–200; default 30)
--sinceMessage ID offset — returns messages with ID > this value
--tokenOverride token (defaults to client token from env)

🔌 Plugins

# List installed plugins
python scripts/gotify_client.py list-plugins

# Enable a plugin
python scripts/gotify_client.py toggle-plugin --id 1

# Disable a plugin
python scripts/gotify_client.py toggle-plugin --id 1 --disable

❤️ Server Health & Version

# Health check
python scripts/gotify_client.py health

# Version info
python scripts/gotify_client.py version

📡 Real-Time WebSocket Stream

Subscribe to live messages (requires websocket-client):

pip install websocket-client
python scripts/gotify_client.py ws-subscribe
# Override token:
python scripts/gotify_client.py ws-subscribe --token <client-or-app-token>

Output is one JSON object per received message.

API Key Concepts

  • App token (GOTIFY_APP_TOKEN): for sending messages via /message
  • Client token (GOTIFY_CLIENT_TOKEN): for managing apps/clients/messages everywhere else
  • Token is passed via X-Gotify-Key header (script handles this automatically)

Troubleshooting

ErrorCauseFix
GOTIFY_URL not setMissing env varSet GOTIFY_URL=https://your-server
401 UnauthorizedWrong/missing tokenCheck which token type is needed; verify env var
403 ForbiddenClient token used on sendUse app token for /message
Connection refusedServer downRun health to verify
No app tokenToken not configuredSet GOTIFY_APP_TOKEN or use --token

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.