Doncheli webhook

From doncheli/don-cheli-sdd · View interactive version

Doncheli webhook is an AI agent skill from the GitHub repository doncheli/don-cheli-sdd. Configure and test webhooks and automation triggers for the project. Activate when user mentions "webhook", "trigger", "automation", "event hook", "notify on", "callback URL".

How to use this skill

Skill file

Don Cheli: Webhook & Automation

Instructions

  1. Accept the desired webhook configuration: event, target URL, payload format, secret
  2. Detect the platform (GitHub Actions, custom server, Zapier, etc.) from context
  3. Generate the webhook configuration code/YAML for the detected platform
  4. Validate the target URL is reachable if possible (HTTP HEAD check)
  5. Generate a test payload that matches the event schema
  6. Provide a curl command to manually test the webhook
  7. Check for security best practices:
  1. Document the webhook in .dc/webhooks.md with: event, URL, owner, secret env var name
  2. Never log or print the actual secret value — always reference the env var name

Output Format

## Webhook Configuration — pr_merged → deploy

### Config (GitHub Actions)
on:
  pull_request:
    types: [closed]

### Test Command
curl -X POST https://your-app.com/hooks/deploy \
  -H "X-Hub-Signature-256: sha256=<computed>" \
  -H "Content-Type: application/json" \
  -d '{"action":"closed","merged":true,"branch":"main"}'

### Security Checklist
✅ HTTPS endpoint
✅ HMAC signature validation required
⚠️  Add idempotency key handling to prevent duplicate deploys on retry

### Registered in .dc/webhooks.md
Event: pull_request.closed + merged
Target: https://your-app.com/hooks/deploy
Secret: $WEBHOOK_SECRET_DEPLOY
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.