Webhook setup

From vamseeachanta/workspace-hub · View interactive version

Webhook setup is an AI agent skill from the GitHub repository vamseeachanta/workspace-hub. Sub-skill of communication: Webhook Setup (+3).

How to use this skill

Skill file

Webhook Setup (+3)

Webhook Setup

# Common webhook receiver pattern
#!/bin/bash

start_webhook_server() {
    local port="${1:-8080}"

    while true; do
        echo -e "HTTP/1.1 200 OK\n\n" | nc -l -p "$port" | while read line; do
            # Parse webhook payload

*See sub-skills for full details.*

## OAuth2 Authentication

OAuth2 token exchange

get_access_token() {

local client_id="$1"

local client_secret="$2"

local code="$3"

curl -s -X POST "https://oauth.example.com/token" \

-d "client_id=$client_id" \

-d "client_secret=$client_secret" \

See sub-skills for full details.

Rate Limiting

# Tier-based rate limiting
TIER1_LIMIT=1      # 1 request per second
TIER2_LIMIT=20     # 20 requests per minute
TIER3_LIMIT=50     # 50 requests per minute

rate_limited_request() {
    local tier="$1"
    shift


*See sub-skills for full details.*

## Error Response Handling

handle_api_response() {

local response="$1"

local status=$(echo "$response" | jq -r '.ok // .status // "unknown"')

case "$status" in

"true"|"200")

echo "$response" | jq '.data // .'

return 0

;;

See sub-skills for full details.

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.